/* ===================================================================
   ACTIVATE LEADERS — Brand Stylesheet
   Version 2.0 · March 2026
   Updated per 2026 Business Website Design Guide
   =================================================================== */

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== SELF-HOSTED FONTS ===== */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-latin-ext-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-ext-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== TOKENS ===== */
:root {
  --forest: #2D4A3E;
  --clay: #C07850;
  --stone: #E8E0D5;
  --warm-white: #FAF7F2;
  --charcoal: #2C2C2C;
  --warm-grey: #8A8279;
  --clay-hover: #A8663F;
  --forest-light: rgba(45, 74, 62, 0.08);
  --font-brand: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --max-content: 1200px;
  --max-prose: 720px;
  --shadow-subtle: 0 2px 8px rgba(44, 44, 44, 0.06);
  --shadow-card: 0 2px 12px rgba(44, 44, 44, 0.08);
  --nav-height: 64px;
  --success: #3D8B5E;
  --error: #C05050;
}

/* ===== BASE ===== */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ===== FOCUS VISIBLE (Accessibility) ===== */
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-family: var(--font-brand); font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
h2 { font-family: var(--font-brand); font-weight: 500; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }
h3 { font-family: var(--font-brand); font-weight: 400; font-size: 22px; line-height: 1.3; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.4; }

/* ===== NAV — Partially persistent (hide on scroll down, show on scroll up) ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
  transition: transform 0.3s ease, box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow-subtle); }
nav.nav-hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-brand);
  color: var(--forest);
  line-height: 1;
  text-decoration: none;
  display: block;
}
.wordmark-top { display: block; font-weight: 500; font-size: 17px; letter-spacing: 0.06em; }
.wordmark-bottom { display: block; font-weight: 400; font-size: 17px; letter-spacing: 0.09em; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--charcoal); text-decoration: none; transition: color 0.2s;
  min-height: 24px; min-width: 24px; /* WCAG target size */
}
.nav-links a:hover { color: var(--forest); }
.nav-links .current { color: var(--forest); }

/* Mobile menu button (desktop: hidden) */
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--forest); font-size: 24px;
  flex-direction: column; gap: 5px; width: 28px;
  min-height: 44px; min-width: 44px; /* WCAG target size */
  align-items: center; justify-content: center;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--forest); border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--clay); color: var(--warm-white);
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 32px; border-radius: var(--radius-btn);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  min-height: 48px; /* WCAG target size */
  line-height: 1.2;
}
.btn-primary:hover { background: var(--clay-hover); transform: translateY(-1px); }
.btn-primary span { margin-left: 6px; transition: margin-left 0.2s; }
.btn-primary:hover span { margin-left: 10px; }

.btn-secondary {
  display: inline-block;
  background: transparent; color: var(--warm-white);
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 32px; border-radius: var(--radius-btn);
  text-decoration: none; border: 1px solid rgba(250, 247, 242, 0.4);
  transition: background 0.2s, border-color 0.2s;
  min-height: 48px;
}
.btn-secondary:hover { background: rgba(250, 247, 242, 0.1); border-color: var(--warm-white); }

.nav-cta {
  background: var(--clay) !important; color: var(--warm-white) !important;
  padding: 10px 20px !important; border-radius: var(--radius-btn) !important;
  font-weight: 600 !important; font-size: 14px !important;
  transition: background 0.2s !important;
  min-height: 40px !important;
}
.nav-cta:hover { background: var(--clay-hover) !important; }

/* ===== SECTION UTILITIES ===== */
.section { padding: 96px 32px; }
.section--forest { background: var(--forest); color: var(--warm-white); }
.section--stone { background: var(--stone); }
.section--warm-white { background: var(--warm-white); }
.section-inner { max-width: var(--max-content); margin: 0 auto; }
.section-prose { max-width: var(--max-prose); margin: 0 auto; }

.section-label {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warm-grey); margin-bottom: 16px;
}
.section--forest .section-label,
.hero--forest .section-label { color: var(--stone); }

/* ===== HERO VARIANTS ===== */
.hero { padding: 140px 32px 80px; }
.hero--forest { background: var(--forest); }
.hero--warm-white { background: var(--warm-white); }
.hero-inner { max-width: var(--max-prose); margin: 0 auto; }

.hero--forest h1 { color: var(--warm-white); margin-bottom: 24px; }
.hero--forest p { font-size: 18px; line-height: 1.7; color: var(--stone); margin-bottom: 40px; }

.hero--warm-white h1 { color: var(--forest); margin-bottom: 24px; }
.hero--warm-white p { font-size: 18px; line-height: 1.7; color: var(--charcoal); margin-bottom: 40px; }

/* ===== TESTIMONIAL BAND ===== */
.testimonial-band {
  background: var(--warm-white);
  padding: 48px 32px;
  border-bottom: 1px solid var(--stone);
}
.testimonial-band blockquote {
  max-width: var(--max-prose);
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--forest);
  font-style: italic;
}
.testimonial-band cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: var(--warm-grey);
}

/* ===== PROSE ===== */
.prose p { font-size: 18px; line-height: 1.75; color: var(--charcoal); margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { color: var(--forest); margin-bottom: 32px; }
.prose .kicker {
  font-family: var(--font-brand); font-weight: 400; font-size: 20px;
  color: var(--forest); margin-top: 32px;
}
.prose--light p { color: var(--stone); }

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: var(--warm-white);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  border: 1px solid rgba(232, 224, 213, 0.6);
  box-shadow: var(--shadow-subtle);
}
.card .accent-bar { display: block; width: 32px; height: 3px; background: var(--clay); border-radius: 2px; margin-bottom: 24px; }
.card h3 { color: var(--forest); margin-bottom: 16px; }
.card p { font-size: 15px; line-height: 1.7; }

/* Four-card variant */
.card-grid--four { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ===== STRAPLINE BAND ===== */
.strapline-band { background: var(--forest); padding: 80px 32px; text-align: center; }
.strapline-band p {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(28px, 4vw, 42px); color: var(--warm-white);
}

/* ===== CTA BAND ===== */
.cta-band { background: var(--forest); padding: 80px 32px; text-align: center; }
.cta-band h2 {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(22px, 3vw, 30px); color: var(--warm-white);
  margin-bottom: 32px;
}

/* ===== MEASUREMENT TIMELINE ===== */
.timeline { margin-top: 48px; }
.timeline-item {
  display: flex; gap: 24px; margin-bottom: 32px;
  align-items: flex-start;
}
.timeline-marker {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--forest); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brand); font-weight: 500;
  font-size: 14px; color: var(--warm-white);
}
.timeline-content h4 { color: var(--forest); margin-bottom: 8px; }
.timeline-content p { font-size: 16px; line-height: 1.7; }

/* ===== APPROACH BLOCKS ===== */
.approach-block { margin-bottom: 32px; }
.approach-block h4 { color: var(--forest); margin-bottom: 12px; font-size: 17px; }
.approach-block p { font-size: 16px; line-height: 1.75; }

/* ===== TEAM ===== */
.team-intro { margin-bottom: 48px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.team-card { text-align: center; }
.team-photo {
  width: 160px; height: 160px;
  border-radius: 50%; margin: 0 auto 24px;
  background: var(--stone);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-brand); font-size: 48px; color: var(--forest);
}
.team-card h4 { color: var(--forest); margin-bottom: 4px; }
.team-card .role { font-size: 14px; color: var(--warm-grey); margin-bottom: 16px; display: block; }
.team-card p { font-size: 15px; line-height: 1.7; }

/* ===== CONTACT FORM ===== */
.form-card {
  background: var(--stone);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  max-width: 640px;
  margin: 48px auto 0;
}
.form-group { margin-bottom: 24px; position: relative; }
.form-group label {
  display: block; font-weight: 500; font-size: 14px;
  color: var(--charcoal); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  font-family: var(--font-body); font-size: 16px;
  background: var(--warm-white); color: var(--charcoal);
  border: 1px solid rgba(138, 130, 121, 0.3);
  border-radius: var(--radius-input);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  min-height: 44px; /* WCAG target size */
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px var(--forest-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8279' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* Inline validation states */
.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
  border-color: var(--success);
}
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: var(--error);
}
.form-group .field-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
}
.form-group.invalid .field-error {
  display: block;
}
.form-group .field-check {
  display: none;
  position: absolute;
  right: 14px;
  top: 38px;
  color: var(--success);
  font-size: 16px;
}
.form-group.valid .field-check {
  display: block;
}

.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn-primary { width: 100%; padding: 16px; font-size: 16px; }

.contact-alt {
  text-align: center; margin-top: 48px;
  font-size: 15px; color: var(--warm-grey);
}
.contact-alt a { color: var(--forest); text-decoration: none; font-weight: 500; min-height: 24px; display: inline-block; }
.contact-alt a:hover { text-decoration: underline; }
.contact-alt p { margin-bottom: 12px; }

/* ===== THANK-YOU MESSAGE ===== */
.thank-you-message {
  background: var(--stone);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  max-width: 640px;
  margin: 48px auto 0;
  text-align: center;
}
.thank-you-message h3 {
  font-family: var(--font-brand);
  color: var(--forest);
  margin-bottom: 16px;
}
.thank-you-message p {
  font-size: 16px;
  line-height: 1.6;
}

/* ===== GUARANTEE ===== */
.guarantee {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 18px;
  color: var(--forest);
  margin-top: 40px;
  line-height: 1.6;
}

/* ===== FOOTER — Structured 3-column + CTA ===== */
footer {
  background: var(--forest);
  padding: 56px 32px 32px;
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}
.footer-inner {
  max-width: var(--max-content); margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-wordmark {
  font-family: var(--font-brand); color: var(--warm-white);
  font-weight: 500; font-size: 16px; letter-spacing: 0.05em;
  text-decoration: none; display: block; margin-bottom: 12px;
}
.footer-brand .footer-strapline {
  font-family: var(--font-brand); font-weight: 400; font-size: 14px;
  color: var(--warm-white); opacity: 0.5;
}
.footer-nav h4,
.footer-contact-col h4 {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--warm-white); opacity: 0.5; margin-bottom: 16px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a {
  color: var(--warm-white); opacity: 0.7; text-decoration: none;
  font-size: 14px; transition: opacity 0.2s;
  min-height: 24px; display: inline-block;
}
.footer-nav a:hover { opacity: 1; }
.footer-contact-col a {
  color: var(--warm-white); opacity: 0.7; text-decoration: none;
  font-size: 14px; transition: opacity 0.2s;
  display: block; margin-bottom: 8px;
}
.footer-contact-col a:hover { opacity: 1; }
.footer-cta { margin-top: 20px; }
.footer-cta .btn-primary { font-size: 14px; padding: 10px 24px; min-height: 40px; }

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 24px;
  font-size: 13px; color: var(--warm-white); opacity: 0.4;
}

/* ===== MOBILE BOTTOM TAB BAR ===== */
.mobile-tab-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--stone);
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
.mobile-tab-bar ul {
  display: flex; justify-content: space-around;
  list-style: none; max-width: 400px; margin: 0 auto;
}
.mobile-tab-bar a {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: var(--charcoal);
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  padding: 4px 12px; min-height: 44px; min-width: 44px;
  justify-content: center; gap: 2px;
  transition: color 0.2s;
}
.mobile-tab-bar a.current { color: var(--forest); }
.mobile-tab-bar .tab-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-tab-bar .tab-icon svg {
  width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hide desktop nav links + hamburger on mobile */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--warm-white); padding: 24px 32px;
    border-bottom: 1px solid var(--stone);
    box-shadow: var(--shadow-card);
  }
  .mobile-menu-btn { display: none; }

  /* Show bottom tab bar */
  .mobile-tab-bar { display: block; }

  /* Add bottom padding for tab bar */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

  .hero { padding: 120px 24px 60px; }
  .section { padding: 64px 24px; }
  .card-grid, .card-grid--four { grid-template-columns: 1fr; }
  .strapline-band, .cta-band { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { text-align: center; }
  .footer-nav ul { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .footer-nav li { margin-bottom: 0; }
  .form-card { padding: 32px 24px; }
  .timeline-item { flex-direction: column; gap: 12px; }
  .testimonial-band { padding: 32px 24px; }
  .testimonial-band blockquote { font-size: 18px; }
}
