/* ==========================================================================
   Fix And Upgrade Nest — Spatial Minimalist Architecture (Dieter Rams / Industrial Calm)
   Structure: Fixed Left Vertical Studio Rail + Borderless Tonal Spatial Modules
   Palette: Cool Pebble (#F3F4F6), Pure Matte White (#FFFFFF), Matte Carbon (#18181B),
            Cool Slate (#63636E), Functional Signal Vermilion (#DC3827)
            (Zero Green, Zero Cream, Zero Corporate Blue, Zero 1px Grid Clutter)


            First Orange / 2nd Lavender
   ========================================================================== */

:root {
  --canvas: #F4F0F9;
  --module: #FFFFFF;
  --pebble: #ECE6F4;
  --pebble-hover: #DED5EC;

  --carbon: #251A35;
  --carbon-soft: #38294D;
  --text-main: #2D2140;
  --text-sub: #746486;
  --text-quiet: #9B8EAA;

  --signal: #7950B5;
  --signal-hover: #5D3A91;
  --signal-soft: #EDE5F8;

  --rail-width: 236px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--canvas);
  color: var(--text-main);
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background-color: var(--carbon);
  color: #ffffff;
}

/* ==========================================================================
   FIXED LEFT VERTICAL ARCHITECTURAL RAIL (HEADER — IDENTICAL ON ALL 8 PAGES)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: var(--rail-width);
  background-color: var(--module);
  border-radius: var(--radius-xl);
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.15rem;
}

@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 8px;
    left: auto;
    bottom: auto;
    width: calc(100% - 16px);
    margin: 8px auto 0;
    border-radius: 16px;
    padding: 0.85rem 1.15rem;
    flex-direction: row;
    align-items: center;
  }
}

.rail-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 1023px) {
  .rail-top {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.5rem;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--signal);
  flex-shrink: 0;
}

.brand-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--carbon);
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

@media (max-width: 1023px) {
  .primary-nav {
    display: none;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.66rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--text-sub);
}

.nav-link:hover {
  background-color: var(--pebble);
  color: var(--carbon);
}

.nav-link.is-active {
  background-color: var(--carbon);
  color: #ffffff;
  font-weight: 500;
}

.nav-link.is-active::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--signal);
}

.rail-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

@media (max-width: 1023px) {
  .rail-bottom {
    display: none;
  }
}

.rail-phone {
  padding: 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-quiet);
}

.rail-phone strong {
  display: block;
  color: var(--carbon);
  font-weight: 500;
  font-size: 0.84rem;
  margin-top: 2px;
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--pebble);
  align-items: center;
  justify-content: center;
  color: var(--carbon);
}

@media (max-width: 1023px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* Mobile Slide-Down Overlay inside Header */
.mobile-drawer {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-drawer.is-open {
    display: block;
    position: fixed;
    top: 72px;
    left: 8px;
    right: 8px;
    background-color: var(--module);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    z-index: 950;
  }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  color: var(--carbon);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background-color: var(--pebble);
  font-weight: 500;
}

/* ==========================================================================
   MAIN SPATIAL CANVAS (FLOWS TO THE RIGHT OF FIXED RAIL)
   ========================================================================== */
.spatial-canvas {
  margin-left: calc(var(--rail-width) + 24px);
  padding: 12px 12px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1440px;
}

@media (max-width: 1023px) {
  .spatial-canvas {
    margin-left: 0;
    padding: 10px 8px 16px;
    gap: 12px;
  }
}

.site-footer-wrap {
  margin-left: calc(var(--rail-width) + 24px);
  padding: 0 12px 12px 0;
  max-width: 1440px;
}

@media (max-width: 1023px) {
  .site-footer-wrap {
    margin-left: 0;
    padding: 0 8px 12px;
  }
}

/* Pure Borderless Spatial Modules */
.module-white {
  background-color: var(--module);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
}

@media (min-width: 768px) {
  .module-white {
    padding: 3.25rem 3rem;
  }
}

.module-carbon {
  background-color: var(--carbon);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
}

@media (min-width: 768px) {
  .module-carbon {
    padding: 3.25rem 3rem;
  }
}

/* Minimalist Typography & Pills */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  background-color: var(--pebble);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-sub);
}

.tag-pill-dark {
  background-color: var(--carbon-soft);
  color: rgba(255, 255, 255, 0.78);
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--signal);
}

.h-hero {
  font-size: clamp(2.15rem, 4.1vw, 3.65rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--carbon);
}

.h-section {
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.h-card {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.28;
}

.copy-lead {
  font-size: clamp(0.98rem, 1.12vw, 1.06rem);
  color: var(--text-sub);
  line-height: 1.7;
}

.module-carbon .copy-lead {
  color: rgba(255, 255, 255, 0.68);
}

.copy-body {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.72;
}

/* Tactile Pill Buttons */
.btn-carbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-pill);
  background-color: var(--carbon);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-carbon:hover {
  background-color: var(--signal);
}

.btn-pebble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-pill);
  background-color: var(--pebble);
  color: var(--carbon);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-pebble:hover {
  background-color: var(--pebble-hover);
}

.btn-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-pill);
  background-color: var(--signal);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-signal:hover {
  background-color: var(--signal-hover);
}

.btn-white-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-pill);
  background-color: #ffffff;
  color: var(--carbon);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-white-pill:hover {
  background-color: var(--signal);
  color: #ffffff;
}

/* ==========================================================================
   HOMEPAGE SPATIAL HERO MODULE
   ========================================================================== */
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-bento-lower {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 920px) {
  .hero-bento-lower {
    grid-template-columns: 0.86fr 1.14fr;
    gap: 2rem;
  }
}

.hero-left-panel {
  background-color: var(--pebble);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}

.hero-mini-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mini-spec-tile {
  background-color: var(--module);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.mini-spec-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--carbon);
}

.mini-spec-desc {
  font-size: 0.74rem;
  color: var(--text-quiet);
  margin-top: 2px;
}

.hero-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  background-color: var(--pebble);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: cover;
}

.hero-image-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background-color: rgba(24, 24, 27, 0.82);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

/* ==========================================================================
   SPATIAL SPLIT MODULES (SIDE-BY-SIDE SEPARATE TILES ON CANVAS)
   ========================================================================== */
.dual-module-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 920px) {
  .dual-module-row {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.photo-tile-module {
  background-color: var(--module);
  border-radius: var(--radius-xl);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-tile-module img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  flex: 1;
}

.photo-tile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-pebble {
  background-color: var(--pebble);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.stat-pebble span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-quiet);
}

.stat-pebble strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--carbon);
  margin-top: 2px;
}

.soft-stack-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 1.75rem;
}

.soft-pebble-card {
  background-color: var(--pebble);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
}

.soft-pebble-meta {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--signal);
}

/* ==========================================================================
   INTERACTIVE MASTER-DETAIL SERVICE EXPLORER (HOMEPAGE)
   ========================================================================== */
.service-explorer {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 880px) {
  .service-explorer {
    grid-template-columns: 290px 1fr;
  }
}

.explorer-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explorer-tab-btn {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  background-color: var(--pebble);
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.explorer-tab-btn:hover {
  background-color: var(--pebble-hover);
  color: var(--carbon);
}

.explorer-tab-btn.is-active {
  background-color: var(--carbon);
  color: #ffffff;
  font-weight: 500;
}

.explorer-stage {
  background-color: var(--pebble);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .explorer-stage {
    padding: 2.5rem;
  }
}

.explorer-pane {
  display: none;
}

.explorer-pane.is-active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  height: 100%;
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
}

.cloud-pill {
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--pebble);
  font-size: 0.8rem;
  color: var(--text-sub);
}

.cloud-pill:hover {
  background-color: var(--carbon);
  color: #ffffff;
}

/* ==========================================================================
   CARBON CONTRAST MODULE (WHY HOMEOWNERS CHOOSE US)
   ========================================================================== */
.carbon-commitments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 2rem;
}

@media (min-width: 860px) {
  .carbon-commitments {
    grid-template-columns: repeat(3, 1fr);
  }
}

.carbon-tile {
  background-color: var(--carbon-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.carbon-tile h3,
.carbon-tile h4 {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.carbon-tile p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  line-height: 1.65;
}

.carbon-4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

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

@media (min-width: 1100px) {
  .carbon-4-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   INTERACTIVE STORY STAGE (HOMEOWNER FEEDBACK)
   ========================================================================== */
.story-stage-box {
  margin-top: 2rem;
  background-color: var(--pebble);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

@media (min-width: 768px) {
  .story-stage-box {
    padding: 2.75rem;
  }
}

.story-slide {
  display: none;
}

.story-slide.is-active {
  display: block;
}

.story-quote-large {
  font-size: clamp(1.18rem, 1.85vw, 1.52rem);
  line-height: 1.52;
  font-weight: 400;
  color: var(--carbon);
  letter-spacing: -0.015em;
}

.story-selector-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .story-selector-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .story-selector-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.story-select-btn {
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background-color: var(--pebble);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.story-select-btn:hover {
  background-color: var(--pebble-hover);
}

.story-select-btn.is-active {
  background-color: var(--carbon);
  color: #ffffff;
}

.story-select-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
}

.story-select-role {
  display: block;
  font-size: 0.74rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* ==========================================================================
   SEPARATED PILL FAQ ACCORDION
   ========================================================================== */
.faq-pill-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1.75rem;
}

.faq-row {
  background-color: var(--pebble);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.faq-question {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--carbon);
}

.faq-dot-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--module);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--carbon);
  flex-shrink: 0;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.faq-row.is-open .faq-dot-toggle {
  background-color: var(--carbon);
  color: #ffffff;
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 1.5rem 1.4rem;
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.72;
}

.faq-row.is-open .faq-panel {
  display: block;
}

/* ==========================================================================
   SERVICES DIRECTORY PAGE — BORDERLESS WHITE MODULES ON PEBBLE CANVAS
   ========================================================================== */
.services-filter-bar {
  background-color: var(--module);
  border-radius: var(--radius-xl);
  padding: 1.15rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-btn {
  padding: 0.52rem 1rem;
  border-radius: var(--radius-pill);
  background-color: var(--pebble);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sub);
}

.filter-btn:hover {
  background-color: var(--pebble-hover);
  color: var(--carbon);
}

.filter-btn.is-active {
  background-color: var(--carbon);
  color: #ffffff;
}

.pill-search-input {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: none;
  background-color: var(--pebble);
  font-size: 0.84rem;
  min-width: 220px;
  color: var(--carbon);
}

.pill-search-input:focus {
  outline: 2px solid var(--carbon);
  background-color: var(--module);
}

.services-spatial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.service-flat-module {
  background-color: var(--module);
  border-radius: var(--radius-xl);
  padding: 2.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  scroll-margin-top: 24px;
}

.service-flat-flagship {
  grid-column: 1 / -1;
  background-color: var(--carbon);
  color: #ffffff;
}

.service-flat-flagship .copy-body {
  color: rgba(255, 255, 255, 0.72);
}

.flagship-row-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 920px) {
  .flagship-row-layout {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

/* ==========================================================================
   SOFT TACTILE PEBBLE FORMS (CONTACT, NEWSLETTER, UNSUBSCRIBE)
   ========================================================================== */
.soft-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.soft-field {
  margin-bottom: 1rem;
}

.soft-form-grid .soft-field {
  margin-bottom: 0;
}

.soft-row-top {
  margin-top: 1rem;
}

.soft-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
}

.soft-input {
  width: 100%;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background-color: var(--pebble);
  padding: 0.82rem 1rem;
  font-size: 0.92rem;
  color: var(--carbon);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.soft-input:focus {
  outline: none;
  background-color: var(--module);
  border-color: var(--carbon);
}

.soft-input.is-invalid {
  border-color: var(--signal);
  background-color: var(--signal-soft);
}

textarea.soft-input {
  resize: vertical;
  min-height: 118px;
}

.field-error {
  display: none;
  font-size: 0.76rem;
  color: var(--signal);
  margin-top: 0.35rem;
}

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

.soft-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.soft-checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--carbon);
  flex-shrink: 0;
}

.form-status-banner {
  display: none;
  margin-top: 1.25rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background-color: var(--pebble);
}

.form-status-banner.status-crimson {
  background-color: var(--signal-soft);
}

.form-status-banner.is-visible {
  display: block;
}

/* ==========================================================================
   LEGAL MODULES (TERMS & PRIVACY)
   ========================================================================== */
.legal-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

@media (min-width: 980px) {
  .legal-split {
    grid-template-columns: 280px 1fr;
  }
}

.legal-nav-module {
  background-color: var(--module);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

@media (min-width: 980px) {
  .legal-nav-module {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

.legal-nav-link {
  display: block;
  padding: 0.48rem 0.7rem;
  border-radius: 8px;
  font-size: 0.79rem;
  color: var(--text-sub);
}

.legal-nav-link:hover {
  background-color: var(--pebble);
  color: var(--carbon);
}

.legal-clause-block {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--pebble);
  scroll-margin-top: 24px;
}

.legal-clause-block:first-child {
  padding-top: 0;
}

.legal-clause-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ==========================================================================
   SPATIAL MODULE FOOTER (IDENTICAL ON ALL 8 PAGES)
   ========================================================================== */
.site-footer {
  background-color: var(--module);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2rem 1.75rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 3.25rem 3rem 2rem;
  }
}

.footer-spatial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
}

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

@media (min-width: 1120px) {
  .footer-spatial-grid {
    grid-template-columns: 1.55fr 1fr 1fr 0.95fr 0.95fr;
  }
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--carbon);
  margin-bottom: 0.9rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-sub);
}

.footer-links a:hover {
  color: var(--signal);
}

.footer-bottom-row {
  padding-top: 1.5rem;
  border-top: 1px solid var(--pebble);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-quiet);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links a:hover {
  color: var(--carbon);
}

/* ==========================================================================
   MINIMALIST PILL/MODULE JAVASCRIPT TOAST NOTIFICATION
   ========================================================================== */
.toast-viewport {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 390px;
  width: calc(100vw - 2.5rem);
  pointer-events: none;
}

.arch-toast {
  pointer-events: auto;
  background-color: var(--carbon);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.05rem 1.2rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(24, 24, 27, 0.24);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.arch-toast.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #ffffff;
}

.arch-toast.toast-error .toast-icon,
.arch-toast.toast-unsubscribe .toast-icon {
  color: #ff7b6e;
}

.toast-icon svg {
  width: 18px;
  height: 18px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.toast-message {
  font-size: 0.79rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.52;
}

.toast-close {
  color: rgba(255, 255, 255, 0.5);
  padding: 0.15rem;
}

.toast-close:hover {
  color: #ffffff;
}

.toast-close svg {
  width: 15px;
  height: 15px;
}

.toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--signal);
  width: 100%;
  transform-origin: left center;
  animation: toastCountdown linear forwards;
}

@keyframes toastCountdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
