/* ==========================================================
   莱斯口腔 NICE DENTAL CLINIC — Style Sheet
   移动端优先 / 视频 Hero / 深海蓝 + 暖金 + 瓷白
   ========================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --blue-900: #0D47A1;
    --blue-800: #1565C0;
    --blue-700: #1976D2;
    --blue-600: #1E88E5;
    --blue-100: #E3F2FD;
    --blue-50:  #F5F8FC;

    --gold: #C9A96E;
    --gold-dark: #B4935A;

    --ink:    #1A2332;
    --ink-2:  #5A6B82;
    --ink-3:  #8A99AD;
    --line:   #E6ECF3;
    --bg:     #FFFFFF;
    --bg-alt: #F5F8FC;

    --shadow-sm: 0 2px 8px rgba(13, 71, 161, 0.06);
    --shadow:    0 4px 24px rgba(13, 71, 161, 0.08);
    --shadow-lg: 0 12px 40px rgba(13, 71, 161, 0.12);

    --radius-sm: 12px;
    --radius:    20px;
    --radius-lg: 28px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast: 0.25s var(--ease);
    --t:      0.4s  var(--ease);
    --t-slow: 0.6s  var(--ease);

    --container: 1200px;
    --nav-h: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 36px; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--blue-700);
    text-transform: uppercase;
}
.section-tag span { width: 20px; height: 1px; background: var(--blue-700); opacity: 0.5; }
.section-title {
    font-family: "Noto Serif SC", serif;
    font-size: clamp(24px, 5.5vw, 36px);
    font-weight: 700;
    color: var(--ink);
    margin: 12px 0 14px;
    letter-spacing: 1px;
}
.section-divider {
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 14px;
}
.section-divider::before,
.section-divider::after {
    content: ""; width: 40px; height: 1px; background: var(--line); margin: 0 14px;
}
.section-sub {
    max-width: 600px; margin: 0 auto;
    color: var(--ink-2); font-size: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
    white-space: nowrap;
    cursor: pointer;
    will-change: transform;
}
.btn i { font-size: 14px; }
.btn-primary {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 6px 18px rgba(201, 169, 110, 0.4);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,169,110,0.5); }
.btn-ghost {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background var(--t), box-shadow var(--t), height var(--t);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-container {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-img { height: 38px; width: auto; object-fit: contain; }
.nav-logo-fallback { display: none; align-items: center; gap: 10px; color: #fff; }
.nav-logo-fallback i {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    color: #fff; border-radius: 10px; font-size: 18px;
}
.nav-logo-fallback b { display: block; font-family: "Noto Serif SC", serif; font-size: 16px; line-height: 1.1; }
.nav-logo-fallback em { display: block; font-family: "Playfair Display", serif; font-size: 10px; letter-spacing: 2px; opacity: 0.8; font-style: normal; }
.navbar.scrolled .nav-logo-fallback { color: var(--ink); }

.nav-links {
    /* Full-screen dark overlay on mobile */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 90;
    background:
        radial-gradient(ellipse at top right, rgba(25,118,210,0.25), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(201,169,110,0.12), transparent 60%),
        linear-gradient(180deg, #0A2447 0%, #0D3770 50%, #0A2447 100%);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: calc(var(--nav-h) + 24px) 32px calc(48px + env(safe-area-inset-bottom));
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
    overflow-y: auto;
}
.nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.nav-links a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 8px;
    font-family: "Noto Serif SC", serif;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 56px;
    transition: color var(--t-fast), padding-left var(--t-fast);
}
.nav-links a::before {
    content: attr(data-index);
    font-family: "Playfair Display", serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 1px;
    opacity: 0.8;
}
.nav-links a:last-of-type { border-bottom: none; }
.nav-links a:active { color: var(--gold); padding-left: 14px; }
@media (hover: hover) {
    .nav-links a:hover { color: var(--gold); padding-left: 14px; }
}
.nav-links .nav-cta {
    display: none;
    margin-top: 28px;
    padding: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border-radius: 999px;
    font-family: "Noto Sans SC", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    min-height: 54px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-bottom: none;
    box-shadow: 0 10px 28px rgba(201,169,110,0.4);
}
.nav-links .nav-cta::before { display: none; }
.nav-links .nav-cta i {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.22);
    border-radius: 50%;
    font-size: 14px;
}

.nav-phone {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--gold);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    transition: background var(--t-fast), transform var(--t-fast);
}
.nav-phone:hover { background: var(--gold-dark); }

.nav-toggle {
    width: 44px; height: 44px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px;
    border-radius: 10px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
}
.navbar.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.active span { background: #fff !important; }
.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
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 32px) 20px 100px;
    color: #fff;
    text-align: center;
}
.hero-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(13,71,161,0.55) 0%, rgba(13,71,161,0.25) 40%, rgba(13,71,161,0.75) 100%);
}
.hero-scrim {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 880px;
    width: 100%;
    display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.hero-title-cn {
    font-family: "Noto Serif SC", serif;
    font-size: clamp(28px, 7vw, 56px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title-en {
    font-family: "Playfair Display", serif;
    font-size: clamp(13px, 3.2vw, 18px);
    letter-spacing: 6px;
    font-weight: 500;
    opacity: 0.85;
}
.hero-desc {
    font-size: clamp(14px, 3.6vw, 17px);
    line-height: 1.9;
    opacity: 0.92;
    max-width: 560px;
    margin: 0 auto 28px;
}
.hero-seo {
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: rgba(227, 242, 253, 0.78);
    max-width: 560px;
    margin: -12px auto 24px;
    padding: 8px 14px;
    border-left: 2px solid var(--gold, #C9A96E);
    background: rgba(13, 71, 161, 0.18);
    border-radius: 0 8px 8px 0;
}
.hero-actions {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; max-width: 320px;
    margin-bottom: 40px;
}
.hero-actions .btn { width: 100%; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 520px;
    padding: 20px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
}
.stat {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px;
}
.stat-num {
    font-family: "Inter", sans-serif;
    font-size: clamp(24px, 6vw, 34px);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.stat-unit {
    font-size: 13px; color: #fff; opacity: 0.8; margin-left: 2px;
}
.stat-label {
    font-size: 12px; color: rgba(255,255,255,0.75);
    margin-top: 6px;
}

.hero-scroll {
    position: absolute;
    bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 2;
    display: none;
    flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 11px; letter-spacing: 2px;
}
.scroll-mouse {
    width: 22px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    position: relative;
}
.scroll-dot {
    position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 3px; height: 7px; border-radius: 2px;
    background: #fff;
    animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    80%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; gap: 32px; }
.about-visual {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 0 40px;
}
.about-img {
    width: 100%; max-width: 380px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-100), #fff);
    display: grid; place-items: center;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.about-img img { width: 78%; height: auto; object-fit: contain; }
.about-badge {
    position: absolute;
    right: 4%; bottom: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--radius);
    display: flex; align-items: center; gap: 12px;
    box-shadow: var(--shadow-lg);
}
.about-badge b { font-family: "Inter", sans-serif; font-size: 40px; line-height: 1; }
.about-badge span { font-size: 13px; line-height: 1.4; }

.about-text .lead {
    font-size: 16px; color: var(--ink);
    line-height: 1.85;
    margin-bottom: 14px;
    font-weight: 500;
}
.about-text p {
    color: var(--ink-2);
    margin-bottom: 14px;
}
.feature-list {
    display: grid; gap: 14px;
    margin-top: 20px;
}
.feature-list li {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.feature-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fi {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--blue-100); color: var(--blue-700);
    border-radius: 12px; font-size: 18px;
}
.feature-list h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.feature-list p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
}
.service-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 22px 24px;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue-700), var(--gold));
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--t);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-num {
    position: absolute; top: 18px; right: 22px;
    font-family: "Playfair Display", serif;
    font-size: 36px; font-weight: 700;
    color: var(--blue-100);
    line-height: 1;
}
.service-ic {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    color: #fff;
    border-radius: 16px;
    font-size: 24px;
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 18px; font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
.service-card p {
    color: var(--ink-2);
    font-size: 14px; line-height: 1.75;
    margin-bottom: 16px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
    padding: 5px 12px;
    background: var(--blue-50);
    color: var(--blue-800);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
}
.team-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    display: grid; place-items: center;
    color: rgba(255,255,255,0.9);
    font-size: 72px;
    position: relative;
}
.team-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%);
}
.team-info { padding: 20px; }
.team-info h3 {
    font-size: 18px; font-weight: 700; color: var(--ink);
    display: flex; align-items: baseline; gap: 6px;
}
.team-info h3 small {
    font-size: 13px; font-weight: 500;
    color: var(--ink-2);
    font-family: "Noto Sans SC", sans-serif;
}
.team-role {
    display: block;
    font-size: 13px;
    color: var(--blue-700);
    font-weight: 500;
    margin: 4px 0 10px;
}
.team-info p {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 12px;
}
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.team-tags span {
    padding: 4px 10px;
    background: var(--blue-50);
    color: var(--blue-800);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

/* ============================================================
   ENVIRONMENT
   ============================================================ */
.env-grid {
    display: grid; gap: 14px;
    grid-template-columns: 1fr;
}
.env-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    transition: transform var(--t);
}
.env-lg { aspect-ratio: 16 / 10; grid-column: 1 / -1; }
.env-card:hover { transform: translateY(-3px); }
.env-img {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: rgba(255,255,255,0.85);
    font-size: 56px;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}
.env-img::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(201,169,110,0.25), transparent 60%);
}
.env-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(180deg, transparent, rgba(13,71,161,0.85));
    color: #fff;
}
.env-cap h4 { font-size: 16px; font-weight: 600; }
.env-cap p { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.adv-grid {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
}
.adv-card {
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: transform var(--t), box-shadow var(--t);
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-ic {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    display: grid; place-items: center;
    background: var(--blue-100);
    color: var(--blue-700);
    border-radius: 50%;
    font-size: 26px;
}
.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.adv-card p { font-size: 14px; color: var(--ink-2); line-height: 1.75; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.test-grid {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
}
.test-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    transition: transform var(--t), box-shadow var(--t);
}
.test-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quote {
    font-size: 28px;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 8px;
}
.test-card blockquote {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 18px;
}
.test-card figcaption {
    display: flex; align-items: center; gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.avatar {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
}
.test-card figcaption b { display: block; font-size: 14px; color: var(--ink); }
.test-card figcaption em { display: block; font-size: 12px; color: var(--ink-2); font-style: normal; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-cards {
    display: grid; gap: 14px;
    grid-template-columns: 1fr;
}
.ccard {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 28px 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
    min-height: 200px;
}
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.ccard-ic {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    color: #fff;
    border-radius: 16px;
    font-size: 22px;
    margin-bottom: 14px;
}
.ccard h4 { font-size: 13px; color: var(--ink-2); font-weight: 500; letter-spacing: 1px; margin-bottom: 6px; }
.ccard-main {
    font-size: 17px; font-weight: 700; color: var(--ink);
    line-height: 1.5;
    font-family: "Inter", "Noto Sans SC", sans-serif;
}
.ccard-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--blue-700);
    font-weight: 500;
}
.ccard-btn { width: 100%; }
.ccard-btn:active { transform: scale(0.98); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #0A1F3D;
    color: rgba(255,255,255,0.75);
    padding: 48px 0 24px;
}
.footer-top {
    display: grid; gap: 32px;
    margin-bottom: 32px;
}
.footer-brand .footer-logo {
    height: 44px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}
.footer-slogan {
    font-family: "Noto Serif SC", serif;
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}
.footer-addr {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}
.footer-addr i { color: var(--gold); margin-right: 6px; }
.footer-cols {
    display: grid; gap: 28px;
    grid-template-columns: repeat(2, 1fr);
}
.footer-cols h4 {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 14px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a, .footer-cols li {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    transition: color var(--t-fast);
}
.footer-cols a:hover { color: var(--gold); }
.footer-cols i { width: 16px; color: var(--gold); margin-right: 6px; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
}

/* ============================================================
   STICKY CALL (mobile)
   ============================================================ */
.sticky-call {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 90;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(201,169,110,0.5);
    transform: translateY(120%);
    transition: transform var(--t);
}
.sticky-call.visible { transform: translateY(0); }
.sticky-call i {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    animation: ring 1.5s var(--ease) infinite;
}
.sticky-call b { font-family: "Inter", sans-serif; letter-spacing: 0.5px; }
@keyframes ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    45% { transform: rotate(10deg); }
    60% { transform: rotate(0); }
}

/* Back to top */
.back-top {
    position: fixed;
    right: 16px; bottom: 80px;
    z-index: 85;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--blue-900);
    color: #fff;
    font-size: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--t-fast);
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--blue-700); }

/* Toast */
.toast {
    position: fixed;
    left: 50%; bottom: 90px;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26,35,50,0.95);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all var(--t-fast);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-animate="fade-down"] { transform: translateY(-16px); }
[data-animate="fade-left"]  { transform: translateX(24px); }
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate].animated { opacity: 1; transform: translate(0,0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    [data-animate] { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (min-width: 640px) {
    .services-grid, .team-grid, .adv-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: row; max-width: 420px; }
    .hero-actions .btn { flex: 1; }
    .env-grid { grid-template-columns: repeat(2, 1fr); }
    .env-lg { grid-column: span 2; aspect-ratio: 21 / 9; }
}

/* ============================================================
   RESPONSIVE — Desktop
   ============================================================ */
@media (min-width: 1024px) {
    :root { --nav-h: 76px; }
    .section { padding: 100px 0; }
    .container { padding: 0 32px; }

    .nav-toggle { display: none; }
    .nav-links {
        position: static;
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        background: transparent;
        padding: 0;
        gap: 4px;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        overflow: visible;
    }
    .nav-links a {
        padding: 8px 14px;
        font-family: "Noto Sans SC", sans-serif;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
        color: rgba(255,255,255,0.92);
        border-bottom: none;
        min-height: auto;
        border-radius: 999px;
        transition: background var(--t-fast), color var(--t-fast);
    }
    .nav-links a::before { display: none; }
    .nav-links a:hover { background: rgba(255,255,255,0.15); color: #fff; padding-left: 14px; }
    .navbar.scrolled .nav-links a { color: var(--ink); }
    .navbar.scrolled .nav-links a:hover { background: var(--blue-50); color: var(--blue-800); }
    .nav-links .nav-cta { display: none !important; }
    .nav-phone { display: inline-flex; }

    .hero { padding: 100px 32px 120px; }
    .hero-actions { flex-direction: row; max-width: 480px; }
    .hero-stats { grid-template-columns: repeat(4, 1fr); max-width: 760px; gap: 20px; padding: 28px 24px; }
    .hero-scroll { display: flex; }

    .about-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
    .about-visual { padding: 0; }

    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .adv-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .test-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .contact-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }

    .env-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 220px;
        gap: 18px;
    }
    .env-lg { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
    .env-card { aspect-ratio: auto; }
    .env-card .env-img i { font-size: 72px; }
    .env-lg .env-img i { font-size: 120px; }

    .footer-top { grid-template-columns: 1.4fr 2fr; gap: 60px; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }

    .sticky-call { display: none; }
    .back-top { bottom: 28px; right: 28px; bottom: 28px; }
    .toast { bottom: 32px; }
}

/* iOS safe area */
@supports (padding: env(safe-area-inset-bottom)) {
    .sticky-call { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
