@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --background: 15 60% 98%;
    --foreground: 220 20% 15%;

    --card: 15 60% 99%;
    --card-foreground: 220 20% 15%;

    --popover: 15 60% 99%;
    --popover-foreground: 220 20% 15%;

    --primary: 30 85% 52%;
    --primary-foreground: 40 40% 92%;

    --secondary: 220 15% 20%;
    --secondary-foreground: 40 30% 92%;

    --muted: 15 30% 94%;
    --muted-foreground: 220 10% 45%;

    --accent: 30 60% 45%;
    --accent-foreground: 40 40% 92%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 15 20% 90%;
    --input: 15 20% 90%;
    --ring: 30 85% 52%;

    --radius: 0.5rem;

    --hero-gradient: linear-gradient(135deg, hsl(15 60% 98%) 0%, hsl(10 50% 96%) 100%);
    --section-warm: 15 50% 96%;
    --gold: 40 90% 55%;
    --gold-foreground: 40 40% 92%;
    --navy: 220 25% 12%;
    --navy-foreground: 40 30% 92%;

    --sidebar-background: 40 40% 92%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 40 40% 92%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

.dark {
    --background: 220 20% 8%;
    --foreground: 30 20% 92%;

    --card: 220 18% 12%;
    --card-foreground: 30 20% 92%;

    --popover: 220 18% 12%;
    --popover-foreground: 30 20% 92%;

    --primary: 30 85% 52%;
    --primary-foreground: 30 25% 97%;

    --secondary: 220 15% 20%;
    --secondary-foreground: 30 20% 92%;

    --muted: 220 15% 18%;
    --muted-foreground: 30 10% 60%;

    --accent: 30 60% 45%;
    --accent-foreground: 30 25% 97%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 220 15% 20%;
    --input: 220 15% 20%;
    --ring: 30 85% 52%;
}

* {
    border-color: hsl(var(--border));
}



/* Custom Utility Classes */
.text-justify {
    text-align: justify !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: -0.02em;
}

img {
    max-width: 100%;
    height: auto;
}

.desktop-links {
    gap: 1rem;
}

@media (min-width: 1280px) {
    .desktop-links {
        gap: 2rem;
    }
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(1.875rem, 5vw, 3rem);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100%;
    position: relative;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: "DM Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100%;
    position: relative;
}

/* Custom Utilities mimicking @apply */
.saffron-gradient {
    background: linear-gradient(135deg, hsl(30 85% 52%) 0%, hsl(40 90% 55%) 100%);
}

.glass-card {
    background-color: hsl(var(--card) / 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: none;
        /* Better performance on mobile */
        background-color: hsl(var(--card));
    }
}

/* Animation utilities for fade-in */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Auto-scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


.animate-scroll {
    animation: scroll 25s linear infinite;
}

/* Multi-image slider slides */
.slide {
    transition: opacity 1s ease-in-out, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}



/* Offer Button in Hero */
.offer-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    width: 140px;
    height: 60px;
    background-color: transparent;
    cursor: pointer;
    z-index: 50;
    /* Above most elements */
}

@media (max-width: 768px) {
    .offer-btn-container {
        position: fixed;
        /* Fix for mobile to ensure it's always in viewport */
        top: 6.5rem;
        /* Below fixed navbar */
        right: 1rem;
        width: 110px;
        height: 48px;
        z-index: 100;
    }
}

.btn-drawer {
    position: absolute;
    width: 90%;
    height: 20px;
    background-color: hsl(var(--navy));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    letter-spacing: 0.1em;
    border: 1px solid hsl(var(--primary) / 0.3);
}

.transition-top {
    top: 20px;
    border-radius: 4px 4px 0 0;
}

.transition-bottom {
    bottom: 20px;
    border-radius: 0 0 4px 4px;
}

.offer-btn-container:hover .transition-top {
    top: -14px;
}

.offer-btn-container:hover .transition-bottom {
    bottom: -14px;
}

.offer-btn-main {
    width: 100%;
    height: 100%;
    background-color: hsl(var(--primary));
    border: none;
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 0.15em;
    box-shadow: 0 10px 30px -5px rgba(var(--primary), 0.5);
    animation: offer-heartbeat 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

@keyframes offer-heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 122, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
    }
}

.btn-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    fill: #ffffff !important;
    /* Force white for maximum contrast */
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
    z-index: 3;
}

.btn-corner:nth-of-type(1) {
    top: -10px;
    left: -10px;
    transform: rotate(0deg);
}

.btn-corner:nth-of-type(2) {
    top: -10px;
    right: -10px;
    transform: rotate(90deg);
}

.btn-corner:nth-of-type(3) {
    bottom: -10px;
    right: -10px;
    transform: rotate(180deg);
}

.btn-corner:nth-of-type(4) {
    bottom: -10px;
    left: -10px;
    transform: rotate(270deg);
}

.offer-btn-container:hover .btn-corner {
    transform: scale(1.2);
    fill: hsl(var(--navy));
}

@media (max-width: 768px) {
    .offer-btn-container {
        top: 6.5rem;
        right: 1rem;
        width: 110px;
        height: 48px;
    }

    .offer-btn-main {
        font-size: 14px;
    }

    .btn-corner {
        width: 12px;
        height: 12px;
    }

    .btn-corner:nth-of-type(1) {
        top: -6px;
        left: -6px;
    }

    .btn-corner:nth-of-type(2) {
        top: -6px;
        right: -6px;
    }

    .btn-corner:nth-of-type(3) {
        bottom: -6px;
        right: -6px;
    }

    .btn-corner:nth-of-type(4) {
        bottom: -6px;
        left: -6px;
    }
}

/* Existing scrollbar styles preserved below */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--navy));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary));
    border-radius: 10px;
    border: 2px solid hsl(var(--navy));
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--accent));
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: hsl(var(--primary)) hsl(var(--navy));
}

/* Hide scrollbar only for specific elements if needed */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}