/* ============================================
   Ironcrest Commercial Cleaning
   Commercial Cleaning & Floor Care
   ============================================ */

:root {
  --navy: #1a2744;
  --navy-dark: #0f172a;
  --navy-light: #2a3f5f;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #868e96;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --gold: #c9a227;
  --gold-light: #e0c04d;
  --gold-dark: #a8851f;
  /* Small gold text on light backgrounds: #c9a227 is only 2.4:1, which fails
     WCAG AA. This darker bronze reads as the same brand accent at 4.9:1. */
  --gold-text: #8a6d18;
  --yellow-accent: #f0c420;
  --text-primary: #1a2744;
  --text-secondary: #495057;
  --text-muted: #666e76;
  --border: #dee2e6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 72px;
  --header-height-mobile: 64px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@view-transition {
  navigation: auto;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   UTILITIES
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-lg {
  padding: 5rem 0;
}

.section-xl {
  padding: 6rem 0;
}

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy-dark { background: var(--navy-dark); color: var(--white); }
.bg-gray { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }
.bg-white { background: var(--white); }

.text-white { color: var(--white); }
.text-white p { color: rgba(255,255,255,0.85); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.text-left { text-align: left; }

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  height: 100%;
  color: var(--navy);
}

.logo:hover {
  color: var(--navy);
}

.logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--navy);
  background: var(--gray-100);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-caret {
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--gray-50);
  color: var(--navy);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.header-phone:hover {
  color: var(--gold);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
}

.mobile-submenu {
  display: flex;
  flex-direction: column;
  margin: -0.5rem 0 0.5rem 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gray-200);
}

.mobile-submenu a {
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-bottom: none;
}

.mobile-submenu a:hover,
.mobile-submenu a.active {
  color: var(--navy);
}

.mobile-menu .btn {
  margin-top: 1.5rem;
  width: 100%;
}

.mobile-phone {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  color: var(--navy);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  /* Header is fixed, so the top pad clears it plus breathing room. The bottom
     pad matters now that the hero holds a photo and can outgrow min-height,
     which would otherwise leave the content flush against the trust bar. */
  padding: calc(var(--header-height) + 2.5rem) 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #0d1b2a 100%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 2;
}

/* .hero is a flex container, so .container (margin: 0 auto) would otherwise
   shrink-wrap to its content instead of filling the 1200px line. */
.hero .container {
  width: 100%;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-figure {
  position: relative;
  /* Single-column range only: without this the 3:2 crop stretches to ~976px at
     tablet widths and swamps the copy. The desktop column is narrower than this
     anyway, so the cap never binds at >=1025px. */
  max-width: 620px;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  /* Hairline gold edge so the photo reads as intentional against the navy
     rather than as a floating rectangle. */
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(201, 162, 39, 0.28);
}

/* Two columns only where there is room for a real text measure alongside the
   photo. Below this the grid stays single-column and, because .hero-figure is a
   sibling of .hero-content, the 3:2 crop lands between the CTAs and the meta
   list in source order. */
@media (min-width: 1025px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
    gap: 3.5rem;
  }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero .lead {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

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

.service-card a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.service-card a:hover {
  color: var(--gold);
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-text);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
}

/* ============================================
   NICHE / FEATURE
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-content h2 {
  margin-bottom: 1rem;
}

.feature-content .lead {
  margin-bottom: 1.5rem;
}

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

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-200);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ============================================
   INDUSTRY GRID
   ============================================ */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.industry-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}

.industry-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 1rem;
}

.industry-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

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

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-steps {
  display: grid;
  /* Was repeat(5, 1fr), but only about.php has five steps — the other 13 pages
     have four, so the empty fifth track pushed the whole row off-centre.
     auto-fit collapses unused tracks, so the row always fills the container
     evenly whether there are four steps or five. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: var(--border);
}

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

.step-number {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   CTA SECTIONS
   ============================================ */

.cta-section {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.cta-section .btn {
  margin-top: 0.5rem;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

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

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
}

.feature-list-center {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

/* ============================================
   ARTICLE / GUIDE BODY
   ============================================ */

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2 {
  margin: 2rem 0 0.75rem;
}

.article-body h3 {
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem 1.25rem;
}

.article-body li {
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ============================================
   SERVICE AREA GRID
   ============================================ */

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

.area-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.area-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
}

.area-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.area-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ============================================
   DETAIL SERVICE BLOCKS
   ============================================ */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-detail p {
  color: var(--text-secondary);
}

.service-detail ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.service-detail ul li {
  margin-bottom: 0.5rem;
}

.service-detail-image {
  background: var(--gray-200);
  border-radius: var(--radius-lg);
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ============================================
   INFO CARDS / BOXES
   ============================================ */

.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.info-box h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-box p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   CONTACT LAYOUT
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info .lead {
  margin-bottom: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-method h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-method p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

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

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.footer-brand:hover {
  color: var(--white);
}

.footer-brand img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 240px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.footer-brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
}

.footer-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
  background: var(--gray-100);
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: var(--gray-400);
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 6rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   CONTENT PAGES
   ============================================ */

.content-section h2 {
  margin-bottom: 1rem;
}

.content-section p {
  margin-bottom: 1rem;
}

.content-section ul {
  margin: 1rem 0 1.5rem 1.25rem;
  color: var(--text-secondary);
}

.content-section ul li {
  margin-bottom: 0.5rem;
}

/* ============================================
   FLAGSHIP HERO
   ============================================ */

.flagship-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.flagship-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.flagship-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

/* ============================================
   TWO COLUMN CONTENT
   ============================================ */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .header {
    height: var(--header-height-mobile);
  }

  .logo img {
    height: 36px;
  }

  .nav-desktop,
  .header-cta .btn,
  .header-phone {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .trust-items {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .service-cards,
  .industry-grid,
  .area-grid,
  .process-steps,
  .feature-grid,
  .service-detail,
  .two-col,
  .contact-layout,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .service-detail.reverse {
    direction: ltr;
  }

  .process-step::after {
    display: none;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section,
  .section-lg,
  .section-xl {
    padding: 2.5rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 5rem 0 2rem;
  }
}

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

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

/* ============================================
   ACCESSIBILITY, FOOTER & LAUNCH FIXES
   ============================================ */

/* Visually hidden but available to screen readers. Used to give repeated
   "Learn more" links a unique accessible name. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard users land here first and can jump past the nav. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* A single visible focus ring for every interactive element. :focus-visible
   keeps it off mouse clicks, so it costs nothing visually for pointer users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Replaces an inline style previously set on the header CTA. */
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-domain {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

/* Grid children default to min-width:auto, so a long unbreakable word forces
   the track wider than its share and pushes the page into horizontal scroll.
   This was overflowing the homepage at <=360px. */
.industry-card,
.service-card,
.area-card,
.trust-item {
  min-width: 0;
  overflow-wrap: break-word;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   QUOTE FORM — server-side states
   ============================================ */

.form-intro {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-fineprint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Honeypot: off-screen rather than display:none, because some bots skip
   hidden inputs. Real users never reach it (aria-hidden + tabindex="-1"). */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b42318;
}

/* Error state is not signalled by colour alone: the field also gets a thicker
   border and the message is linked via aria-describedby. */
.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 1px #b42318;
}

.form-notice {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--gray-50);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.form-notice-error {
  border-color: #f3c4c0;
  background: #fdf3f2;
  color: #7a271f;
}

.form-notice ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.form-notice-error a {
  color: #7a271f;
  text-decoration: underline;
}

.form-confirmation {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}

.form-confirmation-icon {
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.form-confirmation p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* .btn sets white-space:nowrap for tidy single-line buttons, but long CTA
   labels ("Get a Free Commercial Cleaning Quote") then overflow narrow
   viewports and force horizontal scroll. Allow wrapping on small screens. */
@media (max-width: 560px) {
  .btn {
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
  }
}

/* Breadcrumb links sit inline in a run of muted text, so colour alone did not
   separate them (1.74:1 against the surrounding text, WCAG wants 3:1 or a
   non-colour cue). An underline is the non-colour cue. */
.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   CONTRAST FIXES (WCAG AA)
   ============================================ */

/* .footer a paints every footer link light, including the gold CTA button,
   leaving pale text on a gold fill at 1.7:1. Restore the button's own colours. */
.footer .btn-primary,
.footer .btn-primary:hover {
  color: var(--navy-dark);
}

/* --text-muted is tuned for light backgrounds; on the dark footer it lands at
   3.4:1. These two need light values instead. */
.footer-domain {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.6);
}

/* Inline prose links were separated from body text by colour alone and fell
   below the 3:1 the technique requires. Underline is the non-colour cue.
   Buttons and card CTAs are excluded — they are already visually distinct. */
p a:not(.btn),
.article-body li a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer p a:not(.btn),
.footer-legal a {
  text-underline-offset: 2px;
}

/* Trust bar carries a headline plus a supporting line per item now, so the
   items align to the top rather than centring on a single line of text. */
.trust-bar {
  padding: 2rem 0;
}

.trust-items {
  list-style: none;
  gap: 2rem;
}

.trust-item {
  align-items: flex-start;
}

.trust-text {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.trust-text strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}
