/* =========================================================
   Ola Digital — site styles
   Palette: white canvas + near-black text + China red accent (gold secondary)
   Type:    Bricolage Grotesque (display) + Inter (body)
   ========================================================= */

:root {
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --surface: #F6F6F7;
  --text: #141414;
  --muted: #5F6368;
  --line: #E7E7E9;

  --red: #C8102E;            /* China red */
  --red-hover: #A80D26;
  --red-deep: #8E0A20;
  --red-soft: #FBE9EC;
  --gold: #D9A441;
  --gold-light: #F0C96A;

  --on-red: #FFFFFF;
  --on-red-muted: rgba(255, 255, 255, 0.8);
  --line-on-red: rgba(255, 255, 255, 0.22);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(20, 20, 20, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  font-weight: 600; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography ---------- */
.display, .h2, .card h3, .step h3, .why-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 17ch;
}
.h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.1;
}
.kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.section-sub, .lead, .card p, .step p, .why-list p, .about-copy p, .statement-text {
  text-wrap: pretty;
}
.section-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 58ch;
  margin-top: 1.1rem;
}
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
  margin-top: 1.6rem;
}
.lead .wow { font-weight: 700; color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .975rem;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { color: var(--text); border-color: rgba(20, 20, 20, 0.22); }
.btn-ghost:hover { border-color: var(--text); background: var(--surface); }
.btn-dark { background: var(--text); color: #fff; margin-top: 2rem; }
.btn-dark:hover { background: #000; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--red); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav ul { display: flex; gap: 1.8rem; }
.site-nav ul a {
  font-size: .95rem; font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.site-nav ul a:hover { color: var(--red); }
.nav-cta { padding: .65rem 1.1rem; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--white);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(6rem, 12vw, 10rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .9rem; font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  margin-top: 3.5rem;
  font-size: .92rem; color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: .55rem; }
.hero-points li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 100%);
}
.hero-waves {
  position: absolute; left: 0; right: 0; bottom: -40px;
  width: 100%; height: 62%;
}
.w1 { animation: wave-drift 26s linear infinite; opacity: .9; }
.w2 { animation: wave-drift 32s linear infinite reverse; opacity: .65; }
.w3 { animation: wave-drift 38s linear infinite; opacity: .45; }
.w4 { animation: wave-drift 44s linear infinite reverse; opacity: .3; }
.w5 { animation: wave-drift 52s linear infinite; opacity: .16; }
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

/* ---------- Statement ---------- */
.statement {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.statement-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 38ch;
  color: var(--text);
}
.statement-text em { font-style: italic; color: var(--red); }
.statement-text strong { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Services */
.services { background: var(--off-white); border-top: 1px solid var(--line); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--red-soft);
  display: grid; place-items: center;
  margin-bottom: 1.4rem;
}
.card-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* Approach */
.approach { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.step {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1.5px solid var(--line);
}
.step::before {
  content: "";
  position: absolute; top: -1.5px; left: 0;
  width: 48px; height: 1.5px; background: var(--red);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--red);
}
.step h3 { font-size: 1.35rem; margin: .8rem 0 .6rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* Why — the one solid China-red band on the page */
.why { background: var(--red); color: var(--on-red); }
.why .kicker { color: var(--gold-light); }
.why .section-sub { color: var(--on-red-muted); }
.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.why-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
.why .btn-dark { background: #fff; color: var(--red); }
.why .btn-dark:hover { background: var(--gold-light); color: var(--red-deep); }
.why-list li {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line-on-red);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 1rem;
}
.why-list li:last-child { border-bottom: 1px solid var(--line-on-red); }
.why-list li::before {
  content: "";
  grid-column: 1; grid-row: 1;
  width: 12px; height: 12px; margin-top: .55rem;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16);
}
.why-list h3 { grid-column: 2; font-size: 1.25rem; margin-bottom: .4rem; }
.why-list p { grid-column: 2; color: var(--on-red-muted); font-size: .98rem; }

/* Stack */
.stack {
  background: var(--white);
  color: var(--text);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.stack-label {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.stack-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.stack-list li {
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .92rem; font-weight: 500;
  color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
}
.stack-list li:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* About */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-visual svg { border-radius: 32px; box-shadow: 0 24px 60px -24px rgba(200, 16, 46, 0.45); }
.about-copy p + p { margin-top: 1rem; }
.about-copy > p:not(.kicker) { color: var(--muted); }
.about-copy .h2 { margin-bottom: 1.4rem; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.about-facts dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.about-facts dd { font-weight: 600; color: var(--text); }

/* Contact */
.contact { background: var(--off-white); border-top: 1px solid var(--line); }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-details { margin-top: 2.4rem; display: grid; gap: 1.2rem; }
.contact-details li { display: grid; gap: .2rem; }
.contact-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-details a { font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: rgba(200, 16, 46, 0.5); text-underline-offset: 3px; }
.contact-details a:hover { color: var(--red); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: 1.2rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-note.is-error { color: var(--red); }
.form-note.is-success { color: #1E7F4F; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--text);
  border-top: 3px solid var(--red);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { margin-top: 1rem; color: var(--muted); max-width: 34ch; font-size: .95rem; }
.footer-nav ul { display: grid; gap: .6rem; }
.footer-nav a, .footer-contact a { color: var(--muted); font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--red); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.4rem 0 2rem;
  font-size: .82rem; color: var(--muted);
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .why-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .why-copy { position: static; }
  .about-visual { max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -20px rgba(20, 20, 20, 0.25);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .9rem 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; justify-content: center; padding: .9rem 1.2rem; font-size: 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .hero-waves { height: 45%; bottom: -20px; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
