/* Design Tokens & CSS Variables */
:root {
    /* Color Tokens */
    --background: 0 0% 100%;
    --foreground: 233 44% 21%;
    --card: 0 0% 100%;
    --card-foreground: 233 44% 21%;
    --popover: 0 0% 100%;
    --popover-foreground: 233 44% 21%;
    --primary: 236 44% 21%;
    --primary-foreground: 0 0% 100%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 236 44% 21%;
    --muted: 210 30% 95%;
    --muted-foreground: 233 20% 45%;
    --accent: 121 41% 50%;
    --accent-foreground: 0 0% 100%;
    --cta: 121 41% 50%;
    --cta-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --border: 210 30% 88%;
    --input: 210 30% 90%;
    --ring: 121 41% 50%;

    /* Spacing & Layout */
    --radius: 0.75rem;

    /* Gradients */
    --hero-gradient: linear-gradient(135deg, hsl(236 44% 21%) 0%, hsl(236 44% 30%) 50%, hsl(121 41% 50%) 100%);

    /* Shadows */
    --card-shadow: 0 4px 20px -4px hsl(236 44% 21% / 0.08);
    --card-shadow-hover: 0 12px 40px -8px hsl(236 44% 21% / 0.15);

    /* Section Colors */
    --section-alt: 210 40% 97%;

    /* Sidebar (if needed) */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 233 44% 21%;
    --sidebar-primary: 236 44% 21%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 210 40% 96%;
    --sidebar-accent-foreground: 236 44% 21%;
    --sidebar-border: 210 30% 88%;
    --sidebar-ring: 121 41% 50%;
}

/* Base Styles */
* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: Aileron, system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Aileron Heavy', Aileron, system-ui, sans-serif;
    font-weight: 800;
}

/* Custom Utility Classes */
.font-heading {
    font-family: 'Aileron Heavy', Aileron, system-ui, sans-serif;
    font-weight: 800;
}

.gradient-hero {
    background: var(--hero-gradient);
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

.container-custom {
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.glass-card {
    border-radius: 1rem;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Shadow Utilities */
.shadow-card {
    box-shadow: var(--card-shadow);
}

.shadow-card-hover {
    box-shadow: var(--card-shadow-hover);
}

/* Text Color Utilities */
.text-primary-foreground {
    color: hsl(var(--primary-foreground));
}

.text-secondary-foreground {
    color: hsl(var(--secondary-foreground));
}

.text-accent-foreground {
    color: hsl(var(--accent-foreground));
}

.text-cta-foreground {
    color: hsl(var(--cta-foreground));
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-card-foreground {
    color: hsl(var(--card-foreground));
}

/* Background Color Utilities */
.bg-primary-foreground {
    background-color: hsl(var(--primary-foreground));
}

.bg-secondary-foreground {
    background-color: hsl(var(--secondary-foreground));
}

.bg-accent-foreground {
    background-color: hsl(var(--accent-foreground));
}

.bg-cta-foreground {
    background-color: hsl(var(--cta-foreground));
}

/* Background with Opacity Utilities */
.bg-primary-foreground\/5 {
    background-color: hsl(var(--primary-foreground) / 0.05);
}

.bg-primary-foreground\/10 {
    background-color: hsl(var(--primary-foreground) / 0.1);
}

.bg-primary-foreground\/20 {
    background-color: hsl(var(--primary-foreground) / 0.2);
}

.bg-primary-foreground\/30 {
    background-color: hsl(var(--primary-foreground) / 0.3);
}

.bg-primary-foreground\/50 {
    background-color: hsl(var(--primary-foreground) / 0.5);
}

.bg-accent-foreground\/10 {
    background-color: hsl(var(--accent-foreground) / 0.1);
}

.bg-accent-foreground\/20 {
    background-color: hsl(var(--accent-foreground) / 0.2);
}

/* Text with Opacity Utilities */
.text-primary-foreground\/60 {
    color: hsl(var(--primary-foreground) / 0.6);
}

.text-primary-foreground\/80 {
    color: hsl(var(--primary-foreground) / 0.8);
}

.text-primary-foreground\/90 {
    color: hsl(var(--primary-foreground) / 0.9);
}

.text-accent-foreground\/80 {
    color: hsl(var(--accent-foreground) / 0.8);
}

.text-accent-foreground\/90 {
    color: hsl(var(--accent-foreground) / 0.9);
}

/* Floating Action Buttons (FAB) */
.fab-container {
    position: fixed;
    right: 20px;
    /* Slight offset from edge */
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    /* Ensure it's on top of everything */
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    /* Allow clicks to pass through container gaps */
}

.fab-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    pointer-events: auto;
    /* Enable clicks on items */
    position: relative;
}

.fab-label {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-right: -25px;
    /* Tuck under the icon initially */
    padding-right: 35px;
    /* Extra padding for the part under the icon */
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fab-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.fab-item:hover .fab-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-10px);
    /* Slide out to the left */
}

.fab-item:hover .fab-icon {
    transform: scale(1.1) rotate(5deg);
}

.fab-whatsapp .fab-icon {
    background-color: #25D366;
}

.fab-enquiry .fab-icon {
    background-color: hsl(var(--primary));
}

.fab-payment .fab-icon {
    background-color: #FFB800;
}

/* Ensure SVG icons inside FAB are visible */
.fab-icon svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .fab-container {
        right: 10px;
    }

    .fab-icon {
        width: 48px;
        height: 48px;
    }

    .fab-label {
        display: none;
        /* Keep mobile clean */
    }
}

/* Border Color Utilities */
.border-primary-foreground\/10 {
    border-color: hsl(var(--primary-foreground) / 0.1);
}

.border-primary-foreground\/20 {
    border-color: hsl(var(--primary-foreground) / 0.2);
}


/* Animation Utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.animate-fade-in.is-visible {
    opacity: 1;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}