/* ============================================
   KRISHI GLOBAL - Premium Design System
   From Soil to Soul
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ---- CSS Custom Properties (Design Tokens) ---- */
:root {
    /* Brand Colors */
    --olive: #646B2E;
    --olive-light: #7d8540;
    --olive-dark: #4a5021;
    --gold: #E4B03D;
    --gold-light: #f0c85e;
    --gold-dark: #c99a2d;
    --brown: #B3722A;
    --brown-light: #d08c3f;
    --brown-dark: #8e5a20;
    --blue: #084F8F;
    --blue-light: #0d6ec7;
    --blue-dark: #063a6a;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAF7;
    --cream: #F5F2EB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #0A0A0A;

    /* Functional */
    --success: #16A34A;
    --warning: #F59E0B;
    --error: #DC2626;
    --info: #0EA5E9;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Font Sizes (Clamp for fluid typography) */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
    --text-xl: clamp(1.15rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.5rem);
    --text-3xl: clamp(1.6rem, 1.3rem + 1.2vw, 1.875rem);
    --text-4xl: clamp(1.9rem, 1.5rem + 1.5vw, 2.25rem);
    --text-5xl: clamp(2.2rem, 1.6rem + 2vw, 3rem);
    --text-6xl: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-2xl: 0 24px 64px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 24px rgba(228, 176, 61, 0.25);
    --shadow-olive: 0 4px 24px rgba(100, 107, 46, 0.2);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 960px;
    --header-height: 72px;
    --bottom-nav-height: 64px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ---- Utility ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-20) 0;
}

.section--cream {
    background: var(--cream);
}

.section--dark {
    background: var(--gray-900);
    color: var(--white);
}

.section--olive {
    background: var(--olive);
    color: var(--white);
}

.section--gradient {
    background: var(--cream);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-olive { color: var(--olive); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray-900);
}

.section--dark h1, .section--dark h2, .section--dark h3,
.section--olive h1, .section--olive h2, .section--olive h3 {
    color: var(--white);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: var(--space-4);
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--gray-500);
    max-width: 640px;
    line-height: 1.7;
}

.text-center .section-subtitle {
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
    background: rgba(255,255,255,0.2);
}

.btn:hover::after {
    opacity: 1;
}

.btn--primary {
    background: var(--olive);
    color: var(--white);
    box-shadow: var(--shadow-olive);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(100, 107, 46, 0.35);
}

.btn--gold {
    background: var(--gold);
    color: var(--gray-900);
    box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(228, 176, 61, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--olive);
    color: var(--olive);
}

.btn--outline:hover {
    background: var(--olive);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--white);
    color: var(--olive);
    box-shadow: var(--shadow-md);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--buy {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(8, 79, 143, 0.25);
}

.btn--buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(8, 79, 143, 0.35);
}

.btn--sm {
    padding: 10px 20px;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 18px 40px;
    font-size: var(--text-base);
}

.btn-group {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ---- Header / Navigation ---- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 1001;
}

.header__logo-img {
    height: 60px;
    width: auto;
    border-radius: var(--radius-sm);
}

.header__logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.1;
}

.header__logo-tagline {
    font-family: var(--font-primary);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav__link {
    padding: 10px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-800);
    position: relative;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav__link:hover,
.nav__link.active {
    color: var(--olive);
    background: transparent;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-base);
    position: relative;
}

.menu-toggle__bar::before,
.menu-toggle__bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after { top: 7px; }

.menu-toggle.active .menu-toggle__bar {
    background: transparent;
}
.menu-toggle.active .menu-toggle__bar::before {
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle.active .menu-toggle__bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1a2e1a;
    padding-top: var(--header-height);
}

.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.05);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 10, 0.85);
    z-index: 1;
}

.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero__particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 8s ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-60px) scale(1.5); opacity: 0.6; }
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: var(--space-8) 0;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 20px;
    background: rgba(228, 176, 61, 0.15);
    border: 1px solid rgba(228, 176, 61, 0.3);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-8);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__title span {
    color: var(--gold);
}

.hero__desc {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
    margin-bottom: var(--space-10);
    max-width: 560px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__stats {
    display: flex;
    gap: var(--space-12);
    margin-top: var(--space-16);
    padding-top: var(--space-10);
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    margin-top: var(--space-2);
}

/* Decorative elements */
.hero__deco {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 1;
    opacity: 0.15;
}

.hero__deco-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gold);
}

.hero__deco-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    animation: pulse-ring 4s ease-in-out infinite;
}

.hero__deco-circle:nth-child(2) {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation: pulse-ring 4s ease-in-out infinite 1s;
}

.hero__deco-circle:nth-child(3) {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    animation: pulse-ring 4s ease-in-out infinite 2s;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* ---- Cards ---- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Product Card */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--cream);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

.product-card__badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: 4px 14px;
    background: var(--gold);
    color: var(--gray-900);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card__body {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold-dark);
    margin-bottom: var(--space-2);
}

.product-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.product-card__desc {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__actions {
    display: flex;
    gap: var(--space-3);
}

.product-card__actions .btn {
    flex: 1;
    padding: 12px 16px;
}

/* Feature Card */
.feature-card {
    text-align: center;
    padding: var(--space-10) var(--space-8);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    background: rgba(100,107,46,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-card__icon {
    background: var(--olive);
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-card__icon svg {
    color: var(--white);
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.feature-card__desc {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---- Grids ---- */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Export Trust Bar ---- */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
    padding: var(--space-10) 0;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.trust-item:hover {
    opacity: 1;
}

.trust-item__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

.trust-item__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

/* ---- CTA Section ---- */
.cta {
    position: relative;
    padding: var(--space-24) 0;
    background: var(--olive);
    overflow: hidden;
}

.cta__pattern {
    position: absolute;
    inset: 0;
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--white);
    margin-bottom: var(--space-6);
}

.cta__desc {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-10);
}

/* ---- Footer ---- */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    padding-top: var(--space-20);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-12);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand-desc {
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-top: var(--space-4);
    color: rgba(255,255,255,0.5);
}

.footer__heading {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: var(--space-6);
}

.footer__links li {
    margin-bottom: var(--space-3);
}

.footer__links a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    transition: all var(--transition-fast);
}

.footer__links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
}

.footer__contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--gold);
}

.footer__socials {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: rgba(255,255,255,0.5);
}

.footer__social-link:hover {
    background: var(--gold);
    color: var(--gray-900);
    transform: translateY(-2px);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-8) 0;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.35);
}

.footer__bottom a {
    color: var(--gold);
    transition: color var(--transition-fast);
}

.footer__bottom a:hover {
    color: var(--gold-light);
}

/* ---- Enquiry Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-10);
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-spring);
    box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.modal__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--gray-900);
}

.modal__close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: var(--gray-500);
}

.modal__close:hover {
    background: var(--error);
    color: var(--white);
}

/* ---- Forms ---- */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--gray-800);
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--olive);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(100, 107, 46, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ---- Floating Buttons ---- */
.floating-btns {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    color: var(--white);
    font-size: 1.5rem;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn--enquiry {
    background: var(--gold);
    color: var(--gray-900);
    animation: pulse-btn 2s ease-in-out infinite;
}

.floating-btn--whatsapp {
    background: #25D366;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 4px 16px rgba(228, 176, 61, 0.3); }
    50% { box-shadow: 0 4px 32px rgba(228, 176, 61, 0.6); }
}

/* ---- Bottom Navigation (Mobile) ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 999;
    display: none;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bottom-nav__item svg {
    width: 22px;
    height: 22px;
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
    color: var(--olive);
}

/* ---- Page Header ---- */
.page-header {
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
    background: var(--olive-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
}

.page-header__pattern {
    position: absolute;
    inset: 0;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header__title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.page-header__subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 auto;
}

.page-header__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.4);
}

.page-header__breadcrumb a {
    color: var(--gold);
}

/* ---- About Sections ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-image__accent {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    background: var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ---- Services ---- */
.service-card {
    display: flex;
    gap: var(--space-8);
    padding: var(--space-10);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: var(--olive);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-card__desc {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---- Contact Page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-12);
}

.contact-info-card {
    background: var(--olive);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    color: var(--white);
}

.contact-info-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-item svg {
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 2px;
}

.contact-info-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-1);
}

.contact-info-value {
    font-size: var(--text-base);
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

.map-container {
    margin-top: var(--space-12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Product Detail ---- */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.product-detail__gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--cream);
}

.product-detail__gallery img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.product-detail__info {
    padding: var(--space-4) 0;
}

.product-detail__category {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-bottom: var(--space-3);
}

.product-detail__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
}

.product-detail__desc {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-8);
    white-space: pre-line;
}

.product-detail__variants {
    margin-bottom: var(--space-8);
}

.product-detail__variants h4 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
    color: var(--gray-700);
}

.variant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.variant-tag {
    padding: 8px 18px;
    background: var(--cream);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    cursor: default;
}

.variant-tag:hover {
    border-color: var(--olive);
    color: var(--olive);
    background: rgba(100,107,46,0.05);
}

.product-detail__actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
}

/* ---- Category Filter ---- */
.category-filter {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: var(--space-12);
}

.category-filter__btn {
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-500);
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.category-filter__btn:hover,
.category-filter__btn.active {
    border-color: var(--olive);
    color: var(--olive);
    background: rgba(100,107,46,0.05);
}

.category-filter__btn.active {
    background: var(--olive);
    color: var(--white);
    border-color: var(--olive);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- Alert Messages ---- */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ---- Scroll to top ---- */
.scroll-top {
    position: fixed;
    bottom: 160px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    z-index: 900;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top:hover {
    background: var(--olive);
    color: var(--white);
}

/* ---- Loading Skeleton ---- */
.skeleton {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
