/* ============================================
   ANH GROUP / MachLion — Frontend Design System
   Brand Colors + Premium Component Library
   ============================================ */

/* --- CSS Custom Properties (Brand Palette) --- */
:root {
    /* Primary Brand Colors — Nature-Inspired Green Palette */
    --anh-teal: #576E45;
    /* Olive Green — primary brand accent */
    --anh-teal-dark: #445836;
    --anh-teal-light: #899C6F;
    --anh-teal-50: #f0f4ee;
    --anh-yellow: #AAC64B;
    --anh-yellow-dark: #576E45;
    --anh-yellow-light: #CCD4C9;
    --anh-navy: #232D26;
    /* Dark Forest — primary dark */
    --anh-navy-dark: #1a201c;
    --anh-navy-light: #2d3d32;
    --anh-forest: #2d3d32;
    --anh-gold: #AAC64B;
    --anh-gray-50: #f5f7f4;
    --anh-gray-100: #eef1ec;
    --anh-gray-200: #dde3da;
    --anh-gray-300: #CCD4C9;
    --anh-gray-600: #6B746B;
    --anh-gray-800: #232D26;
    --anh-white: #ffffff;
    --anh-black: #1a201c;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Typography */
    --font-display: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif;
    --font-body: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif;
    --font-bn: 'Noto Sans Bengali', 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(87, 110, 69, 0.2);

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.35s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);

    /* Header height */
    --header-h: 80px;
    --topbar-h: 0px;
    /* For legacy support */
}

@media (max-width: 1023px) {
    :root {
        --header-h: 70px;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: var(--font-body);
    color: var(--anh-navy);
    background: var(--anh-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[lang="bn"] body {
    font-family: var(--font-bn);
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

/* Mobile Menu Button - Hidden on Desktop */
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
    color: var(--anh-navy);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--anh-teal-50);
    color: var(--anh-teal);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--anh-gray-600);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Language Dropdown --- */
.lang-dropdown-container {
    position: relative;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-current {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    line-height: 1;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--anh-yellow);
    color: var(--anh-yellow) !important;
}

.lang-current .flag {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.lang-current .code {
    margin-top: 1px;
    /* Optical alignment for text next to emoji */
}

.lang-current i {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
    margin-top: 1px;
}

.lang-dropdown:hover .lang-current i {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 170px;
    background: var(--anh-navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.35s var(--ease-out);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow for Desktop Menu */
@media (min-width: 1024px) {
    .lang-menu::before {
        content: '';
        position: absolute;
        bottom: 100%;
        right: 18px;
        border: 7px solid transparent;
        border-bottom-color: rgba(255, 255, 255, 0.15);
    }

    .lang-menu::after {
        content: '';
        position: absolute;
        bottom: 100%;
        right: 19px;
        border: 6px solid transparent;
        border-bottom-color: var(--anh-navy-dark);
    }
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--anh-yellow) !important;
}

.lang-item.active {
    background: var(--anh-yellow);
    color: var(--anh-navy) !important;
}

.lang-item.active .flag {
    filter: none;
}

.lang-item .flag {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

/* Mobile lang items sizing */
.mobile-lang .lang-item {
    padding: 0.8rem 1rem;
    font-size: 1rem;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--anh-yellow);
    color: var(--anh-navy) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(170, 198, 75, 0.4);
    background: white;
}

/* --- Header / Navigation --- */
/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--anh-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.site-header .container {
    height: 100%;
}

.site-header.scrolled {
    background: var(--anh-navy-dark);
    height: 70px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

@media (min-width: 1024px) {
    .header-inner {
        display: grid;
        grid-template-columns: 180px 1fr auto;
        gap: 2rem;
    }
}

.logo img {
    height: 44px;
    width: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    transition: all var(--transition-normal);
}

.logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .logo img {
    height: 38px;
}

/* Mobile Header Adjustments */
@media (max-width: 1023px) {
    .logo img {
        height: 40px;
        padding: 0;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .site-header.scrolled .logo img {
        height: 36px;
    }
}

@media (max-width: 767px) {
    .logo img {
        height: 38px;
        padding: 0;
    }

    .mobile-menu-btn {
        width: 42px;
        height: 42px;
    }

    .hero {
        min-height: 46svh;
    }
}

.desktop-nav {
    display: flex;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
}

/* Desktop Navigation List */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-item:hover>.nav-link {
    color: var(--anh-yellow);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--anh-navy-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out);
    list-style: none;
    z-index: 1001;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--anh-yellow);
    padding-left: 1.5rem;
}

/* Header Right Actions */
.header-right {
    margin-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn i {
    font-size: 1.8rem;
    color: white;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover i {
    color: var(--anh-yellow);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--anh-navy-dark);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

/* Mobile Menu Footer - 2 Column Grid */
.mobile-menu-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.mobile-footer-grid .mobile-lang {
    grid-column: 1 / -1;
}

.mobile-footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
}

.mobile-footer-btn.call-btn {
    background: var(--anh-yellow);
    color: var(--anh-navy) !important;
    border-color: var(--anh-yellow);
}

.mobile-footer-btn.call-btn:hover {
    background: var(--anh-yellow-dark);
    border-color: var(--anh-yellow-dark);
}

.mobile-footer-btn.lang-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border-color: rgba(255, 255, 255, 0.12);
}

.mobile-footer-btn.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-footer-btn.lang-toggle-btn .flag {
    font-size: 1.15rem;
    line-height: 1;
}

.mobile-footer-btn.lang-toggle-btn i {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.mobile-footer-btn.lang-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-lang {
    position: relative;
}

.mobile-lang .lang-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    max-height: none;
    overflow: visible;
    padding: 0.4rem;
    background: var(--anh-navy);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.mobile-lang .lang-toggle-btn {
    width: 100%;
    justify-content: center;
}

.mobile-lang .lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

.submenu-toggle-btn {
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--anh-yellow);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.submenu-toggle-btn[aria-expanded="true"] {
    transform: rotate(45deg);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-submenu.show {
    max-height: 500px;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem 1rem 3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-submenu-link:active {
    color: var(--anh-yellow);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--anh-navy) 0%, var(--anh-forest) 60%, var(--anh-teal-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(87, 110, 69, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(170, 198, 75, 0.15);
    border: 1px solid rgba(170, 198, 75, 0.3);
    color: var(--anh-yellow);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hero h1 .highlight {
    color: var(--anh-yellow);
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    position: absolute;
    right: -5%;
    bottom: 0;
    width: 48%;
    max-width: 600px;
    opacity: 0.35;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .hero-image {
        opacity: 0.9;
        right: 2%;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--anh-yellow);
    color: var(--anh-navy);
    border-color: var(--anh-yellow);
}

.btn-primary:hover {
    background: var(--anh-yellow-dark);
    border-color: var(--anh-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 198, 75, 0.35);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-teal {
    background: var(--anh-teal);
    color: white;
    border-color: var(--anh-teal);
}

.btn-teal:hover {
    background: var(--anh-teal-dark);
    border-color: var(--anh-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 110, 69, 0.35);
}

.btn-outline-teal {
    background: transparent;
    color: var(--anh-teal);
    border-color: var(--anh-teal);
}

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

/* --- Stats Section --- */
.stats-section {
    background: var(--anh-white);
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 5;
    margin-top: -50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(87, 110, 69, 0.08);
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 3rem;
    }
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--anh-teal);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--anh-gray-600);
    font-weight: 500;
}

/* --- Product Categories & Cards --- */
.categories-section {
    padding: var(--space-5xl) 0;
    background: var(--anh-gray-50);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-tab {
    background: white;
    border: 1px solid var(--anh-gray-200);
    color: var(--anh-navy);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    border-color: var(--anh-teal);
    color: var(--anh-teal);
}

.filter-tab.active {
    background: var(--anh-teal);
    color: white;
    border-color: var(--anh-teal);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(87, 110, 69, 0.08);
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(87, 110, 69, 0.15);
}

.product-card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: var(--anh-gray-100);
    padding: 1rem;
    transition: transform var(--transition-slow);
}

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

.product-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--anh-navy);
}

.product-card-desc {
    font-size: 0.875rem;
    color: var(--anh-gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--anh-teal);
    transition: gap var(--transition-fast);
}

.product-card-link:hover {
    gap: 0.75rem;
    color: var(--anh-teal-dark);
}

/* --- Feature Cards --- */
.features-section {
    padding: var(--space-5xl) 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--anh-gray-50);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--anh-teal);
    transition: all var(--transition-normal);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--anh-teal-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--anh-teal);
    font-size: 1.4rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--anh-gray-600);
    line-height: 1.6;
}

/* --- Philosophy Section --- */
.philosophy-section {
    padding: var(--space-5xl) 0;
    background: var(--anh-gray-50);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.philosophy-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--anh-teal) 0%, var(--anh-forest) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: rgba(170, 198, 75, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--anh-navy-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: var(--space-5xl) 0 var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo img {
    height: 48px;
    width: auto;
    background: transparent;
    padding: 0;
    border-radius: 0;
    transition: transform var(--transition-fast);
    filter: brightness(1.1);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-about-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-heading {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--anh-yellow);
}

.footer-links,
.footer-contact-info {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a,
.footer-contact-info a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-links a:hover,
.footer-contact-info a:hover {
    color: var(--anh-yellow);
    padding-left: 5px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.footer-contact-info i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--anh-yellow);
    color: var(--anh-navy);
    border-color: var(--anh-yellow);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(170, 198, 75, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.tagline-text {
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
}

/* --- Scroll Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Language Toggle (CSS-based) --- */
[data-lang="en"],
[data-lang="bn"],
[data-lang-inline="en"],
[data-lang-inline="bn"],
[data-lang-flex="en"],
[data-lang-flex="bn"] {
    display: none;
}

html[lang="en"] [data-lang="en"],
html[lang="bn"] [data-lang="bn"] {
    display: block;
}

html[lang="en"] [data-lang-inline="en"],
html[lang="bn"] [data-lang-inline="bn"] {
    display: inline-block;
}

html[lang="en"] [data-lang-flex="en"],
html[lang="bn"] [data-lang-flex="bn"] {
    display: flex;
}

/* --- Divider --- */
.brand-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--anh-teal), var(--anh-yellow), var(--anh-teal));
}

/* --- Partners Ticker --- */
.partners-section {
    padding: var(--space-3xl) 0;
    background: white;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 4rem;
    animation: ticker 30s linear infinite;
}

.partners-track img {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition-fast);
}

.partners-track img:hover {
    opacity: 1;
    filter: none;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-teal {
    color: var(--anh-teal);
}

.text-navy {
    color: var(--anh-navy);
}

.text-yellow {
    color: var(--anh-yellow);
}

.bg-teal {
    background-color: var(--anh-teal);
}

.bg-navy {
    background-color: var(--anh-navy);
}

.bg-light {
    background-color: var(--anh-gray-50);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

@media (max-width: 1023px) {
    .d-lg-none {
        display: block !important;
    }

    .d-lg-flex {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-flex {
        display: flex !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

/* --- Responsive Grid Helpers --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* --- Delayed animation utility --- */
.delay-1 {
    transition-delay: 100ms;
}

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

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

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

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

.delay-6 {
    transition-delay: 600ms;
}

/* --- Prose (Rich Text Content) Tables --- */
.prose table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    border: none !important;
}

@media (max-width: 768px) {
    .prose table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

.prose table th {
    text-align: left !important;
    padding: 1rem 1.25rem !important;
    font-weight: 700 !important;
    color: var(--anh-navy) !important;
    border-bottom: 2px solid #e2e8f0 !important;
    background: transparent !important;
    text-transform: capitalize;
}

.prose table td {
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #475569 !important;
    vertical-align: top;
}

.prose table tr:last-child td {
    border-bottom: none !important;
}

.prose table tr:hover td {
    background-color: #f8fafc;
}