/* ==========================================================
   CLS Digital Marketing
   Palette: teal (brand, taken from the logo), ink (text), paper (light bg),
            signal yellow (single accent for calls to action)
   Type:    Bricolage Grotesque (headings) + DM Sans (body)
   ========================================================== */

:root {
  --brand: #007989;
  --brand-dark: #005c69;
  --ink: #14191b;
  --muted: #4d5a5e;
  --paper: #eef5f6;
  --white: #ffffff;
  --signal: #ffffff;
  --line: #d0dee0;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --max: 1120px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--signal); color: var(--ink);
  padding: .6rem 1rem; border-radius: var(--radius); z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}
.section :focus-visible,
.contact :focus-visible { outline-color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 700 1rem var(--font-body);
  text-decoration: none;
  background: var(--brand);
  color: var(--white);
  padding: .85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--brand-dark); }
.btn-small { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #ffffff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 58px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--brand); }
.site-nav a[aria-current="page"]:not(.btn) { font-weight: 700; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: .75rem; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 24px; height: 2px; background: var(--ink);
  content: ""; position: relative; transition: transform .2s, top .2s;
}
.bars::before { position: absolute; top: -7px; }
.bars::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--brand);
  color: var(--white);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  font-weight: 800;
  max-width: 15ch;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.14); }
.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 46ch;
  color: #d6eef1;
  margin-bottom: 2rem;
}

/* Before / during / after strip: draws in once on page load */
.momentum {
  list-style: none; padding: 0;
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.momentum::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 9px; height: 2px;
  background: var(--signal);
  transform-origin: left;
  animation: draw 1.4s .3s cubic-bezier(.6, 0, .2, 1) both;
}
.momentum li {
  position: relative; padding-top: 2.1rem;
  display: flex; flex-direction: column; gap: .15rem;
  animation: pop .5s both;
}
.momentum li:nth-child(1) { animation-delay: .4s; }
.momentum li:nth-child(2) { animation-delay: .95s; }
.momentum li:nth-child(3) { animation-delay: 1.5s; }
.momentum strong {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
}
.momentum li > span:last-child { color: #d6eef1; font-size: .98rem; }
.dot {
  position: absolute; top: 0; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px var(--brand);
}
.momentum li:nth-child(3) .dot { width: 28px; height: 28px; top: -4px; }

@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.prose p { max-width: 62ch; }
.prose .btn { margin-top: .5rem; }

.section-head { margin-bottom: 2.5rem; max-width: 56ch; }
.section-head p { margin: 1rem 0 0; color: var(--muted); }
.section-intro { margin-top: 1.25rem; color: var(--muted); max-width: 40ch; }

/* ---------- Services ---------- */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.services li {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.icon {
  width: 52px; height: 52px;
  fill: none; stroke: var(--brand); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.lead-line { font-weight: 700; margin-bottom: .5rem; }
.services p:last-child { margin-bottom: 0; color: var(--muted); max-width: 58ch; }

/* ---------- Numbers ---------- */
.numbers {
  background: var(--ink); color: var(--white);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.numbers-sub { color: #b4cdd1; margin: .75rem 0 3rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin: 0;
}
.stats > div { display: flex; flex-direction: column-reverse; }
.stats dd {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.stats dt { color: #d6eef1; margin-top: .75rem; font-size: 1.05rem; }

/* ---------- Why ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 1.15rem 0 1.15rem 3rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.01em; line-height: 1.25;
}
.ticks li:first-child { border-top: 2px solid var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.2rem;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--brand); color: var(--white);
  font-family: var(--font-display); font-weight: 800;
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { margin-bottom: .6rem; }
.contact-list a {
  font-weight: 700; text-decoration-thickness: 2px;
  text-underline-offset: 4px; text-decoration-color: var(--brand);
  overflow-wrap: anywhere;
}

.form { display: grid; gap: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  padding: .8rem .9rem;
  background: var(--white);
  border: 1.5px solid #8a9da1; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0, 121, 137, .35); border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 140px; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.form .btn { justify-self: start; }

.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #1b6b3a; }
.form-status.err { color: #b3261e; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d6eef1; padding: 3.5rem 0 1.5rem; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem;
}
.footer-brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  color: var(--white); margin-bottom: .75rem;
}
.site-footer p { margin-bottom: .35rem; }
.site-footer a { text-underline-offset: 3px; }

.newsletter > label:first-child {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; color: var(--white); margin-bottom: .75rem;
}
.news-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.news-row input {
  flex: 1 1 200px; font: inherit; padding: .8rem .9rem;
  border-radius: 999px; border: 1.5px solid #5f8087;
  background: transparent; color: var(--white);
}
.news-row input::placeholder { color: #9db8bd; }
.news-row input:focus-visible { outline-color: var(--signal); }
.check { display: flex; gap: .6rem; align-items: center; margin-top: .9rem; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--signal); }
.newsletter .form-status.ok { color: #8be0ad; }
.newsletter .form-status.err { color: #ff9c94; }

.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  padding-top: 1.5rem; border-top: 1px solid #2b3a3f; font-size: .92rem;
}
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 52px 1fr; }
  .services li > div { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
}

@media (max-width: 600px) {
  .logo img { height: 38px; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .momentum strong { font-size: 1.1rem; }
  .momentum li > span:last-child { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .momentum::before, .momentum li { animation: none; }
}

/* ---------- Inner-page banner ---------- */
.page-hero {
  background: var(--brand); color: var(--white);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.page-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; max-width: 18ch;
}
.page-hero p { margin: 1.25rem 0 0; max-width: 52ch; font-size: 1.2rem; color: #d6eef1; }

/* ---------- Home teasers ---------- */
.text-link {
  display: inline-block; font-weight: 700;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: var(--brand);
}
.section-head .text-link { margin-top: 1rem; }
.cta-band { background: var(--brand); color: var(--white); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.cta-inner h2 { max-width: 20ch; }

/* ---------- Footer brand + page links ---------- */
.footer-links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
