/* ==========================================================================
   EUROPEAN CIRCULAR MATERIAL ATLAS — SYSTEM DESIGN
   Brand: rankrostertogetherly.hair
   Aesthetic: Soft Modern | Voice: Terse Operator
   ========================================================================== */

:root {
  /* PRIMARY STRUCTURAL COLORS */
  --c-ink: #172A29;
  --c-graphite: #263837;
  --c-slate: #435552;
  --c-industrial-grey: #687570;
  --c-stone: #A8B1AA;

  /* LIGHT SURFACES */
  --c-paper-fibre: #F4F1E8;
  --c-recycled-cream: #E9E4D7;
  --c-mineral-mist: #DDE3DE;
  --c-pale-concrete: #D2D6D0;
  --c-clean-paper: #FBFAF6;

  /* DISTINCTIVE ACCENTS */
  --c-oxide-coral: #C66F5C;
  --c-copper: #B27B5E;
  --c-moss: #708B72;
  --c-circular-teal: #4F8580;
  --c-industrial-blue: #607F8B;
  --c-material-gold: #B79A59;
  --c-clay-orange: #C98261;
  --c-aubergine: #765D68;

  /* TYPOGRAPHY */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* SPACING SCALE: 4, 8, 16, 24, 40, 64px */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 64px;

  /* RADIUS & SHADOWS */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-subtle: 0 2px 8px rgba(23, 42, 41, 0.06);
  --shadow-elevated: 0 8px 24px rgba(23, 42, 41, 0.09);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--c-paper-fibre);
  color: var(--c-ink);
}

body {
  font-family: var(--font-stack);
  line-height: 1.6;
  background-color: var(--c-paper-fibre);
  color: var(--c-ink);
  min-width: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHIC DISCIPLINE */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

p {
  margin-bottom: var(--sp-3);
  overflow-wrap: anywhere;
}

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

a {
  color: var(--c-circular-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--c-oxide-coral);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-oxide-coral);
  outline-offset: 3px;
}

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

/* SHARED CONTAINER */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-3);
  padding-right: var(--sp-3);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }
}

/* ==========================================================================
   HEADER (NON-STICKY, WITH RELATIVE CONTEXT FOR MOBILE NAV)
   ========================================================================== */
.site-header {
  height: 64px;
  background-color: var(--c-clean-paper);
  border-bottom: 1px solid var(--c-pale-concrete);
  position: relative; /* Context for mobile dropdown, scrolls with document */
  width: 100%;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-3);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-text {
  overflow-wrap: anywhere;
  color: var(--c-ink);
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 0.85rem;
  }
}

/* PRIMARY NAVIGATION */
.nav-menu {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--sp-4);
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-slate);
  padding: var(--sp-1) 0;
  position: relative;
}

.nav-link:hover {
  color: var(--c-ink);
}

.nav-link[aria-current="page"] {
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-circular-teal);
}

.nav-link-cta {
  background-color: var(--c-graphite);
  color: var(--c-clean-paper);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.nav-link-cta:hover {
  background-color: var(--c-circular-teal);
  color: var(--c-clean-paper);
}

/* HAMBURGER TOGGLE */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--c-stone);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

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

/* MOBILE NAV OVERLAY */
@media (max-width: 991px) {
  .nav-menu.is-visible {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background-color: var(--c-clean-paper);
    border-bottom: 2px solid var(--c-circular-teal);
    box-shadow: var(--shadow-elevated);
    padding: var(--sp-4) var(--sp-3);
    z-index: 105;
  }

  .nav-menu.is-visible .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .nav-menu.is-visible .nav-link-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: var(--sp-2);
  }
}

/* ==========================================================================
   BUTTONS & METADATA PILLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px var(--sp-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1.2;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--c-circular-teal);
  color: var(--c-clean-paper);
  border-color: var(--c-circular-teal);
}

.btn-primary:hover {
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-clean-paper);
}

.btn-secondary {
  background-color: var(--c-recycled-cream);
  color: var(--c-ink);
  border-color: var(--c-stone);
}

.btn-secondary:hover {
  background-color: var(--c-pale-concrete);
  color: var(--c-ink);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-ink);
  border-color: var(--c-slate);
}

.btn-outline:hover {
  background-color: var(--c-slate);
  color: var(--c-clean-paper);
}

.btn-sm {
  padding: 6px var(--sp-3);
  font-size: 0.8rem;
}

.btn-link {
  background: transparent;
  color: var(--c-slate);
  text-decoration: underline;
  border: none;
  padding: 6px var(--sp-2);
}

.meta-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--c-recycled-cream);
  color: var(--c-slate);
  padding: 4px var(--sp-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-circular-teal);
  margin-bottom: var(--sp-3);
}

/* ==========================================================================
   HOMEPAGE HERO SECTION
   Structure: TEXT + CTA -> GAP -> VISUAL (No text over image)
   ========================================================================== */
.hero-section {
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--c-pale-concrete);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-6);
  }
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: var(--sp-3);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--c-slate);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-pale-concrete);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-oxide-coral);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--c-industrial-grey);
  font-weight: 600;
  line-height: 1.3;
}

/* HERO VISUAL DISPLAY */
.material-matrix-card {
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-subtle);
}

.matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-recycled-cream);
}

.matrix-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-ink);
}

.matrix-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-copper);
}

.matrix-display {
  background-color: var(--c-paper-fibre);
  border: 1px solid var(--c-recycled-cream);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
}

.flow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.matrix-footer {
  margin-top: var(--sp-3);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--c-slate);
}

.matrix-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-circular-teal);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   HORIZONTAL SPLIT CARDS
   Desktop: IMAGE | GAP | CONTENT
   ========================================================================== */
.section {
  padding: var(--sp-6) 0;
}

.section-header {
  margin-bottom: var(--sp-5);
  max-width: 760px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--c-circular-teal);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.section-title {
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin-bottom: var(--sp-2);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

.section-sub {
  font-size: 1rem;
  color: var(--c-slate);
}

.horizontal-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* CARD SPECIFICATION */
.split-card {
  display: flex;
  flex-direction: column;
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.split-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.split-card-media {
  width: 100%;
  background-color: var(--c-recycled-cream);
}

.split-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.split-card-content {
  width: 100%;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
}

/* DESKTOP SPLIT: IMAGE | GAP | CONTENT */
@media (min-width: 840px) {
  .split-card {
    flex-direction: row;
    align-items: stretch;
  }

  .split-card-media {
    width: 46%;
    flex-shrink: 0;
  }

  .split-card-img {
    height: 100%;
    min-height: 290px;
  }

  .split-card-content {
    width: 54%;
    padding: var(--sp-4) var(--sp-5);
    justify-content: center;
  }
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}

.card-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.category-teal {
  background-color: var(--c-mineral-mist);
  color: var(--c-circular-teal);
}

.category-copper {
  background-color: #F7EBE4;
  color: var(--c-copper);
}

.category-coral {
  background-color: #FBECE8;
  color: var(--c-oxide-coral);
}

.category-slate {
  background-color: var(--c-pale-concrete);
  color: var(--c-slate);
}

.category-gold {
  background-color: #F8F3E5;
  color: var(--c-material-gold);
}

.card-origin {
  font-size: 0.75rem;
  color: var(--c-industrial-grey);
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--c-slate);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}

.card-specs {
  display: flex;
  gap: var(--sp-2);
  font-size: 0.8rem;
  margin-bottom: var(--sp-3);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--c-recycled-cream);
  border-bottom: 1px solid var(--c-recycled-cream);
}

.spec-label {
  font-weight: 700;
  color: var(--c-ink);
}

.spec-value {
  color: var(--c-slate);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
}

.tag {
  font-size: 0.7rem;
  background-color: var(--c-paper-fibre);
  border: 1px solid var(--c-pale-concrete);
  color: var(--c-slate);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.card-action {
  margin-top: auto;
}

/* ==========================================================================
   SUPPORTING SECTION: THE CIRCULAR MATERIAL LOOP (6 STAGES)
   ========================================================================== */
.loop-section {
  background-color: var(--c-recycled-cream);
  border-top: 1px solid var(--c-pale-concrete);
  border-bottom: 1px solid var(--c-pale-concrete);
}

.loop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 580px) {
  .loop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .loop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
}

.loop-step {
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
}

.loop-step-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-circular-teal);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.loop-step-title {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-2);
}

.loop-step-desc {
  font-size: 0.88rem;
  color: var(--c-slate);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}

.loop-step-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--c-copper);
  font-weight: 600;
  margin-top: auto;
}

/* PRINCIPLES BOX */
.principles-section {
  padding: var(--sp-6) 0;
}

.principles-box {
  background-color: var(--c-ink);
  color: var(--c-clean-paper);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 860px) {
  .principles-box {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: var(--sp-6);
  }
}

.principles-heading {
  color: var(--c-clean-paper);
  font-size: 1.8rem;
  margin-bottom: var(--sp-2);
}

.principles-text p {
  color: var(--c-stone);
  font-size: 0.95rem;
  max-width: 720px;
}

/* ==========================================================================
   SUB-PAGE EDITORIAL LAYOUT
   ========================================================================== */
.article-page {
  padding-bottom: var(--sp-6);
}

.page-intro-header {
  padding: var(--sp-6) 0 var(--sp-5);
  border-bottom: 1px solid var(--c-pale-concrete);
  margin-bottom: var(--sp-5);
  background-color: var(--c-clean-paper);
}

.page-title {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.6rem;
  }
}

.page-lead {
  font-size: 1.1rem;
  color: var(--c-slate);
  max-width: 860px;
  line-height: 1.6;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.article-main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* SUBPAGE HERO SPLIT (Physical Image -> Gap -> Text) */
.content-split-hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
}

@media (min-width: 768px) {
  .content-split-hero {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-5);
  }

  .content-split-img {
    width: 45%;
    flex-shrink: 0;
  }

  .content-split-text {
    width: 55%;
  }
}

.content-split-img img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.content-split-text h2 {
  font-size: 1.4rem;
  margin-bottom: var(--sp-2);
}

.article-section {
  margin-bottom: var(--sp-5);
}

.article-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-1);
  border-bottom: 2px solid var(--c-recycled-cream);
}

/* LISTS & DATA STYLING */
.data-list, .bullet-list, .ordered-list {
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.data-list li, .bullet-list li, .ordered-list li {
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
  font-size: 0.95rem;
  line-height: 1.6;
}

.data-list li strong {
  color: var(--c-ink);
}

/* COMPARISON TABLES */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--sp-5);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-sm);
  background-color: var(--c-clean-paper);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 520px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px var(--sp-3);
  border-bottom: 1px solid var(--c-pale-concrete);
}

.comparison-table th {
  background-color: var(--c-recycled-cream);
  color: var(--c-ink);
  font-weight: 700;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* EVALUATION GRID */
.evaluation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

@media (min-width: 680px) {
  .evaluation-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.eval-card {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-pale-concrete);
}

.eval-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
}

.eval-card ul {
  padding-left: var(--sp-3);
}

.eval-card li {
  font-size: 0.88rem;
  margin-bottom: var(--sp-2);
  line-height: 1.4;
}

.good-for {
  background-color: #EEF4F0;
  border-left: 4px solid var(--c-moss);
}

.good-for h3 {
  color: var(--c-moss);
}

.what-to-know {
  background-color: #F7EFE9;
  border-left: 4px solid var(--c-copper);
}

.what-to-know h3 {
  color: var(--c-copper);
}

/* RELATED STREAMS BLOCK */
.related-block {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--c-pale-concrete);
}

.related-block h3 {
  font-size: 1.2rem;
  margin-bottom: var(--sp-3);
}

.related-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 640px) {
  .related-links {
    grid-template-columns: 1fr 1fr;
  }
}

.related-card {
  display: block;
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-circular-teal);
}

.related-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-circular-teal);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.related-card h4 {
  font-size: 1rem;
  color: var(--c-ink);
  margin-bottom: 4px;
}

.related-card p {
  font-size: 0.82rem;
  color: var(--c-slate);
  margin: 0;
}

/* PAGE CTA BOX */
.page-cta-box {
  margin-top: var(--sp-5);
  background-color: var(--c-mineral-mist);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  text-align: center;
}

.page-cta-box h3 {
  font-size: 1.3rem;
  margin-bottom: var(--sp-2);
}

.page-cta-box p {
  font-size: 0.95rem;
  color: var(--c-slate);
  margin-bottom: var(--sp-3);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* LEGAL PAGES STYLING */
.legal-box {
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: 0.9rem;
}

.cookie-reset-control {
  margin-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: flex-start;
}

.reset-status-msg {
  display: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-moss);
}

.reset-status-msg.is-visible {
  display: inline-block;
}

/* ==========================================================================
   CONTACT PAGE & FORM DESIGN
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.info-card {
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--c-slate);
  margin-bottom: 6px;
}

.mail-anchor {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-circular-teal);
}

.status-indicator-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background-color: var(--c-paper-fibre);
  border: 1px solid var(--c-pale-concrete);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-top: var(--sp-2);
}

.static-map-graphic {
  width: 100%;
  margin: var(--sp-2) 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-pale-concrete);
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-caption {
  font-size: 0.75rem !important;
  color: var(--c-industrial-grey) !important;
  margin-top: 4px;
}

.form-wrapper {
  background-color: var(--c-clean-paper);
  border: 1px solid var(--c-pale-concrete);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 768px) {
  .form-wrapper {
    padding: var(--sp-5);
  }
}

.form-wrapper h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--c-industrial-grey);
  margin-bottom: var(--sp-4);
}

.req-star {
  color: var(--c-oxide-coral);
}

.atlas-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--c-paper-fibre);
  border: 1px solid var(--c-stone);
  border-radius: var(--radius-sm);
  color: var(--c-ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: var(--c-clean-paper);
  border-color: var(--c-circular-teal);
  outline: none;
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--c-oxide-coral);
  background-color: #FDF4F2;
}

.field-error {
  display: none;
  font-size: 0.78rem;
  color: var(--c-oxide-coral);
  margin-top: 4px;
  font-weight: 600;
}

.field-error.is-visible {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 12px var(--sp-4);
  font-size: 1rem;
}

.form-alert {
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.4;
  margin-top: var(--sp-2);
}

.form-alert-success {
  background-color: #E6F2EB;
  border: 1px solid var(--c-moss);
  color: var(--c-ink);
}

.form-alert-error {
  background-color: #FBECE8;
  border: 1px solid var(--c-oxide-coral);
  color: var(--c-ink);
}

/* ==========================================================================
   FOOTER (UNIFORM ACROSS PLATFORM)
   ========================================================================== */
.site-footer {
  background-color: var(--c-ink);
  color: var(--c-stone);
  padding: var(--sp-6) 0 0;
  border-top: 4px solid var(--c-circular-teal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

.brand-col {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .brand-col {
    grid-column: auto;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.footer-domain-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-clean-paper);
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.footer-domain-link:hover {
  color: var(--c-oxide-coral);
}

.footer-summary {
  font-size: 0.88rem;
  color: var(--c-stone);
  line-height: 1.5;
  margin-bottom: var(--sp-3);
  max-width: 480px;
}

.legal-entity-block {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-industrial-grey);
}

.legal-entity-block p {
  margin-bottom: 2px;
}

.legal-entity-block strong {
  color: var(--c-stone);
}

.footer-mail-link {
  color: var(--c-circular-teal);
}

.footer-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-clean-paper);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-graphite);
  padding-bottom: var(--sp-1);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-links a {
  color: var(--c-stone);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--c-clean-paper);
  text-decoration: underline;
}

.compliance-tag {
  display: inline-block;
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background-color: var(--c-graphite);
  color: var(--c-stone);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.footer-bottom {
  background-color: #0E1A19;
  padding: var(--sp-3) 0;
  font-size: 0.78rem;
  color: var(--c-industrial-grey);
  border-top: 1px solid var(--c-graphite);
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

@media (min-width: 768px) {
  .footer-bottom-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-domain-audit a {
  color: var(--c-stone);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   COOKIE CONSENT BANNER (FIXED BOTTOM DOCK)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--c-graphite);
  color: #ffffff;
  border-top: 3px solid var(--c-circular-teal);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  padding: var(--sp-3) 0;
  z-index: 9999;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .cookie-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-title {
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.cookie-text {
  font-size: 0.82rem;
  color: #ffffff;
  margin-bottom: 0;
  max-width: 700px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  flex-shrink: 0;
}

.cookie-banner .btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}

.cookie-banner .btn-outline:hover {
  background-color: #ffffff;
  color: var(--c-ink);
}

.cookie-banner .btn-link {
  color: #ffffff;
}

.cookie-banner .btn-link:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* ==========================================================================
   RESPONSIVE OVERFLOW & ACCESSIBILITY GUARDRAILS
   ========================================================================== */
@media (max-width: 400px) {
  :root {
    --sp-4: 16px;
    --sp-5: 28px;
    --sp-6: 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

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