/* Lovelock Advertising v2, shared styles for every page */
/* ---------- Tokens ---------- */
:root {
  /* Palette: navy on ice white, pale ice-blue surfaces, pastel pink + teal accents */
  --navy: #233972;
  --navy-deep: #1A2B57;
  --pink: #ECD0E4;
  --teal: #B8DADD;
  --ink: var(--navy);
  --text: var(--navy);
  --muted: #56618A;
  --line: #CFDAE7;
  --bg: #F8FBFE;
  --card: #D9E6F5;
  --surface: #D9E6F5; /* boxes: service cards, quotes, panels */

  --font-head: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --section: 80px;
  --radius: 8px;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 112px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 400 !important; /* Anton ships one weight; stops faux-bold */
  text-transform: uppercase;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 20px; height: 3px; background: var(--pink); border-radius: 2px; }
.h2 { font-size: clamp(36px, 5vw, 60px); }
.lede { font-size: 18px; color: var(--muted); max-width: 580px; margin-top: 18px; }
.section-head { margin-bottom: 48px; }
@media (min-width: 900px) {
  .section-head--split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end;
  }
  .section-head--split .lede { margin-top: 0; justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 18px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.btn--primary:hover { background: var(--teal); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn--ghost:hover { background: var(--pink); }
.btn--sm { padding: 9px 20px; font-size: 16px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--pink);
  padding: 0 2px 2px;
  transition: border-color .15s ease, color .15s ease;
}
.text-link:hover { border-color: var(--navy); background: var(--pink); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.header.is-scrolled { background: var(--pink); border-bottom-color: rgba(35,57,114,.12); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 20px; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
}
.wordmark span { color: var(--muted); }
@media (max-width: 420px) { .wordmark { font-size: 18px; gap: 8px; } }
/* Logo image in the header (the SVG has built-in padding, so it runs a little taller than the text) */
.wordmark img { height: 26px; width: auto; }
@media (max-width: 420px) { .wordmark img { height: 24px; } }
/* Smallest phones (320px): tighten the header so Menu fits on screen */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .header__inner { gap: 10px; }
  .wordmark { font-size: 15px; gap: 6px; }
  .wordmark img { height: 20px; }
  .call-btn { width: 38px; height: 38px; }
  .menu-btn { padding: 8px 10px; gap: 6px; }
}
.nav { display: none; }
.nav a {
  font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.nav a:hover { border-bottom-color: var(--navy); }
.header__actions { display: none; align-items: center; gap: 24px; }
.header__phone {
  align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.header__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Round tap-to-call button beside Menu (mobile only) */
.call-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; margin-left: auto;
  border: 2px solid var(--navy); border-radius: 50%;
  color: var(--navy); text-decoration: none;
  transition: background-color .15s ease;
}
.call-btn:hover { background: var(--pink); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px var(--font-body); color: var(--ink);
  background: none; border: 2px solid var(--navy); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.menu-btn__bars { width: 16px; height: 10px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 4px; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: inherit;
  padding: 8px var(--gutter) 24px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a:not(.btn) {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 500; color: var(--ink); text-decoration: none;
}

/* Services dropdown (desktop). Hover or clicking the Services button opens it */
.nav { align-items: center; }
.nav__item { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px;
  font: 600 15px var(--font-body); color: var(--navy);
  border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  transition: border-color .15s ease;
}
.nav__toggle:hover, .nav__item.is-active > .nav__toggle { border-bottom-color: var(--navy); }
.nav__toggle svg { transition: transform .2s ease; }
.nav__item:hover .nav__toggle svg, .nav__item.is-open .nav__toggle svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 12px); left: -16px; z-index: 60;
  min-width: 210px; padding: 8px; display: grid; gap: 2px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 1px 2px rgba(35,57,114,.08), 0 16px 40px rgba(35,57,114,.14);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.nav__item:hover .nav__menu, .nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav .nav__menu a {
  display: block; padding: 10px 14px; border: 0; border-radius: 8px; white-space: nowrap;
}
.nav .nav__menu a:hover, .nav .nav__menu a[aria-current="page"] { background: var(--pink); }

/* Service pages indented under Services in the mobile menu */
.mobile-nav__label {
  display: block; padding: 14px 0 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.mobile-nav .mobile-nav__sub a { padding-left: 18px; font-size: 15px; color: var(--muted); }
.mobile-nav .mobile-nav__sub a[aria-current="page"] { color: var(--ink); }

@media (min-width: 960px) {
  /* Logo left, menu centred, phone + CTA right */
  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header__actions { display: flex; justify-self: end; }
  .nav { display: flex; gap: 32px; }
  .header__phone { display: inline-flex; }
  .menu-btn, .call-btn, .mobile-nav, .mobile-nav.is-open { display: none; }
  /* Logo scaled so its visible width matches the phone + "Let's chat" group on the right */
  .header .wordmark img { height: 38px; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 12.5vw, 88px);
  letter-spacing: 0.005em;
  line-height: 0.95;
  white-space: nowrap;
}
/* Outlined highlight phrase, same face, hollow fill */
.hero h1 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
@supports not (-webkit-text-stroke: 2px black) {
  .hero h1 em { color: var(--ink); }
}
/* Mobile: size the title to fill the column ("YOUR BUSINESS." is ~5.9em wide in Anton) */
@media (max-width: 767px) {
  .hero h1 { font-size: min(calc((100vw - 2 * var(--gutter)) / 6), 104px); line-height: 0.92; }
}
.hero__sub {
  font-size: 19px; color: var(--muted); max-width: 600px; margin-top: 24px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 519px) { .hero__actions .btn { flex: 1 1 100%; } }
.hero__note { font-size: 13px; color: #9AA0BA; margin-top: 16px; }

/* Stacked client showcase: front card on top, the rest peek out below */
.showcase { position: relative; padding: 0 0 64px; }
.showcase__stack { position: relative; aspect-ratio: 1200 / 754; }
.showcase__card {
  position: absolute; inset: 0;
  display: block; border-radius: 14px; overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(35,57,114,.06), 0 28px 50px -26px rgba(26,43,87,.45);
  transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.4,0,.2,1), filter .55s ease;
  text-decoration: none; color: #fff;
}
.showcase__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.showcase__card:not(.is-front) { filter: brightness(.9) saturate(.85); cursor: pointer; }
.showcase__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 26px;
  background: linear-gradient(to top, rgba(17,26,56,.94) 0%, rgba(17,26,56,.82) 50%, rgba(17,26,56,.66) 100%);
  opacity: 0; transition: opacity .3s ease;
}
.showcase__card.is-front:hover .showcase__overlay,
.showcase__card.is-front:focus-visible .showcase__overlay { opacity: 1; }
.showcase__type {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink);
}
.showcase__name {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.05; color: #fff; margin-top: 6px;
}
.showcase__loc { font-size: 15px; font-weight: 500; color: #fff; opacity: .85; margin-top: 6px; }
.showcase__visit { font-size: 14px; font-weight: 600; margin-top: 12px; color: #fff; opacity: .9; }
.showcase__btn {
  position: absolute; top: calc(50% - 32px); transform: translateY(-50%); z-index: 20;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); color: var(--navy); border: 2px solid var(--navy);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.showcase__btn:hover { background: var(--navy); color: var(--bg); }
.showcase__btn--prev { left: -12px; }
.showcase__btn--next { right: -12px; }
@media (max-width: 639px) { .showcase__btn { width: 38px; height: 38px; } }
@media (min-width: 1100px) {
  .showcase__btn--prev { left: -23px; }
  .showcase__btn--next { right: -23px; }
}

@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero__grid { grid-template-columns: 1.5fr 1fr; gap: 64px; }
  .hero h1 { font-size: clamp(72px, 7.6vw, 104px); }
}

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 32px 0; }
.stat:nth-child(odd) { padding-right: 16px; }
.stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat__num {
  font-family: var(--font-head); font-weight: 400; color: var(--ink);
  font-size: clamp(44px, 5.4vw, 64px); letter-spacing: 0.01em; line-height: 1;
}
.stat__num small { font-size: .5em; font-weight: 400; margin-left: 2px; letter-spacing: 0; }
.stat__label { font-size: 15px; color: var(--muted); margin-top: 10px; }
.certs {
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center;
  padding: 20px 0; font-size: 14px; font-weight: 500; color: var(--muted);
}
.certs span { display: inline-flex; align-items: center; gap: 8px; }
.certs svg { color: var(--navy); }
@media (min-width: 900px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 40px 0 40px 32px !important; border-bottom: 0 !important; border-left: 1px solid var(--line); }
  .stat:first-child { padding-left: 0 !important; border-left: 0; }
  .certs { border-top: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .certs { border-top: 1px solid var(--line); }
}

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; }
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(35,57,114,.06), 0 8px 24px rgba(35,57,114,.07);
  transition: border-color .2s ease;
}
.service::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  height: 5px; background: var(--pink); border-radius: 14px 14px 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.service:hover { border-color: var(--navy); }
.service:hover::before { transform: scaleX(1); }
.service__num { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }
.service h3 { font-size: 30px; margin-top: 28px; }
.service p { color: var(--muted); margin-top: 12px; flex: 1; }
.service .text-link { margin-top: 28px; align-self: flex-start; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .services { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Founders ---------- */
.founders { display: grid; gap: 48px; align-items: center; }
.founders__media { margin: 0 auto; width: 100%; max-width: 480px; }
.founders__photo { margin: 0; }
.founders__photo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.founders__photo img { display: block; width: 100%; height: auto; }
.founders__copy p:not(.eyebrow) { color: var(--muted); margin-top: 20px; max-width: 540px; }
.founders__copy .h2 + p { margin-top: 28px; }
.founders__copy .text-link { margin-top: 28px; }
/* Sign-off line under the founders' note */
.founders__copy .signoff, .split__copy .signoff { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
  .founders { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* ---------- Testimonials ---------- */
/* Auto-scrolling marquee on desktop, swipe carousel on mobile.
   JS clones the set once so the loop is seamless (-50% = one full set). */
.quotes {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
/* flex-start so an expanded card grows on its own */
.quotes__track { display: flex; align-items: flex-start; width: max-content; padding: 4px 0 12px; }
.quotes.is-marquee .quotes__track { animation: quotes-scroll 45s linear infinite; }
.quotes.is-marquee:hover .quotes__track,
.quotes.is-marquee:focus-within .quotes__track,
.quotes.is-marquee.is-paused .quotes__track { animation-play-state: paused; }
@keyframes quotes-scroll { to { transform: translateX(-50%); } }
.quote {
  display: flex; flex-direction: column;
  width: 360px; flex: none; margin: 0 20px 0 0;
  background: var(--surface); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(35,57,114,.06), 0 8px 24px rgba(35,57,114,.07);
  padding: 24px 24px 22px;
  min-height: var(--quote-h, auto); /* set by JS so collapsed cards match */
}
.quotes__hint { display: none; } /* shown on mobile only, desktop scrolls itself */
/* Mobile (and reduced motion): manual swipe with snap, no clones */
@media (max-width: 767px) {
  .quotes {
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-mask-image: none; mask-image: none;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter);
  }
  .quotes::-webkit-scrollbar { display: none; }
  .quote { width: 85vw; max-width: 360px; margin: 0 8px; scroll-snap-align: center; }
  .quotes__hint {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 14px; font-size: 13px; color: #9AA0BA;
  }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .quotes { overflow-x: auto; scroll-snap-type: x mandatory; }
  .quote { scroll-snap-align: start; }
}
.quote__head { display: flex; align-items: center; gap: 14px; }
.quote__avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: #C9DBF6;
}
.quote__avatar svg { display: block; fill: #4A7BD0; }
.quote__who { min-width: 0; flex: 1; }
.quote__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.quote__meta { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.quote__source { flex: none; align-self: flex-start; }
.quote__stars { display: flex; align-items: center; gap: 2px; margin-top: 16px; color: #F4B400; }
.quote__verified { margin-left: 8px; }
/* Non-Google testimonials get the brand quote mark in the logo slot */
.quote__source--brand {
  width: 22px; height: 22px; text-align: center;
  font-family: var(--font-head); font-size: 40px; line-height: .9; color: var(--teal);
}
.quote blockquote {
  margin: 12px 0 0; color: var(--ink); font-size: 16px; line-height: 1.65;
  min-height: calc(1.65em * 5);
}
.quote blockquote p + p { margin-top: 12px; }
/* Collapsed: clamp to five lines; "Read more" appears only if the text overflows */
.quote:not(.is-expanded) blockquote {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden;
}
.quote:not(.is-expanded) blockquote p { display: inline; }
.quote:not(.is-expanded) blockquote p + p::before { content: " "; }
.quote__toggle {
  align-self: flex-start; margin-top: 10px; padding: 0;
  font: inherit; font-size: 15px; color: var(--muted); cursor: pointer;
  background: none; border: 0;
}
.quote__toggle:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Closing CTA ---------- */
.cta {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 48px 28px;
  background: var(--navy); border-color: var(--navy);
  display: grid; gap: 32px;
}
.cta h2 { font-size: clamp(38px, 5vw, 64px); max-width: 660px; color: var(--bg); }
.cta p { color: #D5D9E8; margin-top: 16px; max-width: 560px; font-size: 18px; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta__note { font-size: 14px; color: #B9C0D9; }
.cta .btn--primary {
  background: var(--pink); color: var(--navy); border-color: var(--pink);
  font-size: 24px; padding: 20px 48px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.cta .btn--primary:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
@media (max-width: 519px) { .cta .btn--primary { width: 100%; } }
@media (min-width: 900px) {
  .cta { grid-template-columns: 1fr auto; align-items: center; padding: 64px; gap: 64px; }
  .cta__actions { align-items: center; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.footer__grid { display: grid; gap: 40px; }
.footer__about p { color: var(--muted); margin-top: 16px; max-width: 520px; }
.footer__about .footer__legal { font-size: 13px; color: var(--muted); margin-top: 20px; line-height: 1.7; max-width: none; }
.footer h4 {
  font-family: var(--font-head); font-size: 18px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); text-decoration: none; }
.footer ul a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer__bottom a { color: var(--muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--ink); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
/* Desktop: link columns hug their content on the right, the intro takes the rest */
@media (min-width: 1100px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) repeat(3, max-content); column-gap: clamp(48px, 4vw, 72px); }
}

/* ---------- Homepage hero: centred, rotating word ---------- */
.hero--centred { padding: 56px 0 72px; text-align: center; overflow: hidden; } /* hides words while they slide in and out */
.hero__center { display: flex; flex-direction: column; align-items: center; }
.hero--centred h1 {
  white-space: normal; line-height: 0.92;
  /* Widest line, "ADVENTURE TOURS.", is ~7em in Anton; fit it to the column on phones */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 7.3), 100px);
}
.hero__line { display: block; }
.hero--centred .hero__sub { margin-left: auto; margin-right: auto; max-width: 720px; }
.hero--centred .hero__actions { justify-content: center; }
@media (min-width: 960px) {
  .hero--centred { padding: 88px 0 104px; }
  .hero--centred h1 { font-size: clamp(80px, 8.2vw, 124px); }
}

/* Rotating last word, outlined like the old highlight phrase.
   Timing is tuned for 7 words: 2.6s each, 18.2s per loop. For a different count,
   set the loop to 2.6s x words, add an nth-child delay per word, and scale the keyframe percentages. */
/* Words swipe in from the right and out to the left. Only the sides are clipped,
   so descenders like the tail of the Q can hang below the line */
.rotor { display: grid; justify-items: center; clip-path: inset(-.3em 0); padding: 0 .08em; }
.rotor > span {
  grid-area: 1 / 1;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  opacity: 0; transform: translateX(60%);
  animation: rotor 18.2s ease infinite;
}
.rotor > span:nth-child(2) { animation-delay: 2.6s; }
.rotor > span:nth-child(3) { animation-delay: 5.2s; }
.rotor > span:nth-child(4) { animation-delay: 7.8s; }
.rotor > span:nth-child(5) { animation-delay: 10.4s; }
.rotor > span:nth-child(6) { animation-delay: 13s; }
.rotor > span:nth-child(7) { animation-delay: 15.6s; }
@keyframes rotor {
  0%   { opacity: 0; transform: translateX(60%); }
  2.2% { opacity: 1; transform: none; }
  12%  { opacity: 1; transform: none; }
  14.3% { opacity: 0; transform: translateX(-60%); }
  100% { opacity: 0; transform: translateX(-60%); }
}
/* Phones: bigger title. "MARKETING FOR" (~5.9em) sets the size; long rotating words wrap
   onto a second line and "Accommodation." becomes "Stays." */
.rotor__short { display: none; }
@media (max-width: 767px) {
  .hero--centred h1 { font-size: min(calc((100vw - 2 * var(--gutter)) / 5.95), 100px); }
  .rotor { align-items: center; }
  .rotor > span { max-width: calc(100vw - 2 * var(--gutter)); }
  .rotor__full { display: none; }
  .rotor__short { display: inline; }
}
@supports not (-webkit-text-stroke: 2px black) { .rotor > span { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) {
  .rotor > span { animation: none; }
  .rotor > span:first-child { opacity: 1; transform: none; }
}


/* Visually hidden text for screen readers */
.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;
}

/* ---------- Credentials strip under the hero ---------- */
.certs-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.certs-strip .certs { border-top: 0; padding: 22px 0; }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: 20px; }
.case {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(35,57,114,.06), 0 8px 24px rgba(35,57,114,.07);
}
.case__img { margin: 0; aspect-ratio: 1200 / 600; overflow: hidden; background: var(--card); }
.case__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.case__meta { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-size: 30px; margin-top: 8px; }
.case__outcome { color: var(--muted); margin-top: 14px; flex: 1; }
.case__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
}
.case__tag {
  padding: 5px 12px; border-radius: 999px; background: var(--bg);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.case .text-link { margin-top: 0; }
@media (min-width: 768px) { .cases { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Reach and stats ---------- */
.reach { padding-bottom: 0; }
.reach .section-head { margin-bottom: 40px; }

/* =====================================================================
   Inner pages. Everything below reuses the homepage tokens and type.
   ===================================================================== */

/* Current page in the menus */
.nav a[aria-current="page"] { border-bottom-color: var(--navy); }
/* Mobile menu: current page gets a pink pill, navy edge and a "You're here" tag */
.mobile-nav a[aria-current="page"],
.mobile-nav .mobile-nav__sub a[aria-current="page"] {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 0; padding: 12px 14px; border-bottom: 0; border-left: 4px solid var(--navy);
  border-radius: 8px; background: var(--pink); color: var(--ink); font-weight: 700;
}
.mobile-nav a[aria-current="page"]::after {
  content: "You're here"; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy);
}

/* ---------- Page hero ---------- */
.page-hero { padding: 40px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 8vw, 64px); line-height: 1; }
.page-hero h1 em { font-style: normal; color: var(--ink); white-space: nowrap; }
/* Inner-page heroes are a single centred column */
.page-hero__inner { text-align: center; }
.page-hero .hero__sub { max-width: 680px; margin-left: auto; margin-right: auto; }
.page-hero .hero__actions { justify-content: center; }
@media (min-width: 960px) {
  .page-hero { padding: 64px 0 112px; }
  /* One line on desktop, sized to fit the longest heading */
  .page-hero h1 { font-size: clamp(48px, 5.4vw, 76px); white-space: nowrap; }
}

/* Star rating above inner-page headings */
.hero-rating {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-size: 16px; color: var(--muted);
}
.hero-rating strong { color: var(--ink); font-weight: 700; }
.hero-rating__stars { display: flex; gap: 2px; color: #F4B400; }

/* Section with a subtle top rule, for stacking sections on inner pages */
.section--rule { border-top: 1px solid var(--line); }

/* ---------- Card grids (same card as the homepage services) ---------- */
@media (min-width: 1080px) {
  .services--3 { grid-template-columns: repeat(3, 1fr); }
  .services--2 { grid-template-columns: 1fr 1fr; }
}
.service--static:hover { border-color: transparent; }
.service--static:hover::before { transform: scaleX(0); }
.service h3.service__title--sm { font-size: 24px; margin-top: 20px; }
.service__icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: var(--navy);
}
.service:nth-child(3n+2) .service__icon { background: var(--pink); }
.service:nth-child(3n) .service__icon { background: var(--navy); color: var(--bg); }

/* ---------- Two column: copy beside a list, photo or card ---------- */
.split { display: grid; gap: 40px; align-items: start; }
.split--center { align-items: center; }
.split__copy p:not(.eyebrow) { color: var(--muted); margin-top: 20px; max-width: 560px; }
.split__copy .h2 + p { margin-top: 28px; }
.split__copy .text-link, .split__copy .btn { margin-top: 28px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }

.photo {
  margin: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.photo img { width: 100%; height: auto; }
.photo-note { margin-top: 12px; font-size: 13px; color: #9AA0BA; text-align: center; }

/* Name tags above a photo, with hand-drawn arrows pointing at each person.
   Arrow paths use the image's own pixel coordinates (the svg viewBox). */
.tagged { position: relative; padding-top: 52px; }
.tagged__arrows {
  position: absolute; left: 0; top: 52px; width: 100%; height: calc(100% - 52px);
  overflow: visible; pointer-events: none;
  fill: none; stroke: var(--navy); stroke-linecap: round; color: var(--navy);
}
/* Light halo so the arrows read over busy photo backgrounds */
.tagged--snow .tagged__arrows { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
.tagged__tag {
  position: absolute; top: 4px; transform: translateX(-50%) rotate(-5deg);
  padding: 6px 14px; border: 2px solid var(--navy); border-radius: 8px;
  background: var(--pink); color: var(--navy);
  font-family: var(--font-head); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1;
  box-shadow: 3px 3px 0 var(--navy);
}
.tagged__tag--b { transform: translateX(-50%) rotate(4deg); }
.tagged--suit .tagged__tag--a { left: 18%; }
.tagged--suit .tagged__tag--b { left: 82%; }
.tagged--snow .tagged__tag--a { left: 14%; }
.tagged--snow .tagged__tag--b { left: 82%; }

/* ---------- Tick list ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.5 12.3l3 3 6-6.3' fill='none' stroke='%23233972' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.ticks--cross li::before {
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.5 8.5l7 7M15.5 8.5l-7 7' fill='none' stroke='%23233972' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.ticks strong { font-weight: 700; }
.ticks span { color: var(--muted); }

/* Ice-blue panel, same surface as the cards */
.panel {
  background: var(--surface); border-radius: 14px; padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(35,57,114,.06), 0 8px 24px rgba(35,57,114,.07);
}
.panel h3 { font-size: 28px; margin-bottom: 20px; }
@media (min-width: 768px) { .panel { padding: 40px; } }

/* Contact details list inside a panel */
.contact-list { margin: 0; }
.contact-list > div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list > div:first-child { border-top: 0; padding-top: 0; }
.contact-list dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 4px 0 0; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Google Calendar booking embed. Google's page is white and can't be restyled,
   so it sits in a white card with the ice-blue panel frame around it.
   The iframe can't auto-size and Google's time list runs long, so the frame is sized to the
   screen: the whole card stays in view and only the time slots scroll inside it. */
.booking {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 8px solid var(--surface);
  box-shadow: 0 1px 2px rgba(35,57,114,.06), 0 8px 24px rgba(35,57,114,.07);
}
.booking__frame { display: none; width: 100%; height: 560px; height: clamp(480px, calc(100svh - 140px), 720px); border: 0; }
/* Phones get a button to Google's full-screen booking page instead of the frame */
.booking__mobile { padding: 32px 24px; text-align: center; }
.booking__mobile h3 { font-size: 28px; }
.booking__mobile p { margin: 12px auto 24px; max-width: 360px; color: var(--muted); }
.booking__mobile .btn { width: 100%; max-width: 320px; }
@media (min-width: 768px) {
  .booking { border-width: 12px; }
  .booking__frame { display: block; }
  .booking__mobile { display: none; }
}
@media (max-width: 767px) { .booking__note { display: none; } }
.booking__intl {
  margin: 24px auto 0; max-width: 720px; padding: 14px 20px;
  background: var(--pink); border-radius: var(--radius);
  font-size: 16px; color: var(--ink); text-align: center;
}
.booking__intl a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.booking__note { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.booking__note a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Numbered process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 40px; line-height: 1; color: var(--navy);
}
.step h3 { font-size: 26px; }
.step p { grid-column: 2; color: var(--muted); margin-top: 8px; max-width: 640px; } /* sit under the title, not in the number column */
@media (min-width: 900px) {
  .step { grid-template-columns: 120px 1fr 1.4fr; gap: 32px; align-items: baseline; padding: 36px 0; }
  .step::before { font-size: 56px; }
  .step p { grid-column: auto; margin-top: 0; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-weight: 600; font-size: 18px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 500;
  border: 2px solid var(--navy); transition: transform .2s ease, background-color .15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--pink); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; max-width: 760px; }
.faq details p + p { margin-top: -8px; }

/* ---------- Long-form text ---------- */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 56px; }
.prose h3 { font-size: 24px; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Centred text page (privacy policy) */
.prose--center { margin: 0 auto; text-align: center; }
.prose--center ul { list-style: none; padding-left: 0; }

/* Line of text or links placed directly after a card grid */
.services + .lede { margin-top: 40px; }

/* Caption under a photo */
.photo figcaption {
  padding: 12px 16px; font-size: 14px; color: var(--muted);
  background: var(--surface); border-top: 1px solid var(--line);
}
