/*
Theme Name: Shawon Ad Agency
Theme URI: https://example.com
Author: Shawon Ad Agency
Author URI: https://example.com
Description: Bilingual (English / 简体中文) cross-border digital marketing agency theme. English is the primary global version; Simplified Chinese is the secondary localized version. Includes an auto-detecting language engine with cookie memory, a filterable portfolio and a server-side contact form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shawon-ad-agency
Tags: business, two-columns, custom-menu, translation-ready, responsive
*/

/* ==========================================================================
   SHAWON AD AGENCY — GLOBAL STYLESHEET
   Cross-border digital marketing agency | Bilingual EN / 简体中文
   Hand-coded CSS3. No frameworks. Structured for WordPress/Elementor migration.
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design Tokens (CSS custom properties)
   02. Reset & Base
   03. Typography
   04. Layout Utilities (container, section, grid)
   05. Buttons
   06. Header / Navigation / Language Switcher
   07. Mobile Navigation
   08. Hero Sections
   09. Trust Strip & Counters
   10. Cards (advantage, service, case, value, team)
   11. Testimonials
   12. Process Steps
   13. Accordion / FAQ
   14. Pricing Packages
   15. Portfolio Filter Bar
   16. Forms
   17. CTA Banners
   18. Footer
   19. Animations (scroll reveal, hover, micro-interactions)
   20. Bilingual Visibility Rules
   21. Responsive Breakpoints (1200 / 992 / 768 / 560)
   22. Accessibility & Print
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   Brand palette derived from the Shawon Ad Agency logo:
   deep charcoal-black base, signature red accent, clean neutral greys.
   ========================================================================== */
:root {
  /* --- Brand core --- */
  --c-ink:        #0B0F14;   /* Deepest black — hero & footer base       */
  --c-ink-2:      #111823;   /* Elevated dark surface                    */
  --c-ink-3:      #1A2331;   /* Dark card / border on dark               */
  --c-red:        #E4121B;   /* Signature brand red (from logo)          */
  --c-red-600:    #C20E16;   /* Red pressed state                        */
  --c-red-300:    #FF4A52;   /* Red highlight / gradient stop            */
  --c-red-soft:   rgba(228, 18, 27, 0.10);

  /* --- Neutrals --- */
  --c-white:      #FFFFFF;
  --c-paper:      #F7F8FA;   /* Section alt background                   */
  --c-paper-2:    #EEF1F5;   /* Deeper neutral panel                     */
  --c-line:       #E2E6EC;   /* Hairline borders on light                */
  --c-line-dark:  rgba(255, 255, 255, 0.10);

  /* --- Text --- */
  --t-strong:     #0B0F14;
  --t-body:       #4A5566;
  --t-muted:      #77839A;
  --t-on-dark:    #FFFFFF;
  --t-on-dark-mu: rgba(255, 255, 255, 0.66);

  /* --- Typography scale --- */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
            'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(2.6rem, 5.4vw, 4.4rem);
  --fs-h1:      clamp(2.2rem, 4.2vw, 3.4rem);
  --fs-h2:      clamp(1.85rem, 3.1vw, 2.65rem);
  --fs-h3:      clamp(1.3rem, 1.9vw, 1.6rem);
  --fs-h4:      1.125rem;
  --fs-lead:    clamp(1.02rem, 1.35vw, 1.2rem);
  --fs-body:    1rem;
  --fs-small:   0.9rem;
  --fs-micro:   0.78rem;

  /* --- Spacing --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 5.5rem;   --sp-10: 7rem;

  /* --- Structure --- */
  --wrap:      1240px;
  --wrap-slim: 940px;
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* --- Elevation --- */
  --sh-sm: 0 2px 8px rgba(11, 15, 20, 0.06);
  --sh-md: 0 10px 30px rgba(11, 15, 20, 0.08);
  --sh-lg: 0 24px 60px rgba(11, 15, 20, 0.14);
  --sh-red: 0 14px 34px rgba(228, 18, 27, 0.30);

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  0.42s;

  --header-h: 78px;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--t-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { display: block; }

::selection { background: var(--c-red); color: #fff; }


/* ==========================================================================
   03. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--sp-4);
  color: var(--t-strong);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.022em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.014em; }
h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-lead); color: var(--t-body); line-height: 1.75; }

/* Small uppercase category label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: var(--c-white);
  color: var(--c-red);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-red);
}
.on-dark .eyebrow {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--c-line-dark);
  color: var(--c-red-300);
}

/* Red-highlighted word inside a heading */
.hl { color: var(--c-red); }

/* Gradient underline flourish under key headings */
.rule {
  width: 62px; height: 4px;
  margin: var(--sp-5) 0 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-red), var(--c-red-300));
}
.rule.center { margin-left: auto; margin-right: auto; }


/* ==========================================================================
   04. LAYOUT UTILITIES
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.wrap-slim { max-width: var(--wrap-slim); }

.section       { padding: var(--sp-9) 0; }
.section-sm    { padding: var(--sp-8) 0; }
.section-alt   { background: var(--c-paper); }
.section-dark  { background: var(--c-ink); }

/* .on-dark flips all text colours for dark-background sections */
.on-dark,
.on-dark p,
.on-dark li { color: var(--t-on-dark-mu); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--t-on-dark); }
.on-dark .lead { color: var(--t-on-dark-mu); }

.sec-head { max-width: 760px; margin-bottom: var(--sp-7); }
.sec-head.center { margin-inline: auto; text-align: center; }

/* Responsive auto-fit grids */
.grid       { display: grid; gap: var(--sp-5); }
.grid-2     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3     { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4     { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto  { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

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


/* ==========================================================================
   05. BUTTONS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--c-red-300); outline-offset: 3px; }

/* Arrow nudge micro-interaction */
.btn .arw { transition: transform 0.25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-primary {
  background: var(--c-red);
  color: #fff;
  box-shadow: var(--sh-red);
}
.btn-primary:hover { background: var(--c-red-600); box-shadow: 0 18px 40px rgba(228,18,27,.38); }

.btn-dark { background: var(--c-ink); color: #fff; box-shadow: var(--sh-md); }
.btn-dark:hover { background: var(--c-ink-2); }

.btn-ghost {
  background: transparent;
  color: var(--t-strong);
  border: 1.5px solid var(--c-line);
}
.btn-ghost:hover { border-color: var(--c-ink); background: var(--c-white); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255,255,255,.5); }

.btn-sm { padding: 0.7rem 1.25rem; font-size: var(--fs-micro); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row.center { justify-content: center; }

/* Inline text link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-red);
  font-weight: 700;
  font-size: var(--fs-small);
}
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }


/* ==========================================================================
   06. HEADER / NAVIGATION / LANGUAGE SWITCHER
   Transparent over hero; solid + shadow after scroll (.is-stuck via JS).
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease), height 0.35s var(--ease);
}
.site-header.is-stuck {
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 26px rgba(11, 15, 20, 0.07);
}

.header-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

/* --- Logo --- */
.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; color: #fff;
  transition: color 0.35s var(--ease);
}
.brand-sub {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-red-300);
  transition: color 0.35s var(--ease);
}
.is-stuck .brand-name { color: var(--t-strong); }
.is-stuck .brand-sub  { color: var(--c-red); }

/* --- Primary nav --- */
.nav-main { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: var(--sp-5); }
.nav-list a {
  position: relative;
  padding: 0.35rem 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.28s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-list a:hover, .nav-list a.active { color: #fff; }
.is-stuck .nav-list a { color: var(--t-body); }
.is-stuck .nav-list a:hover, .is-stuck .nav-list a.active { color: var(--t-strong); }

/* --- Header right cluster --- */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

/* --- Language switcher (EN / 中文) --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.is-stuck .lang-switch { background: var(--c-paper-2); border-color: var(--c-line); }

.lang-btn {
  padding: 0.34rem 0.78rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.is-stuck .lang-btn { color: var(--t-muted); }
.lang-btn:hover { color: #fff; }
.is-stuck .lang-btn:hover { color: var(--t-strong); }
.lang-btn.active,
.is-stuck .lang-btn.active {
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 3px 10px rgba(228, 18, 27, 0.35);
}


/* ==========================================================================
   07. MOBILE NAVIGATION
   ========================================================================== */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.is-stuck .nav-toggle { background: var(--c-paper-2); border-color: var(--c-line); }

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: inherit;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.is-stuck .nav-toggle span { background: var(--t-strong); }

/* Animated hamburger → X */
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { background: var(--t-strong); transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { background: var(--t-strong); transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 890;
  padding: var(--sp-6) var(--sp-5) var(--sp-8);
  background: var(--c-white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-panel .m-links { display: flex; flex-direction: column; }
.mobile-panel .m-links a {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--t-strong);
}
.mobile-panel .m-links a.active { color: var(--c-red); }
.mobile-panel .m-foot { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.mobile-panel .m-contact {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  display: grid; gap: var(--sp-2);
}
.mobile-panel .m-contact strong { color: var(--t-strong); }
/* The email address is one long unbreakable token — let it wrap on 320px screens */
.mobile-panel .m-contact div { overflow-wrap: anywhere; }


/* ==========================================================================
   08. HERO SECTIONS
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--sp-9)) 0 var(--sp-9);
  background: var(--c-ink);
  overflow: hidden;
}
.hero-home { min-height: 92vh; }
.hero-page { min-height: 58vh; }

/* Layered depth: photo, dark scrim, red glow, subtle grid */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(11,15,20,.96) 0%, rgba(11,15,20,.82) 46%, rgba(11,15,20,.55) 100%);
}
.hero-glow {
  position: absolute;
  top: -22%; right: -12%;
  width: 780px; height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,18,27,.34) 0%, rgba(228,18,27,0) 66%);
  filter: blur(14px);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-copy { max-width: 800px; }
.hero h1 { font-size: var(--fs-display); color: #fff; margin-bottom: var(--sp-5); }
.hero-page h1 { font-size: var(--fs-h1); }
.hero-sub {
  max-width: 660px;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: var(--sp-6);
}

/* Dual-direction badge pair in the home hero */
.hero-dual { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.dual-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-micro);
  font-weight: 600;
}
.dual-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-red); }
.dual-chip.alt .dot { background: #fff; }

/* Micro reassurance line under hero CTAs */
.hero-note {
  margin-top: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.55);
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-note svg { color: var(--c-red-300); }

/* Breadcrumb on inner page heroes */
.crumbs {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.5);
}
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }


/* ==========================================================================
   09. TRUST STRIP & COUNTERS
   ========================================================================== */
.trust {
  position: relative;
  z-index: 5;
  margin-top: calc(var(--sp-8) * -1);
  padding-bottom: var(--sp-8);
}
.trust-card {
  padding: var(--sp-6) var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-lg);
}

.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.counter { text-align: center; padding: var(--sp-3) var(--sp-2); }
.counter + .counter { border-left: 1px solid var(--c-line); }
.counter .num {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t-strong);
  line-height: 1;
}
.counter .num .suffix { color: var(--c-red); }
.counter .lbl {
  margin-top: var(--sp-2);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--t-muted);
  text-transform: uppercase;
}

/* Platform / partner logo row rendered as text marks */
.platforms {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3) var(--sp-6);
}
.platforms .plat-label {
  width: 100%;
  text-align: center;
  margin-bottom: var(--sp-2);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-muted);
  font-weight: 600;
}
.plat {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #98A3B5;
  filter: grayscale(1);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.plat:hover { color: var(--t-strong); transform: translateY(-2px); }


/* ==========================================================================
   10. CARDS
   ========================================================================== */

/* --- Base surface --- */
.card {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(228, 18, 27, 0.28);
}
/* Red bar that grows across the card top on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: var(--sp-6); right: var(--sp-6);
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--c-red), var(--c-red-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.card:hover::before { transform: scaleX(1); }

.card h3 { margin-bottom: var(--sp-3); }
.card p  { font-size: var(--fs-small); }

/* Icon medallion */
.card-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
  border-radius: 16px;
  background: var(--c-red-soft);
  color: var(--c-red);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover .card-icon { background: var(--c-red); color: #fff; transform: scale(1.06) rotate(-4deg); }

/* Numbered advantage column */
.card-num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-paper-2);
  margin-bottom: var(--sp-4);
  transition: color var(--dur) var(--ease);
}
.card:hover .card-num { color: var(--c-red-soft); }

/* Dark variant used on dark sections */
.card-dark {
  background: var(--c-ink-2);
  border-color: var(--c-line-dark);
}
.card-dark h3 { color: #fff; }
.card-dark p  { color: var(--t-on-dark-mu); }
.card-dark:hover { border-color: rgba(228, 18, 27, 0.5); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.card-dark .card-icon { background: rgba(228, 18, 27, 0.16); color: var(--c-red-300); }

/* Feature list inside service cards */
.feat-list { margin-top: var(--sp-4); display: grid; gap: 0.55rem; }
.feat-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.feat-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--c-red);
  transform: rotate(45deg);
}

/* Small meta tag rows on service cards */
.meta-row {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-line);
  display: grid; gap: var(--sp-2);
}
.meta-row .meta-k {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-red);
}
.meta-row .meta-v { font-size: var(--fs-small); color: var(--t-body); }

/* Media card with an image cap (portfolio / case studies) */
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media::before { left: 0; right: 0; }
.card-media .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-paper-2);
}
.card-media .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card-media:hover .thumb img { transform: scale(1.08); }
.card-media .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,0) 40%, rgba(11,15,20,.55) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.card-media:hover .thumb::after { opacity: 1; }

.tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tag-red   { background: var(--c-red-soft); color: var(--c-red); }
.tag-ink   { background: var(--c-paper-2); color: var(--t-strong); }
.tag-float { position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 2; background: var(--c-white); box-shadow: var(--sh-sm); }

.card-body { padding: var(--sp-5) var(--sp-5) var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.18rem; }

/* Result metric strip inside a case card */
.results {
  margin: var(--sp-4) 0 var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--c-paper);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.results div { text-align: center; }
.results .rv {
  font-size: 1.22rem; font-weight: 800; color: var(--c-red); letter-spacing: -0.02em;
}
.results .rl { font-size: 0.72rem; color: var(--t-muted); font-weight: 600; }
.card-body .link-arrow { margin-top: auto; }

/* Bordered stat / value tile (About page) */
.tile {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-red);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tile:hover { transform: translateX(5px); box-shadow: var(--sh-md); }
.tile h3, .tile h4 { margin-bottom: var(--sp-2); font-size: var(--fs-h4); font-weight: 700; }
.tile p  { font-size: var(--fs-small); }

/* Framed image block with red offset accent */
.frame { position: relative; }
.frame img { border-radius: var(--r-lg); box-shadow: var(--sh-lg); position: relative; z-index: 2; }
.frame::after {
  content: "";
  position: absolute;
  right: -18px; bottom: -18px;
  width: 62%; height: 62%;
  border-radius: var(--r-lg);
  border: 3px solid var(--c-red);
  z-index: 1;
}
.frame.flip::after { right: auto; left: -18px; }

/* Floating credential badge over an image */
.float-badge {
  position: absolute;
  z-index: 3;
  left: -22px; bottom: 34px;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-white);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--c-line);
  max-width: 230px;
}
.float-badge .fb-num { font-size: 1.6rem; font-weight: 800; color: var(--c-red); line-height: 1; }
.float-badge .fb-lbl { font-size: var(--fs-micro); color: var(--t-muted); font-weight: 600; margin-top: 4px; }


/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */
.tst-group-head {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.tst-group-head .badge {
  padding: 0.32rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--c-red);
  color: #fff;
}
.tst-group-head .badge.sec { background: var(--c-ink); }
.tst-group-head h3 { margin: 0; font-size: 1.12rem; }

.tst {
  position: relative;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tst:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.tst .quote-mark {
  font-size: 3.4rem; line-height: 0.7;
  font-weight: 800;
  color: var(--c-red-soft);
  margin-bottom: var(--sp-3);
}
.tst blockquote { margin: 0 0 var(--sp-5); font-size: var(--fs-small); line-height: 1.75; color: var(--t-body); }
.tst-who { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-ink);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: -0.02em;
}
.avatar.red { background: var(--c-red); }
.tst-who .n { font-weight: 700; color: var(--t-strong); font-size: var(--fs-small); line-height: 1.3; }
.tst-who .r { font-size: var(--fs-micro); color: var(--t-muted); }
.stars { color: var(--c-red); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: var(--sp-3); }


/* ==========================================================================
   12. PROCESS STEPS
   ========================================================================== */
.steps { counter-reset: step; display: grid; gap: var(--sp-5); }
.step {
  position: relative;
  padding: var(--sp-6) var(--sp-6) var(--sp-6) var(--sp-7);
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: var(--sp-5); left: var(--sp-5);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--c-red);
}
.step h3, .step h4 { margin-top: var(--sp-5); font-size: var(--fs-h4); font-weight: 700; }
.step p  { font-size: var(--fs-small); margin-bottom: 0; }


/* ==========================================================================
   13. ACCORDION / FAQ
   ========================================================================== */
.faq-col h3 { margin-bottom: var(--sp-5); font-size: 1.2rem; }
.acc { display: grid; gap: var(--sp-3); }
.acc-item {
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.acc-item.open { border-color: rgba(228, 18, 27, 0.4); box-shadow: var(--sh-md); }
.acc-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--t-strong);
}
.acc-q .ico {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-paper-2);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.acc-q .ico::before, .acc-q .ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 2px;
  border-radius: 2px;
  background: var(--t-strong);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}
.acc-q .ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-q .ico { background: var(--c-red); transform: rotate(180deg); }
.acc-item.open .acc-q .ico::before,
.acc-item.open .acc-q .ico::after { background: #fff; }
.acc-item.open .acc-q .ico::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc-a-inner { padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-small); line-height: 1.75; }


/* ==========================================================================
   14. PRICING PACKAGES
   ========================================================================== */
.pkg {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.pkg.featured {
  background: var(--c-ink);
  border-color: var(--c-ink);
  box-shadow: var(--sh-lg);
}
.pkg.featured h3, .pkg.featured .pkg-price { color: #fff; }
.pkg.featured p, .pkg.featured .feat-list li { color: var(--t-on-dark-mu); }
.pkg.featured .feat-list li::before { background: var(--c-red-300); }
.pkg-flag {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 0.28rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--c-red);
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--sh-red);
}
.pkg-price {
  font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--t-strong); margin: var(--sp-2) 0 var(--sp-4);
}
.pkg-price small { font-size: 0.8rem; font-weight: 600; color: var(--t-muted); }
.pkg .btn { margin-top: var(--sp-6); }


/* ==========================================================================
   15. PORTFOLIO FILTER BAR
   ========================================================================== */
.filter-bar {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-sm);
  margin-bottom: var(--sp-7);
  display: grid;
  gap: var(--sp-5);
}
.filter-group .fg-label {
  display: block;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-muted);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  padding: 0.5rem 1.05rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--c-line);
  background: var(--c-white);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--t-body);
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--c-ink); color: var(--t-strong); transform: translateY(-2px); }
.chip.active {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(228, 18, 27, 0.28);
}

/* Filter result state */
.filter-count { font-size: var(--fs-small); color: var(--t-muted); margin-bottom: var(--sp-5); }
.case-item { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.case-item.hide { display: none; }
.empty-state {
  display: none;
  padding: var(--sp-8);
  text-align: center;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-lg);
  color: var(--t-muted);
}
.empty-state.show { display: block; }


/* ==========================================================================
   16. FORMS
   ========================================================================== */
.form-card {
  padding: var(--sp-7);
  border-radius: var(--r-xl);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-strong);
}
.field label .req { color: var(--c-red); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  font-size: var(--fs-small);
  color: var(--t-strong);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA5B7; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--c-white);
  border-color: var(--c-red);
  box-shadow: 0 0 0 4px rgba(228, 18, 27, 0.10);
}
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: var(--c-red); background: rgba(228,18,27,.04); }
.field .err {
  display: none;
  font-size: var(--fs-micro);
  color: var(--c-red);
  font-weight: 600;
}
.field.invalid .err { display: block; }

.form-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: var(--fs-micro); color: var(--t-muted);
}
.form-consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--c-red); flex-shrink: 0; }

.form-success {
  display: none;
  margin-top: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(228, 18, 27, 0.06);
  border: 1px solid rgba(228, 18, 27, 0.25);
  color: var(--t-strong);
  font-size: var(--fs-small);
  font-weight: 600;
}
.form-success.show { display: block; }

/* Contact detail rows beside the form */
.contact-list { display: grid; gap: var(--sp-3); }
.contact-row {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-row:hover { transform: translateX(5px); box-shadow: var(--sh-md); border-color: rgba(228,18,27,.3); }
.contact-row .ci {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--c-red-soft);
  color: var(--c-red);
}
.contact-row .ck {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--t-muted);
}
.contact-row .cv {
  font-size: var(--fs-small); font-weight: 700; color: var(--t-strong);
  word-break: break-word;
}
.contact-row .cn { font-size: var(--fs-micro); color: var(--t-muted); }

/* Map placeholder block */
.map-holder {
  position: relative;
  aspect-ratio: 21 / 9;
  /* min-height stops the 21:9 box collapsing below its own content on phones —
     without it, overflow:hidden would clip the heading and caption. */
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-ink);
  border: 1px solid var(--c-line-dark);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.map-holder .map-bg {
  position: absolute; inset: 0;
  opacity: 0.28;
  background-size: cover; background-position: center;
}
.map-holder .map-inner { position: relative; z-index: 2; padding: var(--sp-5); }
.map-pin {
  width: 52px; height: 52px; margin: 0 auto var(--sp-3);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  box-shadow: var(--sh-red);
  animation: pulse 2.4s var(--ease) infinite;
}
.map-holder h3, .map-holder h4 { color: #fff; margin-bottom: var(--sp-1); font-size: var(--fs-h4); }
.map-holder p  { color: var(--t-on-dark-mu); font-size: var(--fs-small); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 18, 27, 0.5); }
  55%      { box-shadow: 0 0 0 18px rgba(228, 18, 27, 0); }
}


/* ==========================================================================
   17. CTA BANNERS
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  padding: var(--sp-9) 0;
}
.cta-band .cta-glow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse, rgba(228,18,27,.30) 0%, rgba(228,18,27,0) 68%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.cta-band p  { color: var(--t-on-dark-mu); max-width: 620px; margin-inline: auto; }

/* Contact quick-strip inside CTA bands */
.cta-contacts {
  margin-top: var(--sp-6);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-6);
  font-size: var(--fs-small);
  color: var(--t-on-dark-mu);
}
.cta-contacts span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cta-contacts strong { color: #fff; font-weight: 700; }


/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.site-footer { background: var(--c-ink); color: var(--t-on-dark-mu); padding: var(--sp-8) 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.footer-brand .brand { margin-bottom: var(--sp-4); }
.footer-brand .brand-name { color: #fff; }
.footer-slogan { font-size: var(--fs-small); line-height: 1.75; max-width: 300px; margin-bottom: var(--sp-5); }

.footer-col h3, .footer-col h4 {
  color: #fff;
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col li + li { margin-top: 0.65rem; }
.footer-col a {
  font-size: var(--fs-small);
  color: var(--t-on-dark-mu);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.footer-col a:hover { color: #fff; padding-left: 5px; }

.f-contact { display: grid; gap: var(--sp-3); }
.f-contact .fc-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.f-contact .fc-ico {
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-red-300);
}
.f-contact .fc-k { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.42); }
.f-contact .fc-v { font-size: var(--fs-small); color: #fff; font-weight: 600; word-break: break-word; }
.f-contact a.fc-v:hover { color: var(--c-red-300); }

.socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--c-line-dark);
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.28s var(--ease);
}
.socials a:hover { background: var(--c-red); border-color: var(--c-red); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid var(--c-line-dark);
  padding: var(--sp-5) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  font-size: var(--fs-micro);
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }


/* ==========================================================================
   19. ANIMATIONS
   ========================================================================== */

/* Scroll reveal — JS adds .in when the element enters the viewport */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger helpers for grids */
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* ==========================================================================
   20. BILINGUAL VISIBILITY RULES
   Every translatable node exists twice: [data-lang="en"] and [data-lang="zh"].
   <html lang> drives which set is visible — zero flash, no JS text injection.
   ========================================================================== */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"] { display: revert; }
html[lang="zh-CN"] [data-lang="zh"] { display: revert; }

/* Inline variants keep flow layout inside buttons and sentences */
html[lang="en"]    span[data-lang="en"],
html[lang="zh-CN"] span[data-lang="zh"] { display: inline; }
html[lang="en"]    li[data-lang="en"],
html[lang="zh-CN"] li[data-lang="zh"] { display: list-item; }

/* Chinese typography tuning: slightly looser leading, no negative tracking */
html[lang="zh-CN"] body { line-height: 1.85; }
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] h4 { letter-spacing: 0; line-height: 1.35; }
html[lang="zh-CN"] .eyebrow { letter-spacing: 0.06em; }


/* ==========================================================================
   21. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- Large desktop down --- */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact-col { grid-column: 1 / -1; }
  .float-badge { left: -10px; }
}

/* --- Tablet landscape --- */
@media (max-width: 992px) {
  :root { --sp-9: 4.5rem; --sp-8: 3.2rem; }

  .nav-main { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split .frame { order: -1; }
  .split.no-flip .frame { order: 0; }

  .counters { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .counter:nth-child(3) { border-left: 0; }
  .counter:nth-child(odd) { border-left: 0; }

  .hero-home { min-height: auto; }
  .frame::after { display: none; }
  .float-badge { position: static; margin-top: var(--sp-4); max-width: none; }
}

/* --- Tablet portrait / large phone --- */
@media (max-width: 768px) {
  :root { --header-h: 66px; --sp-9: 3.6rem; }

  .section    { padding: var(--sp-8) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid  { grid-template-columns: 1fr; }
  .form-card  { padding: var(--sp-5); }
  .trust      { margin-top: calc(var(--sp-7) * -1); }
  .trust-card { padding: var(--sp-5) var(--sp-4); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact-col { grid-column: 1 / -1; }

  .brand-sub { display: none; }
  .btn { padding: 0.85rem 1.4rem; }
  .btn-row .btn { flex: 1 1 auto; }

  .cta-contacts { flex-direction: column; align-items: center; gap: var(--sp-2); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Small phone --- */
@media (max-width: 560px) {
  :root { --sp-9: 3rem; --sp-8: 2.6rem; --sp-7: 2.2rem; }

  .wrap { padding-inline: var(--sp-4); }
  .header-inner { padding-inline: var(--sp-4); }

  .counters { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .counter { padding: var(--sp-2) 0; }
  .counter .num { font-size: 1.7rem; }

  .hero { padding-top: calc(var(--header-h) + var(--sp-7)); }
  .card { padding: var(--sp-5); }
  .card::before { left: var(--sp-5); right: var(--sp-5); }

  .footer-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .results { grid-template-columns: 1fr 1fr; }
  .platforms { gap: var(--sp-2) var(--sp-4); }
  .plat { font-size: 0.82rem; }
}


/* ==========================================================================
   22. ACCESSIBILITY & PRINT
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px; left: var(--sp-4);
  z-index: 999;
  padding: 0.75rem 1.2rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--c-red);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--c-red-300);
  outline-offset: 2px;
}

/* --- Touch devices: enlarge small controls to a comfortable 44px tap target ---
   Applied by pointer type rather than width, so a small touch laptop benefits too
   and a mouse-driven desktop keeps the tighter visual rhythm. */
@media (pointer: coarse) {
  .lang-btn   { min-height: 40px; display: inline-flex; align-items: center; padding-inline: 0.95rem; }
  .chip       { min-height: 44px; display: inline-flex; align-items: center; }
  .socials a  { width: 44px; height: 44px; }
  .btn-sm     { min-height: 44px; }
  .link-arrow { min-height: 44px; align-items: center; }
  .footer-col a,
  .nav-list a { display: inline-block; padding-block: 0.35rem; }
}

/* Very small screens: let long button labels wrap instead of overflowing */
@media (max-width: 400px) {
  .btn-block, .btn-lg { white-space: normal; text-align: center; }
}

/* --- Visibility utilities (declared last so they win) --- */
@media (max-width: 768px) {
  .hide-sm { display: none !important; }
}
@media (min-width: 993px) {
  .show-lg-none { display: none !important; }
}

@media print {
  .site-header, .mobile-panel, .cta-band, .filter-bar, .socials { display: none !important; }
  body { color: #000; }
  .hero { background: #fff; padding-top: 2rem; }
  .hero h1, .hero-sub { color: #000; }
}


/* Instant-reply shortcuts shown after an enquiry is submitted.
   Email delivery can fail outside our control; these give the visitor a
   channel that always works. */
.success-actions{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--c-line)}
.success-actions .sa-label{display:block;font-size:.92rem;margin-bottom:.6rem;opacity:.9}
.success-actions .sa-btns{display:flex;flex-wrap:wrap;gap:.5rem}
