/* =========================================================
   Dragonworks Agency — Stylesheet
   Design language: large-company minimalism (whitespace-led,
   restrained palette, big confident type) simplified for a
   small creative/social-media advertising agency.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — sampled directly from the official logo files */
  --green-900: #00312E;
  --green-800: #004743;   /* primary brand green (exact match to logo) */
  --green-700: #005550;
  --green-600: #006D67;
  --green-500: #00857D;
  --green-100: #E6EDEC;
  --green-50:  #F2F6F6;

  --cream:      #F2EBD8;  /* exact match to logo */
  --cream-dim:  #E6DCC0;

  --ink:        #0E1A16;  /* near-black, green-tinted, for body copy */
  --ink-soft:   #45564F;  /* secondary text on light bg */
  --white:      #FFFFFF;

  --border:     #E4E1D6;

  /* Semantic */
  --bg:            var(--white);
  --bg-alt:        var(--cream);
  --bg-dark:       var(--green-800);
  --text:          var(--ink);
  --text-soft:     var(--ink-soft);
  --text-on-dark:  var(--cream);
  --text-on-dark-soft: #C9DBD3;
  --accent:        var(--green-800);
  --accent-hover:  var(--green-700);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

html, body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem); }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-soft); }
.lede { font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem); color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-600);
}
.on-dark .eyebrow { color: var(--text-on-dark-soft); }
.on-dark .eyebrow::before { background: var(--cream); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }

.on-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.on-dark p { color: var(--text-on-dark-soft); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-on-dark); }

.on-alt { background: var(--bg-alt); }

.grid { display: grid; gap: var(--gutter); }
.stack { display: flex; flex-direction: column; }

/* Classic CSS Grid fix: bare `1fr`/`auto` tracks size to a child's
   min-content by default, which lets a child with wide intrinsic
   content (a form, a long unbroken string, etc.) blow out past the
   container on narrow screens. Forcing min-width/min-height:0 on every
   direct grid child is the standard, safe fix — it does not affect
   normal layout, only removes the unwanted minimum-size floor. */
.grid > *, .split > * { min-width: 0; }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-800);
  color: var(--cream);
}
.btn-primary:hover { background: var(--green-700); }

.btn-light {
  background: var(--cream);
  color: var(--green-800);
}
.btn-light:hover { background: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--green-800); color: var(--green-800); }

.on-dark .btn-outline { border-color: rgba(245,238,220,0.35); color: var(--cream); }
.on-dark .btn-outline:hover { border-color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 14px 8px;
}
.btn-ghost::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand img { width: 34px; height: 34px; }
.brand .agency-tag {
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--green-50); color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--green-50);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease);
  line-height: 1;
}
.lang-btn .flag { font-size: 1rem; line-height: 1; }
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--green-800);
  color: var(--cream);
}
.on-dark .lang-switch { background: rgba(245,238,220,0.1); border-color: rgba(245,238,220,0.2); }
.on-dark .lang-btn { color: var(--text-on-dark-soft); }
.on-dark .lang-btn.active { background: var(--cream); color: var(--green-800); }

@media (max-width: 480px) {
  .lang-btn .lang-code { display: none; }
  .lang-btn { padding: 7px 9px; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.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;
  padding-top: clamp(150px, 20vw, 210px);
  padding-bottom: clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(60% 60% at 30% 0%, rgba(11,74,61,0.14), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(28,138,112,0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-block: 20px 22px; }
.hero .lede { max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--border);
}
.hero-stats .stat-num {
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 800;
  color: var(--green-800);
  letter-spacing: -0.02em;
}
.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* Hero visual: mock content card stack, representing livestream / shorts */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--green-800), var(--green-900));
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  box-shadow: 0 30px 60px -20px rgba(11,74,61,0.45);
}
.hero-visual .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: rgba(245,238,220,0.14);
  border: 1px solid rgba(245,238,220,0.25);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-visual .live-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FF5C5C;
  box-shadow: 0 0 0 0 rgba(255,92,92,0.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,92,92,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(255,92,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,92,92,0); }
}
.hero-visual .mock-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-visual .mock-bar { height: 8px; border-radius: 4px; background: rgba(245,238,220,0.18); }
.hero-visual .mock-bar.w-70 { width: 70%; }
.hero-visual .mock-bar.w-45 { width: 45%; }
.hero-visual .mock-metrics {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(245,238,220,0.18);
}
.hero-visual .mock-metrics div span {
  display: block;
}
.hero-visual .mm-num { font-weight: 800; font-size: 1.2rem; }
.hero-visual .mm-label { font-size: 0.72rem; color: var(--text-on-dark-soft); margin-top: 2px; }

/* logo strip */
.logo-strip {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
  opacity: 0.75;
}
.logo-strip span {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- Cards / Services ---------- */
.card-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(14,26,22,0.18);
  border-color: transparent;
}
.service-card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--green-800);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { margin-bottom: 16px; }
.service-card .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.service-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-800);
}

/* ---------- Process ---------- */
.process-list { counter-reset: step; }
.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--border);
}
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-item .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-600);
  font-variant-numeric: tabular-nums;
}
.process-item h4 { margin-bottom: 6px; }

/* ---------- Portfolio / Work ---------- */
.work-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, var(--green-700), var(--green-900));
  color: var(--cream);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.work-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,51,42,0.85) 100%);
}
.work-card > * { position: relative; z-index: 1; }
.work-card .work-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(245,238,220,0.16);
  border: 1px solid rgba(245,238,220,0.3);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: auto;
}
.work-card h4 { color: var(--cream); font-size: 1.15rem; }
.work-card p { color: var(--text-on-dark-soft); font-size: 0.9rem; }

/* alt variant using cream card for contrast */
.work-card.alt {
  background: var(--cream);
  color: var(--ink);
}
.work-card.alt::before { background: linear-gradient(180deg, transparent 40%, rgba(245,238,220,0.9) 100%); }
.work-card.alt h4 { color: var(--ink); }
.work-card.alt p { color: var(--text-soft); }
.work-card.alt .work-tag { background: rgba(11,74,61,0.08); border-color: rgba(11,74,61,0.18); color: var(--green-800); }

/* ---------- Stats band ---------- */
.stats-band {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
@media (max-width: 800px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.stat-block .num {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-block .label {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--text-on-dark-soft);
}

/* ---------- Testimonials ---------- */
.testimonial-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 800px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}
.testimonial-card .quote {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 22px;
}
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.testimonial-card .author-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-card .author-role { font-size: 0.82rem; color: var(--text-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: var(--text-on-dark-soft);
  padding-block: 64px 32px;
}
.footer-grid {
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245,238,220,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: var(--cream); margin-bottom: 14px; }
.footer-brand p { max-width: 32ch; }
.footer-col h5 {
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color .2s var(--ease); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--cream); }
.footer-col li { overflow-wrap: anywhere; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.82rem;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(245,238,220,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.social-row a:hover { background: rgba(245,238,220,0.1); border-color: rgba(245,238,220,0.4); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-top: clamp(150px, 18vw, 190px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.page-hero .lede { max-width: 60ch; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--text); }

/* ---------- Forms ---------- */
.form-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 4px; }

.contact-info-card {
  background: var(--green-800);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-card h3 { color: var(--cream); margin-bottom: 18px; }
.contact-info-card .info-row {
  display: flex;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid rgba(245,238,220,0.14);
}
.contact-info-card .info-row:first-of-type { border-top: none; }
.contact-info-card .info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-on-dark-soft); }
.contact-info-card .info-value { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}
.faq-q .plus { font-size: 1.4rem; font-weight: 400; color: var(--green-700); transition: transform .3s var(--ease); }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-a p { padding-bottom: 22px; max-width: 65ch; }

/* ---------- Values / about ---------- */
.value-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .value-grid { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 16px; }
.value-item .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Team ---------- */
.team-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card .photo {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, var(--green-100), var(--cream));
  display: flex; align-items: center; justify-content: center;
  color: var(--green-800);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.team-card h4 { margin-bottom: 2px; }
.team-card .role { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Two-column split layout (responsive) ---------- */
/* Used wherever a section needs an asymmetric two-column layout;
   always stacks to a single column on narrower screens so text never
   gets squeezed into unreadably narrow columns. */
.split { display: grid; gap: 48px; }
.split-80-20 { grid-template-columns: 0.8fr 1.2fr; }
.split-60-40 { grid-template-columns: 0.6fr 1fr; }
.split-70-30 { grid-template-columns: 0.7fr 1.3fr; }
.split-50-50 { grid-template-columns: 1fr 1fr; }
.split-60-40r { grid-template-columns: 1.2fr 0.8fr; }
.split.align-center { align-items: center; }
.split.align-start { align-items: start; }
@media (max-width: 860px) {
  .split-80-20, .split-60-40, .split-70-30, .split-50-50, .split-60-40r {
    grid-template-columns: 1fr;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
/* Progressive enhancement: content is fully visible by default so it can
   never end up permanently hidden (no-JS users, JS errors, or a user
   jump-scrolling past a section faster than the observer can catch it).
   JS opts elements into the hidden "pre" state only once it's actually
   ready to reveal them. */
.reveal {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-outline { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* On very narrow phones, brand + "Book a call" + hamburger no longer
   fit on one line — drop the button and keep just the hamburger. */
@media (max-width: 420px) {
  .nav-cta .btn-primary { display: none; }
  .brand { font-size: 1rem; }
  .brand .agency-tag { display: none; }
}
