/* ==========================================================================
   Sliptest.uk — Surface Performance Slip Resistance Testing
   Brand: Dark/light green Surface Performance palette
   ========================================================================== */

:root {
  /* Surface Performance palette */
  --sp-dark: #0d2818;
  --sp-deep: #14361f;
  --sp-green: #1f5733;
  --sp-mid: #2d7a48;
  --sp-light: #6fb98f;
  --sp-pale: #d4e9d8;
  --sp-cream: #f5f1e8;
  --sp-white: #fafaf7;
  --sp-accent: #c9a961;          /* warm gold for accents */
  --sp-text: #1a2a20;
  --sp-text-muted: #4a5a52;
  --sp-border: #d8dcd0;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4.5rem;
  --s-8: 6rem;
  --s-9: 9rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(13, 40, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 40, 24, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 40, 24, 0.12);

  --max-w: 1200px;
  --max-w-prose: 720px;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--sp-text);
  background: var(--sp-white);
  line-height: 1.6;
  font-size: 17px;
  font-feature-settings: "ss01", "cv01", "cv11";
}

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

a {
  color: var(--sp-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sp-mid);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--sp-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: var(--s-4);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: var(--s-3);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: var(--s-2);
}

p {
  margin-bottom: var(--s-3);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-mid);
  margin-bottom: var(--s-3);
}

.eyebrow::before {
  content: "— ";
  color: var(--sp-accent);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-4);
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--s-4);
}

section {
  padding: var(--s-8) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--s-7) 0;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sp-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--sp-dark);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--sp-green);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: var(--sp-light);
}

.logo-mark::before {
  width: 60%;
  height: 2px;
  top: 50%;
  left: 20%;
  transform: translateY(-50%) rotate(-30deg);
}

.logo-mark::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  bottom: 22%;
  right: 22%;
  background: var(--sp-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
}

.nav-links a {
  color: var(--sp-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover {
  color: var(--sp-green);
}

.nav-links a.active {
  color: var(--sp-green);
}

.nav-cta {
  background: var(--sp-dark);
  color: var(--sp-cream) !important;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--sp-green);
  color: var(--sp-cream) !important;
}

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sp-white);
    flex-direction: column;
    padding: var(--s-4);
    gap: var(--s-3);
    border-bottom: 1px solid var(--sp-border);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sp-dark);
  color: var(--sp-cream);
}

.btn-primary:hover {
  background: var(--sp-green);
  color: var(--sp-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--sp-dark);
  border: 1.5px solid var(--sp-dark);
}

.btn-secondary:hover {
  background: var(--sp-dark);
  color: var(--sp-cream);
}

.btn-light {
  background: var(--sp-cream);
  color: var(--sp-dark);
}

.btn-light:hover {
  background: var(--sp-white);
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.2s;
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: var(--s-9) 0 var(--s-8);
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(111, 185, 143, 0.12), transparent),
    linear-gradient(180deg, var(--sp-cream) 0%, var(--sp-white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--sp-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--sp-border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

.hero h1 .accent {
  color: var(--sp-green);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--sp-text-muted);
  margin: var(--s-4) 0 var(--s-5);
  max-width: 560px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}

.hero-trust {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding-top: var(--s-4);
  border-top: 1px solid var(--sp-border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9rem;
  color: var(--sp-text-muted);
}

.trust-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--sp-mid);
}

/* Hero panel — schematic of pendulum test */
.hero-panel {
  background: var(--sp-dark);
  border-radius: 24px;
  padding: var(--s-5);
  color: var(--sp-cream);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-panel-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d63b3b;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pendulum-svg {
  width: 100%;
  flex: 1;
  margin: var(--s-4) 0;
}

.hero-panel-readout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.readout-item .readout-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-light);
  margin-bottom: 4px;
}

.readout-item .readout-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--sp-cream);
}

.readout-item .readout-value .unit {
  font-size: 0.8rem;
  color: var(--sp-light);
  margin-left: 4px;
}

/* ==========================================================================
   Accreditation strip
   ========================================================================== */

.accred-strip {
  background: var(--sp-dark);
  color: var(--sp-cream);
  padding: var(--s-5) 0;
}

.accred-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.accred-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-light);
}

.accred-list {
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
}

.accred-list li {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.accred-list li sup {
  font-size: 0.7rem;
  color: var(--sp-accent);
  margin-left: 2px;
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-header {
  max-width: 720px;
  margin-bottom: var(--s-7);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--sp-text-muted);
  margin-top: var(--s-3);
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services-section {
  background: var(--sp-cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
}

.service-card {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: var(--s-5);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sp-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--sp-mid);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--sp-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  color: var(--sp-green);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--s-2);
}

.service-card p {
  color: var(--sp-text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: var(--s-4);
}

.service-card .read-more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-green);
  font-weight: 500;
}

/* ==========================================================================
   Why us — comparison
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}

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

.why-card {
  padding: var(--s-5);
  border-radius: 16px;
  border: 1px solid var(--sp-border);
}

.why-card.us {
  background: var(--sp-dark);
  color: var(--sp-cream);
  border-color: var(--sp-dark);
}

.why-card.them {
  background: var(--sp-white);
  border-style: dashed;
  opacity: 0.85;
}

.why-card h3 {
  margin-bottom: var(--s-4);
  font-size: 1.4rem;
}

.why-card.us h3 {
  color: var(--sp-cream);
}

.why-list {
  list-style: none;
}

.why-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}

.why-card.them .why-list li {
  border-bottom-color: var(--sp-border);
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list li::before {
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.why-card.us .why-list li::before {
  content: "✓";
  color: var(--sp-light);
  font-weight: bold;
}

.why-card.them .why-list li::before {
  content: "✗";
  color: #b04444;
}

/* ==========================================================================
   Process section
   ========================================================================== */

.process-section {
  background: var(--sp-dark);
  color: var(--sp-cream);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 185, 143, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 185, 143, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.process-section h2 {
  color: var(--sp-cream);
}

.process-section .section-header p {
  color: var(--sp-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-6);
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.process-step {
  border-left: 2px solid var(--sp-green);
  padding-left: var(--s-3);
  position: relative;
}

.process-step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sp-light);
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--sp-light);
  margin-bottom: var(--s-2);
}

.process-step h3 {
  color: var(--sp-cream);
  font-size: 1.2rem;
  margin-bottom: var(--s-2);
}

.process-step p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

/* ==========================================================================
   Sectors strip
   ========================================================================== */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--sp-border);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: var(--s-5);
}

.sector-tile {
  background: var(--sp-white);
  padding: var(--s-5);
  text-align: center;
  transition: background 0.25s;
  text-decoration: none;
  color: var(--sp-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}

.sector-tile:hover {
  background: var(--sp-cream);
}

.sector-tile svg {
  width: 32px;
  height: 32px;
  color: var(--sp-green);
}

.sector-tile h4 {
  font-size: 1rem;
  margin: 0;
}

.sector-tile p {
  font-size: 0.8rem;
  color: var(--sp-text-muted);
  margin: 0;
}

/* ==========================================================================
   PTV thresholds card
   ========================================================================== */

.ptv-card {
  background: var(--sp-cream);
  border-radius: 20px;
  padding: var(--s-6);
  margin-top: var(--s-5);
}

.ptv-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin: var(--s-4) 0;
  border-radius: 8px;
  overflow: hidden;
}

.ptv-segment {
  padding: var(--s-3);
  text-align: center;
  color: white;
}

.ptv-segment .ptv-range {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.ptv-segment .ptv-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.ptv-high { background: #b04444; }
.ptv-mod { background: var(--sp-accent); color: var(--sp-dark); }
.ptv-low { background: var(--sp-mid); }

.ptv-source {
  font-size: 0.85rem;
  color: var(--sp-text-muted);
  font-style: italic;
}

/* ==========================================================================
   Quote / CTA section
   ========================================================================== */

.cta-section {
  background: linear-gradient(135deg, var(--sp-deep) 0%, var(--sp-dark) 100%);
  color: var(--sp-cream);
  padding: var(--s-8) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(111, 185, 143, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

@media (max-width: 900px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

.cta-section h2 {
  color: var(--sp-cream);
  margin-bottom: var(--s-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--s-5);
  font-size: 1.1rem;
}

.cta-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: var(--s-5);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-3);
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-light);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--sp-cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sp-light);
  background: rgba(255, 255, 255, 0.08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-submit {
  width: 100%;
  background: var(--sp-light);
  color: var(--sp-dark);
  padding: 1.1rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: var(--s-2);
}

.form-submit:hover {
  background: var(--sp-cream);
  transform: translateY(-1px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--sp-dark);
  color: var(--sp-cream);
  padding: var(--s-7) 0 var(--s-4);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-6);
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  color: var(--sp-cream);
  margin-bottom: var(--s-3);
}

.footer-tag {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: var(--s-4);
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sp-light);
  margin-bottom: var(--s-3);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--s-2);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--sp-cream);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: var(--s-5) auto 0;
  padding: var(--s-4) var(--s-4) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Article / content pages
   ========================================================================== */

.page-hero {
  padding: var(--s-7) 0 var(--s-6);
  background: var(--sp-cream);
  border-bottom: 1px solid var(--sp-border);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: var(--s-3);
  max-width: 880px;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--sp-text-muted);
  max-width: 720px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-text-muted);
  margin-bottom: var(--s-3);
}

.breadcrumb a {
  color: var(--sp-text-muted);
}

.breadcrumb a:hover {
  color: var(--sp-green);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-4);
}

.article-body h2 {
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
  font-size: 2rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
  font-size: 1.4rem;
}

.article-body p,
.article-body ul,
.article-body ol {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--sp-text);
  margin-bottom: var(--s-3);
}

.article-body ul,
.article-body ol {
  padding-left: var(--s-4);
}

.article-body li {
  margin-bottom: var(--s-2);
}

.article-body blockquote {
  border-left: 3px solid var(--sp-green);
  padding: var(--s-2) var(--s-4);
  margin: var(--s-4) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sp-deep);
  background: var(--sp-cream);
  border-radius: 0 8px 8px 0;
}

.article-body strong {
  color: var(--sp-dark);
  font-weight: 600;
}

.callout {
  background: var(--sp-pale);
  border-radius: 12px;
  padding: var(--s-4);
  margin: var(--s-4) 0;
  border-left: 3px solid var(--sp-mid);
}

.callout strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-green);
  margin-bottom: var(--s-2);
}

/* TOC */
.toc {
  background: var(--sp-cream);
  border-radius: 12px;
  padding: var(--s-4);
  margin-bottom: var(--s-5);
}

.toc strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sp-green);
  margin-bottom: var(--s-3);
}

.toc ol {
  list-style: none;
  padding: 0;
  counter-reset: toc;
}

.toc ol li {
  counter-increment: toc;
  margin-bottom: var(--s-2);
  font-size: 0.95rem;
}

.toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--sp-mid);
  margin-right: var(--s-2);
  font-size: 0.85rem;
}

/* Article meta */
.article-meta {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--sp-border);
  flex-wrap: wrap;
}

.author {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sp-green);
  color: var(--sp-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}

.author-info {
  font-size: 0.85rem;
  line-height: 1.3;
}

.author-info strong {
  display: block;
  color: var(--sp-dark);
  font-weight: 600;
}

.author-info span {
  color: var(--sp-text-muted);
}

.meta-divider {
  width: 1px;
  height: 32px;
  background: var(--sp-border);
}

.meta-item {
  font-size: 0.85rem;
  color: var(--sp-text-muted);
}

.meta-item strong {
  color: var(--sp-dark);
  font-weight: 600;
  display: block;
}

/* Cards / grids on subpages */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0;
}

.standard-card {
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: var(--s-4);
}

.standard-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sp-mid);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
}

.standard-card h4 {
  margin-bottom: var(--s-2);
  font-size: 1.05rem;
}

.standard-card p {
  font-size: 0.9rem;
  color: var(--sp-text-muted);
  margin: 0;
}

/* FAQ */
.faq-list {
  margin-top: var(--s-5);
}

.faq-item {
  border-bottom: 1px solid var(--sp-border);
  padding: var(--s-3) 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--sp-border);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--sp-dark);
  padding: var(--s-2) 0;
}

.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--sp-green);
  transition: transform 0.2s;
}

.faq-item.is-open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--sp-text-muted);
  line-height: 1.7;
}

.faq-item.is-open .faq-a {
  max-height: 500px;
  padding-top: var(--s-2);
}

/* Locations grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.location-link {
  padding: var(--s-3);
  background: var(--sp-cream);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--sp-text);
  transition: all 0.2s;
}

.location-link:hover {
  background: var(--sp-pale);
  color: var(--sp-green);
  transform: translateX(2px);
}

.location-link::after {
  content: "→";
  color: var(--sp-mid);
  opacity: 0.6;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeUp 0.6s ease-out backwards;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--sp-dark);
  color: var(--sp-cream);
  padding: var(--s-2) var(--s-3);
  z-index: 200;
}

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