/* Ecosanicare — shared site stylesheet
   Root pages:   <link rel="stylesheet" href="assets/css/site.css">
   Subdirs:      <link rel="stylesheet" href="../assets/css/site.css">
   Page-specific styles stay in a <style> block on each page. */

/* ── VARIABLES ── */
:root {
    --forest:       #23594c;
    --forest-deep:  #1a4239;
    --forest-light: #2d7a68;
    --sage:         #8fb8a0;
    --cream:        #faf8f5;
    --warm:         #f5f0eb;
    --warm-text:    #F7F2E0;
    --gold:         #c4a265;
    --gold-light:   #d4b87a;
    --charcoal:     #2a2a2a;
    --text:         #3d3d3d;
    --text-light:   #6b6b6b;
    --shadow-sm:    0 2px 8px rgba(35,89,76,0.08);
    --shadow-md:    0 8px 32px rgba(35,89,76,0.12);
    --shadow-lg:    0 16px 48px rgba(35,89,76,0.16);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── LANGUAGE SWITCHING ── */
[data-lang-zh], [data-lang-fr] { display: none !important; }
body.zh [data-lang-en], body.zh [data-lang-fr] { display: none !important; }
body.zh [data-lang-zh] { display: block !important; }
body.zh a[data-lang-zh], body.zh button[data-lang-zh] { display: inline-flex !important; }
body.zh span[data-lang-zh], body.zh cite[data-lang-zh], body.zh li[data-lang-zh] { display: inline !important; }
body.fr [data-lang-en], body.fr [data-lang-zh] { display: none !important; }
body.fr [data-lang-fr] { display: block !important; }
body.fr a[data-lang-fr], body.fr button[data-lang-fr] { display: inline-flex !important; }
body.fr span[data-lang-fr], body.fr cite[data-lang-fr], body.fr li[data-lang-fr] { display: inline !important; }

/* ── NAV ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 32px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.4s ease;
}
.nav.scrolled {
    background: rgba(250,248,245,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo span {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--warm-text);
    transition: color 0.3s;
}
.nav.scrolled .nav-logo span { color: var(--forest); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: rgba(247,242,224,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--text-light); }
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
    background: var(--gold) !important;
    color: var(--warm-text) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,162,101,0.4); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--warm-text); margin: 5px 0; transition: all 0.3s; }
.nav.scrolled .nav-toggle span { background: var(--forest); }
.lang-toggle {
    display: flex;
    background: rgba(247,242,224,0.1);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(247,242,224,0.15);
}
.nav.scrolled .lang-toggle { background: var(--warm); border-color: rgba(35,89,76,0.1); }
.lang-btn {
    background: none; border: none; padding: 6px 12px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    color: rgba(247,242,224,0.6); transition: all 0.2s;
}
.nav.scrolled .lang-btn { color: var(--text-light); }
.lang-btn.active { background: var(--forest); color: var(--warm-text); }
.nav-call-btn { display: none; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream);
        padding: 24px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open a { color: var(--text) !important; padding: 12px 0; }
    .nav-toggle { display: block; }
    .nav-call-btn {
        display: inline-flex; align-items: center; gap: 6px;
        background: var(--gold); color: var(--warm-text);
        padding: 8px 14px; border-radius: 6px;
        font-size: 0.82rem; font-weight: 700; text-decoration: none;
    }
}

/* ── HERO — base layout; each page adds background + min-height ── */
.hero { position: relative; display: flex; align-items: center; overflow: hidden; }
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(247,242,224,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247,242,224,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 900px;
    margin: 0 auto;
    padding: 140px 32px 80px;
}
.hero-content { animation: fadeInUp 0.8s ease both; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(196,162,101,0.15);
    border: 1px solid rgba(196,162,101,0.3);
    padding: 8px 16px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
.hero-badge span { color: var(--gold-light); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; }
.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 3.6rem; line-height: 1.1;
    color: var(--warm-text);
    margin-bottom: 24px; max-width: 700px;
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-sub {
    font-size: 1.1rem; line-height: 1.7;
    color: rgba(247,242,224,0.75);
    margin-bottom: 40px; max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .hero-inner { padding: 120px 20px 60px; }
    .hero h1 { font-size: 2.2rem; }
}

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--gold); color: var(--warm-text);
    padding: 16px 32px; border-radius: 8px;
    font-size: 1rem; font-weight: 600;
    text-decoration: none; transition: all 0.3s;
    border: none; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,162,101,0.35); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--warm-text);
    padding: 16px 32px; border-radius: 8px;
    font-size: 1rem; font-weight: 600;
    text-decoration: none;
    border: 1.5px solid rgba(247,242,224,0.3); transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--warm-text); background: rgba(247,242,224,0.08); }

/* ── SHARED SECTION STYLES ── */
.section-label {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700;
    color: var(--forest);
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem; color: var(--charcoal);
    margin-bottom: 16px; line-height: 1.2;
}
.section-subtitle {
    font-size: 1.05rem; color: var(--text-light);
    max-width: 560px; line-height: 1.7; margin-bottom: 48px;
}
.section-inner { max-width: 1200px; margin: 0 auto; }

/* ── FOOTER ── */
.footer { padding: 0 !important; background: none !important; }
.footer-top { background: #1a3a31; }
.footer-top-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 3rem 2.5rem 2rem;
    display: flex; gap: 4rem; flex-wrap: wrap;
}
.footer-left { flex: 1.4; min-width: 220px; }
.footer-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 28px; color: var(--warm-text);
    letter-spacing: -0.5px; margin-bottom: 12px;
}
.footer-desc {
    font-size: 13px; line-height: 1.7;
    color: rgba(247,242,224,0.65); max-width: 280px; margin-bottom: 20px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    display: flex !important; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(247,242,224,0.2);
    background: none !important; padding: 0 !important; transition: border-color 0.2s;
}
.footer-social a:hover { border-color: rgba(247,242,224,0.6); }
.footer-social img { width: 18px; height: 18px; display: block; filter: brightness(0) invert(0.75); }
.footer-social a:hover img { filter: brightness(0) invert(0.93) sepia(0.15); }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; }
.footer-col h5 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
    color: rgba(247,242,224,0.45); margin-bottom: 16px; font-weight: 600;
}
.footer-col a {
    font-size: 13px; color: rgba(247,242,224,0.65);
    text-decoration: none; padding: 5px 0; line-height: 1.4; transition: color 0.2s;
}
.footer-col a:hover { color: var(--warm-text); }
.footer-phone { color: var(--warm-text) !important; font-weight: 600 !important; }
.footer-bottom {
    background: #162f27 !important; max-width: none !important;
    width: 100% !important; margin: 0 !important; padding: 0 !important;
    border: none !important; display: block !important;
}
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 1.25rem 2.5rem; }
.footer-trust {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
    padding-bottom: 1rem; border-bottom: 1px solid rgba(247,242,224,0.1);
}
.footer-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(247,242,224,0.55); }
.footer-trust-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-legal {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 1rem 0; border-bottom: 1px solid rgba(247,242,224,0.1);
}
.footer-legal-left { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-copyright { font-size: 13px; color: rgba(247,242,224,0.45); }
.footer-pay-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-pay-label { font-size: 13px; color: rgba(247,242,224,0.45); white-space: nowrap; }
.footer-pay-row img {
    height: 20px; width: auto; display: block;
    background: rgba(0,0,0,0.25); border-radius: 3px;
    padding: 2px 5px; box-sizing: content-box;
}
.footer-areas { font-size: 13px; color: rgba(247,242,224,0.4); padding-top: 0.75rem; }
.footer-areas a { display: inline; color: rgba(247,242,224,0.55); text-decoration: none; transition: color 0.2s; }
.footer-areas a:hover { color: var(--warm-text); }

@media (max-width: 900px) { .footer-top-inner { gap: 2.5rem; } .footer-nav { gap: 2rem; } }
@media (max-width: 700px) {
    .footer-top-inner { flex-direction: column; padding: 2rem 1.5rem 1.5rem; }
    .footer-bottom-inner { padding: 1rem 1.5rem; }
    .footer-legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) { .footer-nav { gap: 1.5rem; } }

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--charcoal); color: rgba(247,242,224,0.85);
    padding: 16px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    z-index: 200;
    transform: translateY(100%); transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.85rem; line-height: 1.5; flex: 1; }
.cookie-banner a { color: var(--gold-light); }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
    padding: 10px 24px; border-radius: 6px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    border: none; transition: all 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.cookie-accept { background: var(--gold); color: var(--warm-text); }
.cookie-accept:hover { background: var(--gold-light); }
.cookie-decline { background: transparent; color: rgba(247,242,224,0.6); border: 1px solid rgba(247,242,224,0.2); }
.cookie-decline:hover { border-color: rgba(247,242,224,0.5); color: var(--warm-text); }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; text-align: center; padding: 20px; } }

/* ── WHATSAPP FLOAT ── */
.wa-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 99;
    width: 60px; height: 60px; background: #25d366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.fade-in { opacity: 0; transform: translateY(24px); transition: all 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
