/* ============================================================
   Footing Consulting - stylesheet
   Sections mirror the order of index.html.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0b1a29;
  --navy-800: #0f2438;
  --navy-700: #17324a;
  --navy-600: #244764;
  --slate-500: #55677a;
  --slate-400: #7b8b9c;
  --line: #dde3ea;

  --accent: #e08b3e;
  --accent-dark: #c4732b;
  --accent-soft: #fdf3e8;

  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --text: #16232f;
  --text-muted: #55677a;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 41, .06), 0 2px 8px rgba(11, 26, 41, .05);
  --shadow-md: 0 4px 12px rgba(11, 26, 41, .08), 0 12px 32px rgba(11, 26, 41, .07);

  --font-head: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 72px;
  --maxw: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.4rem); color: var(--navy-800); }
.section-lede { margin-top: 16px; color: var(--text-muted); font-size: 1.06rem; }

.nowrap { white-space: nowrap; }

.eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .97rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-600); }
.btn-outline:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ============================================================
   1. Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-800);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.wordmark-mark { width: 30px; height: 30px; flex: none; }
.wordmark-light { font-weight: 500; color: var(--slate-500); }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--slate-500);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-list a:hover { color: var(--navy-800); }
.nav-list a.is-active { color: var(--navy-800); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   2. Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 78% -12%, rgba(224, 139, 62, .22), transparent 62%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 108px 0 116px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-title {
  margin-top: 18px;
  font-size: clamp(2.3rem, 5.6vw, 3.75rem);
  font-weight: 700;
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, .82);
  max-width: 620px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: .92rem;
  color: rgba(255, 255, 255, .66);
}
.pin-icon {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   3. What We Do
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature h3 { font-size: 1.14rem; margin-top: 18px; color: var(--navy-800); }
.feature p { margin-top: 10px; color: var(--text-muted); font-size: .98rem; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(224, 139, 62, .28);
}
.feature-icon svg {
  width: 25px; height: 25px;
  fill: none; stroke: var(--accent-dark); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   4. Service Tiers
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}
.tier-featured {
  border-color: rgba(224, 139, 62, .55);
  box-shadow: var(--shadow-md);
}
.tier-upcoming { background: #fbfcfd; }

.tier-flag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.tier-flag-muted { background: #eef1f4; color: var(--slate-500); }

.tier-name { font-size: 1.5rem; color: var(--navy-800); }
.tier-for { margin-top: 10px; color: var(--text-muted); font-size: .96rem; }

.tier-list { margin: 24px 0 30px; display: grid; gap: 11px; }
.tier-list li {
  position: relative;
  padding-left: 28px;
  font-size: .96rem;
  color: var(--text);
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.tier-list li strong { font-weight: 600; }

.tier-cta { margin-top: auto; width: 100%; }

/* ============================================================
   5. Why Footing Consulting
   ============================================================ */
.why {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(224, 139, 62, .16), transparent 66%),
    var(--navy-800);
  color: #fff;
  text-align: center;
}
.why-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
}
.why-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 20px auto 0;
  background: var(--accent);
  border-radius: 2px;
}
.why-copy {
  margin-top: 28px;
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, .88);
}
.why-signature {
  margin-top: 30px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
}
.why-signature span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .9rem;
  color: var(--accent);
}

/* ============================================================
   6. How It Works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step { position: relative; padding-top: 8px; }
/* connector line between steps on desktop */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 62px;
  right: -28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.step h3 { margin-top: 18px; font-size: 1.08rem; color: var(--navy-800); }
.step p { margin-top: 8px; color: var(--text-muted); font-size: .96rem; }

/* ============================================================
   7. Intake / Contact
   ============================================================ */
/* Founder intro */
.contact-intro {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact-photo {
  flex: none;
  width: 150px;
  height: 190px;
  border-radius: var(--radius);
  object-fit: cover;
  /* Source is a full-length portrait; bias upward to frame the face. */
  object-position: 50% 15%;
}
.contact-intro-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--navy-800);
}
.contact-intro-role {
  margin-top: 2px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--accent-dark);
}
.contact-intro-copy {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 52ch;
}
.contact-intro-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 16px;
}
.contact-intro-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .96rem;
  font-weight: 500;
  color: var(--navy-800);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.contact-intro-contact a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.contact-intro-contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stacked, not side by side: the Google Calendar widget needs the full container
   width to lay out as a month grid + time slots. See .contact-col-booking. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.contact-col-form {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
}
.contact-col {
  min-width: 0; /* let the grid item shrink below its content's min-content width */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.contact-col-title { font-size: 1.2rem; color: var(--navy-800); }
.contact-col-sub { margin-top: 8px; margin-bottom: 22px; color: var(--text-muted); font-size: .95rem; }

.booking-embed {
  display: block;
  width: 100%;
  height: 660px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.booking-fallback {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--text-muted);
}
.booking-fallback a { color: var(--accent-dark); }

/* The form POSTs into this so the page doesn't navigate to Google's confirmation
   screen. `hidden` alone isn't enough - a named iframe still reserves layout space. */
#hiddenFormTarget { display: none; }

/* Form */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 16px; }
.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 7px;
}
.req { color: var(--accent-dark); }
.optional { font-weight: 400; color: var(--slate-400); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--text);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 139, 62, .18);
}
.field input.has-error,
.field select.has-error,
.field textarea.has-error { border-color: #c0392b; }
.field-error { margin-top: 6px; font-size: .84rem; color: #c0392b; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.turnstile-widget { margin: 4px 0 18px; min-height: 65px; }

.form-submit { width: 100%; margin-top: 8px; }
.form-submit[disabled] { opacity: .65; cursor: progress; }

.form-status { margin-top: 14px; font-size: .94rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: #1d7a4c; font-weight: 500; }
.form-status.is-error { color: #c0392b; }

.form-fineprint { margin-top: 14px; font-size: .84rem; color: var(--slate-400); }

/* ============================================================
   8. Footer
   ============================================================ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 28px;
  font-size: .95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  color: #fff;
}
.footer-tag { margin-top: 6px; color: rgba(255, 255, 255, .58); }
.footer-meta { text-align: right; }
.footer-meta a { color: var(--accent); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-legal { margin-top: 22px; font-size: .85rem; color: rgba(255, 255, 255, .45); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .tier-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block;
    padding: 15px 0;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a.is-active { border-bottom-color: var(--line); color: var(--accent-dark); }
  .nav-cta { margin-top: 18px; width: 100%; padding: 14px 20px; font-size: .97rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 76px 0 84px; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-intro { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 20px; }
  .contact-photo { width: 128px; height: 160px; }
  .contact-col { padding: 24px 20px; }
  /* Narrow viewports force the widget into one column, which is taller - give it
     more room so visitors scroll the page rather than scrolling inside the iframe. */
  .booking-embed { height: 780px; }
  .tier { padding: 28px 24px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
