/* ==========================================================================
   Gologio — Strategic Communications for Maximum Impact
   v2: white canvas, navy copy (accessible), coral as pure accent,
   the logo's "whoosh" strokes as the recurring signature motif.
   Clean sans (Inter) body + playful geometric display (Bricolage Grotesque).
   ========================================================================== */

:root {
  /* Color */
  --navy: #003D62;        /* primary text, headings — accessible on white */
  --navy-soft: #3D5C72;   /* secondary copy, still AA-accessible on white */
  --coral: #D2605C;       /* accent only: buttons, icons, whoosh strokes — never body copy text */
  --coral-deep: #A9463F;  /* coral hover state */
  --white: #FFFFFF;
  --mist: #F5F8FA;        /* faint navy-tinted panel background, not gray */
  --hairline: rgba(0, 61, 98, 0.10);

  /* Type */
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Scale */
  --step--1: clamp(0.85rem, 0.82rem + 0.1vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.5rem + 0.9vw, 2.3rem);
  --step-3: clamp(2.3rem, 1.9rem + 1.8vw, 3.4rem);
  --step-4: clamp(3rem, 2.2rem + 3.4vw, 5.2rem);

  --content-width: 1160px;
  --gutter: clamp(1.5rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@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;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  margin: 0 0 0.5em;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); font-weight: 600; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1.2em; color: var(--navy-soft); max-width: 62ch; }
a { color: inherit; }

em {
  font-style: normal;
  font-family: var(--font-display);
  color: var(--navy);
}

/* Eyebrow label — navy text, small coral whoosh mark (icon, not text color) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy-soft);
  margin-bottom: 1.2em;
}
.eyebrow .whoosh { flex-shrink: 0; }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 1em 1.7em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(0, 61, 98, 0.25);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--mist); }
.btn-invert {
  background: var(--white);
  color: var(--navy);
}
.btn-invert:hover { background: var(--coral); color: var(--white); transform: translateY(-1px); }
.btn-arrow { transition: transform 0.25s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--gutter);
  max-width: var(--content-width);
  margin: 0 auto;
}
.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.wordmark img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--navy-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}
.nav-cta { display: none; }
@media (min-width: 780px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 779px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: var(--step-1); }
  .nav-toggle { display: block; }
}

/* Footer */
.site-footer {
  padding: 4rem var(--gutter) 2.5rem;
  margin-top: 6rem;
  background: var(--mist);
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: var(--step-1);
  max-width: 32ch;
  color: var(--navy);
  margin: 0;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--navy-soft);
  text-align: right;
}
.footer-meta a { text-decoration: none; border-bottom: 1px solid rgba(0,61,98,0.25); }

/* Sections */
section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-mist { background: var(--mist); }

/* Hero */
.hero {
  padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(2rem, 6vw, 4rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { font-size: var(--step-1); color: var(--navy-soft); max-width: 46ch; }

/* Whoosh — signature motif, drawn from the logo's motion strokes */
.whoosh-burst {
  width: 100%;
  max-width: 340px;
  height: auto;
}
.whoosh-burst .stroke {
  stroke: var(--coral);
  stroke-width: 14;
  stroke-linecap: round;
  fill: none;
  opacity: 0;
  animation: whoosh-in 0.6s ease-out forwards;
}
.whoosh-burst .stroke:nth-child(1) { animation-delay: 0.05s; }
.whoosh-burst .stroke:nth-child(2) { animation-delay: 0.18s; }
.whoosh-burst .stroke:nth-child(3) { animation-delay: 0.31s; }
@keyframes whoosh-in {
  from { opacity: 0; transform: translate(14px, -10px); }
  to { opacity: 1; transform: translate(0, 0); }
}

/* small inline whoosh used next to eyebrows / list markers */
.whoosh-mark { display: inline-block; flex-shrink: 0; }
.whoosh-mark .stroke {
  stroke: var(--coral);
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* Cards / grids — open, airy, no boxed borders */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 780px) { .grid-2 { grid-template-columns: 1fr; } }

.card { padding: 0; }
.card .whoosh-mark { margin-bottom: 1.2rem; }

/* Divider */
.divider {
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(3rem, 7vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.78); margin-left: auto; margin-right: auto; }
.cta-band .eyebrow { color: rgba(255,255,255,0.7); justify-content: center; }

/* Timeline — airy, no border line, whoosh replaces the connecting rule */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 780px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step .whoosh-mark { margin-bottom: 0.9rem; }

/* Case study block — open, no border box */
.case {
  padding: clamp(2rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.case:last-child { border-bottom: none; }
.case-tag {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-soft);
}

/* Forms */
.form-field {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: var(--step-0);
  padding: 0.9em 1.1em;
  border: 1.5px solid rgba(0, 61, 98, 0.18);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: transparent;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: clamp(3rem, 6vw, 5rem); }
.small-cap { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-soft); }

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
