/* ══════════════════════════════════════
   Local Foundry — Brand Styles
   Identity system v1: dark, warm, story-rich.
   Softened layout: alternating dark/light with breathing room.
   ══════════════════════════════════════ */

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

/* ── Brand Tokens ── */
:root {
  /* Core neutrals — softened from pure oxblood */
  --oxblood: #1E1612;
  --mortar: #2A201B;
  --soot-brick: #3A2A23;
  --slate-mortar: #7A6A5E;
  --limewash: #F3E8D8;
  --lime-plaster: #FAF6F1;

  /* Brick accents — slightly warmer */
  --mill-brick: #B04A32;
  --terracotta: #D07A58;
  --sandstone: #E0B88A;
  --deep-oxblood: #6A2518;

  /* Semantic aliases */
  --color-bg: var(--oxblood);
  --color-bg-surface: var(--mortar);
  --color-bg-elevated: var(--soot-brick);
  --color-text: var(--limewash);
  --color-text-dim: var(--slate-mortar);
  --color-text-body: rgba(243, 232, 216, 0.75);
  --color-accent: var(--mill-brick);
  --color-accent-highlight: var(--terracotta);
  --color-accent-warm: var(--sandstone);
  --color-light-bg: var(--lime-plaster);
  --color-light-text: var(--mortar);
  --color-light-dim: var(--slate-mortar);
  --color-border-dark: rgba(243, 232, 216, 0.10);
  --color-border-light: rgba(42, 32, 27, 0.07);

  /* Gradients — warmer, less harsh */
  --gradient-brick: linear-gradient(135deg, #D07A58 0%, #E0B88A 50%, #F3E8D8 100%);
  --gradient-mill-glow: radial-gradient(ellipse at 30% 50%, rgba(208, 122, 88, 0.2) 0%, rgba(176, 74, 50, 0.08) 40%, transparent 70%);
  --gradient-cta: linear-gradient(135deg, #B04A32, #D07A58);

  /* Typography */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
  --space-3xl: 10rem;

  /* Layout */
  --container-max: 1200px;
}

/* ── Base ── */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }

p {
  max-width: 62ch;
  color: var(--color-text-body);
}

a {
  color: var(--color-accent-highlight);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-warm);
}

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

ul, ol {
  padding-left: 1.5rem;
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: rgba(199, 107, 74, 0.08);
  border: 1px solid rgba(199, 107, 74, 0.25);
  color: var(--sandstone);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--terracotta);
}

.italic-dim {
  font-style: italic;
  color: rgba(241, 228, 208, 0.55);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  display: block;
  margin-bottom: var(--space-sm);
}

/* ── Placeholder Images ── */
.placeholder-img {
  border-radius: 16px;
  background: var(--gradient-brick);
  position: relative;
  overflow: hidden;
}

.placeholder-img::after {
  content: attr(data-label);
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 228, 208, 0.5);
  background: rgba(21, 16, 13, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.placeholder-img--wide {
  aspect-ratio: 16 / 7;
}

.placeholder-img--landscape {
  aspect-ratio: 3 / 2;
}

.placeholder-img--square {
  aspect-ratio: 1 / 1;
}

.placeholder-img--circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

.placeholder-img--icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(208, 122, 88, 0.12), rgba(224, 184, 138, 0.18));
  border: 1px solid rgba(208, 122, 88, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}

.placeholder-img--icon::after {
  display: none;
}

/* Light-section variant placeholders */
.section--light .placeholder-img--icon {
  background: linear-gradient(135deg, rgba(176, 74, 50, 0.06), rgba(208, 122, 88, 0.10));
  border-color: rgba(176, 74, 50, 0.10);
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-accent);
  color: var(--limewash);
  padding: var(--space-xs) var(--space-sm);
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-body);
}

.skip-link:focus {
  top: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.875rem 1.375rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  line-height: 1;
}

.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(176, 74, 50, 0.25);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(176, 74, 50, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn--secondary {
  background: transparent;
  color: var(--limewash);
  border: 1px solid rgba(241, 228, 208, 0.2);
}

.btn--secondary:hover {
  border-color: rgba(241, 228, 208, 0.4);
  background: rgba(241, 228, 208, 0.04);
  text-decoration: none;
  color: var(--limewash);
}

/* Secondary on light backgrounds */
.section--light .btn--secondary {
  color: var(--mortar);
  border-color: rgba(35, 26, 22, 0.2);
}

.section--light .btn--secondary:hover {
  border-color: rgba(35, 26, 22, 0.4);
  background: rgba(35, 26, 22, 0.04);
  color: var(--mortar);
}

/* Pill CTA (nav) */
.btn--pill {
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: var(--gradient-cta);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.btn--pill:hover {
  box-shadow: 0 4px 16px rgba(176, 74, 50, 0.25);
  text-decoration: none;
  color: #fff;
}

/* ── Header ── */
.site-header {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--color-border-dark);
  background: transparent;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
  gap: var(--space-sm);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--limewash);
}

.site-logo__mark {
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.site-logo__text .local {
  font-style: italic;
  opacity: 0.6;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--limewash);
  margin: 5px 0;
  transition: all 0.3s;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.primary-nav__list {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.primary-nav__list a {
  color: var(--color-text-body);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.primary-nav__list a:hover,
.primary-nav__list a[aria-current="page"] {
  color: var(--limewash);
}

.primary-nav__submenu {
  display: none;
  position: absolute;
  background: var(--mortar);
  border: 1px solid var(--color-border-dark);
  border-radius: 8px;
  padding: var(--space-xs) 0;
  list-style: none;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.has-children:hover .primary-nav__submenu {
  display: block;
}

.primary-nav__submenu li a {
  display: block;
  padding: var(--space-xs) var(--space-md);
}

.has-children {
  position: relative;
}

.nav-cta {
  margin-left: var(--space-sm);
}

/* ── Sections ── */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section h2 {
  margin-bottom: var(--space-md);
}

.section p {
  margin-bottom: var(--space-sm);
}

/* ── Light sections ── */
.section--light {
  background: var(--lime-plaster);
  color: var(--mortar);
}

.section--light h2,
.section--light h3 {
  color: var(--mortar);
}

.section--light p {
  color: var(--soot-brick);
}

.section--light .section-label {
  color: var(--mill-brick);
}

.section--light .eyebrow {
  background: rgba(162, 59, 38, 0.06);
  border-color: rgba(162, 59, 38, 0.2);
  color: var(--mill-brick);
}

.section--light .eyebrow::before {
  background: var(--mill-brick);
}

.section--light .italic-dim {
  color: var(--slate-mortar);
}

.section--light strong {
  color: var(--mortar);
}

/* Light-section cards */
.section--light .service-card,
.section--light .industry-card,
.section--light .framework-card {
  background: #fff;
  border-color: var(--color-border-light);
}

.section--light .service-card:hover,
.section--light .industry-card:hover {
  border-color: rgba(162, 59, 38, 0.2);
  box-shadow: 0 4px 20px rgba(35, 26, 22, 0.06);
}

.section--light .service-card__title,
.section--light .industry-card h3 {
  color: var(--mortar);
}

.section--light .service-card__tagline {
  color: var(--mill-brick);
}

.section--light .service-card__description,
.section--light .industry-card p {
  color: var(--soot-brick);
}

.section--light .framework-card strong {
  color: var(--mortar);
}

.section--light .framework-card ul li {
  color: var(--soot-brick);
}

/* Light testimonials */
.section--light .testimonial {
  background: #fff;
  border-left-color: var(--sandstone);
}

.section--light .testimonial__quote {
  color: var(--mortar);
}

.section--light .testimonial__attribution {
  color: var(--slate-mortar);
}

/* Light FAQs */
.section--light .faq-list__item {
  border-bottom-color: var(--color-border-light);
}

.section--light .faq-list__question {
  color: var(--mortar);
}

.section--light .faq-list__question::after {
  color: var(--mill-brick);
}

.section--light .faq-list__answer {
  color: var(--soot-brick);
}

/* Light stats */
.section--light .stat__number {
  color: var(--mill-brick);
}

.section--light .stat__label {
  color: var(--soot-brick);
}

/* Light checker form */
.section--light .checker-form input[type="url"] {
  background: #fff;
  border-color: var(--color-border-light);
  color: var(--mortar);
}

.section--light .checker-form input[type="url"]::placeholder {
  color: var(--slate-mortar);
}

.section--light .checker-form input[type="url"]:focus {
  border-color: var(--mill-brick);
}

.section--light .checker-form__note {
  color: var(--slate-mortar);
}

/* Dark surface (mortar) */
.section--surface {
  background: var(--mortar);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
}

/* Animated gradient blobs */
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform, opacity;
}

/* Blob A — warm terracotta, top-right */
.hero__glow-blob--a {
  width: 55%;
  height: 65%;
  top: -15%;
  right: -5%;
  background: radial-gradient(ellipse, rgba(208, 122, 88, 0.28) 0%, rgba(176, 74, 50, 0.10) 50%, transparent 70%);
  animation: glow-drift-a 18s ease-in-out infinite;
}

/* Blob B — golden sandstone, bottom-left */
.hero__glow-blob--b {
  width: 50%;
  height: 55%;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(ellipse, rgba(224, 184, 138, 0.20) 0%, rgba(208, 122, 88, 0.06) 50%, transparent 70%);
  animation: glow-drift-b 22s ease-in-out infinite;
}

/* Blob C — accent for depth, roams wider */
.hero__glow-blob--c {
  width: 35%;
  height: 40%;
  top: 25%;
  left: 30%;
  background: radial-gradient(ellipse, rgba(208, 122, 88, 0.18) 0%, transparent 60%);
  animation: glow-drift-c 15s ease-in-out infinite;
}

@keyframes glow-drift-a {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.8; }
  25%  { transform: translate(-12%, 10%) scale(1.15); opacity: 1; }
  50%  { transform: translate(-20%, 5%) scale(1.25); opacity: 0.9; }
  75%  { transform: translate(-8%, -8%) scale(1.1); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
}

@keyframes glow-drift-b {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  30%  { transform: translate(15%, -12%) scale(1.2); opacity: 1; }
  60%  { transform: translate(8%, -20%) scale(1.1); opacity: 0.8; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
}

@keyframes glow-drift-c {
  0%   { transform: translate(0, 0) scale(0.8); opacity: 0.4; }
  33%  { transform: translate(20%, -15%) scale(1.2); opacity: 1; }
  66%  { transform: translate(-15%, 10%) scale(1.0); opacity: 0.6; }
  100% { transform: translate(0, 0) scale(0.8); opacity: 0.4; }
}

/* ── Hero: Video background mode ── */
/* Add class .hero--video to the <section> and uncomment the
   video markup in index.njk to activate video mode.
   The gradient blobs are hidden and replaced by the video. */

.hero__video {
  display: none;
}

.hero--video .hero__glow {
  display: none;
}

.hero--video .hero__video {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero--video .hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--video .hero__video-overlay {
  position: absolute;
  inset: 0;
  /* Warm brand-tinted overlay: mortar/oxblood base with a
     subtle terracotta glow bleeding through at top-right
     to match the gradient blob aesthetic */
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(176, 74, 50, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(224, 184, 138, 0.08), transparent 50%),
    linear-gradient(
      180deg,
      rgba(30, 22, 18, 0.82) 0%,
      rgba(30, 22, 18, 0.68) 35%,
      rgba(30, 22, 18, 0.72) 70%,
      rgba(30, 22, 18, 0.85) 100%
    );
}

/* On mobile, hide video and show a static poster instead */
@media (max-width: 768px) {
  .hero--video .hero__video video {
    display: none;
  }
  .hero--video .hero__video {
    background: var(--oxblood);
    /* Set a poster image as background here when you have one:
       background: url('/assets/images/hero-poster.jpg') center/cover; */
  }
}

/* ── Hero: Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero__glow-blob {
    animation: none !important;
  }
  .hero--video .hero__video video {
    display: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero h1 {
  margin: 0;
}

.hero h1 .italic-dim {
  font-style: italic;
  color: rgba(241, 228, 208, 0.55);
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--color-text-body);
  max-width: 34rem;
  margin: 0;
}

.hero__cta {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero preview card */
.hero__preview {
  position: relative;
  background: linear-gradient(180deg, var(--mortar), var(--oxblood));
  border: 1px solid rgba(241, 228, 208, 0.10);
  border-radius: 18px;
  padding: 1.125rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(199, 107, 74, 0.05);
}

.hero__preview-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 0.875rem;
  align-items: center;
}

.hero__preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(241, 228, 208, 0.18);
}

.hero__preview-url {
  margin-left: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(241, 228, 208, 0.4);
}

.hero__preview-body {
  background: var(--lime-plaster);
  color: var(--mortar);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 17.5rem;
}

.hero__preview-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep-oxblood);
}

.hero__preview-headline {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__preview-headline .italic-dim {
  color: var(--slate-mortar);
}

.hero__preview-text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--slate-mortar);
}

.hero__preview-chips {
  margin-top: auto;
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--deep-oxblood);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.chip {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(162, 59, 38, 0.10);
  border: 1px solid rgba(162, 59, 38, 0.25);
}

/* ── Framework Grid (Found + Convert) ── */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.framework-card {
  padding: var(--space-lg);
  border: 1px solid var(--color-border-dark);
  border-radius: 16px;
  background: rgba(241, 228, 208, 0.02);
}

.framework-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-md);
}

.framework-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0;
}

.framework-card strong {
  color: var(--limewash);
}

.framework-card ul {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.framework-card ul li {
  color: var(--color-text-body);
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9375rem;
}

.framework-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--terracotta);
  opacity: 0.6;
}

/* ── AI Checker Section ── */
.checker-form {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-sm);
  flex-wrap: wrap;
  max-width: 37.5rem;
}

.checker-form input[type="url"] {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(241, 228, 208, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  min-width: 250px;
  background: rgba(241, 228, 208, 0.04);
  color: var(--limewash);
}

.checker-form input[type="url"]::placeholder {
  color: var(--slate-mortar);
}

.checker-form input[type="url"]:focus {
  outline: none;
  border-color: var(--terracotta);
  background: rgba(241, 228, 208, 0.06);
}

.checker-form__note {
  color: var(--color-text-dim);
  font-size: 0.875rem;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-lg);
}

.service-card {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border-dark);
  border-radius: 16px;
  background: rgba(241, 228, 208, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card:hover {
  border-color: rgba(199, 107, 74, 0.25);
}

.service-card__icon {
  margin-bottom: 0.25rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--limewash);
}

.service-card__tagline {
  color: var(--sandstone);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
}

.service-card__description {
  font-size: 0.9375rem;
  flex-grow: 1;
}

.service-card__link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-top: auto;
}

.section--light .service-card__link {
  color: var(--mill-brick);
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-top: var(--space-lg);
}

.stat {
  text-align: center;
  padding: var(--space-md);
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--color-text-body);
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* ── Industry Grid ── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-lg);
}

.industry-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: var(--space-md);
  border: 1px solid var(--color-border-dark);
  border-radius: 16px;
  background: rgba(241, 228, 208, 0.02);
  color: var(--color-text-body);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.industry-card:hover {
  border-color: rgba(199, 107, 74, 0.25);
  text-decoration: none;
  color: var(--color-text-body);
}

.industry-card__text h3 {
  margin-bottom: 0.375rem;
  color: var(--limewash);
}

.industry-card__text p {
  font-size: 0.9375rem;
}

/* ── Team Grid ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--space-lg);
}

.team-member {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.team-member__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
}

.team-member__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--limewash);
}

.team-member__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-mortar);
}

.section--light .team-member__name {
  color: var(--mortar);
}

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
  background: rgba(241, 228, 208, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.portfolio-card:hover {
  border-color: rgba(199, 107, 74, 0.25);
  text-decoration: none;
  color: inherit;
}

.section--light .portfolio-card {
  background: #fff;
  border-color: var(--color-border-light);
}

.section--light .portfolio-card:hover {
  border-color: rgba(162, 59, 38, 0.2);
  box-shadow: 0 4px 20px rgba(35, 26, 22, 0.06);
}

.portfolio-card__image {
  border-radius: 0;
}

.portfolio-card__body {
  padding: var(--space-md);
}

.portfolio-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--limewash);
  margin-bottom: 0.25rem;
}

.section--light .portfolio-card__title {
  color: var(--mortar);
}

.portfolio-card__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-mortar);
}

/* ── Testimonial ── */
.testimonial {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border-left: 3px solid var(--sandstone);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-md) 0;
  background: rgba(243, 232, 216, 0.04);
  border-radius: 0 16px 16px 0;
}

.testimonial__avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.testimonial__content {
  flex: 1;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--limewash);
  margin-bottom: var(--space-sm);
}

.testimonial__attribution {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--slate-mortar);
}

/* ── FAQ List ── */
.faq-list {
  margin-top: var(--space-lg);
  max-width: 48rem;
}

.faq-list__item {
  border-bottom: 1px solid var(--color-border-dark);
  padding: var(--space-sm) 0;
}

.faq-list__question {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--limewash);
  list-style: none;
  padding-right: 2rem;
  position: relative;
}

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

.faq-list__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--terracotta);
}

details[open] .faq-list__question::after {
  content: "\2212";
}

.faq-list__answer {
  padding-top: var(--space-sm);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* ── CTA Banner ── */
.cta-banner {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(208, 122, 88, 0.10), transparent 60%);
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

/* ── Page Hero ── */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(199, 107, 74, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero__subtitle,
.page-hero__tagline,
.page-hero__intro {
  color: var(--color-text-body);
  font-size: 1.0625rem;
  max-width: 38rem;
  margin-top: var(--space-sm);
}

.page-content {
  padding: var(--space-lg) 0;
}

.page-content p {
  margin-bottom: var(--space-sm);
}

/* ── Trust Strip ── */
.trust-strip {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border-dark);
  border-bottom: 1px solid var(--color-border-dark);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-body);
}

.trust-strip__number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--terracotta);
  line-height: 1;
}

.trust-strip__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.section--light .trust-strip {
  border-color: var(--color-border-light);
}

.section--light .trust-strip__item {
  color: var(--soot-brick);
}

.section--light .trust-strip__number {
  color: var(--mill-brick);
}

/* ── Process Steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-lg);
  counter-reset: step;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.process-step__number {
  font-size: 2rem;
  line-height: 1;
}

.section--light .process-step__number {
  /* inherits emoji styling */
}

.process-step h3 {
  font-size: 1.25rem;
}

.process-step p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: -0.75rem;
  width: calc(1.5rem);
  height: 1px;
  background: var(--color-border-dark);
}

.section--light .process-step:not(:last-child)::after {
  background: var(--color-border-light);
}

/* ── Deliverables Grid ── */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: var(--space-lg);
}

.deliverable {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: var(--space-md);
  border-radius: 16px;
  background: rgba(243, 232, 216, 0.03);
  border: 1px solid var(--color-border-dark);
}

.section--light .deliverable {
  background: #fff;
  border-color: var(--color-border-light);
}

.deliverable__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(208, 122, 88, 0.12), rgba(224, 184, 138, 0.18));
  border: 1px solid rgba(208, 122, 88, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.section--light .deliverable__icon {
  background: linear-gradient(135deg, rgba(176, 74, 50, 0.06), rgba(208, 122, 88, 0.10));
  border-color: rgba(176, 74, 50, 0.10);
}

.deliverable__text h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--limewash);
  margin-bottom: 0.25rem;
}

.section--light .deliverable__text h4 {
  color: var(--mortar);
}

.deliverable__text p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .trust-strip__grid {
    gap: var(--space-md);
  }

  .deliverables-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
  }
}

/* ── InSites Lead Gen Widget Overrides ── */
/* Scope everything under #ib-form-widget so we don't leak */

#ib-form-widget {
  max-width: 36rem;
}

#ib-form-widget,
#ib-form-widget * {
  font-family: var(--font-body) !important;
  box-sizing: border-box;
}

/* Form headings — hidden, the section h2 handles this */
#ib-form-widget .form-heading {
  display: none !important;
}

/* Remove default padding on the form */
#ib-form-widget .ib-form,
#ib-form-widget #business-search-form {
  padding: 0 !important;
  margin: 0 !important;
}

/* Form groups */
#ib-form-widget .ib-form-group {
  margin-bottom: var(--space-sm) !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

/* Text inputs */
#ib-form-widget input[type="text"],
#ib-form-widget input[type="email"],
#ib-form-widget input[type="url"],
#ib-form-widget input[type="tel"],
#ib-form-widget #business-lookup {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border: 1px solid var(--color-border-light) !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
  background: #fff !important;
  color: var(--mortar) !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#ib-form-widget input[type="text"]:focus,
#ib-form-widget input[type="email"]:focus,
#ib-form-widget input[type="url"]:focus,
#ib-form-widget input[type="tel"]:focus,
#ib-form-widget #business-lookup:focus {
  border-color: var(--mill-brick) !important;
}

#ib-form-widget input::placeholder {
  color: var(--slate-mortar) !important;
}

/* Labels */
#ib-form-widget label {
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--mortar) !important;
  margin-bottom: 0.375rem !important;
  text-align: left !important;
}

/* Primary buttons (submit / confirm) */
#ib-form-widget .submit-step-button,
#ib-form-widget .confirm-details-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5em !important;
  width: auto !important;
  padding: 0.875rem 1.375rem !important;
  border-radius: 12px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  border: none !important;
  background: var(--gradient-cta) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(176, 74, 50, 0.25) !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

#ib-form-widget .submit-step-button:hover,
#ib-form-widget .confirm-details-button:hover {
  box-shadow: 0 6px 28px rgba(176, 74, 50, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Secondary / back buttons */
#ib-form-widget .return-to-search-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  border: 1px solid var(--color-border-light) !important;
  background: transparent !important;
  color: var(--soot-brick) !important;
  margin-top: 0.5rem !important;
  transition: border-color 0.2s, background 0.2s !important;
  text-align: center !important;
}

#ib-form-widget .return-to-search-button:hover {
  border-color: rgba(42, 32, 27, 0.2) !important;
  background: rgba(42, 32, 27, 0.03) !important;
}

/* "Not listed in Google Maps?" / "Enter manually" links */
#ib-form-widget .enter-manually {
  font-size: 0.8125rem !important;
  color: var(--mill-brick) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

#ib-form-widget .enter-manually:hover {
  text-decoration: underline !important;
}

/* Business lookup container — hide the "Not listed" link from its original
   position above the input. It still exists in #business-search-error below
   the input where it makes more sense contextually. If the widget doesn't
   show it there by default, we move it with absolute positioning. */
#ib-form-widget .business-lookup-container {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  margin-bottom: 0.375rem !important;
}

/* The first .ib-form-group contains label, input, and links —
   use flex column + order to rearrange visually */
#ib-form-widget #business-search-form > .ib-form-group:first-child {
  display: flex !important;
  flex-direction: column !important;
}

#ib-form-widget .business-lookup-container {
  order: 0 !important;
}

#ib-form-widget #business-lookup {
  order: 1 !important;
}

#ib-form-widget #widget-error {
  order: 2 !important;
}

#ib-form-widget #business-search-error {
  order: 3 !important;
}

/* Hide the "Not listed" span from its original position above the input */
#ib-form-widget .business-lookup-container > .enter-manually {
  order: 1 !important;
  position: absolute !important;
  clip: rect(0,0,0,0) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
}

/* Confirmation details */
#ib-form-widget .confirm-details-message {
  font-size: 0.9375rem !important;
  color: var(--soot-brick) !important;
  margin-bottom: var(--space-sm) !important;
  text-align: left !important;
}

#ib-form-widget .confirm-details-button-top-container {
  margin-bottom: var(--space-sm) !important;
}

/* Error states */
#ib-form-widget #widget-error,
#ib-form-widget #business-search-error {
  font-size: 0.8125rem !important;
  color: var(--mill-brick) !important;
  margin-top: 0.5rem !important;
  text-align: left !important;
}

#ib-form-widget #business-search-error .enter-manually {
  text-decoration: underline !important;
}

/* "Your report is being generated" message */
#ib-form-widget #report-submitted-new-tab {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  color: var(--mortar) !important;
  text-align: left !important;
  padding: var(--space-md) 0 !important;
}

/* Google Places autocomplete dropdown — style to match */
.pac-container {
  font-family: var(--font-body) !important;
  border-radius: 12px !important;
  border: 1px solid var(--color-border-light) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  margin-top: 4px !important;
}

.pac-item {
  padding: 0.625rem 1rem !important;
  font-size: 0.875rem !important;
  color: var(--mortar) !important;
  cursor: pointer !important;
  border-top: 1px solid var(--color-border-light) !important;
}

.pac-item:first-child {
  border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
  background: var(--lime-plaster) !important;
}

.pac-item-query {
  font-weight: 500 !important;
  color: var(--mortar) !important;
}

.pac-icon {
  display: none !important;
}

/* ── Booking Page ── */

/* Hero: centred headline above full-width calendar */
.booking-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.booking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(199, 107, 74, 0.10), transparent 50%);
  pointer-events: none;
}

.booking-hero .container {
  position: relative;
}

.booking-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.booking-hero__copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  margin-bottom: var(--space-xs);
}

.booking-hero__copy > p {
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 40rem;
  margin-inline: auto;
}

/* Reassurance strip — horizontal row */
.booking-hero__reassurance {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-dark);
}

.booking-hero__reassurance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.booking-hero__reassurance-item > span:first-child {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--limewash);
}

.booking-hero__reassurance-sub {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* Calendar section — sits directly below hero */
.booking-calendar-section {
  padding: 0 0 var(--space-xl);
}

/* Calendar embed container — full width, dark theme */
.booking-hero__calendar {
  min-height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--oxblood);
}

.booking-hero__calendar #my-cal-inline-30min {
  min-height: 520px;
  overflow: hidden !important;
}

/* Launch offer card */
.booking-offer-card {
  background: linear-gradient(135deg, rgba(208, 122, 88, 0.08), rgba(224, 184, 138, 0.06));
  border: 1px solid rgba(208, 122, 88, 0.20);
  border-radius: 20px;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.booking-offer-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(208, 122, 88, 0.10), transparent 70%);
  pointer-events: none;
}

.booking-offer-card__content {
  position: relative;
  z-index: 1;
}

.booking-offer-card__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.booking-offer-card__content p {
  max-width: 42rem;
}

.booking-offer-card__content strong {
  color: var(--limewash);
}

.booking-offer-card__stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(208, 122, 88, 0.15);
}

.booking-offer-card__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.booking-offer-card__stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: var(--terracotta);
  line-height: 1;
}

.booking-offer-card__stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* Fit / qualification cards */
.booking-fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: var(--space-lg);
}

.booking-fit-card {
  padding: var(--space-lg);
  border-radius: 16px;
  border: 1px solid var(--color-border-light);
  background: #fff;
}

.booking-fit-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-md);
  color: var(--mortar);
}

.booking-fit-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-fit-card ul li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--soot-brick);
}

.booking-fit-card--yes ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5a8a4a;
  font-weight: 600;
}

.booking-fit-card--no ul li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--mill-brick);
  font-weight: 600;
  font-size: 1.125rem;
}

.booking-fit-card__note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--slate-mortar) !important;
}

/* ── Booking page responsive ── */
@media (max-width: 768px) {
  .booking-hero__reassurance {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }

  .booking-hero__calendar {
    min-height: 400px;
  }

  .booking-hero__calendar #my-cal-inline-30min {
    min-height: 400px;
  }

  .booking-offer-card__stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .booking-fit-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Section Video ── */
.section-video {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--mortar);
}

.section-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .section-video video {
    /* Pause on first frame for reduced motion preference */
  }
}

/* ── Foot Strip ── */
.foot-strip {
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border-dark);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 228, 208, 0.4);
}

/* ── Footer ── */
.site-footer {
  background-color: var(--oxblood);
  color: rgba(241, 228, 208, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--color-border-dark);
}

.site-footer h3 {
  color: var(--limewash);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.site-footer a {
  color: rgba(241, 228, 208, 0.65);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--limewash);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.site-footer__brand {
  grid-column: span 1;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--limewash);
  margin-bottom: 0.5rem;
}

.site-footer__name .local {
  font-style: italic;
  opacity: 0.6;
}

.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

.site-footer__links ul,
.site-footer__legal ul {
  list-style: none;
  padding: 0;
}

.site-footer__links li,
.site-footer__legal li {
  margin-bottom: 0.375rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 228, 208, 0.4);
}

/* ── Article ── */
.article__header {
  padding: var(--space-xl) 0 var(--space-lg);
}

.article__meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--slate-mortar);
}

.article__body {
  padding: var(--space-lg) 0;
}

/* ── Scroll Reveal Animations ── */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Default: fade up */
[data-reveal] {
  transform: translateY(28px);
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal="fade"] {
  transform: none;
}

/* Visible state — all variants resolve to the same place */
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Slightly longer duration for large hero elements */
.hero [data-reveal] {
  transition-duration: 0.9s;
}

/* Counter animation for the stat numbers — a gentle count-up feel */
.stat [data-reveal] {
  transition-duration: 0.5s;
}

/* Respect prefers-reduced-motion at the CSS level too */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--mortar);
    border-bottom: 1px solid var(--color-border-dark);
    padding: var(--space-md);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__list {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .primary-nav__submenu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-sm);
    background: transparent;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-sm);
  }

  .hero__layout {
    grid-template-columns: 1fr;
  }

  .hero__preview {
    display: none;
  }

  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .foot-strip {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
