/* ========================================================
   AYURDHAN WELLNESS - MAIN STYLESHEET
   Premium Ayurvedic Veterinary, Agri & Health Supplements
   Senior Developer "Wow-Factor" Editorial Design System
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,600&display=swap');

:root {
    /* Colors (HSL Curated Organic Luxury) */
    /* Colors (HSL Curated Organic Luxury - Restored Green) */
    --primary-forest: hsl(152, 43%, 16%);
    --primary-forest-rgb: 23, 59, 44;
    --forest-light: hsl(150, 20%, 45%);
    --forest-pale: hsl(150, 24%, 93%);
    --aged-gold: hsl(45, 68%, 46%);
    --aged-gold-rgb: 197, 149, 37;
    --aged-gold-light: hsl(45, 90%, 94%);
    --warm-parchment: #f4f4f4; /* Light Gray Background */
    --parchment-deep: #e8e8e8; /* Deeper Light Gray */
    --charcoal: #000000;
    --charcoal-light: #222222;
    --warm-grey: #333333;
    --light-grey: hsl(0, 0%, 85%);
    --border: hsla(38, 20%, 85%, 0.5);
    --border-dark: hsla(152, 43%, 16%, 0.1);
    --white: hsl(0, 0%, 100%);
    --success: hsl(142, 72%, 29%);
    --error: hsl(0, 72%, 50%);

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-devanagari: 'Noto Sans Devanagari', sans-serif;

    /* Shadows & Radii */
    --shadow-card: 0 10px 40px rgba(23, 59, 44, 0.04), 0 2px 10px rgba(0, 0, 0, 0.02);
    --shadow-dropdown: 0 20px 50px rgba(23, 59, 44, 0.12);
    --shadow-btn: 0 4px 18px rgba(197, 149, 37, 0.25);
    --shadow-inset: inset 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-gold-glow: 0 0 25px rgba(197, 149, 37, 0.2);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --trans-fast: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --trans-medium: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --trans-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--warm-parchment);
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--trans-fast);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--trans-fast);
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    transition: var(--trans-fast);
}

/* ---- UTILITY CLASSES ---- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.text-center {
    text-align: center;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aged-gold);
    margin-bottom: 12px;
    display: inline-block;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--primary-forest);
    margin-bottom: 16px;
}

.section-subheading {
    font-size: 16px;
    color: var(--charcoal-light);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- BUTTONS (WOW-FACTOR) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 14px 32px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-forest);
    color: var(--white);
    border-color: var(--aged-gold);
    box-shadow: 0 8px 24px rgba(23, 59, 44, 0.15);
}

.btn-primary:hover {
    background-color: var(--forest-light);
    border-color: var(--aged-gold);
    box-shadow: var(--shadow-gold-glow);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-gold {
    background-color: var(--aged-gold);
    color: var(--white);
    box-shadow: var(--shadow-btn);
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(197, 149, 37, 0.4);
}

.btn-ghost {
    background-color: transparent;
    color: var(--white);
    border-color: hsla(0, 0%, 100%, 0.25);
}

.btn-ghost:hover {
    background-color: hsla(0, 0%, 100%, 0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-forest);
    border-color: var(--primary-forest);
}

.btn-secondary:hover {
    background-color: var(--forest-pale);
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

/* ---- GRAIN SYSTEM ---- */
.grain-bg {
    position: relative;
    background-color: #4a4b4c; /* Changed to gray as requested */
    overflow: hidden;
    z-index: 1;
}

.grain-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.grain-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(197, 149, 37, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(64, 145, 108, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Blur orbs */
.orb {
    position: absolute;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    background: radial-gradient(circle, var(--aged-gold), transparent);
    top: -15%;
    left: -10%;
    animation: drift 30s ease-in-out infinite alternate;
}

.orb-2 {
    background: radial-gradient(circle, var(--forest-light), transparent);
    bottom: -15%;
    right: -10%;
    animation: drift 35s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -40px) scale(1.1); }
}

/* ---- PREMIUM NAVIGATION HEADER ---- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    transition: var(--trans-medium);
}

.main-header.transparent {
    background: transparent;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 245, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(23, 59, 44, 0.03);
    height: 72px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--aged-gold);
    stroke-width: 2.5;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.main-header.scrolled .logo-text {
    color: var(--primary-forest);
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--aged-gold);
    transition: width var(--trans-medium);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--white);
}

.main-header.scrolled .nav-link {
    color: var(--charcoal-light);
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
    color: var(--primary-forest);
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: transparent;
    position: relative;
}

.nav-icon-btn:hover {
    color: var(--aged-gold);
    background: rgba(255, 255, 255, 0.08);
}

.main-header.scrolled .nav-icon-btn {
    color: var(--charcoal);
}

.main-header.scrolled .nav-icon-btn:hover {
    background: rgba(23, 59, 44, 0.05);
    color: var(--primary-forest);
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background-color: var(--aged-gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hamburger {
    display: none;
}

@media (max-width: 991px) {
    .desktop-nav {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    /* Hide Cart & Login header buttons on mobile since they are in the bottom bar */
    .nav-actions a[href="login.php"],
    .nav-actions button.cart-toggle {
        display: none !important;
    }
}

.header-spacer {
    height: 80px;
}

/* ---- SEARCH OVERLAY ---- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 59, 44, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--trans-medium), visibility 0.4s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 32px;
    right: 32px;
    color: var(--white);
    padding: 10px;
}

.search-close:hover {
    color: var(--aged-gold);
    transform: rotate(90deg);
}

.search-content {
    width: 90%;
    max-width: 680px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s var(--trans-medium);
}

.search-overlay.active .search-content {
    transform: translateY(0);
}

.search-input {
    width: 100%;
    height: 70px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--white);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    padding: 0 10px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.search-popular {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-popular-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.search-popular-tag {
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.search-popular-tag:hover {
    border-color: var(--aged-gold);
    color: var(--aged-gold);
}

/* ---- MOBILE NAVIGATION OVERLAY ---- */
/* ---- MOBILE NATIVE APP MENU DRAWER ---- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    background-color: var(--primary-forest);
    z-index: 999999 !important; /* Lock drawer on top of everything! */
    padding: 40px 20px 24px 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for clean app interface */
}

.mobile-menu::-webkit-scrollbar {
    display: none;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    padding: 8px;
    opacity: 0.8;
    z-index: 5;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: var(--trans-fast);
}

.mobile-menu-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12);
    color: var(--aged-gold);
}

.mobile-menu-app-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 20px;
    background: linear-gradient(135deg, hsl(152, 43%, 12%) 0%, var(--primary-forest) 100%);
    border-bottom: 1px solid rgba(197, 149, 37, 0.2);
    margin: -40px -20px 24px -20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 149, 37, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-header-greeting {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.app-header-greeting .greeting-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--aged-gold-light);
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-header-greeting .brand-lbl {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-sans) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 12px 16px !important;
    border-radius: 12px;
    border-bottom: none !important;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    color: var(--aged-gold-light);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--aged-gold) !important;
    padding-left: 20px !important;
}

.mobile-nav-link.active svg,
.mobile-nav-link:hover svg {
    color: var(--aged-gold);
    opacity: 1;
    transform: scale(1.1);
}

.mobile-cart-badge-side {
    margin-left: auto;
    background-color: var(--aged-gold);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(197, 149, 37, 0.3);
}

.mobile-menu-app-tools {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-app-tools .tools-heading {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--aged-gold-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    opacity: 0.8;
}

.mobile-menu-app-tools .tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tool-download-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    background: var(--aged-gold);
    color: var(--white);
    box-shadow: var(--shadow-btn);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tool-download-btn.secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    box-shadow: none;
}

.tool-download-btn:hover {
    transform: translateY(-3px);
}

.tool-download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--aged-gold);
}

.tool-download-btn .tool-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.tool-download-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.tool-download-btn .main-lbl {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.tool-download-btn .sub-lbl {
    font-size: 8px;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- PREMIUM SLIDING SIDE CART ---- */
.cart-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    background: var(--white);
    box-shadow: -15px 0 40px rgba(23, 59, 44, 0.08);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-dropdown.active {
    transform: translateX(0);
}

.cart-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.cart-dropdown-header h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-forest);
}

.cart-dropdown-close {
    color: var(--warm-grey);
    padding: 6px;
}

.cart-dropdown-close:hover {
    color: var(--charcoal);
    transform: rotate(90deg);
}

.cart-dropdown-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-dropdown-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--warm-grey);
    font-size: 15px;
}

.cart-dropdown-item {
    display: flex;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.cart-dropdown-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: var(--white);
}

.cart-dropdown-item-info {
    flex: 1;
}

.cart-dropdown-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-forest);
    margin-bottom: 4px;
}

.cart-dropdown-item-qty {
    font-size: 12px;
    color: var(--warm-grey);
}

.cart-dropdown-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
}

.cart-dropdown-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: var(--warm-parchment);
}

.cart-dropdown-subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-forest);
    margin-bottom: 20px;
}

.cart-dropdown-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(23, 59, 44, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cart-dropdown-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .cart-dropdown {
        width: 100%;
        border-radius: 16px 16px 0 0;
    }
}

/* ---- TOAST NOTIFICATION CHIPS ---- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    border: 1px solid rgba(197, 149, 37, 0.25);
    border-left: 4px solid var(--primary-forest);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-dropdown);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 300px;
    max-width: 380px;
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--success);
}

.toast-icon.error {
    color: var(--error);
}

.toast-message {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ---- HERO VIEWPORT SPLIT ---- */
.hero {
    min-height: 100vh;
    padding: 140px 0 100px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-text-col {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--aged-gold-light);
    margin-bottom: 24px;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    stroke: var(--aged-gold);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-line:nth-child(2) {
    color: var(--aged-gold);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-col {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.hero-image-frame {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.hero-image-frame img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-ornament {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px dashed rgba(197, 149, 37, 0.4);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .hero-subtitle {
        margin-inline: auto;
    }
    .hero-badge, .hero-cta-row {
        justify-content: center;
        margin-inline: auto;
    }
    .hero-title {
        font-size: 48px;
    }
    .hero-image-wrapper {
        max-width: 360px;
    }
}

/* ---- WHY CHOOSE US PILLARS ---- */
.feature-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-card);
    transition: var(--trans-medium);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--aged-gold);
    box-shadow: var(--shadow-gold-glow);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background-color: var(--forest-pale);
    color: var(--primary-forest);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-forest);
    margin-bottom: 12px;
}

.feature-card-desc {
    font-size: 14px;
    color: var(--charcoal-light);
    opacity: 0.8;
}

/* Grain BG why choose cards styling */
.grain-bg .feature-card {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.grain-bg .feature-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--aged-gold);
}

.grain-bg .feature-card-icon {
    background-color: rgba(197, 149, 37, 0.15);
    color: var(--aged-gold-light);
}

.grain-bg .feature-card-title {
    color: var(--white);
}

.grain-bg .feature-card-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ---- THREE-CATEGORY SPOTLIGHT ---- */
.category-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 360px;
    box-shadow: var(--shadow-card);
    transition: var(--trans-slow);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(23, 59, 44, 0.12);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--trans-slow);
}

.category-card:hover .category-card-img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 59, 44, 0.9) 0%, rgba(23, 59, 44, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.category-card-title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--white);
    margin-bottom: 6px;
}

.category-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 16px;
}

@media (max-width: 991px) {
    .category-spotlight-grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        height: 280px;
    }
}

/* ---- PRODUCT GRID & PREMIUM CARDS ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--trans-medium);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--aged-gold);
    box-shadow: var(--shadow-gold-glow);
}

.product-card-image {
    position: relative;
    height: 240px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.product-card-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--trans-medium);
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.product-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--primary-forest);
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 13px;
    color: var(--charcoal-light);
    opacity: 0.8;
    margin-bottom: 18px;
    flex: 1;
    line-height: 1.5;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-forest);
}

.product-card-b2b {
    font-size: 13px;
    font-weight: 600;
    color: var(--aged-gold);
    background-color: var(--aged-gold-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.product-card-bv {
    font-size: 11px;
    font-weight: 700;
    color: var(--warm-grey);
    text-transform: uppercase;
    margin-left: auto;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 12px;
}

/* ---- ASYMMETRICAL STORY HIGHLIGHT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    position: relative;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--charcoal-light);
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(23, 59, 44, 0.08);
    width: 100%;
}

.about-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--aged-gold);
    border-radius: var(--radius-xl);
    top: 20px;
    left: 20px;
    z-index: -1;
}

@media (max-width: 991px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-image {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ---- PREMIUM TESTIMONIAL CARDS ---- */
.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-quote-icon {
    font-family: var(--font-serif);
    font-size: 80px;
    line-height: 0.1;
    color: var(--aged-gold-light);
    position: absolute;
    top: 36px;
    left: 30px;
    z-index: 1;
    user-select: none;
}

.testimonial-text {
    font-size: 15px;
    color: var(--charcoal-light);
    line-height: 1.6;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--aged-gold);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-forest);
}

.testimonial-author-location {
    font-size: 12px;
    color: var(--warm-grey);
}

/* ---- B2B ENQUIRY NEWSLETTER ---- */
.newsletter-form {
    display: flex;
    max-width: 560px;
    margin: 32px auto 0;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.newsletter-form input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 14px 24px;
    border-radius: 40px;
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
    background-color: var(--white);
    color: var(--charcoal);
    border-color: var(--aged-gold);
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
        border-radius: 0;
    }
}

/* ---- EDITORIAL PAGE HERO ---- */
.page-hero {
    min-height: 240px;
    padding-top: 140px;
    padding-bottom: 60px;
    color: var(--white);
    position: relative;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--aged-gold-light);
    margin-bottom: 12px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.35);
}

.breadcrumb-current {
    color: var(--white);
}

.page-hero-title {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.page-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

/* ---- FILTER PILL BAR ---- */
.filter-bar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 80px;
    z-index: 900;
    transition: var(--trans-medium);
}

.main-header.scrolled ~ .filter-bar {
    top: 72px;
}

.filter-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--charcoal-light);
    background-color: transparent;
}

.filter-pill:hover {
    border-color: var(--primary-forest);
    color: var(--primary-forest);
}

.filter-pill.active {
    background-color: var(--primary-forest);
    border-color: var(--primary-forest);
    color: var(--white);
}

.sort-select {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    background-color: var(--white);
    color: var(--charcoal-light);
    cursor: pointer;
}

/* ---- B2B INTERACTIVE ESTIMATOR ---- */
.calc-panel {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 960px;
    margin: 50px auto 0;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.calc-inputs-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.slider-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-forest);
}

.slider-count {
    color: var(--aged-gold);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--forest-pale);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-forest);
    border: 2px solid var(--aged-gold);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: var(--trans-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background-color: var(--forest-light);
}

.calc-outputs-side {
    background-color: var(--warm-parchment);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.output-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.output-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 8px;
}

.output-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--charcoal-light);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.output-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-forest);
}

.output-val.profit {
    font-family: var(--font-serif);
    font-size: 26px;
}

@media (max-width: 991px) {
    .calc-panel {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
    }
}

/* ---- DISTRIBUTOR B2B FORM CARDS ---- */
.inquiry-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    max-width: 720px;
    margin: 40px auto 0;
    box-shadow: var(--shadow-card);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-col-span-2 {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-forest);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background-color: var(--warm-parchment);
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--charcoal);
}

.form-control:focus {
    background-color: var(--white);
    border-color: var(--aged-gold);
    box-shadow: var(--shadow-gold-glow);
}

select.form-control {
    height: 50px;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 600px) {
    .inquiry-card {
        padding: 24px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-col-span-2 {
        grid-column: span 1;
    }
}

/* ---- SHOPPING CART VIEW DETAILS ---- */
.cart-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
}

.cart-item-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-card);
    transition: var(--trans-medium);
}

.cart-item-card.removing {
    transform: scale(0.9);
    opacity: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    background-color: var(--white);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-forest);
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--warm-grey);
}

.cart-item-unit-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px;
    background-color: var(--warm-parchment);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-forest);
}

.qty-btn:hover {
    background-color: var(--forest-pale);
}

.qty-input {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--charcoal);
}

.cart-item-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-forest);
}

.cart-item-remove {
    color: var(--warm-grey);
    padding: 6px;
}

.cart-item-remove:hover {
    color: var(--error);
}

.order-summary {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    height: fit-content;
}

.order-summary h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--primary-forest);
    margin-bottom: 24px;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}

.order-summary-row .label {
    color: var(--charcoal-light);
    opacity: 0.8;
}

.order-summary-row .value {
    font-weight: 600;
    color: var(--charcoal);
}

.order-summary-row .value.free {
    color: var(--success);
}

.order-summary-divider {
    height: 1px;
    background-color: var(--border);
    margin: 20px 0;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-forest);
    margin-bottom: 24px;
}

.promo-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 991px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cart-item-card {
        grid-template-columns: 60px 1fr auto;
        gap: 16px;
        padding: 16px;
    }
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    .cart-item-quantity {
        grid-column: span 3;
        width: fit-content;
        margin-left: 76px;
    }
    .cart-item-subtotal {
        grid-column: span 3;
        text-align: right;
    }
}

/* ---- PREMIUM SOCIAL CONNECT FOOTER ---- */
.main-footer {
    background-color: #4a4b4c; /* Same dark gray as hero */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 0.9fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
    color: var(--aged-gold);
    stroke-width: 2.5;
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.footer-brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social-link:hover {
    background-color: var(--primary-forest);
    color: var(--white);
    border-color: var(--primary-forest);
    transform: translateY(-3px);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--aged-gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.8;
}

.footer-contact-icon {
    color: var(--aged-gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-badges {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ---- PREMIUM SPLIT LOGIN GATEWAY ---- */
.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 100vh;
}

.split-left {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.split-left-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.split-left-logo svg {
    color: var(--aged-gold);
    stroke-width: 2.5;
}

.split-left-decorative {
    position: absolute;
    width: 60%;
    height: 60%;
    opacity: 0.03;
    color: var(--white);
    bottom: -10%;
    left: -10%;
    pointer-events: none;
}

.split-left-content {
    max-width: 480px;
    position: relative;
    z-index: 2;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.feature-item svg {
    color: var(--aged-gold);
}

.split-left-bottom {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
}

.split-left-bottom a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

.split-right {
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.split-form-card {
    width: 100%;
    max-width: 400px;
}

.split-form-card h2 {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--primary-forest);
    margin-bottom: 8px;
}

.split-form-subtitle {
    font-size: 14px;
    color: var(--warm-grey);
    margin-bottom: 32px;
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--warm-grey);
}

.password-toggle:hover {
    color: var(--charcoal);
}

.password-strength {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    background-color: var(--forest-pale);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0;
    transition: var(--trans-medium);
}

.password-strength-fill.weak { width: 33%; background-color: var(--error); }
.password-strength-fill.medium { width: 66%; background-color: var(--aged-gold); }
.password-strength-fill.strong { width: 100%; background-color: var(--success); }

.password-strength-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--warm-grey);
    margin-top: 4px;
}

.password-strength-label.weak { color: var(--error); }
.password-strength-label.medium { color: var(--aged-gold); }
.password-strength-label.strong { color: var(--success); }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--charcoal-light);
    cursor: pointer;
}

.form-check-input {
    margin-top: 4px;
    accent-color: var(--primary-forest);
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--warm-grey);
    font-size: 12px;
    font-weight: 600;
    margin: 24px 0;
}

.divider-text::before, .divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider-text::before { margin-right: 16px; }
.divider-text::after { margin-left: 16px; }

.btn-social {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal-light);
}

.btn-social:hover {
    background-color: var(--warm-parchment);
}

@media (max-width: 991px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .split-left {
        display: none;
    }
    .split-right {
        padding: 40px 24px;
        min-height: 100vh;
    }
}

/* ---- CERTIFICATE GRID STYLINGS ---- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cert-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--trans-medium);
}

.cert-item:hover {
    transform: translateY(-6px);
    border-color: var(--aged-gold);
    box-shadow: var(--shadow-gold-glow);
}

.cert-icon {
    width: 64px;
    height: 64px;
    background-color: var(--aged-gold-light);
    color: var(--aged-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cert-label {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-forest);
}

@media (max-width: 991px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- LEADERSHIP TEAM GRIDS ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card-image {
    height: 320px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--trans-slow);
}

.team-grid > div:hover .team-card-image img {
    transform: scale(1.05);
}

.team-card-name {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--primary-forest);
    margin-bottom: 4px;
}

.team-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--aged-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.team-card-bio {
    font-size: 13px;
    color: var(--charcoal-light);
    opacity: 0.8;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .team-card-image {
        max-width: 320px;
        margin-inline: auto;
    }
}

/* ---- CONTACT DUAL-LAYOUT ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.10fr 0.9fr;
    gap: 48px;
}

.contact-form-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-card);
}

.contact-form-card h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--primary-forest);
    margin-bottom: 32px;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-block {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-card);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--forest-pale);
    color: var(--primary-forest);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
}

.contact-info-content h4 {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--primary-forest);
    margin-bottom: 6px;
}

.contact-info-content p {
    font-size: 14px;
    color: var(--charcoal-light);
    opacity: 0.8;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.map-section {
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.map-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- SCROLL ANIMATION EFFECTS ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > .animate-on-scroll {
    transition-delay: calc(var(--child-index, 0) * 0.1s);
}

/* ---- MISC PAGE ELEVATION ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-forest) 0%, hsl(152, 43%, 10%) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--aged-gold);
    box-shadow: var(--shadow-gold-glow);
}

.cta-banner h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 8px;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ========================================================
   MOBILE APP BOTTOM NAVIGATION BAR & ALIGNMENTS
   ======================================================== */
/* ========================================================
   MOBILE APP BOTTOM NAVIGATION BAR & ALIGNMENTS
   ======================================================== */
.mobile-bottom-bar {
    display: none;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 72px; /* Slightly taller for premium native feel */
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(23, 59, 44, 0.08) !important;
    box-shadow: 0 -8px 30px rgba(23, 59, 44, 0.08) !important;
    z-index: 99999 !important; /* Pinned directly on top of everything! */
    justify-content: space-around;
    align-items: center;
    padding: 0 16px;
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-light) !important;
    opacity: 0.7;
    text-decoration: none;
    transition: var(--trans-fast);
    flex: 1;
    height: 100%;
    padding: 10px 0;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-bottom-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-bottom-item span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mobile-bottom-item.active,
.mobile-bottom-item:hover {
    color: var(--primary-forest) !important;
    opacity: 1;
}

.mobile-bottom-item.active svg,
.mobile-bottom-item:hover svg {
    stroke: var(--aged-gold);
    transform: translateY(-2px) scale(1.15);
}

.mobile-bottom-badge {
    position: absolute;
    top: 4px;
    right: 18%;
    background-color: var(--aged-gold);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(197, 149, 37, 0.3);
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex !important;
    }
    
    body {
        padding-bottom: 76px !important; /* Offset to prevent bottom bar from overlapping content */
    }
    
    /* Make sure mobile views are extremely clean and padded */
    .section-padding {
        padding: 50px 0;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .main-header.scrolled {
        height: 64px;
    }
}

@media (max-width: 480px) {
    /* Mobile-app clean padding overrides to prevent sideways scrolling */
    .container {
        padding: 0 16px !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .calc-panel {
        padding: 24px 16px !important;
        gap: 24px !important;
        border-radius: var(--radius-lg) !important;
    }
    
    .calc-outputs-side {
        padding: 20px 16px !important;
    }
    
    .inquiry-card, .contact-form-card, .split-form-card {
        padding: 24px 16px !important;
        border-radius: var(--radius-lg) !important;
    }
    
    .form-grid {
        gap: 12px !important;
    }
    
    .testimonial-card {
        padding: 24px !important;
    }
    
    .team-card-image {
        height: 280px !important;
    }
}

/* ---- UTILITY GRIDS ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
@media (max-width: 991px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

