/* ==========================================
   MANAWATTANA INTERNATIONAL - DESIGN SYSTEM
   ========================================== */

/* CSS Custom Properties */
:root {
    /* Primary Palette - Brand Green from Logo (#00A651) */
    --primary-50: #e6f6ec;
    --primary-100: #c8ead4;
    --primary-200: #93d5ab;
    --primary-300: #57bd7f;
    --primary-400: #2bab5f;
    --primary-500: #00a651;
    --primary-600: #008f46;
    --primary-700: #00773c;
    --primary-800: #005f31;
    --primary-900: #14301f;

    /* Accent - Brand Cyan-Blue from Logo (#00AEEF), darkened for text on white */
    --accent-50: #eaf7fe;
    --accent-100: #d3edfc;
    --accent-200: #a5dcf9;
    --accent-300: #0ea5e9;
    --accent-400: #0284c7;
    --accent-500: #00aeef;
    --accent-600: #0093cc;
    --accent-700: #0777a5;

    /* Light Theme Surfaces (names kept for compatibility) */
    --dark-900: #ffffff;
    --dark-800: #f1f6f2;
    --dark-700: #ffffff;
    --dark-600: #e4ece6;
    --dark-500: #d5e0d8;
    --dark-400: #9fb3a8;
    --dark-300: #3a753a;
    --dark-200: #5a9e5a;
    --dark-100: #8fc78f;

    /* Neutrals - ink text on white */
    --white: #12261b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #2c3a33;
    --gray-300: #43564b;
    --gray-400: #62736a;
    --gray-500: #8a978f;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #eef6f1 55%, #e7f2fb 100%);
    --gradient-accent: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gradient-brand: linear-gradient(135deg, #00aeef 0%, #00a651 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f6faf7 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0,166,81,0.12) 0%, transparent 70%);

    /* Shadows - soft, for light theme */
    --shadow-sm: 0 1px 3px rgba(18,38,27,0.10);
    --shadow-md: 0 4px 20px rgba(18,38,27,0.10);
    --shadow-lg: 0 10px 40px rgba(18,38,27,0.14);
    --shadow-glow: 0 0 40px rgba(0,166,81,0.18);

    /* Typography */
    --font-primary: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

/* ==========================================
   BASE RESET & GLOBALS
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-900);
    color: var(--gray-200);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--accent-300);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   PRELOADER
   ========================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(0,166,81,0.15);
    border-top-color: var(--primary-500);
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--accent-400);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(18,38,27,0.08);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(18,38,27,0.10);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

.logo-img {
    width: auto;
    height: 46px;
    display: block;
    background: transparent;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--white);
}

.logo-sub {
    font-weight: 400;
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--accent-400);
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 3px 6px;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    background: var(--gradient-accent);
    color: var(--dark-900);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
}

.mobile-lang-item {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 4px 8px;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-300);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(18,38,27,0.10);
}

.nav-link.active {
    color: var(--accent-400);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.55;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,166,81,0.22), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float-shape 15s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,174,239,0.20), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: float-shape 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,174,239,0.16), transparent 70%);
    top: 50%;
    left: 50%;
    animation: float-shape 12s ease-in-out infinite 3s;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0,174,239,0.1);
    border: 1px solid rgba(0,174,239,0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-400);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-400);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title-line {
    display: block;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--white);
}

.hero-title-line.accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gray-400);
    text-transform: uppercase;
}

.legal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

.legal-abbr {
    background: var(--gradient-brand);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 4px;
    padding: 4px 14px 4px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(0,166,81,0.35);
}

.hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--gray-300);
    margin-top: 24px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--dark-900);
    box-shadow: 0 4px 20px rgba(0,174,239,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,174,239,0.4);
    color: var(--dark-900);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(18,38,27,0.28);
}

.btn-outline:hover {
    background: rgba(18,38,27,0.10);
    border-color: rgba(18,38,27,0.45);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(18,38,27,0.10);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent-400);
    display: inline;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-400);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(18,38,27,0.14);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-500), transparent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ==========================================
   SECTIONS COMMON
   ========================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,174,239,0.1);
    border: 1px solid rgba(0,174,239,0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-400);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 20px auto;
    border-radius: 2px;
}

.section-desc {
    font-size: 17px;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: var(--dark-800);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.about-card {
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,174,239,0.15);
    box-shadow: var(--shadow-glow);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,174,239,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-400);
}

.about-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
}

/* Client Logos */
.client-logos {
    text-align: center;
}

.client-logos h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.logos-scroll {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
    display: flex;
    gap: 24px;
    align-items: center;
    animation: scroll-logos 30s linear infinite;
    white-space: nowrap;
}

.client-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-300);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.client-name:hover {
    opacity: 1;
}

.client-dot {
    color: var(--accent-400);
    font-size: 10px;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    background: var(--dark-900);
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: rgba(0,174,239,0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-number {
    font-size: 56px;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.7;
    grid-row: 1 / 2;
}

.service-content {
    grid-row: 1 / 2;
}

.service-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.service-content p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
}

.service-gallery {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.service-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: zoom-in;
}

/* Single photo: show it full-width uncropped */
.service-gallery img:only-child {
    aspect-ratio: auto;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    background: #ffffff;
}

.service-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   FRESH AIR SECTION
   ========================================== */
.freshair {
    background: var(--dark-800);
}

.freshair-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.showcase-main img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #ffffff;
}

.showcase-info h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.showcase-price {
    font-size: 20px;
    color: var(--accent-400);
    margin-bottom: 16px;
}

.showcase-price strong {
    font-size: 28px;
    font-weight: 800;
}

.showcase-desc {
    font-size: 15px;
    color: var(--gray-400);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Benefits */
.benefits-grid {
    margin-bottom: 80px;
}

.benefits-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.benefit-card:hover {
    border-color: rgba(0,174,239,0.15);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: rgba(0,166,81,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary-400);
}

.benefit-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 13px;
    color: var(--gray-400);
    line-height: 1.6;
}

/* Types */
.freshair-types {
    text-align: center;
    margin-bottom: 80px;
}

.freshair-types h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.type-subtitle {
    color: var(--gray-400);
    margin-bottom: 32px;
}

.type-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.type-card {
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.type-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,174,239,0.15);
}

.type-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
    padding: 16px;
}

.type-card span {
    display: block;
    padding: 16px;
    font-weight: 600;
    color: var(--white);
    font-size: 16px;
}

/* Market Info */
.market-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.market-stat {
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    transition: all var(--transition-base);
}

.market-stat:hover {
    border-color: rgba(0,174,239,0.15);
}

.market-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-400);
    margin-bottom: 8px;
}

.market-label {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
}

/* ==========================================
   RETAIL SECTION
   ========================================== */
.retail {
    background: var(--dark-900);
}

.retail-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.retail-category {
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: all var(--transition-base);
}

.retail-category:hover {
    border-color: rgba(0,174,239,0.15);
    transform: translateY(-4px);
}

.retail-icon {
    width: 72px;
    height: 72px;
    background: rgba(0,174,239,0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-400);
}

.retail-category h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.retail-category p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.retail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.retail-images img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #ffffff;
    padding: 10px;
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

/* Single banner: stretch full-width */
.retail-images img:only-child {
    grid-column: 1 / -1;
    height: 220px;
}

/* Team Section */
.team-section {
    text-align: center;
}

.team-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.team-section > p {
    color: var(--gray-400);
    margin-bottom: 32px;
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.team-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: zoom-in;
}

.team-gallery img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Per-photo focus: technician is in the lower half of these shots */
.team-gallery img:nth-child(2) {
    object-position: center 80%;
}

.team-gallery img:nth-child(3) {
    object-position: center 60%;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: var(--dark-800);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,174,239,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-400);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
}

.contact-item a {
    color: var(--accent-400);
}

.contact-item a:hover {
    color: var(--accent-300);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--gradient-card);
    border: 1px solid rgba(18,38,27,0.09);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #edf2ee;
    border: 1px solid rgba(18,38,27,0.10);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-400);
    box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--dark-700);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-900);
    border-top: 1px solid rgba(18,38,27,0.08);
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-400);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-400);
}

.footer-bottom {
    border-top: 1px solid rgba(18,38,27,0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,166,81,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,166,81,0.5);
}

/* ==========================================
   IMAGE LIGHTBOX
   ========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.14);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.28);
}

/* ==========================================
   ANIMATIONS (AOS-like)
   ========================================== */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .service-number {
        font-size: 40px;
    }

    .freshair-showcase {
        grid-template-columns: 1fr;
    }

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

    .retail-categories {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    .nav-toggle {
        display: flex;
    }

    #langSwitchDesktop {
        display: none;
    }

    .mobile-lang-item {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition-base);
        border-left: 1px solid rgba(18,38,27,0.08);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .team-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .benefit-cards {
        grid-template-columns: 1fr;
    }

    .type-gallery {
        grid-template-columns: 1fr;
    }

    .market-info {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .service-card {
        padding: 24px;
    }

    .team-gallery {
        grid-template-columns: 1fr;
    }

    .freshair-showcase {
        padding: 24px;
    }
}
