/* TouchTree — site styles
   Brand: TouchTree logo palette + live-site navy, teal and red; Archivo (as mockup). */

:root {
  /* Brand palette (guidelines) */
  --tt-green: #25bc89;
  --tt-teal: #43aaa8;
  --tt-cyan: #258baf;
  --tt-blue: #256dbc;
  --tt-ink: #222222;

  /* Site colours (live touchtree.tech) */
  --navy: #002841;
  --navy-2: #03375c;
  --navy-deep: #001b2e;
  --navy-line: #16384f;
  --teal-light: #5bb8b2;
  --teal-dark: #1d7571;
  --red: #e55f5a;
  --red-hover: #d14a45;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f4f8f8;
  --mist: #f2f5f5;
  --line: #dce5e7;
  --text: #002841;
  --text-muted: #3a5463;
  --text-on-dark: #bcd2d8;
  --text-on-dark-muted: #9fbcc6;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 5vw, 80px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-light); text-decoration: none; }
a:hover { color: #7fd0cc; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 115%;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -1.5px; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -1px; }
h3 { font-size: 22px; line-height: 1.25; font-stretch: 110%; letter-spacing: 0; }

p { margin: 0; }

:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: 6px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--light { background: var(--white); color: var(--text); }
.section--mist { background: var(--mist); color: var(--text); }
.section--navy { background: var(--navy); }
.section--split {
  background: linear-gradient(110deg, var(--navy) 0%, var(--navy) 62%, var(--navy-2) 62%, var(--navy-2) 100%);
}

.eyebrow {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal-light);
}
.section--light .eyebrow,
.section--mist .eyebrow { color: var(--teal-dark); }

.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-on-dark); }
.section--light .lead,
.section--mist .lead { color: var(--text-muted); }

/* Swoosh underline under a key word */
.swoosh { position: relative; display: inline-block; white-space: nowrap; }
.swoosh::after {
  content: "";
  position: absolute; left: -4px; right: 0; bottom: -0.28em;
  height: 0.34em;
  background: url("../img/swoosh.svg") no-repeat center / 100% 100%;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 6px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); color: var(--white); }
.btn--outline { border-color: var(--tt-teal); color: var(--off-white); background: transparent; }
.btn--outline:hover { background: rgba(67, 170, 168, .14); color: var(--white); }
.btn--teal { background: var(--tt-teal); color: var(--navy); }
.btn--teal:hover { background: var(--teal-light); color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn svg { flex-shrink: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 40, 65, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #0e3a57;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px;
}
.site-logo img { width: 176px; height: auto; }
.main-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--off-white); font-size: 16px; font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal-light); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .login { color: var(--off-white); font-size: 15px; font-weight: 500; white-space: nowrap; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1320px) { .main-nav ul { gap: 24px; } .header-actions .login { display: none; } }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid #0e3a57; border-radius: 8px; background: transparent; color: var(--off-white);
  cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .login { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); border-bottom: 1px solid #0e3a57;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; }
  .main-nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid #0e3a57; }
}
@media (max-width: 640px) {
  .site-logo img { width: 140px; }
  .header-actions .btn { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy) url("../img/hero-banner.jpg") no-repeat right center / cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(0, 40, 65, .94) 42%, rgba(0, 40, 65, .55) 70%, rgba(0, 40, 65, .25) 100%);
}
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(180deg, rgba(0, 40, 65, .9) 0%, rgba(0, 40, 65, .94) 100%); }
}
.hero .container { position: relative; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }
.hero-copy { max-width: 660px; }
.hero h1 { color: var(--off-white); }
.hero .lead { margin-top: 40px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.check-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-on-dark-muted); }
.check-list li { display: inline-flex; align-items: center; gap: 8px; }

/* Statement band */
.statement { position: relative; overflow: hidden; isolation: isolate; background: var(--tt-teal); color: var(--navy); padding: clamp(72px, 8vw, 112px) 0; }
/* Photo blended into the teal: greyscale, multiplied so the band stays green with the photo showing through */
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/photos/cafe-reader.jpg") no-repeat 70% 40% / cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .42; }
.statement::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(67, 170, 168, .5) 0%, rgba(67, 170, 168, .3) 50%, rgba(67, 170, 168, .5) 100%); }
.statement .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.statement h2 { font-size: clamp(30px, 3.2vw, 40px); }
.statement .strong { font-size: clamp(20px, 2vw, 24px); font-weight: 700; line-height: 1.35; margin-bottom: 12px; }
@media (max-width: 860px) { .statement .container { grid-template-columns: 1fr; } }

/* Two-column feature rows */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.feature-row--reverse > :first-child { order: 2; }
.feature-row .lead { margin-top: 24px; }
.feature-row h2 + .lead { margin-top: 28px; }
.feature-media img { width: 100%; }
@media (max-width: 960px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse > :first-child { order: 0; }
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.pill-list li { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--tt-teal); font-size: 16px; }
.section--light .pill-list li, .section--mist .pill-list li { border-color: var(--line); background: var(--white); color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }

.feature-copy .btn { margin-top: 36px; }

.line-list { margin: 28px 0 0; padding: 0; list-style: none; }
.line-list li { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid #d3dee0; font-size: 17px; font-weight: 600; }
.line-list li:last-child { border-bottom: 1px solid #d3dee0; }
.line-list svg { flex-shrink: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; margin-top: 56px; align-items: stretch; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step--dark { background: var(--navy); border-color: var(--navy); color: var(--off-white); }
.step-num { font-size: 15px; font-weight: 700; color: var(--teal-dark); }
.step--dark .step-num { color: var(--teal-light); }
.step p:not(.step-num) { color: var(--text-muted); font-size: 17px; }
.step--dark p:not(.step-num) { color: var(--text-on-dark); }
.step-arrow { display: flex; align-items: center; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow { justify-content: center; transform: rotate(90deg); }
}

/* Benefit grid */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.benefit { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--mist); border-radius: var(--radius); }
.benefit h3 { margin-top: 6px; }
.benefit p { font-size: 17px; color: var(--text-muted); }
.benefit--wide { grid-column: span 2; background: var(--navy); color: var(--off-white); }
.benefit--wide p { color: var(--text-on-dark); }
@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .benefits { grid-template-columns: 1fr; } .benefit--wide { grid-column: auto; } }

/* Publisher showcase */
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.showcase-head .lead { max-width: 560px; }
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.showcase figure { margin: 0; background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.showcase .shot { background: var(--mist); padding: 24px; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.showcase .shot img { max-height: 100%; width: auto; object-fit: contain; }
.showcase figcaption { padding: 20px 24px 24px; }
.showcase figcaption strong { display: block; font-size: 20px; font-stretch: 110%; color: var(--navy); }
.showcase figcaption span { font-size: 16px; color: var(--text-muted); }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; } }

/* Multimedia chips */
.chip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.chip-grid div { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; background: var(--white); border-radius: 10px; font-size: 16px; font-weight: 600; }
@media (max-width: 520px) { .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; padding: 36px; background: var(--white); border-radius: 14px; border-top: 5px solid var(--tt-teal); }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.quote figcaption { margin-top: auto; padding-top: 12px; font-size: 15px; color: var(--navy); }
.quote figcaption span { color: var(--text-muted); }
@media (max-width: 1000px) { .quotes { grid-template-columns: 1fr; } }

/* CTA band */
.cta { text-align: center; }
.cta .lead { margin: 20px auto 0; max-width: 640px; }
.cta .btn { margin-top: 36px; }

/* Footer */
.site-footer { background: var(--navy-deep); padding: 64px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.footer-brand img { width: 156px; }
.footer-brand p { color: var(--text-on-dark); font-size: 16px; }
.footer-nav { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-nav h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #7fa3b3; margin-bottom: 14px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: var(--off-white); font-size: 16px; }
.footer-nav a:hover { color: var(--teal-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: 14px; color: #7fa3b3; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: #7fa3b3; }

/* "How it reaches readers" dialog */
.reach-dialog {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: none; border-radius: 16px;
  background: var(--navy); color: var(--off-white);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
.reach-dialog::backdrop { background: rgba(0, 20, 34, .72); }
.reach-dialog .inner { padding: clamp(28px, 4vw, 48px); }
.reach-dialog .close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--navy-2); color: var(--off-white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.reach-dialog .eyebrow { padding-right: 56px; }
.reach-dialog h2 { font-size: clamp(26px, 3vw, 36px); max-width: 640px; margin-top: 4px; }
.reach-dialog .lead { margin-top: 16px; }
.reach-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.reach-list li { display: flex; gap: 12px; font-size: 16px; color: var(--text-on-dark); }
.reach-list strong { color: var(--off-white); }
.reach-list svg { flex-shrink: 0; margin-top: 3px; }
.reach-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; font-size: 15px; color: var(--text-on-dark-muted); }
@media (max-width: 700px) { .reach-list { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Client logo scroll */
.clients { background: var(--navy); padding: 56px 0; overflow: hidden; }
.clients-title { text-align: center; margin-bottom: 28px; font-size: 14px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal-dark); }
.logo-marquee {
  display: flex; width: max-content;
  animation: marquee 45s linear infinite;
}
.clients:hover .logo-marquee,
.clients:focus-within .logo-marquee { animation-play-state: paused; }
.logo-track { display: flex; align-items: center; gap: 64px; padding-right: 64px; margin: 0; list-style: none; }
.logo-track li { flex-shrink: 0; width: 180px; height: 72px; display: flex; align-items: center; justify-content: center; }
.logo-track img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { animation: none; width: auto; }
  .logo-track { flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); gap: 32px 48px; }
  .logo-track[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) {
  .logo-track { gap: 40px; padding-right: 40px; }
  .logo-track li { width: 120px; height: 52px; }
}

/* Publication types under the hero */
.formats { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(91, 184, 178, .25); max-width: 640px; }
.formats-label { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-on-dark-muted); }
.formats-list { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.formats-list li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--off-white); }
.formats-list svg { flex-shrink: 0; }
@media (max-width: 520px) { .formats-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
