/* ==========================================================================
   ESY Marketing Agency — Landing Page
   ========================================================================== */

:root {
  --accent: #04129b;
  --accent-soft: #fce9c3;
  --text: #2f2d2d;
  --text-muted: #8a8a8a;
  --bg: #fefbf6;
  --line: rgba(4, 18, 155, 0.14);
  --radius: 5px;
  --pill: 1000px;
  --container: 1296px;
  --gap-section: 130px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3,
.display {
  font-family: 'Quicksand', 'Avocado Sans Font', sans-serif;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--pill);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
  border: 1.5px solid transparent;
}

.btn-ghost {
  border-color: var(--text);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-soft);
}
.btn-white {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--accent);
}
.btn-white:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(4, 18, 155, 0.28);
}

.btn:active { transform: translateY(0); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------------------------------- Header ---------------------------------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(254, 251, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
header.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(4, 18, 155, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo img { height: 50px; width: auto; display: block; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}
nav.main-nav a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
nav.main-nav a:hover::after { right: 0; }

.lang-toggle {
  display: flex;
  gap: 6px;
}
.lang-toggle button {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--text);
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.lang-toggle button.active,
.lang-toggle button:hover {
  background: var(--accent);
  color: var(--accent-soft);
  transform: scale(1.05);
}

.header-right { display: flex; align-items: center; gap: 22px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  padding: 6px;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding: 80px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 573px;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.15;
  max-width: 660px;
}
.hero .subtitle {
  margin-top: 28px;
  font-size: 24px;
  color: var(--text);
  max-width: 500px;
  font-family: 'Inter', sans-serif;
}
.hero .cta-row { margin-top: 40px; }
.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 573 / 635;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------- Benefits ---------------------------------- */

.benefits {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.benefit {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.benefit + .benefit::before {
  content: '';
  position: absolute;
  left: -20px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.benefit img { margin: 0 auto 22px; width: 52px; height: 52px; }
.benefit p { font-size: 20px; margin: 0; }
.benefit strong { color: var(--accent); font-weight: 600; }

/* ---------------------------------- Section titles ---------------------------------- */

.section-title {
  font-size: 35px;
}
.section-title.center { text-align: center; }

/* ---------------------------------- Challenges ---------------------------------- */

.challenges {
  padding: var(--gap-section) 0;
  padding-inline: 24px;
}
.challenges-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 50px;
}
.challenges-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 520/411;
  align-self: start;
}
.challenges-photo img { width: 100%; height: 100%; object-fit: cover; }
.challenges-text { padding-left: 30px; border-left: 1px solid var(--line); }
.challenges-text h2 { margin-bottom: 40px; }
.challenge-block { margin-bottom: 35px; }
.challenge-block:last-child { margin-bottom: 0; }
.challenge-block .label {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 10px;
  font-style: italic;
}
.challenge-block ul { list-style: disc; margin-left: 22px; }
.challenge-block li { font-size: 20px; margin-bottom: 6px; }

/* ---------------------------------- Statement / mid CTA ---------------------------------- */

.statement {
  padding: var(--gap-section) 0;
  padding-inline: 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.statement-inner { max-width: 900px; margin: 0 auto; }
.statement h2 {
  font-size: 40px;
  margin-bottom: 20px;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.statement p { font-size: 20px; margin-bottom: 36px; max-width: 664px; margin-left: auto; margin-right: auto; }

/* ---------------------------------- Approach ---------------------------------- */

.approach {
  padding: var(--gap-section) 0;
  padding-inline: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.approach-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  align-items: stretch;
}
.approach-grid .section-title { align-self: center; }
.approach-items {
  border-left: 1px solid var(--line);
  padding-left: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 0;
  align-items: start;
}
.approach-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px 0 30px;
}
/* top-left cell */
.approach-item:nth-child(1) { padding-right: 44px; }
/* top-right cell — vertical divider on its left */
.approach-item:nth-child(2) {
  border-left: 1px solid var(--line);
  padding-left: 44px;
}
/* horizontal rule under the top-left cell only */
.approach-item:nth-child(1) { border-bottom: 1px solid var(--line); }
/* bottom row spans full width, aligned under the left column */
.approach-item:nth-child(3) {
  grid-column: 1 / -1;
  padding-top: 30px;
  padding-right: 44px;
}
.approach-item img { width: 44px; height: 44px; flex: none; margin-top: 1px; }
.approach-item p { font-size: 18px; margin: 0; line-height: 1.5; }
.approach-item strong { color: var(--accent); font-weight: 700; }

/* ---------------------------------- What we do ---------------------------------- */

.whatwedo { padding: var(--gap-section) 0; }
.whatwedo .section-title { margin-bottom: 50px; }
.wwd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.wwd-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 358/515;
  cursor: pointer;
  background: var(--accent);
}
.wwd-card .wwd-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  padding: 20px;
}
.wwd-card .wwd-eyebrow {
  font-size: 15px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
  transition: color 0.4s ease;
}
.wwd-card .wwd-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--bg);
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  transition: color 0.4s ease;
}
.wwd-card .wwd-photo {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.wwd-card .wwd-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.wwd-card .wwd-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 40%);
}
.wwd-card .wwd-overlay {
  position: absolute; inset: 0;
  background: var(--accent);
  padding: 70px 30px 42px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wwd-card .wwd-overlay .wwd-eyebrow { color: rgba(254,251,246,0.65); }
.wwd-card .wwd-overlay .wwd-title { color: var(--accent-soft); text-shadow: none; margin-bottom: 26px; }
.wwd-card .wwd-overlay p {
  color: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}
.wwd-card:hover .wwd-photo,
.wwd-card.is-active .wwd-photo { opacity: 0; transform: scale(1.04); }
.wwd-card:hover .wwd-overlay,
.wwd-card.is-active .wwd-overlay { opacity: 1; transform: translateY(0); }
/* Only the head TITLE fades out on hover; the #number stays put over the card */
.wwd-card:hover .wwd-head .wwd-title,
.wwd-card.is-active .wwd-head .wwd-title { opacity: 0; }
.wwd-card:hover .wwd-head .wwd-eyebrow,
.wwd-card.is-active .wwd-head .wwd-eyebrow { color: var(--accent-soft); }

.wwd-hint {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: rgba(254,251,246,0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(254,251,246,0.35);
  color: var(--bg);
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.85;
  animation: wwd-hint-pulse 2.6s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.wwd-hint svg { flex: none; }
@keyframes wwd-hint-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-3px); opacity: 1; }
}
.wwd-card:hover .wwd-hint,
.wwd-card.is-active .wwd-hint { opacity: 0; transform: translateY(6px); }
@media (hover: none) {
  .wwd-hint { font-size: 12.5px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wwd-hint { animation: none; }
}

/* ---------------------------------- Portfolio ---------------------------------- */

.portfolio {
  padding: var(--gap-section) 0;
  padding-inline: 24px;
  border-top: 1px solid var(--line);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
}
.portfolio-text {
  padding-left: 40px;
  border-left: 1px solid var(--line);
  font-size: 20px;
}
.portfolio-text p { margin: 0 0 18px; }
.portfolio-text p:last-child { margin-bottom: 32px; }

/* ---------------------------------- Social proof ---------------------------------- */

.social-proof {
  padding: var(--gap-section) 0;
  padding-inline: 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.social-proof .section-title { margin-bottom: 8px; }
.social-proof p.lede { font-size: 20px; margin-bottom: 50px; }
.logos-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 70px;
  animation: logos-spin 32s linear infinite;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
@keyframes logos-spin {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  opacity: 1;
  transition: transform 0.35s ease;
}
.logo-tile:hover { transform: scale(1.06); }
.logo-tile img { max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
  .logos-marquee { overflow-x: auto; }
}

/* ---------------------------------- Final CTA ---------------------------------- */

.final-cta {
  padding: var(--gap-section) 0;
  padding-inline: 24px;
  border-top: 1px solid var(--line);
}
.final-cta-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 50px;
  align-items: center;
}
.final-cta-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 520/411;
}
.final-cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.final-cta-text {
  padding-left: 40px;
  border-left: 1px solid var(--line);
}
.final-cta-text p { font-size: 30px; margin: 0 0 36px; line-height: 1.4; }

/* ---------------------------------- Contact form ---------------------------------- */

.contact-section {
  padding: var(--gap-section) 0;
  border-top: none;
  background: var(--accent);
  max-width: none;
  width: 100%;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
form.contact-form {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.contact-intro h2 { font-size: 35px; margin-bottom: 20px; color: var(--accent-soft); }
.contact-intro p { font-size: 19px; max-width: 420px; margin-bottom: 24px; color: rgba(254,251,246,0.85); }
.contact-intro .contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--accent-soft);
}

form.contact-form,
form.popup-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 14px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 13px 15px;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  resize: none;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.field input:hover,
.field textarea:hover { border-color: rgba(4, 18, 155, 0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(4, 18, 155, 0.10);
}
.field textarea { min-height: 120px; }

/* Consent checkbox under forms */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-row a { color: var(--accent); text-decoration: underline; }

/* Success popup */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 45, 45, 0.55);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.success-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.success-box {
  background: var(--bg);
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 44px 36px 38px;
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.success-overlay.open .success-box { transform: translateY(0) scale(1); }
.success-check {
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  animation: success-pop 0.5s var(--ease);
}
@keyframes success-pop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.success-box h3 { font-size: 27px; margin-bottom: 10px; color: var(--accent); }
.success-box p { font-size: 16.5px; line-height: 1.55; margin-bottom: 26px; color: var(--text); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
}
.form-status {
  font-size: 15px;
  margin-top: 8px;
  min-height: 20px;
}
.form-status.success { color: #1f7a34; }
.form-status.error { color: #b23b3b; }

/* ---------------------------------- Footer ---------------------------------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo img { height: 52px; width: auto; display: block; }
.footer-cols { display: flex; gap: 90px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: 'Quicksand', sans-serif;
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px;
}
.footer-col p, .footer-col a {
  font-size: 15px;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-col span.disabled { color: var(--text-muted); cursor: default; }

/* Phone lines: "Tel:" label + numbers column, numbers vertically aligned */
.phone-lines {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.phone-tel { flex: none; }
.phone-nums { display: flex; flex-direction: column; gap: 4px; }
.phone-num { display: block; white-space: nowrap; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .lang-toggle button { width: 36px; height: 36px; font-size: 13px; }
.footer-copy { font-size: 14px; color: var(--text-muted); }

/* ---------------------------------- Modal ---------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 45, 45, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  font-size: 0; /* remove whitespace gap before the ghost element */
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
/* Ghost element: reliably centers .modal-box vertically without ever clipping
   the top of the box when it's taller than the viewport (a known flexbox bug) */
.modal-overlay::before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}
.modal-box {
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  font-size: 17px;
  background: var(--bg);
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s var(--ease);
  margin: 24px 0;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
/* Prevent the background page from scrolling/jumping on iOS while the modal or mobile nav is open */
html.scroll-lock {
  overflow: hidden;
}
body.scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal-box h3 { font-size: 26px; margin-bottom: 8px; }
.modal-box .modal-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.modal-close:hover { background: var(--accent); color: var(--accent-soft); transform: rotate(90deg); }

/* ---------------------------------- Scroll reveal ---------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------- Simple policy pages ---------------------------------- */

.policy-page {
  padding: 70px 0 100px;
  max-width: 820px;
  margin: 0 auto;
}
.policy-page h1 { font-size: 38px; margin-bottom: 6px; }
.policy-page .updated { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }
.policy-page h2 { font-size: 22px; margin: 40px 0 14px; }
.policy-page p, .policy-page li { font-size: 16px; line-height: 1.7; }
.policy-page ul { margin: 10px 0 10px 22px; }
.policy-page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.policy-page th, .policy-page td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy-page th { color: var(--accent); font-family: 'Quicksand', sans-serif; }
.back-link { display: inline-block; margin-bottom: 30px; font-family: 'Quicksand', sans-serif; font-weight: 600; color: var(--accent); }
.back-link:hover { text-decoration: underline; }

/* ---------------------------------- Blog ---------------------------------- */

.blog-page { padding: 70px 24px 100px; }
.blog-page h1 { font-size: 44px; margin-bottom: 12px; }
.blog-lede { font-size: 19px; color: var(--text); max-width: 560px; margin-bottom: 50px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(4, 18, 155, 0.08);
}
.blog-card h2 { font-size: 22px; color: var(--accent); line-height: 1.3; }
.blog-card p { font-size: 15.5px; color: var(--text); line-height: 1.55; flex: 1; }
.blog-card-meta { font-size: 13.5px; color: var(--text-muted); font-family: 'Quicksand', sans-serif; font-weight: 600; }
.blog-card-arrow { color: var(--accent); margin-left: 6px; }

/* Article page */
.article-page { padding-top: 60px; }
.article-wrap { max-width: 760px; }
.article-page h1 { font-size: 38px; line-height: 1.2; margin-bottom: 10px; }
.article-meta { color: var(--text-muted); font-size: 14.5px; margin-bottom: 36px; font-family: 'Quicksand', sans-serif; font-weight: 600; }
.article-body { font-size: 17.5px; line-height: 1.75; }
.article-body h2 { font-size: 26px; margin: 44px 0 16px; color: var(--accent); }
.article-body h3 { font-size: 20px; margin: 30px 0 12px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--accent); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15.5px; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { color: var(--accent); font-family: 'Quicksand', sans-serif; }

/* Also read */
.also-read { padding: 70px 24px; border-top: 1px solid var(--line); margin-top: 70px; }
.also-read h2 { font-size: 28px; margin-bottom: 26px; }
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.also-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.also-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(4,18,155,0.08); }
.also-title { font-family: 'Quicksand', sans-serif; font-weight: 600; font-size: 16.5px; color: var(--accent); line-height: 1.35; }
.also-more { color: var(--accent); font-size: 18px; }

@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .blog-page h1 { font-size: 32px; }
  .article-page h1 { font-size: 27px; }
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 22px; }
}

/* ---------------------------------- Responsive: Tablet ---------------------------------- */

@media (max-width: 1100px) {
  :root { --gap-section: 90px; }
  /* side air on tablet like mobile */
  .wrap { padding-left: 32px; padding-right: 32px; }
  .challenges, .approach, .whatwedo, .portfolio, .social-proof, .final-cta { padding-inline: 32px; }
  .header-inner { padding-left: 32px; padding-right: 32px; }
  .contact-grid { padding-left: 32px; padding-right: 32px; }
  footer.site-footer { padding-left: 32px; padding-right: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 500px; margin: 0 auto; }
  .hero h1 { font-size: 40px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 34px; }
  .benefit + .benefit::before { display: none; }
  .benefit + .benefit { border-top: 1px solid var(--line); padding-top: 30px; }
  .challenges-grid, .approach-grid, .portfolio-grid, .final-cta-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .challenges-text, .approach-items, .portfolio-text, .final-cta-text {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 30px;
  }
  .wwd-grid { grid-template-columns: repeat(2, 1fr); }
  .logos-grid { grid-template-columns: repeat(3, 1fr); }
  nav.main-nav { display: none; }
}

/* ---------------------------------- Responsive: Mobile ---------------------------------- */

@media (max-width: 680px) {
  :root { --gap-section: 64px; }
  body { font-size: 16px; }

  /* Side padding so content never touches screen edges */
  .wrap { padding-left: 22px; padding-right: 22px; }
  .challenges, .approach, .whatwedo, .portfolio, .social-proof, .final-cta { padding-inline: 22px; }
  .header-inner { padding: 14px 22px; }

  .logo img { height: 46px; }
  .burger { display: flex; }
  .lang-toggle button { width: 32px; height: 32px; font-size: 12px; }

  .hero, .hero-text { text-align: center; }
  .hero .cta-row { align-items: center; }
  .statement-inner { text-align: center; }
  .section-title { text-align: center; }
  .final-cta-text { text-align: center; }
  .contact-intro { text-align: center; }
  .social-proof { text-align: center; }

  .hero { padding: 40px 22px 30px; }
  .hero .subtitle { margin-left: auto; margin-right: auto; }
  .hero h1 { font-size: 30px; }
  .hero .subtitle { font-size: 18px; margin-top: 18px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .section-title { font-size: 26px; }

  /* Statement heading must wrap on mobile (nowrap is desktop-only) */
  .statement h2 { white-space: normal; font-size: 27px; }

  .wwd-grid { grid-template-columns: 1fr; }

  /* Remove extra divider lines under section titles on mobile */
  .approach-items,
  .portfolio-text {
    border-top: none !important;
    padding-top: 0 !important;
  }
  /* Portfolio: text and button centered on mobile */
  .portfolio-text { text-align: center; }
  .portfolio-text .btn { margin: 0 auto; }
  .portfolio-grid { justify-items: center; }

  /* Approach — mobile: centered vertical stack, icon above text, dividers (matches Figma) */
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid .section-title { text-align: center; margin-bottom: 10px; }
  .approach-items {
    grid-template-columns: 1fr;
    border-left: none;
    padding-left: 0;
  }
  .approach-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 30px 0;
    border-left: none !important;
    border-bottom: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .approach-item + .approach-item {
    border-top: 1px solid var(--line) !important;
  }
  .approach-item:nth-child(3) { grid-column: auto; }
  .approach-item img { width: 48px; height: 48px; }

  /* Footer — mobile: stacked, left-aligned, comfortable spacing (matches Figma) */
  footer.site-footer { padding: 50px 22px 36px; text-align: left; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 34px; margin-bottom: 34px; }
  .footer-logo img { height: 52px; }
  .footer-cols { flex-direction: column; gap: 34px; width: 100%; }
  .footer-col { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-copy { font-size: 13px; }
  .phone-lines { justify-content: flex-start; }
  .challenge-block li, .approach-item p, .portfolio-text, .statement p { font-size: 17px; }
  .final-cta-text p { font-size: 22px; }
  .modal-box { padding: 28px 22px; }

  /* Footer logo a touch smaller on phones but still clearly visible */
  .footer-logo img { height: 60px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 82vw);
  background: var(--bg);
  z-index: 90;
  box-shadow: -10px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: 'Quicksand', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}
.mobile-nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }
