/* ============================================================
   Ascora SEO — design tokens
   ============================================================ */
:root {
  --black: #0C0D0F;
  --grey-900: #1C1E21;
  --grey-800: #26282C;
  --offwhite: #F0F1F3;
  --bg-light: #F2F3F5;
  --ink: #16171A;
  --ink-soft: #6B6F76;
  --accent: #22C55E;
  --line-on-dark: rgba(240, 241, 243, 0.14);
  --line-on-light: rgba(22, 23, 26, 0.12);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

html, body { overflow-x: hidden; }

h1, h2, h3, p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul { list-style: none; margin: 0; padding: 0; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* Default focus ring assumes a light background (true for every
   focusable element except those inside the dark header/hero/
   case-studies/contact/footer zones, which override it below) —
   ink-on-light and accent-on-dark each clear >7:1, verified. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.site-header :focus-visible,
.hero :focus-visible,
.case-studies :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--accent);
}

.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: -3rem;
  background: var(--accent);
  color: var(--black);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  z-index: 200;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Accent green clears 7:1+ against every dark section background,
   so eyebrows can use it directly there. It fails against the light
   sections (~2:1), so those still fall back to ink. */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.services .eyebrow,
.process .eyebrow,
.about .eyebrow,
.faq .eyebrow {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--accent {
  background: var(--accent);
  color: var(--black);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(34, 197, 94, 0.35); }
.btn--lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}
.nav-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--line-on-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  color: var(--offwhite);
}

.logo__img { display: block; }

.nav-toggle {
  background: none;
  border: none;
  color: var(--offwhite);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin-right: -0.5rem;
}

.primary-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--black);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.primary-nav.is-open { transform: translateX(0); }

.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--offwhite);
}

.primary-nav a:hover { color: var(--accent); }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    inset: auto;
    transform: none;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--space-3);
  }

  .primary-nav ul {
    flex-direction: row;
    gap: 1.25rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--grey-900);
  color: var(--offwhite);
  padding-block: var(--space-5) var(--space-6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
}

.hero__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero__inner > * { min-width: 0; }

.hero__content h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(240, 241, 243, 0.82);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}

.hero__actions { margin-bottom: var(--space-3); }

.hero__trust {
  font-size: 0.9rem;
  color: rgba(240, 241, 243, 0.6);
}

.hero__graphic {
  justify-self: center;
  width: min(100%, 320px);
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero__graphic { width: min(100%, 380px); justify-self: end; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section { padding-block: var(--space-6); }

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.section-head__sub {
  margin-top: var(--space-2);
  color: var(--ink-soft);
}

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--bg-light); }

.services__grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.service-card__num {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--line-on-light);
}

.service-card__icon { margin-bottom: var(--space-3); }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.service-card p { color: var(--ink-soft); }

/* Accent green fails contrast against white/light-grey (~2:1), so
   accents on light sections use ink instead — the accent stays
   reserved for dark-section elements and buttons. */
.callout {
  margin-top: var(--space-4);
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
}

.callout p { color: var(--ink-soft); }
.callout strong { color: var(--ink); }

/* ============================================================
   Process (How It Works)
   ============================================================ */
.process { background: #fff; }

.process__steps {
  display: grid;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px) {
  .process__steps { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  position: relative;
  padding-top: var(--space-3);
  border-top: 3px solid var(--ink);
}

.process-step__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--line-on-light);
  margin-bottom: var(--space-1);
}

.process-step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: var(--space-1);
}

.process-step p { color: var(--ink-soft); }

/* ============================================================
   Case studies
   ============================================================ */
.case-studies { background: var(--grey-900); color: var(--offwhite); }

.section-head--light h2 { color: var(--offwhite); }
.section-head--light .section-head__sub { color: rgba(240, 241, 243, 0.65); }

.case-studies__grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .case-studies__grid { grid-template-columns: repeat(3, 1fr); }
}

.case-card {
  background: var(--grey-800);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
}

.case-card__trade {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(240, 241, 243, 0.6);
  margin-bottom: var(--space-2);
}

.case-card__stat {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.case-card__soon {
  color: rgba(240, 241, 243, 0.55);
  font-size: 0.95rem;
}

/* ============================================================
   About
   ============================================================ */
.about { background: #fff; }

.about__inner { max-width: 72ch; }

.about h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.about p {
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}
.about p:last-child { margin-bottom: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg-light); }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 72ch;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "+";
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--ink-soft);
  margin-top: var(--space-2);
}

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--grey-900); color: var(--offwhite); }

.contact__inner {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.contact__intro h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  line-height: 1.15;
}

.contact__intro p { color: rgba(240, 241, 243, 0.78); margin-bottom: var(--space-3); }

.contact__address {
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}
.contact__address a:hover { color: var(--accent); }

.contact__area {
  font-size: 0.9rem;
  color: rgba(240, 241, 243, 0.55);
}

.contact__form {
  background: var(--grey-800);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-row { display: flex; flex-direction: column; gap: 0.4rem; }

.form-row--split {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 560px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(240, 241, 243, 0.85);
}

input, textarea, select {
  background: var(--grey-900);
  border: 1px solid var(--line-on-dark);
  color: var(--offwhite);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

input::placeholder, textarea::placeholder { color: rgba(240, 241, 243, 0.4); }

.form-submit { margin-top: var(--space-1); }

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status[data-state="success"] { color: var(--accent); }
.form-status[data-state="error"] { color: #FF8A8A; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--black);
  color: rgba(240, 241, 243, 0.7);
  border-top: 1px solid var(--line-on-dark);
  padding-block: var(--space-4);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.9rem;
}
.site-footer nav a:hover { color: var(--accent); }

.site-footer__meta, .site-footer__copy {
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}
