/*
  Symphony Organic Food and Wellness - The Obsidian Apothecary Design System
  Theme: Heritage, Precision, and Editorial Elegance.
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
    /* Colors: Symphony Luxury Natural Palette */
    --primary: #064232;                /* Royal Emerald Green */
    --primary-light: #0D5D48;
    --accent: #DCA134;                 /* Radiant Imperial Gold */
    --accent-light: #ECD29B;
    --highlight: #EA580C;              /* Honey Amber */
    
    /* Surface Hierarchy (Refined Warm Cream Aesthetics) */
    --surface: #FDFBF7;                /* Pristine Alabaster Ivory background */
    --surface-bright: #FFFFFF;         /* Pure Soft White */
    --surface-dim: #F5F2EA;            /* Soft Warm Linen alternative background */
    --surface-container: #ECE7DB;
    
    /* Typography Palette - Enhanced B2B Readability & Contrast */
    --text-primary: #0D1C16;           /* Rich Forest Black for maximum legibility */
    --text-muted: #526E60;             /* Olive Muted */
    --text-on-dark: #FDFBF7;
    
    /* System Tokens */
    --outline: rgba(10, 26, 18, 0.08);
    --shadow-soft: 0 10px 40px rgba(2, 48, 32, 0.03);
    --shadow-bold: 0 20px 60px rgba(2, 48, 32, 0.06);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;                  /* Softer premium rounded corners */
    --radius-md: 16px;
    --radius-lg: 24px;
    --spacing-section: 7rem;
}

/* Base Editorial Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 17px !important;
    background-color: var(--surface);
    color: var(--text-primary);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
    font-family: 'Cormorant Garamond', serif;
    color: var(--primary);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

p, .text-base {
    font-size: 1.0625rem !important; /* ~17px */
    font-weight: 400;
    opacity: 0.9;
}

.text-xs {
    font-size: 0.8125rem !important; /* ~13px */
}

.text-sm {
    font-size: 0.9375rem !important; /* ~15px */
}

.text-lg {
    font-size: 1.1875rem !important; /* ~19px */
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Global Components */

/* Labels (The Archival Stamp) */
.label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Headlines */
.display-lg {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 2.5rem;
}

.heading-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 3.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--surface);
    border: none;
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--primary);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Global Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    padding: 1.25rem 0;
    background: rgba(253, 250, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--outline);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--primary);
}

.logo span {
    font-style: italic;
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 4rem;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Layout Blocks */
.section-padding {
    padding: var(--spacing-section) 0;
}

/* Hero Section (Asymmetrical Stack) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    background: var(--surface);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-visual {
    position: relative;
}

.hero-image-main {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-bold);
    filter: sepia(0.1);
}

.hero-image-sub {
    position: absolute;
    bottom: -10%;
    left: -20%;
    width: 60%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 15px solid var(--surface);
    box-shadow: var(--shadow-bold);
}

/* Quality Scroll (Horizontal Archive) */
.quality-section {
    background: var(--primary);
    color: var(--text-on-dark);
    padding: var(--spacing-section) 0;
}

.quality-header {
    margin-bottom: 6rem;
}

.quality-header h2 {
    color: var(--surface);
}

.quality-grid {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    padding-bottom: 4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.quality-grid::-webkit-scrollbar {
    height: 2px;
}

.quality-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
}

.quality-card {
    flex: 0 0 380px;
    padding: 4rem 3rem;
    background: var(--primary-light);
    border: 1px solid rgba(176, 141, 87, 0.2);
    transition: var(--transition);
}

.quality-card:hover {
    border-color: var(--accent);
}

.quality-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 2.5rem;
    filter: invert(1) brightness(2) sepia(1) hue-rotate(330deg) saturate(2); /* Gold look */
}

.quality-card h3 {
    color: var(--surface);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.quality-card p {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Category Grid */
.category-section {
    background: var(--surface-dim);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
}

.category-tile {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: var(--surface);
}

.category-tile.large { grid-column: span 8; }
.category-tile.medium { grid-column: span 4; }
.category-tile.small { grid-column: span 3; }

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: var(--transition);
}

.category-tile:hover img {
    transform: scale(1.05);
    opacity: 0.3;
}

.category-tile-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    z-index: 2;
}

.category-tile h3 {
    color: var(--surface);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--text-on-dark);
    padding: 10rem 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 8rem;
}

.footer h4 {
    color: var(--accent);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

.footer-links li {
    margin-bottom: 1.25rem;
}

.footer-links a {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 10px;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4rem;
    border-top: 1px solid rgba(253, 250, 246, 0.05);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    :root { --spacing-section: 7rem; }
    .hero-grid { gap: 3rem; }
    .display-lg { font-size: 4rem; }
}

@media (max-width: 991px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .category-grid { grid-template-rows: auto; }
    .category-tile { grid-column: span 12 !important; height: 350px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
}

/* Samriddhi Homepage Utilities */
.bg-mesh {
    background-color: var(--surface);
    background-image: radial-gradient(at 40% 20%, hsla(28,100%,74%,0.15) 0px, transparent 50%),
                      radial-gradient(at 80% 0%, hsla(189,100%,56%,0.15) 0px, transparent 50%),
                      radial-gradient(at 0% 50%, hsla(355,100%,93%,0.15) 0px, transparent 50%);
}
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}
.shadow-premium {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3), 0 -12px 24px -8px rgba(255, 255, 255, 0.5) inset;
}
.perspective-1000 {
    perspective: 1000px;
}
.rotate-y-12 {
    transform: rotateY(-12deg);
}
.floating {
    animation: floating 6s ease-in-out infinite;
}
.floating-delayed {
    animation: floating 6s ease-in-out infinite 3s;
}
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Symphony Premium B2B Style System Additions */
.bg-cream-luxury {
    background-color: var(--surface);
}

.b2b-gradient-gold {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.b2b-glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px -10px rgba(2, 48, 32, 0.04);
    transition: var(--transition);
}

.b2b-glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--accent);
    box-shadow: var(--shadow-bold);
    transform: translateY(-5px);
}

.b2b-luxury-card {
    background: var(--surface-bright);
    border: 1px solid rgba(176, 141, 87, 0.15);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
}

.b2b-luxury-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-bold);
    transform: translateY(-4px);
}

.b2b-category-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(197, 160, 89, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-block;
}

/* Premium B2B Horizontal Scroll */
.b2b-scroll-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
}

.b2b-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.b2b-scroll-container::-webkit-scrollbar-track {
    background: rgba(2, 48, 32, 0.03);
    border-radius: 10px;
}

.b2b-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 10px;
}

.b2b-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Interactive Tabs */
.b2b-tab-btn {
    position: relative;
    transition: var(--transition);
}

.b2b-tab-btn.active {
    color: var(--primary);
}

.b2b-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* Trust Card Counters */
.counter-box {
    border-right: 1px solid rgba(2, 48, 32, 0.1);
}
.counter-box:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .counter-box {
        border-right: none;
        border-bottom: 1px solid rgba(2, 48, 32, 0.1);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .counter-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Infinite Scrolling Certificate Marquee Styles
   ========================================================================== */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-track {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    user-select: none;
}

.animate-marquee {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem; /* Perfect mathematical gap matching for infinite seamless loop */
    animation: marquee-scroll 32s linear infinite;
}

/* Pause animation smoothly on hover */
.marquee-track:hover .animate-marquee {
    animation-play-state: paused;
}

/* ==========================================================================
   TIGHT SPACING RULES (15-20px Spacing between sections, header, and footer)
   ========================================================================== */

/* 1. Reduce padding on all sections, headers, and divs to 10px so the combined space between adjacent sections is 20px */
main section,
main header,
main > div {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* 2. Space between 1st element (section/header/div) and the header: keep 18px (15-20px) space */
main > section:first-of-type,
main > header:first-of-type,
main > div:first-of-type {
    padding-top: 18px !important;
}

/* 3. Space between last element (section/header/div) and the footer: keep 18px (15-20px) space */
main > section:last-of-type,
main > header:last-of-type,
main > div:last-of-type {
    padding-bottom: 18px !important;
}

/* 4. Keep internal element spacing tight and balanced */
main section .mb-16,
main header .mb-16 {
    margin-bottom: 1.5rem !important; /* Tighten heading gap */
}
main section .mb-10,
main header .mb-10 {
    margin-bottom: 1.25rem !important;
}
main section .mb-12,
main header .mb-12 {
    margin-bottom: 1.25rem !important;
}


