/* Google Fonts are loaded via <link> tags in <head> (see functions.php)
   so the browser can discover them BEFORE parsing this stylesheet.
   Importing here would chain the font fetch behind this CSS download
   and cause a visible layout shift when fonts swap in. */

html {
  scroll-behavior: smooth;
  /* Clip any horizontal overflow caused by fixed-positioned children whose
     containing block gets shifted by transforms elsewhere on the page (the
     /about page's `.corp-fade-in` sections triggered this, inflating
     scrollWidth to 649px and forcing mobile browsers to zoom the page out
     to ~58%). Applied on both html + body for cross-browser reliability. */
  overflow-x: hidden;
}

:root {
  --nice-red: #c41230;
  --nice-red-dark: #a00f26;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --text-main: #000000;
  --text-muted: #000000;
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --container-width: 1280px;

  /* Corporate Demo Specifics */
  --corp-blue: #0066ff;
  --corp-blue-glow: rgba(0, 102, 255, 0.4);
  --pastel-pink: #fff0f3;
  --pastel-yellow: #fff9db;
  --pastel-blue: #e7f5ff;
  --pastel-green: #ebfbee;
  --pastel-purple: #f3f0ff;

  /* Social Housing audience accents — landlord stays in the brand red
   * family; council uses an institutional navy (civic / local authority
   * association) so the two audiences are unmistakably distinct. */
  --sh-accent-landlord: #c41230;        /* brand red */
  --sh-accent-landlord-soft: #ff6b7e;   /* lighter warm red for dark bg */
  --sh-accent-council: #1e3a8a;         /* deep institutional navy */
  --sh-accent-council-soft: #60a5fa;    /* bright sky blue for dark bg */
}

/* Audience scoping: each page sets its class at the top so highlights,
 * borders, and shadows pick up the right accent without per-page CSS. */
.housing-audience--landlord {
  --sh-accent: var(--sh-accent-landlord);
  --sh-accent-soft: var(--sh-accent-landlord-soft);
}

.housing-audience--council {
  --sh-accent: var(--sh-accent-council);
  --sh-accent-soft: var(--sh-accent-council-soft);
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: #000;
  background-color: var(--bg-white);
  line-height: 1.5;
  /* See note on `html` — both need overflow-x:hidden to reliably clip the
     /about mobile overflow across Chrome, Safari, Firefox. */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

/* Animated thin underline on text links */
a:not(.logo):not(.ll-product-btn):not([class*="-btn"]):not([class*="btn-"]):not(.btn):not(.btn-primary):not(.btn-outline):not(.corp-social-icon):not(.corp-top-bar-item):not([class*="btn-corp"]):not([class*="btn-cta"]):not([class*="housing-door-btn"]):not([class*="housing-action-btn"]):not(.sh-header-contact):not(.sh-header-logo):not(.housing-path-cta):not(.housing-hero-ctas a):not(.housing-cta-band-actions a):not([class*="shs-"]):not([class*="corp-mobile-"]) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 4px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

a:not(.logo):not(.ll-product-btn):not([class*="-btn"]):not([class*="btn-"]):not(.btn):not(.btn-primary):not(.btn-outline):not(.corp-social-icon):not(.corp-top-bar-item):not([class*="btn-corp"]):not([class*="btn-cta"]):not([class*="housing-door-btn"]):not([class*="housing-action-btn"]):not(.sh-header-contact):not(.sh-header-logo):not(.housing-path-cta):not(.housing-hero-ctas a):not(.housing-cta-band-actions a):not([class*="shs-"]):not([class*="corp-mobile-"]):hover {
  background-size: 100% 1px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--nice-red);
  color: white;
  border: 1px solid var(--nice-red);
}

.btn-primary:hover {
  background-color: var(--nice-red-dark);
  border-color: var(--nice-red-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--nice-red);
  border: 2px solid var(--nice-red);
}

.btn-outline:hover {
  background-color: #fff1f2;
}

/* Layouts */
/* Sections own their padding via their component class. The generic
   `section { padding: 4rem 0 }` used to add a global 64px top/bottom
   which doubled up with each section's own padding and created huge
   dead bands between sections. Reset to 0 — every section in use has
   its own explicit padding rules. */
section {
  padding: 0;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

/* Header */
.header {
  height: 80px;
  background: white;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 50px;
  display: block;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--nice-red);
}

/* Footer (Original Site Replication) */
.footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #a0a0a0;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  color: #a0a0a0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

/* Gateway Page - Modern Shelf Hero */
.gateway-hero {
  min-height: 90vh;
  padding: 1rem 0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(196, 18, 48, 0.05) 0%, rgba(59, 130, 246, 0.05) 30%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-main-container {
  position: relative;
  z-index: 5;
  background: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-image-area {
  position: relative;
  height: 600px;
  background-image: url('../images/hero-modern.png');
  background-size: cover;
  background-position: center;
}

.hero-shelf {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem 3rem 4rem 4rem;
  border-top-right-radius: 40px;
  box-shadow: 20px -20px 40px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.hero-shelf h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-shelf p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
}

.gateway-split {
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: #ffffff;
}

.gateway-card {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.gateway-card:hover {
  transform: translateY(-10px);
  background: #ffffff;
  box-shadow: 0 30px 60px -12px rgba(196, 18, 48, 0.1);
  border-color: var(--nice-red);
}

.gateway-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  color: var(--nice-red);
}

.gateway-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Red Highlight utility */
.red-highlight {
  color: var(--nice-red);
}

/* FAQ Accordion */
.faq-category {
  margin-bottom: 2rem;
}

.faq-cat-title {
  font-size: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--nice-red);
  margin-bottom: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Feature Cards & Grids */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--nice-red);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #fff1f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nice-red);
  margin-bottom: 1.5rem;
}

/* Trust Bar */
.trust-bar {
  background: var(--bg-light);
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--nice-red);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Steps Section */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--nice-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .header-inner {
    padding: 1rem 0;
  }

  .nav-list {
    display: none;
    /* Add burger later */
  }

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

  .gateway-card {
    padding: 1.5rem;
  }

  .gateway-card h2 {
    font-size: 1.4rem;
  }

  .hero-shelf {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .hero-shelf h1 {
    font-size: 2rem;
  }

  .hero-shelf p {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {

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

/* Gateway Hero Overrides */
.gateway-hero {
  min-height: 80vh;
  padding: 4rem 0;
}

/* Corporate Demo Styles */

/* ===================== */
/* Corporate Header - New Design */
/* ===================== */
.corp-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  pointer-events: none;
}

/* Top Info Bar */
.corp-top-bar {
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.5rem 0;
}

.corp-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.corp-top-bar-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.corp-top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.corp-top-bar-item:hover {
  color: white;
}

.corp-top-bar-right {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.corp-social-icon {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.corp-social-icon:hover {
  color: white;
}

/* Main Navigation — matches the Social Housing header dimensions so
   the logo/login/hamburger sit identically on both. */
.corp-main-nav {
  background: #fff;
  border-radius: 0;
  /* Horizontal padding lives on the inner .container so the logo
     aligns flush at 16px from the viewport edge, same as shs-header. */
  padding: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid #f1f5f9;
  max-width: 100%;
  margin: 0;
  pointer-events: auto;
}

.corp-main-nav .corp-main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Main-site logo sized + positioned to match the .shs-header-logo on
   the Social Housing pages (44px tall, flush at 16px from the edge). */
.corp-main-nav .logo img {
  height: 44px;
}

.corp-nav-list {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.corp-nav-link {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
  position: relative;
}

.corp-nav-link:hover {
  color: var(--nice-red);
}

.corp-nav-shield {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.corp-nav-shield-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
  margin-left: -5px;
  margin-top: -5px;
  margin-bottom: -5px;
}

/* Nav link underline handled by global a:hover animation */

.corp-header-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-corp-login {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-light);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-corp-login:hover {
  border-color: var(--text-main);
  background: var(--text-main);
  color: white;
}

.btn-corp-blue {
  background: #0066ff;
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-corp-blue:hover {
  background: #0052cc;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-corp-white {
  background: #fff;
  color: #1242c4;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-corp-white:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-corp-red {
  background: var(--nice-red);
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-corp-red:hover {
  background: var(--nice-red-dark);
  box-shadow: 0 4px 12px rgba(196, 18, 48, 0.3);
}

.btn-corp-outline-dark {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-corp-outline-dark:hover {
  background: var(--text-main);
  color: white;
}

.btn-corp-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-corp-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Mobile actions wrapper — mirrors the landlord (.shs-mobile-actions)
   pattern: a Login pill + hamburger sit side-by-side at the right edge
   of the header on small screens. Hidden on desktop where the inline
   Login + "Open a Nice 1 Agency" CTAs take over. */
.corp-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.corp-mobile-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--nice-red, #c41230);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.corp-mobile-login:hover,
.corp-mobile-login:active {
  background: #b51d2a;
  transform: translateY(-1px);
}
.corp-mobile-login svg { flex-shrink: 0; }

/* Hamburger */
.corp-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.corp-hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.corp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.corp-hamburger span:nth-child(1) {
  width: 22px;
}

.corp-hamburger span:nth-child(2) {
  width: 16px;
  margin-left: auto;
}

.corp-hamburger span:nth-child(3) {
  width: 22px;
}

.corp-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.corp-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.corp-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.corp-nav-close {
  display: none;
}

.corp-nav-footer,
.corp-nav-support {
  display: none;
}

.corp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

/* Section Label (eyebrow pretitles like "// NICE 1 LTD") — removed
   site-wide. Kept the class for backward compatibility but hidden so
   nothing stray ever appears. */
.corp-section-label {
  display: none !important;
}

.corp-section-label--legacy-base {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nice-red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ===================== */
/* Corporate Hero - Full Background */
/* ===================== */
.corp-hero-bg {
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}

.corp-hero-bg > .container {
  width: 100%;
}

.corp-hero-bg-content {
  max-width: 550px;
  padding: 3rem 0;
  margin-right: auto;
}

.corp-hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nice-red);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.corp-hero-bg-content h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.corp-hero-bg-content .red-highlight {
  color: var(--nice-red);
}

.corp-hero-bg-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.corp-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.corp-hero-buttons a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: none !important;
}

.corp-hero-stat-badge {
  display: inline-block;
  background: var(--nice-red);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(196, 18, 48, 0.3);
}

.corp-hero-stat-badge strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.corp-hero-stat-badge span {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  opacity: 0.9;
  font-weight: 600;
}

/* ===================== */
/* Full-Width Hero       */
/* ===================== */
.corp-hero {
  width: 100%;
  height: 58vw;
  min-height: 600px;
  max-height: 900px;
  position: relative;
  display: flex;
  align-items: center;
  /* Clip the hero image to the hero box so nothing below it can drift in —
   * the hero is a static block now, not a parallax container. */
  overflow: hidden;
  background: #fff;
}

.corp-hero-img {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100% - 70px);
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

.corp-hero-overlay {
  display: none;
}

/* Scroll Indicator */
.corp-scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.corp-scroll-indicator:hover {
  opacity: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Static Service Cards */
.corp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.corp-service-card {
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.corp-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.corp-service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.75rem 0;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
}

.corp-service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.corp-service-card ul li {
  font-size: 0.9rem;
  color: #334155;
  padding: 0.25rem 0;
  line-height: 1.5;
}

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

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

.corp-hero .corp-hero-glass {
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  margin-bottom: 48px;
  z-index: 2;
  background: linear-gradient(135deg, rgba(18, 66, 196, 0.92) 0%, rgba(12, 42, 140, 0.92) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(124, 245, 255, 0.18);
  border-radius: 18px;
  /* Slimmer vertical padding + a touch wider so the card's top edge drops
   * below the subject's face and stops covering their chin. */
  padding: 1.5rem 2.5rem;
  min-height: auto;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(8, 24, 70, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Staggered fade-in for the corporate hero glass block. Keeping this as
 * CSS keyframes (not framer-motion) because React StrictMode's double
 * mount trips up framer-motion's on-mount animations in dev. */
@keyframes corpHeroFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.corp-hero-glass--animate h1,
.corp-hero-glass--animate p {
  opacity: 0;
  animation: corpHeroFadeUp 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.corp-hero-glass--animate h1 {
  animation-delay: 0.2s;
}

.corp-hero-glass--animate p {
  animation-delay: 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .corp-hero-glass--animate h1,
  .corp-hero-glass--animate p {
    animation: none;
    opacity: 1;
  }
}

.corp-hero-glass h1 {
  font-size: 44px;
  line-height: 1.25;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.corp-hero-glass h1 .blue-highlight {
  font-family: 'Orbitron', 'Poppins', sans-serif;
  font-weight: 700;
  color: #7cf5ff;
  letter-spacing: 1px;
  text-shadow: 0 0 22px rgba(124, 245, 255, 0.55), 0 0 4px rgba(124, 245, 255, 0.75);
}

.corp-hero-glass p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin-bottom: 0;
}

.corp-hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.corp-hero-buttons .btn-corp-blue {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  border-radius: 50px;
}

.corp-hero-buttons .btn-corp-outline-white {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 50px;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.corp-hero-buttons .btn-corp-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.corp-hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.corp-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.corp-hero-trust-item svg {
  stroke: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

/* Hero — Large Screen Optimisations */
@media (min-width: 1440px) {
  .corp-hero {
    min-height: 520px;
  }

  .corp-hero .corp-hero-glass {
    bottom: 0;
    margin-bottom: 40px;
    left: calc((100vw - var(--container-width)) / 2 + 1.5rem);
    max-width: 680px;
    padding: 1.25rem 1.5rem;
  }

  .corp-hero-glass h1 {
    font-size: 44px;
  }

  .corp-hero-glass p {
    font-size: 1.25rem;
  }
}

@media (min-width: 1920px) {
  .corp-hero {
    min-height: 580px;
  }

  .corp-hero-glass h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 2560px) {
  .corp-hero {
    min-height: 680px;
  }

  .corp-hero-glass h1 {
    font-size: 3rem;
  }

  .corp-hero-glass p {
    font-size: 1.15rem;
  }
}

/* ============================================================
   HOME HERO (editorial, no glass card)
   - Text on the left in solid white
   - Team photo on the right at its native aspect — every person
     stays in view, nothing cropped
   - Soft white feather where the image's left edge meets the
     text area so there's no hard split
   ============================================================ */
.home-hero {
  /* Matches the actual main-nav height (~72px after the social-housing
     header alignment changes) so the hero never sits under the fixed
     header on mobile. */
  --hero-header-offset: 72px;
  --hero-container: 1280px;

  position: relative;
  background: #ffffff;
  overflow: hidden;
  isolation: isolate;
  margin: 0;
  padding-top: var(--hero-header-offset); /* clear the fixed nav */
  display: grid;
  /* Text column needs enough room to host the headline + subtext on
     two or three comfortable lines without crowding. Image still takes
     the majority but the text col is no longer pinched. */
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 1.7fr);
  align-items: stretch;
}

/* Kill any block-gap WordPress injects after the hero so the next
   section butts up cleanly with no white strip in between. */
.home-hero + * { margin-top: 0 !important; margin-block-start: 0 !important; }

/* WordPress flow-layout injects a 24px block-gap between every top-level
   section on the home page. Zero it so each section's own padding owns
   the vertical rhythm — no surprise white strips between bands. */
.home .entry-content > .corp-services,
.home .entry-content > .corp-products,
.home .entry-content > .corp-about,
.home .entry-content > .corp-cta,
.home .entry-content > section:not(.home-hero) { margin-top: 0 !important; margin-block-start: 0 !important; }

.home-hero__text {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  /* Align text LEFT edge with the site `.container` on every viewport. */
  padding-left: max(1.5rem, calc(50vw - var(--hero-container) / 2 + 1.5rem));
  padding-right: clamp(1rem, 2.5vw, 2.5rem);
  padding-top: clamp(1.5rem, 4vh, 3rem);
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

.home-hero__inner {
  max-width: clamp(280px, 32vw, 460px);
}

.home-hero__headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 2.9vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0;
}

.home-hero__accent {
  color: var(--nice-red, #c41230);
}

.home-hero__subtext {
  margin: 1rem 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  max-width: 44ch;
}

.home-hero__ctas {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-hero__cta--primary {
  background: var(--nice-red, #c41230);
  border-color: var(--nice-red, #c41230);
  color: #ffffff;
}
.home-hero__cta--primary:hover {
  background: #a30f28;
  border-color: #a30f28;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(196, 18, 48, 0.28);
}

.home-hero__cta--ghost {
  background: transparent;
  border-color: #cbd5e1;
  color: #0f172a;
}
.home-hero__cta--ghost:hover {
  border-color: #0f172a;
  color: #0f172a;
}

.home-hero__cta svg { transition: transform 0.2s ease; }
.home-hero__cta:hover svg { transform: translateX(3px); }

/* Image fills the entire right column from top to bottom of the hero.
   object-fit: cover with object-position tuned so all 5 team members
   stay in frame (image natural 1417:736, people span the full width). */
.home-hero__image-wrap {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background: #ffffff;
  /* Aspect-ratio locks the wrap's height to its width, so the image
     fits with no crop and the hero takes the wrap's natural height. */
  aspect-ratio: 1417 / 736;
}

.home-hero__image-wrap picture,
.home-hero__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero__image-wrap img {
  object-fit: cover;
  object-position: center;
}

/* Mid-size laptops (≤1440px): give the image a touch more horizontal
   space so the hero feels generous without crowding text. */
@media (max-width: 1440px) {
  .home-hero { grid-template-columns: minmax(340px, 1.1fr) minmax(0, 1.8fr); }
}

@media (max-width: 1280px) {
  .home-hero { grid-template-columns: minmax(320px, 1.1fr) minmax(0, 1.6fr); }
}

@media (max-width: 1024px) {
  .home-hero { grid-template-columns: minmax(300px, 1.1fr) minmax(0, 1.5fr); }
}

/* Mobile: stack image on top, text below — image full bleed, no fade.
   Use padding-top (not margin-top) so the offset survives margin
   collapse with the parent .entry-content. */
@media (max-width: 768px) {
  .home-hero {
    padding-top: var(--hero-header-offset);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  /* Mobile hero image: zero CSS interference. Let the image render at
     its own natural ratio so nothing is cropped or stretched. */
  .home-hero__image-wrap {
    width: 100%;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    order: -1;
  }
  .home-hero__image-wrap picture {
    display: block;
    width: 100%;
    height: auto;
  }
  .home-hero__image-wrap img {
    width: 100% !important;
    height: auto !important;
    object-fit: fill !important;
    object-position: center !important;
    aspect-ratio: 1100 / 700 !important;
    display: block;
  }
  .home-hero__text {
    width: 100%;
    padding: 1.5rem 1.25rem 2rem;
  }
  .home-hero__inner { max-width: none; }
  .home-hero__headline { font-size: clamp(1.5rem, 6vw, 2rem); }
  .home-hero__subtext  { font-size: 1rem; }
}

@media (max-width: 480px) {
  .home-hero__headline { font-size: clamp(1.4rem, 6.5vw, 1.8rem); }
}

/* Entrance animation — same staggered fade-up as the editorial heroes */
@media (prefers-reduced-motion: no-preference) {
  .home-hero__inner > * {
    opacity: 0;
    transform: translateY(16px);
    animation: homeHeroFadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .home-hero__inner > *:nth-child(1) { animation-delay: 0.15s; }
  .home-hero__inner > *:nth-child(2) { animation-delay: 0.3s; }
  .home-hero__inner > *:nth-child(3) { animation-delay: 0.45s; }
  @keyframes homeHeroFadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===================== */
/* About Us Section */
/* ===================== */
.corp-about {
  padding: 4rem 0;
  background: white;
}

.corp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.corp-about-images {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Clean photo card (replaces the fake iMac mockup) */
.corp-about-photo {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
  background: #0f172a;
}

.corp-about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

.corp-about-photo-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(18, 66, 196, 0.95);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(18, 66, 196, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.corp-about-highlights {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.corp-about-highlights li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.corp-about-highlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nice-red);
}

.corp-about-highlight-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .corp-about-highlights {
    grid-template-columns: 1fr;
  }
}

/* iMac Mockup */
.corp-imac-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.corp-imac-screen {
  background: #000;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 0 10px;
  border: 2px solid #2a2a2a;
  border-bottom: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.corp-imac-screen img {
  width: 100%;
  display: block;
  border-radius: 4px 4px 0 0;
}

.corp-imac-chin {
  width: 100%;
  height: 28px;
  background: linear-gradient(to bottom, #e8e8e8, #d0d0d0);
  border-radius: 0 0 12px 12px;
  border: 2px solid #c0c0c0;
  border-top: 1px solid #d8d8d8;
  position: relative;
}

.corp-imac-chin::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b0b0b0;
}

.corp-imac-stand {
  width: 30%;
  height: 50px;
  background: linear-gradient(to bottom, #d8d8d8, #c0c0c0);
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
}

.corp-imac-base {
  width: 45%;
  height: 6px;
  background: linear-gradient(to bottom, #c0c0c0, #a8a8a8);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Peripherals */
.corp-imac-peripherals {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.25rem;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.corp-imac-keyboard {
  width: 140px;
  height: 42px;
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  border-radius: 6px;
  border: 1px solid #d0d0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 5px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corp-keyboard-keys {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
}

.corp-keyboard-keys span {
  background: #fff;
  border-radius: 2px;
  border: 1px solid #ddd;
}

.corp-imac-mouse {
  width: 28px;
  height: 44px;
  background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
  border-radius: 14px;
  border: 1px solid #d0d0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
}

.corp-imac-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 10px;
  background: #d0d0d0;
  border-radius: 1px;
}


.corp-about-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.corp-about-content > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.corp-about-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.corp-about-stat {
  text-align: center;
}

.corp-about-stat-icon {
  margin-bottom: 0.5rem;
}

.corp-about-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.corp-about-stat span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ===================== */
/* Services Section */
/* ===================== */
.corp-services {
  padding: 4rem 0;
  background: #f8fafc;
}

.corp-services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.corp-services-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.corp-services-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.corp-services-tabbed {
  display: flex;
  gap: 2.5rem;
}

.corp-services-tab-list {
  flex: 0 0 36%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.corp-services-tab-btn {
  padding: 0.85rem 1.25rem;
  background: transparent;
  color: #000;
  border: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.corp-services-tab-btn:hover {
  background: #f1f5f9;
}

.corp-services-tab-btn.active {
  background: #0066ff;
  color: #fff;
  font-weight: 700;
}

.corp-services-tab-content {
  flex: 1;
  min-width: 0;
}

.corp-services-panel {
  border-radius: 16px;
  padding: 2.5rem;
  min-height: 320px;
}

.corp-services-panel-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #000;
}

.corp-services-panel h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000;
  margin-bottom: 1.25rem;
}

.corp-services-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.corp-services-panel > ul > li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #000;
  position: relative;
  padding-left: 1.25rem;
}

.corp-services-panel > ul > li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.corp-services-sub-list {
  list-style: none;
  padding: 0.25rem 0 0 0.5rem;
  margin: 0;
}

.corp-services-sub-list li {
  padding: 0.2rem 0;
  font-size: 0.85rem;
  color: #000;
}

.corp-services-sub-list li::before {
  content: '– ';
}

/* Legacy card styles kept for prototypes */
.corp-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  /* Stretch every card to the row's height so the row is visually
     aligned. Without this, WordPress's block-gap margin-top:24px on
     children other than the first leaves card 0 sitting higher. */
  align-items: stretch;
}

/* Kill the WP block-gap margins on grid children — `gap` already
   spaces them. Without this, children 2+ get pushed down 24px while
   child 1 stays at the top, breaking row alignment. */
.corp-services-grid > * {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

.corp-service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  /* Equal-height cards across a row. Grid lays the icon next to the
     heading on row 1, then the list spans the full width on row 2. */
  height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.75rem;
}

.corp-service-card > .corp-bento-icon {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.corp-service-card > h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.corp-service-card > ul,
.corp-service-card > p {
  grid-column: 1 / -1;
  margin: 0;
}

.corp-service-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Bento Grid Services */
.corp-services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 1.25rem;
}

.corp-bento-card {
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.corp-bento-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000;
}

.corp-bento-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.corp-bento-card ul li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: #000;
  position: relative;
  padding-left: 1.25rem;
}

.corp-bento-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.corp-bento-card ul li.corp-bento-indent {
  padding-left: 2rem;
}

.corp-bento-card ul li.corp-bento-indent::before {
  content: none;
}

/* Service-card sub-bullets — indent further than the parent and use a
   thin en-dash marker so the hierarchy reads without literal dashes
   in the copy. */
.corp-service-card ul li.corp-bento-indent {
  margin-left: 1.25rem;
  position: relative;
  padding-left: 1.1rem;
  list-style: none;
}
.corp-service-card ul li.corp-bento-indent::marker { content: ''; }
.corp-service-card ul li.corp-bento-indent::before {
  content: '–';
  position: absolute;
  left: 0;
  color: inherit;
  font-weight: 600;
}

.corp-bento-large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 2.5rem;
}

.corp-bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #000;
}

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

  .corp-bento-large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* Flip Card Services */
.corp-flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.corp-flip-card {
  perspective: 1000px;
  height: 360px;
  cursor: pointer;
}

.corp-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.corp-flip-card:hover .corp-flip-inner {
  transform: rotateY(180deg);
}

.corp-flip-card.flipped .corp-flip-inner {
  transform: rotateY(180deg);
}

.corp-flip-front,
.corp-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.corp-flip-front h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000;
}

.corp-flip-front ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.corp-flip-front ul li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: #000;
  position: relative;
  padding-left: 1.25rem;
}

.corp-flip-front ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.corp-flip-front ul li.corp-bento-indent {
  padding-left: 2rem;
}

.corp-flip-front ul li.corp-bento-indent::before {
  content: none;
}

.corp-flip-back {
  transform: rotateY(180deg);
  color: #000;
  justify-content: flex-start;
}

.corp-flip-back h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000;
}

.corp-flip-back p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.9;
}

.corp-flip-cta {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
  opacity: 0.85;
}

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

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

  .corp-flip-card {
    height: auto;
    perspective: none;
  }

  .corp-flip-inner {
    transform-style: flat;
    transition: none;
  }

  .corp-flip-card:hover .corp-flip-inner,
  .corp-flip-card.flipped .corp-flip-inner {
    transform: none;
  }

  .corp-flip-front {
    position: relative;
  }

  .corp-flip-back {
    display: none;
  }
}

.corp-service-card.highlighted {
  background: var(--nice-red);
  color: white;
  border-color: var(--nice-red);
}

.corp-service-card.highlighted .corp-service-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}

.corp-service-card.highlighted h3 {
  color: white;
}

.corp-service-card.highlighted ul li {
  color: rgba(255,255,255,0.9);
}

.corp-service-card.highlighted .corp-service-link {
  color: white;
}

.corp-service-card.bespoke-card {
  background: #fff5f5;
  border-color: #fde8e8;
}

.corp-service-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.corp-service-icon.bespoke-icon {
  background: #fde8e8;
}

.corp-service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.corp-service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.corp-service-card ul li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
}

.corp-service-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--nice-red);
  font-weight: bold;
}

.corp-service-card.highlighted ul li::before {
  color: rgba(255,255,255,0.7);
}

.corp-service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.corp-service-link:hover {
  color: var(--nice-red);
}

/* ===================== */
/* Products Section */
/* ===================== */
.corp-products {
  padding: 4rem 0;
  background: #f0f5ff;
}

.corp-products-header {
  text-align: center;
  margin-bottom: 2rem;
}

.corp-products-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Long descriptive paragraph reads as a body block — left-align it
   (especially on mobile) so it doesn't look like centered prose.
   Allow a wider measure on desktop so the copy doesn't feel pinched
   inside the 1280px container. */
.corp-products-header p:last-of-type {
  text-align: left;
  max-width: 95ch;
  margin-left: auto;
  margin-right: auto;
}

.corp-product-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.corp-product-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--border-light);
  background: white;
  color: var(--text-main);
}

.corp-product-tab.active {
  background: var(--nice-red);
  color: white;
  border-color: var(--nice-red);
}

.corp-product-detail {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.corp-product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.corp-product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* Products - Two Column Layout with Accordion */
.corp-products-columns {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
}

.corp-products-image-wrap {
  max-width: 450px;
}

.corp-products-main-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.corp-products-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.corp-products-line h2,
.corp-products-line h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.corp-products-line .heading-commercial {
  color: #0066ff;
  border-bottom: 2px solid #0066ff;
}

.corp-products-line .heading-personal {
  color: #059669;
  border-bottom: 2px solid #059669;
}

.corp-products-accordion {
  display: flex;
  flex-direction: column;
  padding-left: 1.5rem;
}

.corp-product-accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.corp-product-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.corp-product-accordion-trigger::before {
  content: '—';
  color: #94a3b8;
  font-weight: 500;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.corp-product-link:hover .corp-product-accordion-trigger::before {
  color: var(--corp-blue);
  transform: translateX(2px);
}

.corp-product-accordion-trigger:hover {
  color: var(--nice-red);
}

.corp-product-accordion-content {
  padding: 0 0 0.75rem 1rem;
}

.corp-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
}

.corp-product-grid-item {
  min-width: 0;
}

@media (max-width: 640px) {
  .corp-product-grid {
    grid-template-columns: 1fr;
  }
}

.corp-product-group-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nice-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0.5rem 0 0.25rem;
}

.corp-product-sub-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.corp-product-info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.corp-product-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.corp-product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

.corp-product-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.5rem 0;
}

.corp-product-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===================== */
/* Products Page — Table */
/* ===================== */
.prod-section {
  padding: 3rem 0 4rem;
  background: #fff;
}

.prod-loading {
  text-align: center;
  padding: 4rem 0;
  color: #64748b;
}

.prod-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--corp-blue);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.prod-intro {
  margin-bottom: 2.5rem;
}

.prod-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
}

.prod-table {
  border: 1px solid #d1d5dc;
  border-radius: 8px;
  overflow: visible;
}

.prod-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #d1d5dc;
}

.prod-table-row:last-child {
  border-bottom: none;
}

.prod-row-even {
  background: #fff;
}

.prod-row-odd {
  background: #f9fafb;
}

.prod-table-row:hover:not(.prod-table-header) {
  background: #f0f5ff;
}

.prod-table-header {
  background: #e5e7eb;
  position: sticky;
  top: 66px;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.prod-table-header .prod-table-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
}

.prod-table-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.prod-header-commercial {
  color: #3d84f8;
}

.prod-header-personal {
  color: #65c660;
}

.prod-table-cell {
  padding: 0;
  vertical-align: top;
}

.prod-table-cell:first-child {
  border-right: 1px solid #d1d5dc;
}

.prod-table-cell-empty {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-na {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.prod-na-text {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

.prod-table-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.prod-table-title {
  line-height: 1.4;
}

.prod-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prod-dot-commercial {
  background: #3d84f8;
}

.prod-dot-personal {
  background: #65c660;
}

.prod-chevron {
  transition: transform 0.3s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.prod-chevron.open {
  transform: rotate(180deg);
}

.prod-table-details {
  padding: 0 1.25rem 1.25rem 2.5rem;
}

.prod-group-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--corp-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.75rem 0 0.35rem;
}

.prod-detail-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}

.prod-detail-list li {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.8;
}

.prod-learn-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--corp-blue);
  text-decoration: none;
}

.prod-learn-more:hover {
  text-decoration: underline;
}

.prod-quote-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--corp-blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.prod-quote-link:hover {
  gap: 0.65rem;
}

.prod-line-tag {
  display: none;
}

@media (max-width: 768px) {
  .prod-table-row {
    grid-template-columns: 1fr;
  }
  .prod-table-cell:first-child {
    border-right: none;
    border-bottom: 1px solid #d1d5dc;
  }
  .prod-section {
    padding: 2rem 0 3rem;
  }

  /* Mobile-only line tag (Commercial / Personal) next to the product name
     so each cell makes sense on its own without needing the sticky header */
  .prod-line-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
  }
  .prod-line-tag-commercial {
    color: #1242c4;
    background: rgba(18, 66, 196, 0.1);
  }
  .prod-line-tag-personal {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
  }
  /* Hide the duplicate header row on mobile — each cell now self-labels */
  .prod-table-header {
    display: none;
  }
}

/* ===================== */
/* Legal Pages (T&C, Privacy, Cookie) */
/* ===================== */
.corp-legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.corp-legal-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.corp-legal-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 1rem;
}

.corp-legal-content ul,
.corp-legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.corp-legal-content li {
  font-size: 1rem;
  line-height: 1.85;
  color: #374151;
  margin-bottom: 0.5rem;
}

.corp-legal-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.corp-legal-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #d1d5dc;
  border-radius: 8px;
  overflow: hidden;
}

.corp-legal-table th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #d1d5dc;
  font-size: 0.95rem;
  color: var(--text-main);
}

.corp-legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #374151;
}

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

.corp-legal-table tr:nth-child(even) {
  background: #f9fafb;
}

/* ===================== */
/* CTA Section */
/* ===================== */
.corp-cta {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 245, 255, 0.08) 0%, transparent 60%),
    #0b1d4d; /* solid navy: no fade into the footer (19 Nov 2026) */
  color: white;
  position: relative;
}

.corp-cta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 245, 255, 0.25), transparent);
}

.corp-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.corp-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================== */
/* Corporate Footer */
/* ===================== */
.corp-footer {
  background: #2d2d2d;
  color: white;
  padding: 3.5rem 0 0;
}

.corp-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.5fr 1.5fr;
  gap: 2.5rem;
}

.corp-footer-logo {
  height: 55px;
  margin-bottom: 1.5rem;
}

.corp-footer-follow-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.corp-footer-socials {
  display: flex;
  gap: 0.75rem;
}

.corp-footer-socials a {
  color: white;
  transition: color 0.3s ease;
}

.corp-footer-socials a:hover {
  color: var(--nice-red);
}

.corp-footer-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.corp-footer-col h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--nice-red);
  border-radius: 2px;
}

.corp-footer-col:first-child h4 {
  padding-left: 0;
}

.corp-footer-col:first-child h4::before {
  display: none;
}

.corp-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.corp-footer-col ul li {
  margin-bottom: 0.75rem;
}

.corp-footer-col ul li a {
  color: #fff;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.corp-footer-col ul li a:hover {
  color: var(--nice-red);
}

.corp-footer-location {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.6;
  font-style: normal;
}

.corp-footer address {
  font-style: normal;
}

.corp-footer-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.corp-footer-info-item a {
  color: #fff;
  text-decoration: none;
}

.corp-footer-info-item a:hover {
  text-decoration: underline;
}

.corp-footer-info-item svg {
  flex-shrink: 0;
}

.corp-footer-bottom {
  border-top: 1px solid #444;
  padding: 2rem 0;
  margin-top: 3rem;
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.6;
}

.corp-footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.corp-footer-bottom-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.corp-footer-bottom-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  background-image: none !important;
  padding-bottom: 0 !important;
}

.corp-footer-bottom-links a:hover {
  color: white;
  background-image: none !important;
  background-size: 0 !important;
}

.corp-footer-bottom-links span {
  color: #666;
}

.corp-footer-regulatory {
  color: #999;
  font-size: 0.8rem;
  line-height: 1.7;
}

/* Corporate Responsive - New Sections */
@media (max-width: 1024px) {
  .corp-top-bar {
    display: none;
  }

  .corp-hamburger {
    display: flex;
  }

  .corp-mobile-actions {
    display: inline-flex;
  }

  .corp-header-ctas {
    display: none;
  }

  .corp-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 999;
    padding: 5rem 2.5rem 2.5rem;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
  }

  .corp-nav.open {
    right: 0;
  }

  .corp-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .corp-nav-close:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }

  .corp-nav-list {
    flex-direction: column;
    gap: 0;
    /* Don't push the Need Help block to the bottom — keep it sitting
       directly below the nav list, matching the SH drawer. */
    flex: 0 0 auto;
  }

  .corp-nav-link {
    font-size: 1.15rem;
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: 0.01em;
  }

  .corp-nav-link:hover {
    color: var(--nice-red);
  }

  /* Need help? block — mirrors .shs-nav-support so both hamburgers
     share the same compact "Need help?" label + email + phone +
     LinkedIn layout, sitting directly below the nav list (no big
     gap pushing it to the bottom of the drawer). */
  .corp-nav-support {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .corp-nav-support-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.15rem;
  }

  .corp-nav-support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.15s ease;
    background-image: none !important;
  }
  .corp-nav-support-link:hover { color: var(--nice-red); background-size: 0 !important; }
  .corp-nav-support-link svg { color: #94a3b8; flex-shrink: 0; }
  .corp-nav-support-link:hover svg { color: var(--nice-red); }

  .corp-top-bar-left {
    gap: 1rem;
  }

  .corp-top-bar-item:last-child {
    display: none;
  }

  .corp-hero-bg-content h1 {
    font-size: 2.5rem;
  }

  .corp-about-grid {
    gap: 3rem;
  }

  .corp-product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .corp-product-images {
    flex-direction: row;
  }

  .corp-products-columns {
    grid-template-columns: 1fr;
  }

  .corp-products-image-wrap {
    max-width: 100%;
  }

  .corp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .corp-hero-bg {
    min-height: 450px;
  }

  .corp-hero-bg-content h1 {
    font-size: 2.25rem;
  }

  /* ============================================================= */
  /* Mobile hero — tight stack: team photo up top, text block close
   * below on a clean white background. No forced viewport fill, no
   * navy gradient — the hero sizes to its content and the next
   * section flows in naturally.
   * ============================================================= */
  .corp-hero {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 70px; /* clear the fixed header */
    background: #fff;
  }

  .corp-hero-picture {
    display: block;
    width: 100%;
  }

  .corp-hero-img {
    position: static;
    width: 100%;
    /* Natural aspect ratio — the tighter mobile crop fits the frame
     * without horizontal cropping so all team members stay in shot. */
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
    transform: none !important;
    display: block;
  }

  .corp-hero-glass {
    position: static;
    margin: 0;
    /* Tight padding keeps the text anchored to the image instead of
     * drifting away from it. */
    padding: 1.5rem 1.5rem 2rem;
    max-width: none;
    background: #fff;
    background-image: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .corp-hero-glass h1 {
    font-size: 1.85rem;
    line-height: 1.22;
    color: #0f172a;
    margin-bottom: 0.85rem;
  }

  .corp-hero-glass h1 .blue-highlight {
    color: #1242c4;
    text-shadow:
      0 0 12px rgba(18, 66, 196, 0.22),
      0 0 2px rgba(18, 66, 196, 0.3);
  }

  .corp-hero-glass p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
  }

  .corp-about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .corp-about-img-secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .corp-about-content h2 {
    font-size: 2rem;
  }

  .corp-about-stats {
    gap: 1.5rem;
  }

  .corp-services-grid {
    grid-template-columns: 1fr;
  }

  .corp-services-header h2 {
    font-size: 2rem;
  }

  .corp-products-header h2 {
    font-size: 2rem;
  }

  .corp-product-tabs {
    flex-wrap: wrap;
  }

  .corp-product-list {
    grid-template-columns: 1fr;
  }

  .corp-product-images {
    flex-direction: column;
  }

  .corp-products-lists {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .corp-products-image-wrap {
    max-width: 100%;
  }

  .corp-cta h2 {
    font-size: 1.75rem;
  }

  /* Mobile footer: logo row full width, Quick Links + Other Links
   * paired in 2 columns (densified), then Nice 1 Broker Support and
   * Location each get their own full-width row below — Broker first,
   * Location last. */
  .corp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.5rem;
  }

  .corp-footer-grid > .corp-footer-col:first-child {
    /* Logo + Follow Us row */
    grid-column: 1 / -1;
  }

  .corp-footer-grid > .corp-footer-col:nth-child(4),
  .corp-footer-grid > .corp-footer-col:nth-child(5) {
    /* Location (DOM 4) and Broker Support (DOM 5) — both full width */
    grid-column: 1 / -1;
  }

  /* Reorder so Broker Support is above Location in the visual flow
   * without rearranging the JSX (desktop order stays unchanged). */
  .corp-footer-grid > .corp-footer-col:nth-child(5) { order: 1; }
  .corp-footer-grid > .corp-footer-col:nth-child(4) { order: 2; }

  /* Give the footer a bit more breathing room from the phone edges
   * than the global .container 1rem padding provides. */
  .corp-footer .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .corp-services-tabbed {
    flex-direction: column;
    gap: 1.5rem;
  }

  .corp-services-tab-list {
    flex: none;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .corp-services-tab-btn {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Touch targets */
  .corp-nav-link,
  .corp-services-tab-btn,
  .btn-corp-blue,
  .btn-corp-outline-white,
  .btn-corp-outline {
    min-height: 44px;
  }
}

/* Benefit Cards (legacy - kept for other pages) */
.corp-benefits {
  padding: 6rem 0;
  background: #fbfcfd;
}

.corp-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.corp-benefit-card {
  padding: 3rem;
  border-radius: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.corp-benefit-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
}

.corp-benefit-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.corp-benefit-card p {
  line-height: 1.6;
  color: #4a5568;
}

/* Colors for cards */
.bg-pink {
  background: var(--pastel-pink);
}

.bg-yellow {
  background: var(--pastel-yellow);
}

.bg-blue {
  background: var(--pastel-blue);
}

.bg-green {
  background: var(--pastel-green);
}

.bg-purple {
  background: var(--pastel-purple);
}

/* Product Showcase */
.corp-products {
  padding: 4rem 0;
}

.corp-product-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.corp-product-row.reverse {
  direction: rtl;
}

.corp-product-row.reverse>* {
  direction: ltr;
  /* Reset text direction inside */
}

.corp-product-image {
  width: 100%;
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
}

.corp-product-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--corp-blue);
}

.corp-product-content ul {
  list-style: none;
  margin-top: 2rem;
}

.corp-product-content li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
}

.corp-product-content li::before {
  content: '✓';
  color: var(--corp-blue);
  font-weight: 800;
}

.btn-corp {
  background: var(--nice-red);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px -2px rgba(196, 18, 48, 0.3);
  transition: all 0.3s ease;
}

.btn-corp:hover {
  background: var(--nice-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(196, 18, 48, 0.4);
}

.btn-corp-outline {
  background: white;
  color: var(--text-main);
  border: 2px solid var(--text-main);
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-corp-outline:hover {
  background: var(--text-main);
  color: white;
}

/* Product Showcase Section - Table Style */
.corp-products-showcase {
  padding: 6rem 0;
  background: #f8fafc;
}

.products-table-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-category-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.product-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.12);
}

.product-card-header {
  background: linear-gradient(135deg, var(--corp-blue) 0%, #0052cc 100%);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.product-card-header h3 {
  color: white;
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
  text-align: left;
}

.product-items {
  padding: 0;
}

.product-item {
  padding: 1rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: background 0.2s ease;
}

.product-item:last-child {
  border-bottom: none;
}

.product-item:hover {
  color: #000;
}

.product-item-link {
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-main);
  position: relative;
}

.product-item-link:hover {
  background: #f0f7ff;
  color: var(--corp-blue);
  font-weight: 500;
  padding-left: 2.5rem;
}

.product-item-link:hover::before {
  content: '→';
  position: absolute;
  left: 2rem;
  color: var(--corp-blue);
  font-weight: 600;
}

.product-item strong {
  color: var(--corp-blue);
  font-weight: 600;
}

/* Product Subcategory Headers */
.product-subcategory {
  background: #f8fafc;
  padding: 0.75rem 2rem;
  font-weight: 600;
  color: var(--corp-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e5e7eb;
}

/* Breadcrumb Styles */
.breadcrumb {
  background: #f8fafc;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: var(--corp-blue);
  transition: color 0.2s ease;
  background-image: none !important;
  background-size: 0 !important;
  padding-bottom: 0;
}

.breadcrumb-item a:hover {
  color: #0052cc;
  background-size: 0 !important;
}

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

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

/* Product Page Styles */
.product-hero {
  background: linear-gradient(135deg, var(--corp-blue) 0%, #0052cc 100%);
  padding: 4rem 0;
  color: white;
}

.product-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.product-tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
}

.product-overview {
  padding: 4rem 0;
  background: white;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  margin-top: 2rem;
}

.product-main-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.product-main-content h3 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-main);
}

.product-main-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.product-main-content p {
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: var(--text-main);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--corp-blue);
  font-weight: 800;
  font-size: 1.2rem;
}

/* Coverage Columns */
.coverage-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.coverage-col {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.coverage-col h4 {
  color: var(--corp-blue);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.coverage-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coverage-col li {
  padding: 0.5rem 0;
  color: var(--text-main);
  border-bottom: 1px solid #e5e7eb;
}

.coverage-col li:last-child {
  border-bottom: none;
}

/* Benefit Cards */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--corp-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* GAP Types Cards */
.gap-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.gap-type-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  transition: all 0.3s ease;
}

.gap-type-card:hover {
  border-color: var(--corp-blue);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.08);
}

.gap-type-card h4 {
  color: var(--corp-blue);
  margin-bottom: 0.75rem;
}

.gap-type-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* How It Works Steps */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--corp-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.step-content p {
  margin: 0;
  font-size: 0.9rem;
}

/* Simple FAQ */
.faq-simple {
  margin: 2rem 0;
}

.faq-simple-item {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--corp-blue);
}

.faq-simple-item h4 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.faq-simple-item p {
  margin: 0;
}

/* Product Sidebar */
.product-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.product-cta-card,
.product-info-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.product-cta-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-color: var(--corp-blue);
}

.product-cta-card h3,
.product-info-card h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.product-cta-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.btn-full {
  width: 100%;
  text-align: center;
}

.cta-divider {
  text-align: center;
  position: relative;
  margin: 2rem 0 1.5rem;
}

.cta-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
  z-index: 0;
}

.cta-divider span {
  background: white;
  padding: 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.agent-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agent-link {
  color: var(--corp-blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
}

.agent-link:hover {
  color: #0052cc;
  padding-left: 0.5rem;
}

/* Info List */
.info-list {
  margin: 0;
}

.info-list dt {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.info-list dd {
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-left: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.info-list dd:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Related Products */
.related-products {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-products li {
  border-bottom: 1px solid var(--border-light);
}

.related-products li:last-child {
  border-bottom: none;
}

.related-products a {
  display: block;
  padding: 0.75rem 0;
  color: var(--corp-blue);
  font-weight: 500;
  transition: all 0.2s ease;
}

.related-products a:hover {
  color: #0052cc;
  padding-left: 0.5rem;
}

/* Responsive Product Pages */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .product-sidebar {
    position: static;
  }

  .coverage-columns,
  .benefit-cards,
  .gap-types,
  .how-it-works {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .product-hero-content h1 {
    font-size: 2rem;
  }

  .product-tagline {
    font-size: 1.1rem;
  }
}

/* Platform Section Styles - Condensed */
.corp-platform-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background-image: url('../images/platform-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.platform-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 107, 163, 0.88) 0%, rgba(52, 152, 219, 0.85) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
}

.platform-container {
  position: relative;
  z-index: 2;
}

.platform-content-center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  color: white;
}

.platform-content-center h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.platform-intro {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.platform-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.platform-highlight-item {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.platform-highlight-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
}

.highlight-icon {
  font-size: 2.5rem;
}

.platform-highlight-item span:last-child {
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
}

.platform-demo-btn {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  background: white;
  color: var(--corp-blue);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.platform-demo-btn:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Platform Section */
@media (max-width: 1024px) {
  .platform-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .corp-platform-section {
    padding: 4rem 0;
    background-attachment: scroll;
  }

  .platform-content-center h2 {
    font-size: 2rem;
  }

  .platform-intro {
    font-size: 1rem;
  }

  .platform-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .platform-highlight-item {
    flex-direction: row;
    justify-content: center;
    padding: 1rem;
  }

  .highlight-icon {
    font-size: 2rem;
  }
}

/* ============================
   Scroll Animations & Transitions
   ============================ */

/* Fade-in on scroll */
.corp-fade-in {
  opacity: 0;
  /* Small offset so the entrance reads as a subtle lift, not a gap.
     A 40px translate visually pushed each section 40px below the one
     above it until the IntersectionObserver fired, reading as
     unexplained whitespace. */
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.corp-fade-in.corp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within fade-in sections */
.corp-fade-in.corp-visible .corp-about-content,
.corp-fade-in.corp-visible .corp-about-visual {
  animation: fadeSlideUp 0.6s ease forwards;
}

.corp-fade-in.corp-visible .corp-about-visual {
  animation-delay: 0.2s;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section heading slide-in from left */
.corp-slide-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.corp-slide-in-left.corp-visible {
  opacity: 1;
  transform: translateX(0);
}

h2.corp-slide-in-left {
  transition-delay: 0.15s;
}


/* About page — responsive grids
 *
 * Used by the "Stats" row (Bespoke / FCA / Since 2007) and the "What We Do"
 * 6-card grid. Mobile stacks to 1 column so bullet text doesn't wrap to 2–3
 * words per line; tablet/desktop widen out to match the desktop design.
 * These replaced inline `gridTemplateColumns: repeat(3, 1fr)` styles that
 * were overriding every media query and forcing 3 columns on 375px phones.
 */
.corp-about-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 768px) {
  .corp-about-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.corp-about-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .corp-about-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .corp-about-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About Page Cards */
.corp-about-card {
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.corp-about-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #000;
}

.corp-about-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.corp-about-card ul li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: #333;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.corp-about-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Breadcrumb */
.corp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.corp-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.corp-breadcrumb a:hover {
  color: var(--corp-blue);
}

.corp-breadcrumb-sep {
  color: #cbd5e1;
}

.corp-breadcrumb span:last-child {
  color: #1e293b;
  font-weight: 600;
}

/* Page Hero Banner (for subpages) */
.corp-page-hero {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 6rem 0 1.75rem;
}

.corp-page-hero .corp-section-label {
  color: var(--corp-blue);
  margin-bottom: 0.5rem;
  display: block;
}

.corp-page-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.corp-page-hero p {
  color: #64748b;
  font-size: 1.05rem;
}

/* Back to Top Button
 * Rendered once at the Layout level (src/App.jsx) so it's on every
 * route of both the corporate site and the social-housing site. Fixed
 * position, visible on all viewports. */
.corp-back-to-top {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--corp-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease,
    box-shadow 0.2s ease;
  pointer-events: none;
  z-index: 1000;
  /* Make sure iOS treats taps on the SVG as taps on the button */
  -webkit-tap-highlight-color: transparent;
}

.corp-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.corp-back-to-top:hover,
.corp-back-to-top:focus-visible {
  background: #0052cc;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  outline: none;
}

.corp-back-to-top:focus-visible {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(59, 130, 246, 0.55);
}

/* A little bigger on wider screens where there's more room */
@media (min-width: 1024px) {
  .corp-back-to-top {
    width: 48px;
    height: 48px;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    right: calc(2rem + env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .corp-back-to-top {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .corp-back-to-top.visible {
    transform: none;
  }
  .corp-back-to-top:hover,
  .corp-back-to-top:focus-visible {
    transform: none;
  }
}

/* ===================== */
/* Mobile (640px)         */
/* ===================== */
@media (max-width: 640px) {
  .corp-hero-img {
    /* Natural aspect with mobile crop; vertical slack is handled by
     * the .corp-hero flex column + gradient background above. */
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .corp-hero-glass h1 {
    font-size: 1.6rem;
  }

  .corp-hero-glass p {
    font-size: 0.95rem;
  }

  .corp-services {
    padding: 3rem 0;
  }

  /* Tighten section padding on mobile — the 6rem desktop value creates
     huge dead bands between stacked sections. */
  .corp-products,
  .corp-about {
    padding: 3rem 0;
  }

  .corp-cta {
    padding: 2.5rem 0 3rem;
  }

  /* Trim hero bottom padding so the next section butts up cleanly. */
  .home-hero__text {
    padding-bottom: 1.25rem;
  }

  .corp-services-header,
  .corp-products-header {
    margin-bottom: 1.5rem;
  }

  .corp-services-grid {
    margin-top: 1.5rem;
  }

  /* Mobile: bring the card icon flush to the left edge of the card by
     pulling it out of the card's left padding with a negative margin.
     The heading stays where it is in column 2. */
  .corp-service-card {
    column-gap: 0.75rem;
  }
  .corp-service-card > .corp-bento-icon {
    margin-left: -2rem;
  }
}

/* ===================== */
/* Small Phone (480px)   */
/* ===================== */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .corp-hero-img {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .corp-hero-glass {
    padding: 1.5rem 1rem 1.75rem;
  }

  .corp-hero-glass h1 {
    font-size: 1.4rem;
  }

  .corp-hero-glass p {
    font-size: 0.9rem;
  }

  .corp-about-content h2 {
    font-size: 1.5rem;
  }

  .corp-services-header h2,
  .corp-products-header h2 {
    font-size: 1.5rem;
  }

  .corp-cta h2 {
    font-size: 1.4rem;
  }

  .platform-content-center h2 {
    font-size: 1.5rem;
  }

  .corp-page-hero h1 {
    font-size: 1.5rem;
  }

  .corp-legal-table {
    font-size: 0.9rem;
  }

  /* Mobile: stack table rows as cards so the long "Purpose" copy
     doesn't get clipped behind a horizontal scroll that's
     undiscoverable on touch. */
  .corp-legal-table,
  .corp-legal-table tbody,
  .corp-legal-table tr,
  .corp-legal-table th,
  .corp-legal-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .corp-legal-table thead {
    display: none;
  }

  .corp-legal-table tr {
    border-bottom: 1px solid #d1d5dc;
    padding: 0.6rem 0.25rem;
  }

  .corp-legal-table tr:last-child {
    border-bottom: none;
  }

  .corp-legal-table td {
    border: none;
    padding: 0.2rem 0.75rem;
    line-height: 1.55;
  }

  /* First cell on each row is the cookie name — bold + spaced from
     the body copy below. */
  .corp-legal-table td:first-child {
    font-weight: 700;
    color: var(--text-main);
    padding-top: 0.4rem;
    padding-bottom: 0.15rem;
  }

  .platform-highlights {
    grid-template-columns: 1fr;
  }
}

/* ============================================= */
/*            Social Housing Home (/)            */
/* ============================================= */

.housing-home {
  background: #fff;
  color: #0f172a;
}

.housing-home .red-highlight {
  color: var(--nice-red);
}

.housing-audience--landlord .red-highlight {
  color: var(--sh-accent-landlord);
}

.housing-audience--council .red-highlight {
  color: var(--sh-accent-council);
}

.housing-audience--landlord .housing-photo-hero-h1 .red-highlight,
.housing-audience--council .housing-photo-hero-h1 .red-highlight {
  color: var(--sh-accent-soft, #ff6b7e);
}

/* Shared: eyebrow label */
.housing-eyebrow,
.housing-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--nice-red);
  margin-bottom: 1rem;
}

.housing-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--nice-red);
  box-shadow: 0 0 0 4px rgba(196, 18, 48, 0.18);
}

/* Shared: section header */
.housing-section-header {
  margin: 0 auto 3.5rem;
  text-align: center;
}

.housing-section-header h2 {
  font-size: 2.4rem;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.housing-section-header p {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.65;
}

/* ========= HERO (FULL BLEED) ========= */
.housing-hero-bleed {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
}

.housing-hero-bleed-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.housing-hero-bleed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Lift the inherently-dark source photo so it reads as bright. */
  filter: brightness(1.55) saturate(1.08) contrast(0.95);
}

.housing-hero-bleed-overlay {
  position: absolute;
  inset: 0;
  /* Soft left-to-right darkening so copy reads cleanly on the left while
   * the photo stays bright on the right, plus a vignette from the bottom. */
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 45%, rgba(15, 23, 42, 0) 75%),
    linear-gradient(180deg, rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.25) 100%);
}

.housing-hero-bleed-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.housing-hero-bleed-content {
  max-width: 780px;
  margin: 6rem 0;
}

.housing-hero-bleed-h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.housing-hero-bleed-h1 .red-highlight {
  color: #ff6b7e;
}

.housing-hero-bleed-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  max-width: 680px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* Legacy split hero (kept in case of rollback — unused at runtime) */
.housing-hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(196, 18, 48, 0.08), transparent 60%),
    radial-gradient(1100px 600px at 88% 110%, rgba(0, 102, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #fafbfd 0%, #ffffff 60%);
  overflow: hidden;
}

.housing-hero-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(196, 18, 48, 0.06), transparent 60%);
  pointer-events: none;
}

.housing-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.housing-hero-content {
  max-width: 600px;
}

.housing-hero-h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-bottom: 1.35rem;
}

.housing-hero-sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 560px;
}

.housing-hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.housing-hero-ctas a {
  background-image: none !important;
  padding: 0.95rem 1.65rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.housing-hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.9rem 2rem;
  justify-content: start;
}

.housing-hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
}

.housing-hero-trust li svg {
  color: var(--nice-red);
  flex-shrink: 0;
}

/* Hero media */
.housing-hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.housing-hero-blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 108%;
  height: 108%;
  transform: translate(-50%, -50%) rotate(-4deg);
  background: linear-gradient(135deg, rgba(196, 18, 48, 0.12), rgba(0, 102, 255, 0.08));
  border-radius: 60% 40% 55% 45% / 55% 50% 50% 45%;
  filter: blur(0);
  z-index: 0;
  pointer-events: none;
}

.housing-hero-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.35),
    0 18px 36px -18px rgba(196, 18, 48, 0.25);
  background: #0f172a;
}

.housing-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.housing-hero-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  min-width: 88px;
}

.housing-hero-badge-label {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--nice-red);
  letter-spacing: 0.5px;
  line-height: 1;
}

.housing-hero-badge strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0f172a;
  margin-top: 0.3rem;
}

.housing-hero-badge small {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.housing-hero-caption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
}

.housing-hero-caption-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.housing-hero-caption strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.housing-hero-caption span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.15rem;
}

/* ========= AUDIENCE PATHS ========= */
.housing-audience {
  padding: 3.25rem 0 4rem;
  background: #fff;
}

/* Overview page variant — the section only carries the intro heading
   (no audience-picker cards below), so use equal top/bottom padding
   instead of the gateway's asymmetric "more room before the cards"
   spacing. */
.housing-audience:not(:has(.housing-audience-grid)) {
  padding: 3.5rem 0;
}

.housing-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.housing-path-card {
  position: relative;
  padding: 2.5rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -6px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.housing-path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(196, 18, 48, 0) 0%, rgba(196, 18, 48, 0) 60%, rgba(196, 18, 48, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.housing-path-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.housing-path-card-top h3 {
  margin-bottom: 0;
}

.housing-path-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.housing-path-icon--council {
  background: var(--nice-red);
}

.housing-path-icon--landlord {
  background: #1e3a8a;
}

.housing-path-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.housing-path-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.housing-path-card > p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.housing-path-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
}

.housing-path-list li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.housing-path-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(196, 18, 48, 0.1);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c41230' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.housing-path-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nice-red);
  background-image: none !important;
  padding-bottom: 0 !important;
  transition: gap 0.2s ease;
}

.housing-path-cta:hover {
  gap: 0.85rem;
}

/* ========= WHY NICE 1 ========= */
.housing-why {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.housing-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.housing-why-card {
  padding: 2.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.housing-why-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(196, 18, 48, 0.1);
  color: var(--nice-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.housing-why-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.housing-why-card p {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
}

/* ========= HOW IT WORKS ========= */
.housing-steps {
  padding: 5.5rem 0;
  background: #0f172a;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.housing-steps::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 18, 48, 0.18), transparent 60%);
  pointer-events: none;
}

.housing-steps::after {
  content: '';
  position: absolute;
  bottom: -250px;
  right: -250px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.housing-steps .container {
  position: relative;
  z-index: 2;
}

.housing-steps .housing-section-header h2 {
  color: #fff;
}

.housing-steps .housing-section-header p {
  color: rgba(255, 255, 255, 0.72);
}

.housing-steps .housing-section-label {
  color: #ff5268;
}

.housing-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.housing-steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 82, 104, 0.45), rgba(255, 255, 255, 0.25), rgba(255, 82, 104, 0.45), transparent);
  pointer-events: none;
}

.housing-step {
  position: relative;
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.housing-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--nice-red), var(--nice-red-dark));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  box-shadow: 0 14px 28px -10px rgba(196, 18, 48, 0.7);
  position: relative;
  z-index: 2;
}

.housing-step h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.housing-step p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

/* ========= MISSION ========= */
.housing-mission {
  padding: 3.5rem 0 4rem;
  /* Subtle off-white so the section separates visually from the
     all-white intro above it — especially helpful on mobile where
     long stacks of white content blur into one tall block. */
  background: #f7f9fc;
}

.housing-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: center;
}

.housing-mission-copy h2 {
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.housing-mission-copy p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.15rem;
}

.housing-impact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.housing-impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.housing-impact-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--nice-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.housing-mission-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
  aspect-ratio: 4 / 5;
  max-height: 620px;
}

.housing-mission-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.housing-mission-stat {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  padding: 1.1rem 1.35rem;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  border-left: 4px solid var(--nice-red);
}

.housing-mission-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--nice-red);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.housing-mission-stat span {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
}

/* ========= CTA BAND ========= */
.housing-cta-band {
  position: relative;
  padding: 4.5rem 0;
  background: #0b1d4d;
  color: #fff;
  overflow: hidden;
  /* Butts up against the section above (no WP block-gap white strip). */
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

.housing-cta-band::before {
  content: none;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.65rem;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid #fff;
  background-image: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -10px rgba(255, 255, 255, 0.4);
}

.btn-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(255, 255, 255, 0.55);
  color: #0f172a;
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.65rem;
  background: transparent;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-image: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.housing-cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 3rem;
}

.housing-cta-band h2 {
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.housing-cta-band p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

/* Overview page variant — centered single-column layout with inline
   tel + email links (no cards). Butts up against the section above
   (no WP block-gap white strip). */
.housing-cta-band--talk {
  text-align: center;
  margin-top: 0 !important;
  margin-block-start: 0 !important;
}

/* Let the standard .container width govern — no extra 760px clamp.
   The text simply centers within the full container. */
.housing-cta-band-inner--talk {
  margin: 0 auto;
}

.housing-cta-band--talk h2,
.housing-cta-band--talk p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.housing-cta-band-contacts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem !important;
  font-size: 1.05rem;
}

.housing-cta-band-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  background-image: none !important;
  transition: color 0.15s ease;
}

.housing-cta-band-contact-link:hover {
  color: #7cf5ff !important;
}

.housing-cta-band-contact-link svg {
  color: #7cf5ff;
  flex-shrink: 0;
}

.housing-cta-band-contact-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.3rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .housing-cta-band-contact-sep { display: none; }
  .housing-cta-band-contacts {
    flex-direction: column;
    gap: 0.6rem;
  }
}

.housing-cta-band-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.housing-cta-band-actions a {
  padding: 0.95rem 1.65rem;
  font-size: 0.98rem;
  font-weight: 600;
  background-image: none !important;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .housing-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .housing-hero-media {
    min-height: 440px;
  }

  .housing-hero-photo {
    max-width: 440px;
  }

  .housing-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .housing-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .housing-steps-grid::before {
    display: none;
  }

  .housing-mission-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .housing-cta-band-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .housing-cta-band-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .housing-hero {
    padding: 3rem 0 3.5rem;
  }

  .housing-hero-h1 {
    font-size: 2.1rem;
  }

  .housing-hero-sub {
    font-size: 1rem;
  }

  .housing-hero-ctas a {
    width: 100%;
  }

  .housing-hero-trust {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .housing-hero-photo {
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }

  .housing-hero-badge {
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.6rem 0.8rem;
  }

  .housing-audience,
  .housing-why,
  .housing-steps,
  .housing-mission {
    padding: 2.25rem 0;
  }

  .housing-audience-grid,
  .housing-why-grid,
  .housing-steps-grid {
    grid-template-columns: 1fr;
  }

  .housing-section-header {
    margin-bottom: 2.5rem;
  }

  .housing-section-header h2,
  .housing-mission-copy h2,
  .housing-cta-band h2 {
    font-size: 1.8rem;
  }

  .housing-path-card {
    padding: 1.75rem;
  }

  .housing-path-card h3 {
    font-size: 1.35rem;
  }

  .housing-cta-band {
    padding: 3.5rem 0;
  }

  .housing-cta-band-actions a {
    width: 100%;
    text-align: center;
  }
}

/* ============================================= */
/*          Social Housing Header (/)            */
/* ============================================= */

.sh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.sh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.sh-header-logo {
  display: inline-flex;
  background-image: none !important;
  padding: 0 !important;
}

.sh-header-logo img {
  height: 50px;
  display: block;
}

.sh-header-contact {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  transition: color 0.2s ease;
}

.sh-header-contact:hover {
  color: var(--nice-red);
}

/* ============================================================= */
/*  Spotlight effect for a product row scrolled to via hash nav  */
/*  (triggered from the CorporateDemo products section)          */
/* ============================================================= */
.prod-table-row {
  scroll-margin-top: 140px;
  transition: background-color 0.4s ease, box-shadow 0.4s ease,
              opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* Dim every other row while spotlight is active, keeping the sticky
   header untouched so users can still see Commercial / Personal labels */
.prod-table.prod-spotlight-active .prod-table-row:not(.prod-row-highlight):not(.prod-table-header) {
  opacity: 0.22;
  filter: saturate(0.6);
  transition: opacity 0.5s ease 0.1s, filter 0.5s ease 0.1s;
}

/* The spotlit row — lifted, scaled, glowing, with a cyan accent rail */
.prod-table-row.prod-row-highlight {
  position: relative;
  z-index: 5;
  transform: scale(1.012);
  background:
    linear-gradient(90deg, rgba(18, 66, 196, 0.10), rgba(124, 245, 255, 0.14) 50%, rgba(18, 66, 196, 0.10)) !important;
  box-shadow:
    inset 4px 0 0 #38bdf8,
    0 0 0 1px rgba(56, 189, 248, 0.45),
    0 24px 70px rgba(18, 66, 196, 0.28),
    0 0 80px rgba(124, 245, 255, 0.45);
  animation: prodRowPulse 2.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Shimmer sweep — a bright diagonal ribbon of light crosses the row once */
.prod-table-row.prod-row-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(124, 245, 255, 0.75) 50%,
    rgba(255, 255, 255, 0.55) 52%,
    transparent 65%
  );
  background-size: 250% 100%;
  background-repeat: no-repeat;
  background-position: -120% 0;
  mix-blend-mode: screen;
  animation: prodRowShimmer 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s;
}

/* Floating pill that labels "You're here" above the spotlit row */
.prod-table-row.prod-row-highlight::after {
  content: 'You are here';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #1242c4, #38bdf8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18, 66, 196, 0.45),
              0 0 0 1px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  pointer-events: none;
  animation: prodRowPill 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.15s backwards;
}

@keyframes prodRowShimmer {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}

@keyframes prodRowPulse {
  0%   { transform: scale(1); box-shadow: inset 4px 0 0 #38bdf8, 0 0 0 1px rgba(56, 189, 248, 0), 0 0 0 rgba(18, 66, 196, 0), 0 0 0 rgba(124, 245, 255, 0); }
  25%  { transform: scale(1.016); }
  60%  { transform: scale(1.012); }
  100% { transform: scale(1.012); }
}

@keyframes prodRowPill {
  0%   { opacity: 0; transform: translateX(-50%) translateY(4px) scale(0.8); }
  100% { opacity: 1; transform: translateX(-50%) translateY(-8px) scale(1); }
}

@media (max-width: 640px) {
  .sh-header-logo img {
    height: 40px;
  }

  .sh-header-contact {
    font-size: 0.88rem;
  }
}

/* ============================================= */
/*        Social Housing Sub-Header (shs-*)       */
/* ============================================= */

.shs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid #f1f5f9;
}
/* Reserve space for the fixed header so page content doesn't slide under
   it. The template-part wrapper has zero intrinsic height once the
   header inside it is taken out of flow — add padding-top to .site-main
   equal to the header height (~72px) so the hero starts below it. */
.page-template-page-housing-html .site-main { padding-top: 72px !important; }
@media (max-width: 768px) {
  .page-template-page-housing-html .site-main { padding-top: 64px !important; }
}

.shs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.shs-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-image: none !important;
  padding: 0 !important;
}

.shs-header-logo img {
  height: 44px;
  display: block;
}

.shs-header-logo-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  padding: 0.25rem 0.55rem;
  border-left: 2px solid var(--nice-red);
  white-space: nowrap;
}

.shs-nav {
  display: flex;
  align-items: center;
}

/* Drawer-only blocks — hidden on desktop, revealed in mobile media query. */
.shs-nav-brand,
.shs-nav-support,
.shs-nav-signup-li { display: none; }

.shs-nav-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50%;
  color: #0f172a;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  z-index: 2;
}
.shs-nav-close svg {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.shs-nav-close:hover {
  background: var(--nice-red);
  border-color: var(--nice-red);
  color: #fff;
  transform: scale(1.05);
}
.shs-nav-close:hover svg {
  transform: rotate(90deg);
}
.shs-nav-close:active {
  transform: scale(0.95);
}

.shs-nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.shs-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  background-image: none !important;
}

.shs-nav-link:hover,
.shs-nav-link.active {
  background: #fafbfd;
  color: var(--nice-red);
}

/* Pipe separators between desktop nav items */
.shs-nav-list > li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  margin: 0 0.35rem;
  background: #d4d8e0;
  vertical-align: middle;
}
.shs-nav-list > li:has(.shs-nav-login)::before { display: none; }

/* Login: royal-blue-dark pill — matches the headline highlight colour. */
.shs-nav-login {
  background: #1e3a8a !important;
  color: #fff !important;
  padding: 0.55rem 1.5rem !important;
  border-radius: 999px;
  margin-left: 0.5rem;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.shs-nav-login:hover {
  background: #15306e !important; /* deeper royal blue on hover */
  color: #fff !important;
  transform: translateY(-1px);
}

.shs-nav-chevron {
  transition: transform 0.2s ease;
}

.shs-nav-dropdown {
  position: relative;
}

.shs-nav-dropdown.open .shs-nav-chevron {
  transform: rotate(180deg);
}

.shs-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -6px);
  min-width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 24px 48px -16px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 1100;
  padding: 0.6rem;
}

.shs-dropdown--docs {
  min-width: 360px;
}

.shs-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #fff;
  box-shadow: -1px -1px 0 rgba(15, 23, 42, 0.05);
  z-index: -1;
}

.shs-nav-dropdown.open .shs-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.shs-dropdown-item {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  background-image: none !important;
  transition: background-color 0.15s ease;
}

.shs-dropdown-item:hover {
  background: #fafbfd;
}

.shs-dropdown-item-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.shs-dropdown-item:hover .shs-dropdown-item-label {
  color: var(--nice-red);
}

.shs-dropdown-item-label svg {
  color: var(--nice-red);
  flex-shrink: 0;
}

.shs-dropdown-item-desc {
  display: block;
  margin-top: 0.2rem;
  margin-left: 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
}

.shs-dropdown--docs .shs-dropdown-item-desc {
  margin-left: 1.4rem;
}

/* Mobile hamburger */
.shs-mobile-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.shs-mobile-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--nice-red);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease;
  background-image: none !important;
}
.shs-mobile-login:hover,
.shs-mobile-login:active {
  background: #b51d2a;
  transform: translateY(-1px);
}
.shs-mobile-login svg { flex-shrink: 0; }

.shs-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  outline: none;
}
.shs-hamburger span {
  position: absolute;
  left: 50%;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transform-origin: center;
  transition:
    width 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    top 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.2s ease,
    background-color 0.2s ease;
}
/* Asymmetric three-line design — short, full, shorter (premium signature) */
.shs-hamburger span:nth-child(1) {
  top: 16px;
  width: 22px;
  transform: translateX(-50%);
}
.shs-hamburger span:nth-child(2) {
  top: 22px;
  width: 26px;
  transform: translateX(-50%);
}
.shs-hamburger span:nth-child(3) {
  top: 28px;
  width: 16px;
  transform: translateX(-50%);
}
/* Hover: lines equalize and shift right — playful micro-interaction */
.shs-hamburger:hover span { background: var(--nice-red); }
.shs-hamburger:hover span:nth-child(1) { width: 26px; }
.shs-hamburger:hover span:nth-child(3) { width: 26px; }

/* Open: morph to X with springy bounce */
.shs-hamburger.open span:nth-child(1) {
  top: 22px;
  width: 26px;
  transform: translateX(-50%) rotate(45deg);
  background: #0f172a;
}
.shs-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}
.shs-hamburger.open span:nth-child(3) {
  top: 22px;
  width: 26px;
  transform: translateX(-50%) rotate(-45deg);
  background: #0f172a;
}

.shs-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  animation: shs-overlay-in 0.3s ease forwards;
}
@keyframes shs-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shs-item-in {
  /* Juut-style: items rise from below with a soft blur clearing as they land. */
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 960px) {
  .shs-header-logo-tag {
    display: none;
  }

  .shs-mobile-actions {
    display: inline-flex;
  }

  .shs-hamburger {
    display: inline-flex;
  }

  .shs-nav-close {
    display: flex;
  }

  .shs-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    background: linear-gradient(165deg, #ffffff 0%, #fafbfd 50%, #f5f7fa 100%);
    color: #0f172a;
    padding: 1.25rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
      -20px 0 60px -10px rgba(15, 23, 42, 0.18),
      inset 1px 0 0 rgba(255, 255, 255, 0.8);
    /* Lock horizontal size so a wide child (e.g. the Important
     * Documents dropdown) can never push the panel's content offscreen.
     * Vertical scroll is fine — the doc list is taller than the panel. */
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }
  /* Subtle warm ambient glow inside the drawer */
  .shs-nav::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(196, 18, 48, 0.08) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
  }
  /* Staggered entrance for nav items when drawer opens */
  .shs-nav.open .shs-nav-list > li {
    opacity: 0;
    animation: shs-item-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .shs-nav.open .shs-nav-list > li:nth-child(1) { animation-delay: 0.22s; }
  .shs-nav.open .shs-nav-list > li:nth-child(2) { animation-delay: 0.30s; }
  .shs-nav.open .shs-nav-list > li:nth-child(3) { animation-delay: 0.38s; }
  .shs-nav.open .shs-nav-list > li:nth-child(4) { animation-delay: 0.46s; }
  .shs-nav.open .shs-nav-list > li:nth-child(5) { animation-delay: 0.54s; }
  .shs-nav.open .shs-nav-list > li:nth-child(6) { animation-delay: 0.62s; }

  @media (prefers-reduced-motion: reduce) {
    .shs-nav { transition: none; }
    .shs-nav.open .shs-nav-list > li { animation: none; opacity: 1; }
  }

  .shs-nav-list,
  .shs-nav-dropdown {
    box-sizing: border-box;
    width: 100%;
  }

  .shs-nav.open {
    transform: translateX(0);
  }

  .shs-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  /* No pipe separators in mobile drawer */
  .shs-nav-list > li + li::before { display: none; }

  /* Brand block — sits at top, in line with close button (height: 44px).
     Generous space below before the menu starts. */
  .shs-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height: 44px;
    margin-bottom: 2.5rem;
    text-decoration: none;
    background-image: none !important;
  }
  .shs-nav-brand img { height: 32px; width: auto; }
  .shs-nav-brand-tag {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
  }

  /* "or" divider between Create an Account and Login.
     Use display: grid so both sides are guaranteed to render as identical
     thin tracks — avoids the desktop pipe-separator ::before rule
     (.shs-nav-list > li + li::before) inheriting weird widths. */
  .shs-nav-list > li.shs-nav-or {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.85rem;
    order: 98;
    margin: 0.85rem 0.5rem;
    padding: 0;
    color: #94a3b8;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .shs-nav-list > li.shs-nav-or::before,
  .shs-nav-list > li.shs-nav-or::after {
    content: "" !important;
    display: block !important;
    width: auto !important;
    height: 1px !important;
    background: rgba(15, 23, 42, 0.12) !important;
    margin: 0 !important;
    border: 0 !important;
  }
  .shs-nav-or span {
    display: block;
    line-height: 1;
  }

  /* Reveal the signup li — center the button so it doesn't fill the drawer */
  .shs-nav-signup-li {
    display: flex;
    justify-content: center;
    order: 97;
    margin-top: 0.5rem;
  }
  .shs-nav-signup {
    width: auto !important;
    min-width: 200px;
    justify-content: center !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    color: var(--nice-red) !important;
    border: 1.5px solid var(--nice-red) !important;
    border-radius: 12px !important;
    background-image: none !important;
  }
  .shs-nav-signup:hover {
    background: rgba(196, 18, 48, 0.06) !important;
  }

  /* Login button at bottom — match signup width/padding for consistency */
  .shs-nav-list > li:has(.shs-nav-login) {
    order: 99;
    display: flex;
    justify-content: center;
  }
  .shs-nav-login {
    width: auto !important;
    min-width: 200px;
    justify-content: center !important;
    padding: 0.85rem 1.5rem !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--nice-red) !important;
    box-shadow: 0 10px 24px -10px rgba(196, 18, 48, 0.5);
  }

  /* Support block at the very bottom of drawer */
  .shs-nav-support {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  .shs-nav-support-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.15rem;
  }
  .shs-nav-support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.15s ease;
    background-image: none !important;
  }
  .shs-nav-support-link:hover { color: var(--nice-red); }
  .shs-nav-support-link svg { color: #94a3b8; flex-shrink: 0; }
  .shs-nav-support-link:hover svg { color: var(--nice-red); }

  .shs-nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    color: #0f172a;
    font-size: 1rem;
    border-radius: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .shs-nav-link:hover,
  .shs-nav-link.active {
    background: rgba(196, 18, 48, 0.06);
    color: var(--nice-red);
  }

  .shs-nav-dropdown {
    width: 100%;
  }

  .shs-dropdown,
  .shs-dropdown--docs {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    margin-top: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease, padding 0.3s ease;
    /* Kill the 320/360 px desktop min-widths — inside the nav panel
     * the dropdown must fit the panel width, not force it wider.
     * box-sizing keeps padding inside the 100% width budget. */
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  .shs-dropdown::before {
    display: none;
  }

  .shs-nav-dropdown.open .shs-dropdown {
    max-height: 1000px;
    margin-top: 0.4rem;
    padding: 0.4rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    /* Beat the desktop "translate(-50%, 0)" rule at the same specificity
     * — otherwise the open dropdown gets pulled half its width to the
     * left and sits partly offscreen inside the mobile menu. */
    transform: none;
    left: auto;
  }

  .shs-dropdown-item {
    color: #0f172a;
    /* Let the label + description wrap inside a narrow mobile panel
     * instead of forcing their container wider. */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.75rem;
    overflow-wrap: break-word;
    word-break: break-word;
    border-radius: 8px;
  }

  .shs-dropdown-item:hover {
    background: rgba(196, 18, 48, 0.06);
  }

  .shs-dropdown-item-label {
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.3;
    /* Allow the text span inside the flex label to shrink + wrap */
    flex-wrap: wrap;
  }

  .shs-dropdown-item:hover .shs-dropdown-item-label {
    color: var(--nice-red);
  }

  .shs-dropdown-item-desc {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .shs-dropdown--docs .shs-dropdown-item-desc {
    /* Desktop had a 1.4rem indent to align with the icon; on mobile
     * drop it so descriptions use the full narrow column. */
    margin-left: 0;
  }
}

/* ============================================= */
/*  Social housing uses corporate pill buttons    */
/*  Contextual overrides for layout in cards/band */
/* ============================================= */

/* Door-card buttons — natural content width, left-aligned at the bottom */
.housing-door-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.75rem 1.6rem !important;
  font-size: 0.92rem !important;
  margin-top: auto;
}

/* CTA band buttons — inherit corp pill style, a touch larger for hero-band prominence */
.housing-cta-band-actions .btn-corp-white,
.housing-cta-band-actions .btn-corp-outline-white {
  padding: 0.85rem 1.9rem !important;
  font-size: 0.95rem !important;
}

/* FAQ link-out card button — single prominent action */
.housing-faq-linkout-card .btn-corp-red {
  padding: 0.85rem 1.9rem !important;
  font-size: 0.95rem !important;
  white-space: nowrap;
}

/* FAQ page footer buttons — pair of pill buttons side by side */
.housing-faq-footer-actions .btn-corp-red,
.housing-faq-footer-actions .btn-corp-outline-dark {
  padding: 0.75rem 1.6rem !important;
  font-size: 0.9rem !important;
}

/* ============================================= */
/*  Photo Hero + Doors Row (/landlord, /council)  */
/* ============================================= */

.housing-photo-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
  padding: 2.5rem 0 7rem;
}

/* Force the .container flex-child to fill the hero so content aligns
 * to the same left edge as the site header logo (instead of shrink-to-
 * fit + auto margins centering the block). */
.housing-photo-hero > .container {
  width: 100%;
}

.housing-photo-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.housing-photo-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(1.45) saturate(1.08) contrast(0.95);
}

.housing-photo-hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.housing-photo-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.housing-photo-hero-inner .housing-sub-breadcrumb {
  margin-bottom: 1rem;
}

.housing-photo-hero-inner .housing-eyebrow {
  margin-bottom: 1rem;
}

.housing-photo-hero-h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.85),
    0 4px 16px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(0, 0, 0, 0.45);
}

/* Council H1 is a much longer sentence — drop a notch so it wraps tighter. */
.housing-audience--council .housing-photo-hero-h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

.housing-photo-hero-h1 .red-highlight {
  color: #ff6b7e;
}

.housing-photo-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 820px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  margin: 0;
}

/* Eligibility note under the hero H1 — verbatim copy from reference pages.
 * Border accent picks up the audience accent so it shifts red↔blue. */
.housing-photo-hero-eligibility {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 880px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  margin: 0;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--sh-accent-soft, #ff6b7e);
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.housing-photo-hero-eligibility strong {
  color: #fff;
  font-weight: 700;
}

/* Doors row — side-by-side cards that overlap into the hero zone */
.housing-doors {
  position: relative;
  margin-top: 0;
  margin-bottom: 3rem;
  z-index: 3;
  padding: 1.5rem 0 0;
}
.housing-audience--council .housing-doors {
  padding-top: 0.5rem;
}

.housing-doors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ───────────────────────────────────────────────
   Council page — section rhythm.
   Alternate subtle tints so each block reads as its own section:
   Hero (white) → Onboarding (cool grey) → Notice (transition) →
   About (white) → FAQ link-out (cool grey).
   ─────────────────────────────────────────────── */
.housing-audience--council .housing-doors {
  background: #f7f8fa;
  border-top: 1px solid #ecedf1;
  border-bottom: 1px solid #ecedf1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.housing-audience--council .council-onboard {
  background: #ffffff;
}
.housing-audience--council .council-notice {
  background: #ffffff;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.housing-audience--council .housing-sub-about {
  background: #ffffff;
  border-top: 1px solid #ecedf1;
}
.housing-audience--council .housing-sub-faq-linkout {
  background: #f7f8fa;
  border-top: 1px solid #ecedf1;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}
/* Tiny eyebrow label above each major section heading — gives a
   consistent "you're in section X" cue */
.housing-audience--council .housing-section-header > h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 2.5px;
  background: var(--nice-red);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* Council notice card — sits between onboarding and About sections.
   Designed as a contained card (not a full-bleed strip) so it sits nicely
   in flow rather than feeling like another hero element. */
.council-notice {
  padding: 1rem 0 2rem;
}
.council-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  background: #1e293b;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, 0.4);
}
.council-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  margin-top: 1px;
}
.council-notice-card p {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
@media (max-width: 640px) {
  .council-notice { padding: 0.5rem 0 1.5rem; }
  .council-notice-card {
    padding: 1rem 1.1rem;
    gap: 0.75rem;
    border-radius: 12px;
  }
  .council-notice-icon { width: 32px; height: 32px; }
  .council-notice-icon svg { width: 18px; height: 18px; }
  .council-notice-card p { font-size: 0.85rem; line-height: 1.5; }
}

/* Council hero — restrained premium split layout.
   Text left, photo right. Bright, sharp, no decorative noise. */
.council-hero {
  position: relative;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}
.council-hero--split { padding: 4.5rem 0 5rem; }
.council-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.5rem;
  align-items: center;
}
.council-hero-text {
  position: relative;
  max-width: 620px;
}
/* Thin red rule above the H1 — single, restrained accent */
.council-hero-rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--nice-red);
  margin-bottom: 1.75rem;
  border-radius: 2px;
}
.council-hero-h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.65rem, 1rem + 1.7vw, 2.45rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: #0f172a;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
/* Red highlights get a heavier weight + tighter tracking so they
   visually pop against the surrounding 800-weight text */
.council-hero-h1 .red-highlight {
  color: var(--nice-red);
  font-weight: 900;
  letter-spacing: -0.028em;
}

/* Image — simple rounded frame, soft shadow, no rotation, no decoration */
.council-hero-media { position: relative; }
.council-hero-media-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -28px rgba(15, 23, 42, 0.32),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}
.council-hero-media-frame img {
  display: block;
  width: 100%;
  height: clamp(360px, 50vh, 500px);
  object-fit: cover;
}

/* Tablet */
@media (max-width: 1024px) {
  .council-hero-grid { gap: 3rem; }
}

/* Mobile — stack, image first */
@media (max-width: 760px) {
  .council-hero--split { padding: 2rem 0 2.5rem; }
  .council-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .council-hero-media { order: -1; }
  .council-hero-media-frame { border-radius: 12px; }
  .council-hero-media-frame img { height: 240px; }
  .council-hero-rule { width: 44px; height: 2.5px; margin-bottom: 1.25rem; }
  .council-hero-h1 { font-size: 1.5rem; line-height: 1.25; }
}
.council-hero-strip-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.council-hero-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  margin-top: 1px;
}
.council-hero-strip-label {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-right: 0.65rem;
  vertical-align: middle;
}
.council-hero-strip p {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
@media (max-width: 640px) {
  .council-hero-strip-inner { gap: 0.65rem; }
  .council-hero-strip-icon { width: 28px; height: 28px; }
  .council-hero-strip-icon svg { width: 16px; height: 16px; }
  .council-hero-strip-label { display: block; margin: 0 0 0.2rem; font-size: 0.66rem; }
}
.council-hero-title {
  background: #fff;
  padding: 2.5rem 0 1.5rem;
}
.council-hero-title .housing-photo-hero-h1 {
  color: #0f172a;
  text-shadow: none;
  margin: 0 auto;
  max-width: 1000px;
  text-align: center;
}
@media (max-width: 640px) {
  .council-hero-photo img { height: 240px; }
  .council-hero-strip { padding: 0.85rem 0; }
  .council-hero-strip p { font-size: 0.82rem; line-height: 1.5; }
  .council-hero-title { padding: 1.5rem 0 1.25rem; }
  .council-hero-title .housing-photo-hero-h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: left;
  }
}

/* Single-card variant — full-width onboarding card */
.housing-doors-grid--single {
  grid-template-columns: 1fr;
  max-width: 1180px;
  margin: 0 auto;
}

/* Council 3-step onboarding card — horizontal layout */
.council-onboard {
  padding: 2.5rem 2.5rem 2.25rem;
}
.council-onboard-head {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eef0f4;
}
.council-onboard-head h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.75rem);
}
.council-onboard .council-onboard-head p {
  margin: 0 auto;
  max-width: 880px;
  color: #1e293b;
  line-height: 1.5;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0;
}
.council-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}
.council-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #fbfbfd;
  position: relative;
}
.council-step--final {
  background: #fff;
  border-color: rgba(196, 18, 48, 0.25);
  box-shadow: 0 4px 18px -8px rgba(196, 18, 48, 0.25);
}
.council-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--nice-red);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.council-step-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}
.council-step-body h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.3;
}
/* Note the .council-step prefix — needed to win over the broader
   `.housing-door p` rule (line ~6777) that sets grey on every paragraph
   inside the wider section and would otherwise override this. */
.council-step .council-step-body > p {
  margin: 0 0 1.1rem;
  color: #000;
  line-height: 1.55;
  font-size: 0.93rem;
  flex: 1;
}
.council-step-body .housing-door-cta {
  display: inline-flex;
  align-self: flex-start;
}
/* Tablet: drop to 2 columns, last item spans both for prominence */
@media (max-width: 900px) {
  .council-steps { grid-template-columns: repeat(2, 1fr); }
  .council-step--final { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .housing-doors { margin-bottom: 2rem; padding-top: 0.5rem; }
  .housing-audience--council .housing-doors { padding-top: 0; }
  .council-onboard { padding: 1.5rem 1.25rem 1.25rem; border-radius: 14px; }
  .council-onboard-head { margin-bottom: 1.25rem; padding-bottom: 1.1rem; }
  .council-onboard-head h3 { font-size: 1.2rem; }
  .council-onboard-head p { font-size: 0.92rem; }
  .council-steps { grid-template-columns: 1fr; gap: 0.85rem; }
  .council-step--final { grid-column: auto; }
  .council-step { padding: 1.1rem; }
  .council-step-num { width: 36px; height: 36px; font-size: 1rem; }
}

.housing-door {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 28px 60px -24px rgba(15, 23, 42, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.housing-door--primary {
  border-color: var(--sh-accent, var(--nice-red));
  box-shadow: 0 28px 60px -20px rgba(15, 23, 42, 0.3);
}

.housing-audience--landlord .housing-door--primary {
  box-shadow:
    0 28px 60px -20px rgba(196, 18, 48, 0.35),
    0 0 0 1px rgba(196, 18, 48, 0.18);
}

.housing-audience--council .housing-door--primary {
  border-color: #e2e8f0;
  box-shadow: 0 24px 50px -22px rgba(15, 23, 42, 0.18);
}

.housing-door-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.housing-door--primary .housing-door-icon {
  background: linear-gradient(135deg, var(--nice-red), var(--nice-red-dark));
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(196, 18, 48, 0.55);
}

.housing-door--secondary .housing-door-icon {
  background: rgba(0, 102, 255, 0.1);
  color: var(--corp-blue);
}

.housing-door-body {
  flex: 1;
}

.housing-door-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.55rem;
}

.housing-door--primary .housing-door-tag {
  color: var(--nice-red);
}

.housing-door h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.housing-door p {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.housing-door-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  align-items: flex-start;
}

.housing-door-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  background-image: none !important;
  border: 1px solid transparent;
  margin-top: auto;
}

.housing-door-btn--primary {
  background: var(--nice-red);
  color: #fff;
  border-color: var(--nice-red);
  box-shadow: 0 10px 22px -10px rgba(196, 18, 48, 0.55);
}

.housing-door-btn--primary:hover {
  background: var(--nice-red-dark);
  border-color: var(--nice-red-dark);
  transform: translateY(-1px);
  color: #fff;
}

.housing-door-btn--secondary {
  background: #fff;
  color: var(--corp-blue);
  border-color: rgba(0, 102, 255, 0.4);
}

.housing-door-btn--secondary:hover {
  background: rgba(0, 102, 255, 0.06);
  border-color: var(--corp-blue);
  color: var(--corp-blue);
  transform: translateY(-1px);
}

.housing-door-btn--outline {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.housing-door-btn--outline:hover {
  background: #fafbfd;
  border-color: #cbd5e1;
  color: #0f172a;
}

@media (max-width: 900px) {
  .housing-photo-hero {
    min-height: 360px;
    padding: 2rem 0 5rem;
  }

  .housing-doors {
    margin-top: 0;
  }
  /* Landlord page now uses the whitefade hero — keep the doors block
     below the hero with no overlap so the eligibility paragraph
     ("Only to be purchased by Private Landlords who are providing
     social housing for Local Authority…") stays readable on mobile. */
  .housing-audience--landlord .housing-doors {
    margin-top: 1rem;
  }

  .housing-doors-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .housing-door {
    padding: 1.75rem;
  }
}

/* Legacy action-hero kept for safety — unused at runtime */
.housing-action-hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(196, 18, 48, 0.08), transparent 60%),
    radial-gradient(1100px 600px at 88% 110%, rgba(0, 102, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #fafbfd 0%, #ffffff 60%);
  overflow: hidden;
}

.housing-action-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.housing-action-hero-copy {
  max-width: 620px;
  padding-top: 0.5rem;
}

.housing-action-hero-copy .housing-sub-breadcrumb {
  margin-bottom: 1.2rem;
}

.housing-action-hero-copy .housing-eyebrow {
  margin-bottom: 1rem;
}

.housing-action-hero-h1 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-bottom: 1.2rem;
}

.housing-action-hero-h1 .red-highlight {
  color: var(--nice-red);
}

.housing-action-hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 1.75rem;
  max-width: 560px;
}

.housing-action-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.housing-action-hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 500;
}

.housing-action-hero-list svg {
  color: var(--nice-red);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Action panel */
.housing-action-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 460px;
  margin-left: auto;
  width: 100%;
}

.housing-action-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.85rem 1.85rem 2rem;
  position: relative;
  box-shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.22);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.housing-action-card--primary {
  border-color: rgba(196, 18, 48, 0.45);
  box-shadow:
    0 24px 50px -20px rgba(196, 18, 48, 0.35),
    0 0 0 1px rgba(196, 18, 48, 0.15);
}

.housing-action-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.housing-action-card--primary .housing-action-card-icon {
  background: linear-gradient(135deg, var(--nice-red), var(--nice-red-dark));
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(196, 18, 48, 0.55);
}

.housing-action-card--secondary .housing-action-card-icon {
  background: rgba(0, 102, 255, 0.1);
  color: var(--corp-blue);
}

.housing-action-card-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.55rem;
}

.housing-action-card--primary .housing-action-card-tag {
  color: var(--nice-red);
}

.housing-action-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.housing-action-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.housing-action-card-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.housing-action-card-divider::before,
.housing-action-card-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.housing-action-card-divider span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #94a3b8;
  text-transform: uppercase;
}

.housing-action-card-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.housing-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  background-image: none !important;
  border: 1px solid transparent;
}

.housing-action-btn--primary {
  background: var(--nice-red);
  color: #fff;
  border-color: var(--nice-red);
  box-shadow: 0 10px 22px -10px rgba(196, 18, 48, 0.55);
}

.housing-action-btn--primary:hover {
  background: var(--nice-red-dark);
  border-color: var(--nice-red-dark);
  transform: translateY(-1px);
  color: #fff;
}

.housing-action-btn--secondary {
  background: #fff;
  color: var(--corp-blue);
  border-color: rgba(0, 102, 255, 0.4);
}

.housing-action-btn--secondary:hover {
  background: rgba(0, 102, 255, 0.06);
  border-color: var(--corp-blue);
  color: var(--corp-blue);
  transform: translateY(-1px);
}

.housing-action-btn--outline {
  background: #fff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.housing-action-btn--outline:hover {
  background: #fafbfd;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* FAQ standalone hero */
.housing-faq-hero {
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.housing-faq-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 1rem 0 1rem;
}

.housing-faq-hero p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
}

.housing-sub-breadcrumb--dark {
  color: #64748b;
}

.housing-sub-breadcrumb--dark a {
  color: #64748b;
}

.housing-sub-breadcrumb--dark a:hover {
  color: var(--nice-red);
}

.housing-sub-breadcrumb--dark span {
  color: #cbd5e1;
}

/* FAQ page footer */
.housing-faq-footer {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.housing-faq-footer p {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 500;
  margin: 0;
}

.housing-faq-footer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* FAQ link-out card on LandlordPage/CouncilPage */
.housing-sub-faq-linkout {
  background: #fafbfd !important;
}

.housing-faq-linkout-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.2);
}

.housing-faq-linkout-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.5rem 0 0.55rem;
  letter-spacing: -0.01em;
}

.housing-faq-linkout-card p {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

/* Responsive for the action hero + FAQ extras */
@media (max-width: 960px) {
  .housing-action-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .housing-action-hero-panel {
    margin-left: 0;
    max-width: 100%;
  }

  .housing-action-hero {
    padding: 3rem 0 3.5rem;
  }

  .housing-faq-linkout-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .housing-faq-linkout-card .btn-cta-primary {
    width: 100%;
    text-align: center;
  }

  .housing-faq-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem 1.5rem;
  }

  .housing-faq-footer-actions a {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================= */
/*    Social Housing Sub-Pages (/landlord, /council)    */
/* ============================================= */

.housing-sub-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0f172a;
  padding: 3rem 0;
}

.housing-sub-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.housing-sub-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.5) saturate(1.08) contrast(0.95);
}

.housing-sub-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.3) 100%);
}

.housing-sub-hero-inner {
  position: relative;
  z-index: 2;
  padding: 4rem 0 4.5rem;
  max-width: 780px;
}

.housing-sub-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.housing-sub-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  background-image: none !important;
}

.housing-sub-breadcrumb a:hover {
  color: #fff;
}

.housing-sub-breadcrumb span {
  color: rgba(255, 255, 255, 0.45);
}

.housing-eyebrow-light {
  color: #ff6b7e !important;
}

.housing-eyebrow-light .housing-eyebrow-dot {
  background: #ff6b7e;
  box-shadow: 0 0 0 4px rgba(255, 107, 126, 0.28);
}

.housing-sub-hero-h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.housing-sub-hero-h1 .red-highlight {
  color: #ff6b7e;
}

.housing-sub-hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 680px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.housing-sub-hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.housing-sub-hero-ctas a {
  background-image: none !important;
}

.housing-sub-hero-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  line-height: 1.6;
}

.housing-sub-strip {
  background: #fef3c7;
  border-top: 1px solid #fcd34d;
  border-bottom: 1px solid #fcd34d;
  padding: 1rem 0;
}

.housing-sub-strip p {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.6;
  margin: 0;
}

.housing-sub-strip strong {
  color: #451a03;
}

.housing-sub-section {
  padding: 5rem 0;
  background: #fff;
}

.housing-sub-section + .housing-sub-section {
  border-top: 1px solid #f1f5f9;
}

.housing-sub-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.housing-sub-feature {
  padding: 1.75rem 1.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.housing-sub-feature h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.6rem;
}

.housing-sub-feature p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.housing-sub-table-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  text-align: center;
}

.housing-sub-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.housing-sub-table-wrap--inline {
  margin: 0.75rem 0;
  border-radius: 10px;
}

.housing-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.housing-sub-table thead {
  background: #f8fafc;
}

.housing-sub-table th,
.housing-sub-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.housing-sub-table th {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.housing-sub-table th span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #64748b;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.2rem;
}

.housing-sub-table tbody tr:last-child td {
  border-bottom: none;
}

.housing-sub-table tbody tr:hover {
  background: #fafbfd;
}

.housing-sub-table-note {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-top: 1rem;
}

.housing-sub-faq-section {
  background: #fafbfd;
}

/* ============================================= */
/*   Two-level nested FAQ accordion              */
/*   (mirrors socialhousing.nice1insurance.com)  */
/* ============================================= */

.housing-faq-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 auto;
}

.housing-faq-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.housing-faq-section.open {
  border-color: var(--sh-accent, var(--nice-red));
  box-shadow: 0 22px 48px -22px rgba(15, 23, 42, 0.22);
}

.housing-faq-section-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.65rem;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  color: #0f172a;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.housing-faq-section-title:hover {
  background: #fafbfd;
}

.housing-faq-section.open .housing-faq-section-title {
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfd;
  color: var(--sh-accent, var(--nice-red));
}

.housing-faq-section-chevron {
  flex-shrink: 0;
  color: var(--sh-accent, var(--nice-red));
  transition: transform 0.25s ease;
}

.housing-faq-section.open .housing-faq-section-chevron {
  transform: rotate(180deg);
}

.housing-faq-section-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.housing-faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.housing-faq-item.open {
  border-color: var(--sh-accent, var(--nice-red));
  box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.22);
}

.housing-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.housing-faq-q svg {
  flex-shrink: 0;
  color: var(--sh-accent, var(--nice-red));
  transition: transform 0.2s ease;
}

.housing-faq-item.open .housing-faq-q svg {
  transform: rotate(180deg);
}

.housing-faq-q:hover {
  color: var(--sh-accent, var(--nice-red));
}

.housing-faq-a {
  padding: 0 1.15rem 1.15rem 1.15rem;
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.housing-faq-a p {
  margin-bottom: 0.75rem;
}

.housing-faq-a p:last-child {
  margin-bottom: 0;
}

.housing-faq-a a {
  color: var(--sh-accent, var(--nice-red));
  font-weight: 600;
}

/* FAQ page hero: product subheading under the page title */
.housing-faq-product {
  font-size: 1.1rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: -0.005em;
  margin: 0.5rem 0 0;
}

/* Important Notice — amber-tinted callout matching the reference page */
.housing-faq-notice-section {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
  background: #fffbeb;
}

.housing-faq-notice {
  /* Left-align (was `0 auto`) so the amber border lines up vertically with
     the page heading above it, which sits at the parent .container's left
     edge. Centering offset it by ~160px on a 1280px container. */
  margin: 0;
  padding: 1.85rem 2rem;
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0;
}

.housing-faq-notice-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.housing-faq-notice p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #78350f;
  margin: 0 0 0.85rem;
}

.housing-faq-notice p:last-child {
  margin-bottom: 0;
}

/* General Exclusions — blue-headed block matching the reference page */
.housing-faq-exclusions-section {
  background: #fff !important;
}

.housing-faq-exclusions {
  margin: 0 auto 2.5rem;
  padding: 1.85rem 2rem;
  background: #eff6ff;
  border-left: 4px solid #1e40af;
  border-radius: 0 12px 12px 0;
}

.housing-faq-exclusions-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1e40af;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.housing-faq-exclusions p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #1e3a8a;
  margin: 0;
}

.housing-sub-about {
  background: #fff !important;
}

/* About section: let the heading + body text use the full container width
   instead of the 720/820px caps that made the section feel cramped.
   1080px on the body keeps line-length reasonable (~95ch) without leaving
   huge empty gutters on desktop; the heading goes full-width so the longer
   "...and what we can do for you" sits on one line. */
.housing-sub-about .housing-section-header {
  max-width: none;
}

.housing-sub-about-grid {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.housing-sub-about-grid p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #000;
  margin: 0;
}

.housing-sub-about-tagline {
  text-align: center;
  font-size: 1.15rem !important;
  color: var(--nice-red) !important;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 0.5rem !important;
}

@media (max-width: 900px) {
  .housing-sub-features {
    grid-template-columns: 1fr;
  }

  .housing-sub-hero {
    min-height: 440px;
  }

  .housing-sub-hero-h1 {
    font-size: 1.85rem;
  }

  .housing-sub-hero-ctas a {
    width: 100%;
    text-align: center;
  }

  .housing-sub-section {
    padding: 3.5rem 0;
  }

  .housing-sub-table {
    font-size: 0.85rem;
  }

  .housing-sub-table th,
  .housing-sub-table td {
    padding: 0.75rem 0.85rem;
  }

  .housing-faq-q {
    font-size: 0.95rem;
    padding: 0.95rem 1.1rem;
  }

  .housing-faq-a {
    padding: 0.9rem 1.1rem 1.1rem 1.1rem;
    font-size: 0.92rem;
  }
}

/* ============================================= */
/*  Clickable product list on CorporateDemo home */
/* ============================================= */

a.corp-product-link {
  display: block;
  text-decoration: none;
  background-image: none !important;
  padding: 0 !important;
  color: inherit;
}

a.corp-product-link .corp-product-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

a.corp-product-link:hover .corp-product-accordion-trigger {
  color: var(--corp-blue);
}

/* Full-bleed hero — mobile */
@media (max-width: 768px) {
  .housing-hero-bleed {
    min-height: 520px;
  }

  .housing-hero-bleed-content {
    margin: 3.5rem 0;
  }

  .housing-hero-bleed-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.45) 100%);
  }
}
/* WP port: React conditionally rendered FAQ body / answer; in WP we
   always render them and toggle via .open class for accessibility. */
.housing-faq-section > .housing-faq-section-body { display: none; }
.housing-faq-section.open > .housing-faq-section-body { display: flex; }
.housing-faq-item > .housing-faq-a { display: none; }
.housing-faq-item.open > .housing-faq-a { display: block; }

/* ============================================================== */

/* ============================================================== */
/* Council — Cinematic Hero (full image, no overlay, bottom-left   */
/* card, scroll-down cue). Used by `nice1/council-hero-cinematic`. */
/* ============================================================== */
.council-hero-cinematic {
  position: relative;
  /* Always fit within the viewport so the scroll-down cue is on-screen.
     Using 100svh handles iOS dynamic toolbars; subtract sticky sub-header. */
  height: calc(100svh - 72px);
  min-height: 560px;
  max-height: 880px;
  overflow: hidden;
  isolation: isolate;
}

.council-hero-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.council-hero-cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 30% from top keeps the houses fully in frame and gives more road at
     the bottom so the card has somewhere clear to land. */
  object-position: center 30%;
  display: block;
}

/* Stage fills the section. Self-contained, doesn't share the .container
   class so it sidesteps any height interactions with it. Centers a
   1280px max-width column horizontally so the card aligns with the
   page content. */
.council-hero-cinematic-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 0 1.5rem;
  z-index: 1; /* sit above .council-hero-cinematic-bg */
}

.council-hero-cinematic-card {
  position: absolute;
  left: 0;
  /* Sits in the lower band of the photo so it covers the road/parked cars
     area rather than the houses. */
  bottom: 4.5rem;
  max-width: 620px;
  width: min(620px, 92%);
  padding: 1.75rem 2.25rem 1.9rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 24px 60px -18px rgba(15, 23, 42, 0.45),
    0 4px 14px rgba(15, 23, 42, 0.18);
  text-align: left;
}

.council-hero-cinematic-card-rule {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--nice-red, #c41230);
  margin: 0 0 1rem 0;
}

.council-hero-cinematic-card h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  /* Bigger: ~2rem (32px) on small viewports, scaling up to ~3.05rem
     (48-49px) on wide screens. */
  font-size: clamp(2rem, 3.1vw, 3.05rem);
  line-height: 1.2;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.018em;
  text-align: left;
}

.council-hero-cinematic-card h1 .red-highlight {
  color: var(--nice-red, #c41230);
}

/* Scroll cue — horizontally centered at the bottom, vertical stack with
   label on top, circular outlined chevron beneath. Pure white with a
   soft text-shadow so it reads on the bright photo without needing a
   dark pill behind it. */
.council-hero-cinematic-scroll {
  position: absolute;
  left: 50%;
  bottom: 0.9rem; /* hugs the bottom edge of the photo, centered */
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35), 0 2px 12px rgba(0,0,0,0.45);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  background: none;
  border: 0;
  z-index: 2;
  transition: transform 0.2s ease;
}

.council-hero-cinematic-scroll:hover {
  transform: translateX(-50%) translateY(-2px);
}

.council-hero-cinematic-scroll-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.council-hero-cinematic-scroll-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  animation: nice1-cinematic-bounce 1.8s ease-in-out infinite;
}

.council-hero-cinematic-scroll-arrow svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .council-hero-cinematic-scroll-arrow { animation: none; }
}

@keyframes nice1-cinematic-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* Mobile — card stretches full width along bottom, scroll cue tightens */
@media (max-width: 768px) {
  .council-hero-cinematic-card {
    left: 1rem;
    right: 1rem;
    bottom: 6.5rem;
    max-width: none;
    width: auto;
    padding: 1.5rem 1.4rem 1.6rem;
    border-radius: 14px;
  }
  .council-hero-cinematic-card h1 { font-size: 1.15rem; line-height: 1.3; }
  .council-hero-cinematic-card-rule { width: 40px; height: 2.5px; margin-bottom: 0.85rem; }
  .council-hero-cinematic-scroll {
    bottom: 1.1rem;
    gap: 0.45rem;
  }
  .council-hero-cinematic-scroll-arrow { width: 28px; height: 28px; }
  .council-hero-cinematic-scroll-arrow svg { width: 12px; height: 12px; }
  .council-hero-cinematic-scroll-label { font-size: 0.68rem; letter-spacing: 0.18em; }
}

/* ============================================================== */

/* ============================================================== */
/* Council Hero — Option 2: SIDE FADE                              */
/* Photo on the RIGHT at full sharpness (houses always visible),   */
/* mask-faded into a clean panel on the LEFT for the headline.     */
/* ============================================================== */
.council-hero-sidefade {
  position: relative;
  height: calc(100svh - 72px);
  min-height: 580px;
  max-height: 880px;
  overflow: hidden;
  isolation: isolate;
  background: #f8fafc; /* warm-light panel revealed on the left */
}

.council-hero-sidefade-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Photo OPAQUE on the right (houses sharp), fades to transparent
     toward the left where the headline sits. */
  -webkit-mask-image: linear-gradient(to right,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.85) 35%,
    rgba(0,0,0,1)    55%,
    rgba(0,0,0,1)    100%);
  mask-image: linear-gradient(to right,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.85) 35%,
    rgba(0,0,0,1)    55%,
    rgba(0,0,0,1)    100%);
}

.council-hero-sidefade-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Pull the photo crop slightly to the right so the houses appear in
     the visible (right) half rather than the faded (left) half. */
  object-position: 65% 30%;
  display: block;
}

.council-hero-sidefade-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  z-index: 1;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}

.council-hero-sidefade-text {
  grid-column: 1;
  padding-right: 1.5rem;
}

.council-hero-sidefade-rule {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--nice-red, #c41230);
  margin: 0 0 1.4rem 0;
}

.council-hero-sidefade-text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1.2;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.council-hero-sidefade-text h1 .red-highlight {
  color: var(--nice-red, #c41230);
}

/* Mobile — stack: photo at top fades down into the panel, text below */
@media (max-width: 900px) {
  .council-hero-sidefade-photo {
    -webkit-mask-image: linear-gradient(to bottom,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 45%,
      rgba(0,0,0,0) 90%);
    mask-image: linear-gradient(to bottom,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 45%,
      rgba(0,0,0,0) 90%);
  }
  .council-hero-sidefade-stage {
    grid-template-columns: 1fr;
    align-items: end;
    padding-bottom: 5rem;
  }
  .council-hero-sidefade-text {
    grid-column: 1;
    padding: 0;
  }
  .council-hero-sidefade-text h1 { font-size: 1.5rem; }
}


/* ============================================================== */
/* Council Hero — Option 3: SPLIT (Clear Left, Huge Photo Right)    */
/* Two columns. Left = clean panel with headline. Right = wall of   */
/* photo, full-bleed to the viewport edge, no frame, no rounded     */
/* corners. Photo deliberately uses 105% width with negative right  */
/* margin to feel un-contained — extends past the viewport edge.    */
/* ============================================================== */
.council-hero-split {
  position: relative;
  height: calc(100svh - 72px);
  min-height: 580px;
  max-height: 880px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 42% 58%;
  background: #f6f7f9;
}

.council-hero-split-text {
  grid-column: 1;
  display: flex;
  align-items: center;
  padding: 3rem 2.5rem 3rem max(2rem, calc((100vw - 1280px) / 2 + 1.5rem));
  background: #ffffff;
  position: relative;
  z-index: 1;
}

/* Soft drop-shadow on the right edge of the panel so the seam between
   panel and photo feels intentional, not just a flat cut. */
.council-hero-split-text::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -24px;
  width: 24px;
  background: linear-gradient(to right, rgba(15,23,42,0.10), rgba(15,23,42,0));
  pointer-events: none;
}

.council-hero-split-text-inner {
  max-width: 520px;
}

.council-hero-split-rule {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--nice-red, #c41230);
  margin: 0 0 1.4rem 0;
}

.council-hero-split-text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 1.2;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.council-hero-split-text h1 .red-highlight {
  color: var(--nice-red, #c41230);
}

.council-hero-split-photo {
  grid-column: 2;
  position: relative;
  overflow: hidden;
}

/* Use 110% width and negative right margin so the photo runs past the
   viewport edge — gives it that "huge, not contained" feel. */
.council-hero-split-photo img {
  width: 110%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 35%;
  display: block;
  margin-right: -10%;
}

@media (max-width: 900px) {
  .council-hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  .council-hero-split-text {
    grid-column: 1;
    padding: 4.5rem 1.5rem 3rem;
  }
  .council-hero-split-text::after { display: none; }
  .council-hero-split-text h1 { font-size: 1.5rem; }
  .council-hero-split-photo {
    grid-column: 1;
    height: 50svh;
    min-height: 320px;
  }
  .council-hero-split-photo img {
    width: 100%;
    margin-right: 0;
    object-position: center 30%;
  }
}


/* ============================================================== */
/* Council Hero — Editorial Headline                               */
/* Full-bleed photo with a soft vignette ONLY on the upper third   */
/* so a huge white headline reads cleanly on the sky. Houses + the */
/* road stay untouched. Brand tag above headline. Scroll cue at    */
/* bottom-center with a red halo so it's impossible to miss.       */
/* ============================================================== */
.hero-editorial {
  position: relative;
  /* Reduced: roughly 78% of viewport rather than full, so the next
     section peeks above the fold and the scroll cue sits naturally. */
  height: calc(78svh - 72px);
  min-height: 540px;
  max-height: 760px;
  overflow: hidden;
  isolation: isolate;
  margin: 0 !important;
  padding: 0 !important; /* override global `section { padding: 4rem 0 }` */
}

/* Strip default WP block spacing above the hero so the photo butts up
   to the sub-header on every viewport. WP injects block-gap margins via
   `:where(.is-layout-flow) > * { margin-block-start: ... }` and may add
   padding via theme.json — we override at every layer. */
.wp-site-blocks,
.wp-site-blocks > *,
.wp-block-template-part,
.site-main,
.site-main > *:first-child,
.site-main > .hero-editorial,
.site-main > .wp-block-group:first-child,
.site-main > .wp-block-group:first-child > *:first-child {
  margin-top: 0 !important;
  margin-block-start: 0 !important;
  padding-top: 0 !important;
}
.wp-site-blocks > * + *,
.wp-block-template-part + * { margin-top: 0 !important; margin-block-start: 0 !important; }

/* Block-gap is disabled at the source via theme.json `settings.spacing.blockGap: false`
   so WP no longer emits `:where(.is-layout-flow) > * { margin-block-start: 24px }`.
   No CSS reset needed here — element-specific margins (e.g. .corp-services-grid
   margin-top: 2.5rem) now apply naturally on both corporate and housing pages. */

.hero-editorial-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Photo fills the entire hero edge-to-edge. object-position shifted
   down to 55% so the road and parked cars are clearly visible.
   No animation — the glass card's backdrop-filter has to re-paint
   every frame if the photo behind it moves, which reads as flicker. */
.hero-editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

/* Vignette covers the TOP 55% — heavy at top, fades to clear by the
   middle of the photo. Sits over the sky portion only, never over the
   houses. Gives the headline a dark canvas without darkening the
   whole image. */
.hero-editorial-vignette {
  display: none; /* removed per design — photo stays clear, no overlay */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8, 14, 28, 0.78) 0%,
    rgba(8, 14, 28, 0.62) 25%,
    rgba(8, 14, 28, 0.38) 55%,
    rgba(8, 14, 28, 0.10) 85%,
    rgba(8, 14, 28, 0)    100%
  );
  pointer-events: none;
}

.hero-editorial-stage {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.hero-editorial-top {
  max-width: 980px;
}

.hero-editorial-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem 0.45rem 1.05rem;
  background: var(--nice-red, #c41230);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 1.6rem;
  box-shadow: 0 8px 24px -10px rgba(196, 18, 48, 0.6);
}

.hero-editorial-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  margin-right: 0.1rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.hero-editorial-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  /* Massive display type, scales aggressively with viewport */
  font-size: clamp(2.4rem, 5.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  /* Dark navy reads cleanly on the bright sky in the upper portion of
     the photo. No text-shadow — the image stays untouched. */
  color: #0f172a;
  margin: 0;
}

.hero-editorial-headline .red-highlight {
  /* Brand red — matches every other Nice1 surface on the site. */
  color: var(--nice-red, #c41230);
}

/* Scroll cue — large, red, with halo + label below.
   Centered at the bottom of the hero, sits naturally on the road
   portion of the photo where there's already darker tone. */
/* Scroll cue: three white chevrons cascading downward with a small
   "Scroll Down" label below. No container, no overlay on the photo —
   only the cue itself carries a soft drop-shadow so it reads on busy
   backgrounds. Designed to feel intentional, not button-y. */
.hero-editorial-scroll {
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 0;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hero-editorial-scroll:hover {
  transform: translateY(3px);
}

.hero-editorial-scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 28px;
}

.hero-editorial-scroll-chevrons svg {
  width: 28px;
  height: 12px;
  stroke: #ffffff;
  /* Subtle drop-shadow only on the chevrons themselves — gives them
     definition on bright sky AND dark road. Does NOT affect the photo
     elsewhere. */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
  opacity: 0.25;
  transform: translateY(0);
  animation: nice1-chevron-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-editorial-scroll-chevrons svg:nth-child(1) { animation-delay: 0s; }
.hero-editorial-scroll-chevrons svg:nth-child(2) { animation-delay: 0.18s; }
.hero-editorial-scroll-chevrons svg:nth-child(3) { animation-delay: 0.36s; }

@keyframes nice1-chevron-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  40%      { opacity: 1;    transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-editorial-scroll-chevrons svg { animation: none; opacity: 0.85; }
}

.hero-editorial-scroll-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  /* Sharp white text + subtle dark shadow so the label reads on any
     part of the photo — sky, brick, cars. */
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.55),
    0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Mobile — tighten everything, keep the same dramatic feel */
@media (max-width: 768px) {
  /* Stack: photo on top, copy underneath, no overlay. */
  .hero-editorial {
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: #ffffff;
  }
  .hero-editorial-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 48vh;
    min-height: 300px;
    max-height: 420px;
    aspect-ratio: auto;
  }
  .hero-editorial-photo img {
    height: 100%;
    width: 100%;
  }
  .hero-editorial-vignette { display: none; }
  .hero-editorial-stage {
    position: relative;
    height: auto;
    padding: 1.1rem 1.25rem 1.25rem;
    justify-content: flex-start;
  }
  .hero-editorial-eligibility {
    color: #334155;
    font-size: clamp(1.05rem, 4.2vw, 1.2rem);
    line-height: 1.55;
    margin-top: 0.9rem;
  }
  .hero-editorial-eligibility strong { color: #0f172a; }
  .hero-editorial-tag {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1.1rem;
  }
  .hero-editorial-headline {
    font-size: clamp(1.65rem, 7.5vw, 2.5rem);
    line-height: 1.1;
  }
  .hero-editorial-vignette { height: 60%; }
  .hero-editorial-scroll-arrow {
    width: 50px;
    height: 50px;
    box-shadow:
      0 10px 22px -6px rgba(196, 18, 48, 0.55),
      0 0 0 6px rgba(196, 18, 48, 0.14),
      0 0 0 12px rgba(196, 18, 48, 0.07);
  }
  .hero-editorial-scroll-arrow svg { width: 18px; height: 18px; }
  .hero-editorial-scroll-label { font-size: 0.66rem; letter-spacing: 0.16em; }
}

/* ============================================================== */
/* Hero Editorial — colour-variant modifiers                       */
/* Drop a `--variant` class onto .hero-editorial to swap the       */
/* highlight colour. Photo stays clear (no overlay) in all cases.  */
/* ============================================================== */
.hero-editorial--red .hero-editorial-headline .red-highlight {
  color: #c41230;
}
.hero-editorial--reddark .hero-editorial-headline .red-highlight {
  color: #a00f26;
}
.hero-editorial--navy .hero-editorial-headline .red-highlight {
  color: #1e3a8a;
}
.hero-editorial--blue .hero-editorial-headline .red-highlight {
  color: #2563eb; /* slightly deeper than #60a5fa so it reads on bright sky */
}
.hero-editorial--cream .hero-editorial-headline .red-highlight {
  color: #d4a017; /* honeyed cream that still has contrast */
}
.hero-editorial--amber .hero-editorial-headline .red-highlight {
  color: #b45309; /* deeper amber for legibility on bright photo */
}
.hero-editorial--white-bold .hero-editorial-headline {
  color: #0f172a; /* keep main text dark navy */
}
.hero-editorial--white-bold .hero-editorial-headline .red-highlight {
  color: #0f172a;
  font-weight: 900;
  font-style: italic;
}

/* ============================================================== */
/* Hero Editorial — GLASS CARD variants (light text)               */
/* Frosted glass backdrop sits behind the headline only, not over  */
/* the whole photo. Lets white/cream text read on a bright image   */
/* without darkening the photo elsewhere.                          */
/* ============================================================== */
/* Compact card, anchored left, headline nudged down a touch. */
.hero-editorial--white-glass .hero-editorial-top,
.hero-editorial--cream-glass .hero-editorial-top {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 1.75rem 2rem 1.9rem;
  max-width: 680px;
  align-self: flex-start; /* keep the card on the left */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Slightly smaller headline inside the card. */
.hero-editorial--white-glass .hero-editorial-headline,
.hero-editorial--cream-glass .hero-editorial-headline {
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  line-height: 1.15;
}

/* WHITE TEXT + black-with-white-edges HIGHLIGHTS (white-glass variant) */
.hero-editorial--white-glass .hero-editorial-headline {
  color: #ffffff;
}
.hero-editorial--white-glass .hero-editorial-headline .red-highlight {
  /* Strong royal-blue-dark glyph + thin white edge so the highlighted
     phrases pop against the white-frosted card and bright photo. */
  color: #1e3a8a;
  -webkit-text-stroke: 1.25px #ffffff;
  text-stroke: 1.25px #ffffff;
  paint-order: stroke fill;
}

/* CREAM variant: cream main text, white italic 900 emphasis */
.hero-editorial--cream-glass .hero-editorial-headline {
  color: #fef3c7;
}
.hero-editorial--cream-glass .hero-editorial-headline .red-highlight {
  color: #ffffff;
  font-style: italic;
  font-weight: 900;
}

/* Mobile — text stacks BELOW the photo, no glass card, dark readable type.
   Overlaying frosted glass on a photo on small screens makes the copy hard
   to read; on mobile we treat the hero as image-then-headline. */
@media (max-width: 768px) {
  .hero-editorial--white-glass .hero-editorial-top,
  .hero-editorial--cream-glass .hero-editorial-top {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
  }
  .hero-editorial--white-glass .hero-editorial-headline,
  .hero-editorial--cream-glass .hero-editorial-headline {
    font-size: clamp(1.9rem, 7.5vw, 2.5rem);
    line-height: 1.18;
    color: #0f172a;
  }
  .hero-editorial--white-glass .hero-editorial-headline .red-highlight {
    color: #1e3a8a;
    -webkit-text-stroke: 0;
    text-stroke: 0;
  }
  .hero-editorial--cream-glass .hero-editorial-headline .red-highlight {
    color: #1e3a8a;
  }
}

/* Council onboarding card — Create an Account button picks up the
   royal-blue-dark used in the glass-card highlights + Login button
   for a coherent council-audience colour story. Other `.btn-corp-red`
   buttons across the site remain brand red. */
.council-onboard .btn-corp-red {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #ffffff !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.council-onboard .btn-corp-red:hover {
  background: #15306e !important;
  border-color: #15306e !important;
  transform: translateY(-1px);
}

/* Council onboarding — green step circles + green secondary CTAs.
   Overrides the brand-red step pill and the dark outline buttons so
   the council-audience flow reads as "go / proceed". */
.council-onboard .council-step-num {
  background: #16a34a;
}
.council-onboard .council-step--final .council-step-num {
  background: #1e3a8a;
}
.council-onboard .btn-corp-outline-dark {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}
.council-onboard .btn-corp-outline-dark:hover {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}

/* Landlord audience: ALL CTAs share the same royal-blue as council so the
   page has one consistent action colour. Covers the onboarding "Buy a
   Policy" / "Purchase Policy" button + any other `.btn-corp-red` inside
   the landlord onboard block, and the "Buy a Policy" sign-up CTA in the
   sub-header nav when on a landlord URL. */
.landlord-onboard .btn-corp-red,
body.parent-pageid-7 .shs-nav-signup,
body[class*="page-landlord"] .shs-nav-signup,
body[class*="landlord"] .landlord-onboard .btn-corp-red {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #ffffff !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.landlord-onboard .btn-corp-red:hover,
body.parent-pageid-7 .shs-nav-signup:hover,
body[class*="page-landlord"] .shs-nav-signup:hover {
  background: #15306e !important;
  border-color: #15306e !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Landlord audience variant of the white-glass hero. Same layout as
   council, but highlighted phrases use BRAND RED (#c41230) instead of
   royal blue so the two audiences stay visually distinct. */
.hero-editorial--white-glass-red .hero-editorial-top {
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 1.75rem 2rem 1.9rem;
  max-width: 680px;
  align-self: flex-start;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-editorial--white-glass-red .hero-editorial-headline {
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.75rem);
  line-height: 1.15;
}

.hero-editorial--white-glass-red .hero-editorial-headline .red-highlight {
  color: #c41230; /* brand red — landlord audience accent */
  -webkit-text-stroke: 1.25px #ffffff;
  text-stroke: 1.25px #ffffff;
  paint-order: stroke fill;
}

@media (max-width: 768px) {
  .hero-editorial--white-glass-red .hero-editorial-top {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-width: none;
  }
  .hero-editorial--white-glass-red .hero-editorial-headline {
    font-size: clamp(1.9rem, 7.5vw, 2.5rem);
    line-height: 1.18;
    color: #0f172a;
  }
  .hero-editorial--white-glass-red .hero-editorial-headline .red-highlight {
    color: #c41230;
    -webkit-text-stroke: 0;
    text-stroke: 0;
  }
}

/* ================================================================
   GATEWAY — WHITE-FADE hero variant
   Full-bleed photo of terraced houses, left side gradient-faded to
   pure white so dark text sits on the page with no card, no overlay.
   ================================================================ */
.hero-editorial--whitefade {
  background: #ffffff;
}

.hero-editorial--whitefade .hero-editorial-photo img {
  /* Shift slightly left of right edge so foreground terraces show
     alongside the far-end houses on the right. */
  object-position: 70% center;
  filter: brightness(1.04) saturate(1.06) contrast(1.02);
}

/* Soft left-to-right fade: solid white through ~22%, smooth transition,
   fully transparent past ~60% so the houses on the right stay vivid. */
.hero-editorial-whitefade-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 18%,
    rgba(255, 255, 255, 0.92) 28%,
    rgba(255, 255, 255, 0.55) 38%,
    rgba(255, 255, 255, 0.18) 48%,
    rgba(255, 255, 255, 0) 56%
  );
}

.hero-editorial--whitefade .hero-editorial-top {
  /* Kill the glass-card chrome inherited from any other variant */
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 540px;
  align-self: flex-start;
}

.hero-editorial--whitefade .hero-editorial-stage {
  justify-content: center;
}

.hero-editorial--whitefade .hero-editorial-headline {
  color: #0f172a;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

.hero-editorial--whitefade .hero-editorial-headline .red-highlight {
  color: var(--nice-red, #c41230);
  -webkit-text-stroke: 0;
  text-stroke: 0;
}

/* Council audience: royal-blue accent on highlighted phrases, preserves
   the existing public-sector vs landlord visual distinction. */
.hero-editorial--whitefade.hero-editorial--whitefade-blue .hero-editorial-headline .red-highlight {
  color: #1e3a8a;
}

/* Council and landlord headlines are longer than the gateway — give them
   a touch more room so they don't break awkwardly. */
.hero-editorial--whitefade.hero-editorial--whitefade-blue .hero-editorial-top,
.hero-editorial--whitefade .hero-editorial-eligibility {
  max-width: 620px;
}

.hero-editorial--whitefade .hero-editorial-eligibility {
  color: #334155;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
}

.hero-editorial--whitefade .hero-editorial-eligibility strong {
  color: #0f172a;
  font-weight: 700;
}

@media (max-width: 900px) {
  /* No white fade on mobile — show the photo cleanly. Text moves
     below the photo via the stage layout instead of sitting on top. */
  .hero-editorial-whitefade-mask {
    display: none;
  }
  .hero-editorial--whitefade .hero-editorial-top {
    max-width: none;
  }
}

/* Landlord audience uses the same 3-step onboarding layout as council.
   Alias `.landlord-onboard` to the existing council-scoped rules. */
.landlord-onboard {
  padding: 2.5rem 2.5rem 2.25rem;
}

/* Mobile: match the council card's trim padding so the landlord card
   doesn't feel pinched against its content (was 40px gutters on a
   430px viewport — content squeezed to ~316px). */
@media (max-width: 640px) {
  .landlord-onboard {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 14px;
  }
}
.landlord-onboard .council-onboard-head p {
  margin: 0 auto;
  max-width: 880px;
  color: #1e293b;
  line-height: 1.5;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0;
}

/* Eligibility note under the landlord hero headline. */
.hero-editorial-eligibility {
  color: #ffffff;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 1.1rem 0 0;
}
.hero-editorial-eligibility strong {
  font-weight: 700;
  color: #ffffff;
}

/* Onboarding 3-step card (landlord + council variants) — flat, still,
   no red border, no shadow, no hover lift. The card is informational,
   not interactive. */
.landlord-onboard.housing-door,
.council-onboard.housing-door,
.housing-audience--landlord .landlord-onboard.housing-door--primary,
.housing-audience--council .council-onboard.housing-door--primary {
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  background: #ffffff;
  transition: none;
}

.landlord-onboard.housing-door:hover,
.council-onboard.housing-door:hover,
.housing-audience--landlord .landlord-onboard.housing-door--primary:hover,
.housing-audience--council .council-onboard.housing-door--primary:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: #e2e8f0 !important;
}

/* ============================================================== */
/* Site-wide back-to-top button                                    */
/* ============================================================== */
.nice1-back-to-top {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e3a8a; /* royal blue dark — matches CTA palette */
  color: #ffffff;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.nice1-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nice1-back-to-top:hover {
  background: #15306e;
  transform: translateY(-2px) scale(1);
}

.nice1-back-to-top:focus-visible {
  outline: 3px solid rgba(30, 58, 138, 0.4);
  outline-offset: 3px;
}

.nice1-back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .nice1-back-to-top {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
  }
  .nice1-back-to-top svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .nice1-back-to-top { transition: opacity 0.15s linear; }
  .nice1-back-to-top:hover { transform: none; }
}

/* ============================================================== */
/* Landlord page: insurance products (live client wording)         */
/* Flat cards, no hover lift or shadow, royal-blue buttons.        */
/* ============================================================== */
.hero-editorial--whitefade .hero-editorial-headline--long {
  font-size: clamp(1.8rem, 1.1rem + 2.1vw, 2.75rem);
  line-height: 1.14;
  max-width: 640px;
}

.ll-products {
  background: #f8fafc;
  padding: 64px 0 56px;
}
.ll-products-head {
  text-align: center;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ll-products-title {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.ll-products-title .red-highlight { color: var(--nice-red, #c41230); }
.ll-products-lead {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: #1e293b;
}
.ll-products-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}
.ll-products-faqs {
  color: var(--nice-red, #c41230);
  font-weight: 700;
  text-decoration: underline;
}

.ll-product {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ll-product h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}
.ll-product p {
  margin: 0;
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
}
.ll-product--featured {
  flex-direction: row;
  align-items: center;
  gap: 40px;
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 20px;
}
.ll-product--featured .ll-product-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ll-product--featured h3 { font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 800; }
.ll-product--featured p { font-size: 16px; }

.ll-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ll-product-btn {
  align-self: flex-start;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  background: #1e3a8a;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.15s ease-out;
}
.ll-product--featured .ll-product-btn { min-height: 52px; padding: 0 30px; font-size: 16px; font-weight: 700; align-self: center; }
.ll-product-btn:hover { background: #15306e; color: #ffffff; }
.ll-product-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

@media (max-width: 900px) {
  .ll-products-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .ll-product--featured { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px; }
  .ll-product--featured .ll-product-btn { align-self: flex-start; }
  .ll-products-note br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ll-product-btn { transition: none; }
}

/* ============================================================== */
/*   Landlord FAQs: product accordions (mirrors live landlord-faqs) */
/* ============================================================== */
.ll-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

.ll-faq-product,
.ll-faq-q {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.ll-faq-product[open] {
  border-color: var(--sh-accent, var(--nice-red));
}

.ll-faq-product > summary,
.ll-faq-q > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  transition: color 0.15s ease-out;
}

.ll-faq-product > summary::-webkit-details-marker,
.ll-faq-q > summary::-webkit-details-marker {
  display: none;
}

.ll-faq-product > summary {
  padding: 20px 24px;
}

.ll-faq-product-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

.ll-faq-product > summary:hover,
.ll-faq-product[open] > summary {
  color: var(--sh-accent, var(--nice-red));
}

.ll-faq-product > summary:focus-visible,
.ll-faq-q > summary:focus-visible {
  outline: 2px solid var(--sh-accent, var(--nice-red));
  outline-offset: 2px;
  border-radius: 12px;
}

/* Plus / minus icon */
.ll-faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--sh-accent, var(--nice-red));
}

.ll-faq-icon::before,
.ll-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform 0.15s ease-out;
}

.ll-faq-icon::after {
  transform: rotate(90deg);
}

details[open] > summary > .ll-faq-icon::after {
  transform: rotate(0deg);
}

.ll-faq-panel {
  padding: 8px 24px 24px;
  border-top: 1px solid #f1f5f9;
}

/* Group headings (Policy Purchase & Setup etc.) collapse too */
.ll-faq-section {
  border-bottom: 1px solid #e2e8f0;
}

.ll-faq-section:last-child {
  border-bottom: 0;
}

.ll-faq-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  transition: color 0.15s ease-out;
}

.ll-faq-section > summary::-webkit-details-marker {
  display: none;
}

.ll-faq-section > summary:hover,
.ll-faq-section[open] > summary {
  color: var(--sh-accent, var(--nice-red));
}

.ll-faq-section > summary:focus-visible {
  outline: 2px solid var(--sh-accent, var(--nice-red));
  outline-offset: 2px;
  border-radius: 8px;
}

.ll-faq-group {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
}

.ll-faq-section-body {
  padding-bottom: 16px;
}

.ll-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ll-faq-q {
  border-radius: 10px;
}

.ll-faq-q[open] {
  border-color: var(--sh-accent, var(--nice-red));
}

.ll-faq-q > summary {
  padding: 12px 16px;
  font-size: 0.96rem;
  font-weight: 600;
}

.ll-faq-q > summary:hover,
.ll-faq-q[open] > summary {
  color: var(--sh-accent, var(--nice-red));
}

.ll-faq-a,
.ll-faq-text {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.65;
}

.ll-faq-a {
  padding: 16px;
  border-top: 1px solid #f1f5f9;
}

.ll-faq-a p,
.ll-faq-text p {
  margin: 0 0 12px;
}

.ll-faq-a p:last-child,
.ll-faq-text p:last-child {
  margin-bottom: 0;
}

.ll-faq-a ul,
.ll-faq-a ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

.ll-faq-a a,
.ll-faq-text a {
  color: var(--sh-accent, var(--nice-red));
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .ll-faq-product > summary {
    padding: 16px;
  }

  .ll-faq-product-name {
    font-size: 1.05rem;
  }

  .ll-faq-panel {
    padding: 8px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ll-faq-icon::before,
  .ll-faq-icon::after,
  .ll-faq-product > summary,
  .ll-faq-section > summary,
  .ll-faq-q > summary {
    transition: none;
  }
}

/* ============================================= */
/*                 404 page                       */
/* ============================================= */
/* The hero is .corp-page-hero, whose own padding clears the fixed nav.
   It must not be <main> itself: `.wp-site-blocks > *` zeroes padding there. */

.nf404 {
  /* Top padding adds the fixed-header height (~72px) to the 8rem gap below
     the buttons, so the visible space above and below the content matches. */
  padding: calc(72px + 8rem) 0 8rem;
}

@media (max-width: 768px) {
  .nf404 {
    padding: calc(64px + 4rem) 0 4rem;
  }
}

.nf404-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.nf404-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--nice-red);
  margin-bottom: 2rem;
}

.nf404-eyebrow::before,
.nf404-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--nice-red);
}

.nf404-code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.nf404-code span {
  color: var(--nice-red);
}

.nf404-title {
  font-size: clamp(1.6rem, 1rem + 2.5vw, 2.1rem);
  font-weight: 700;
  color: #0f172a;
  margin: 1.75rem 0 1rem;
}

.nf404-text {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.nf404-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nf404-btns a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nf404-btns a:focus-visible {
  outline: 3px solid var(--corp-blue);
  outline-offset: 2px;
}

/* Landlord page: close the white gap between the hero photo and the products section. */
.housing-audience--landlord > .hero-editorial + .ll-products {
  margin-block-start: 0;
  padding-top: 40px;
}

/* Landlord page: a shorter hero on desktop so the products section shows sooner. */
@media (min-width: 769px) {
  .housing-audience--landlord > .hero-editorial {
    height: calc(66svh - 72px);
    min-height: 460px;
    max-height: 640px;
  }
}

/* Landlord products: IPID / Policy Wording links under each product description. */
.ll-docs,
.ll-product .ll-docs {
  display: flex;
  flex-grow: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  margin: 8px 0 0;
}
.ll-doc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease-out;
}
.ll-doc:hover {
  color: #c41230;
}
.ll-doc:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
  border-radius: 2px;
}
.ll-doc svg {
  flex: none;
}
@media (min-width: 769px) {
  .ll-doc {
    min-height: 32px;
  }
}
