/* =====================================================================
   Stone Bridge — Core Stylesheet
   Moving, Cleaning & Property Turnover Services
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand palette — deep navy + professional blue */
  --navy-900: #0B1F3A;
  --navy-800: #122C4E;
  --navy-700: #1A3A63;
  --navy-600: #234872;
  --navy-100: #E8EEF6;

  --blue-600: #0F56B8;
  --blue-500: #1769E0;
  --blue-400: #3B82E8;
  --blue-300: #7CAAF0;
  --blue-100: #EAF3FF;

  --stone-900: #172033;
  --stone-700: #64748B;
  --stone-500: #8492A6;
  --stone-300: #D6DEE8;
  --stone-100: #F1F5F9;

  --white: #FFFFFF;
  --success: #1E9E64;
  --danger: #D14343;

  --color-bg: #F8FAFC;
  --color-bg-alt: var(--blue-100);
  --color-text: var(--stone-900);
  --color-muted: var(--stone-700);
  --color-border: #E2E8F0;
  --color-primary: var(--navy-700);
  --color-primary-dark: var(--navy-900);
  --color-accent: var(--blue-500);
  --color-accent-dark: var(--blue-600);

  /* Legacy alias kept so any missed reference still resolves to the new blue accent */
  --gold-600: var(--blue-600);
  --gold-500: var(--blue-500);
  --gold-400: var(--blue-500);
  --gold-300: var(--blue-300);
  --gold-100: var(--blue-100);

  /* Typography
     Poppins for headings — geometric and confident, and it sets uppercase
     beautifully. DM Sans for body copy — warmer and easier to read at long
     lengths. Both load from Google Fonts (linked in includes/header.php)
     with display=swap, and fall back to Trebuchet MS if the fonts are
     blocked or still loading, so text is never invisible. */
  --font-heading: 'Poppins', 'Trebuchet MS', 'Lucida Grande', Tahoma, sans-serif;
  --font-body: 'DM Sans', 'Trebuchet MS', 'Lucida Grande', Tahoma, sans-serif;

  /* Accent used by the top bar, nav underline and primary CTA.
     Set to the orange from the reference design; change this one value
     back to var(--blue-500) to return to the blue scheme. */
  --brand-accent: #F5811F;
  --brand-accent-dark: #DC6E10;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 20px 48px rgba(11, 31, 58, 0.16);
  --header-height: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.875rem); }
h3 { font-size: clamp(1.375rem, 1.6vw, 1.75rem); }
p { margin: 0 0 16px; color: var(--color-muted); font-size: 1rem; line-height: 1.65; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  background: var(--gold-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent-dark);
}
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }
/* Reference styling: uppercase section headings over a short accent rule. */
.section-head h2 {
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem);
}
.section-head h2::after {
  content: '';
  display: block;
  width: 62px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--brand-accent);
  border-radius: 2px;
}
.section-head.text-left h2::after, .section-head-left h2::after { margin-left: 0; margin-right: auto; }

/* Same uppercase treatment for the left-aligned section headings on the
   service detail pages, with the accent rule flush left. */
h2[data-word-reveal] { text-transform: uppercase; letter-spacing: 0.005em; }
.detail-block > h2 {
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
}
.detail-block > h2::after {
  content: '';
  display: block;
  width: 54px;
  height: 3px;
  margin: 16px 0 0;
  background: var(--brand-accent);
  border-radius: 2px;
}
.section { padding: 96px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy p { color: var(--white); }
.section-navy .eyebrow { background: rgba(23,105,224,0.16); color: var(--gold-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy-700);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent);
}
.btn-ghost:hover { background: var(--brand-accent); color: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--navy-900); letter-spacing: -0.01em; }
.brand-name span { color: var(--brand-accent); }
.brand-tagline { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav .nav-item > a {
  padding: 10px 12px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: background .2s ease, color .2s ease;
  position: relative;
  white-space: nowrap;
}
.main-nav .nav-item > a:hover { background: var(--navy-100); color: var(--navy-900); }
.main-nav .nav-item > a.active { color: var(--navy-900); font-weight: 600; }
.main-nav .nav-item > a.active::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 16px; right: 16px;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-800); font-size: 0.92rem; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy-900); position: relative; transition: all .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); top: 0; }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: var(--white);
  padding: 110px 0 130px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(23,105,224,0.14), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(23,105,224,0.10), transparent 45%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--blue-300); font-style: normal; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.82); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.hero-trust-item svg { width: 20px; height: 20px; color: var(--brand-accent); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--white);
  color: var(--navy-900);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 320px;
}
.hero-float-card .rating { color: var(--brand-accent); font-size: 1.05rem; letter-spacing: 1px; white-space: nowrap; }
.hero-float-card strong { display: block; font-family: var(--font-heading); font-size: 0.98rem; line-height: 1.3; white-space: nowrap; }
.hero-float-card small { display: block; color: var(--color-muted); font-size: 0.78rem; line-height: 1.4; }

/* ---------- Hero: split panel + full-bleed photo (reference layout) ---------- */
.hero-split { padding: 0; }
.hero-split .hero-split-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: stretch;
  min-height: 620px;
}
.hero-panel {
  display: flex;
  align-items: center;
  padding: 92px 56px 96px 0;
}
.hero-panel-inner {
  width: 100%;
  /* Align the text block with the site container while the panel itself
     runs to the viewport edge. */
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
}
.hero-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-crumb a { color: rgba(255,255,255,0.6); transition: color .2s ease; }
.hero-crumb a:hover { color: var(--brand-accent); }
.hero-crumb span { color: rgba(255,255,255,0.35); }
.hero-crumb strong { color: var(--brand-accent); font-weight: 700; }

.hero-split h1 {
  color: var(--white);
  font-size: clamp(2rem, 3.1vw, 2.95rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-split h1 em { color: var(--brand-accent); font-style: normal; }
.hero-split .hero-lead { max-width: 560px; }

.hero-photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-800));
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo::after {
  /* Soft navy feather so the photo melts into the panel edge. */
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 120px;
  background: linear-gradient(to right, var(--navy-800), transparent);
  pointer-events: none;
}
.hero-split .hero-float-card {
  bottom: 32px;
  left: 32px;
  z-index: 2;
}

@media (max-width: 980px) {
  .hero-split .hero-split-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { padding: 72px 24px 76px; }
  .hero-panel-inner { padding-left: 0; }
  .hero-photo { min-height: 320px; aspect-ratio: 16/10; }
  .hero-photo::after { display: none; }
  .hero-split .hero-float-card { bottom: 20px; left: 20px; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  position: relative;
  overflow: hidden;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px 0;
  position: relative;
}
.stat-item { text-align: center; }
.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--white);
  font-weight: 800;
}
.stat-item span { font-size: 0.88rem; color: rgba(255,255,255,0.68); }

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card .icon-badge {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--navy-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--navy-700);
}
.service-card .icon-badge svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card p { margin-bottom: 18px; font-size: 0.95rem; }
.service-card .card-link { font-weight: 600; color: var(--color-accent); display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; }
.service-card .card-link svg { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* Image-topped variant used on the homepage services grid */
.service-card.has-media { padding: 0; overflow: hidden; }
.service-card-media { position: relative; aspect-ratio: 4 / 2.7; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.service-card.has-media:hover .service-card-media img { transform: scale(1.045); }
.service-card-media .icon-badge {
  position: absolute; bottom: -22px; left: 26px; margin-bottom: 0;
  background: var(--white); box-shadow: var(--shadow-md);
}
.service-card-body { padding: 34px 28px 30px; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.service-tags .tag {
  font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
  background: var(--blue-100); color: var(--blue-600);
}

.mini-service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 36px; }
.mini-service-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.mini-service-item svg { width: 18px; height: 18px; color: var(--brand-accent); flex-shrink: 0; margin-top: 2px; }
.mini-service-item strong { display: block; color: var(--navy-900); font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 2px; }

/* ---------- Why choose us / features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.feature-item { text-align: left; }
.feature-item .icon-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--blue-500);
}
.feature-item .icon-circle svg { width: 26px; height: 26px; }
.feature-item h3 { font-size: 1.1rem; }
.feature-item p { font-size: 0.94rem; }

/* Image-collage variant of Why Choose Us */
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-us-collage { position: relative; padding: 0 32px 32px 0; }
.collage-main { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.collage-accent {
  position: absolute; right: 0; bottom: 0;
  width: 55%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.collage-badge {
  position: absolute; top: 20px; left: -4px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 12px;
}
.collage-badge .stat-value { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--navy-900); line-height: 1; }
.collage-badge .stat-label { font-size: 0.78rem; color: var(--color-muted); }
.benefit-list { display: flex; flex-direction: column; gap: 22px; margin-top: 12px; }
.benefit-list li { display: flex; gap: 16px; align-items: flex-start; }
.benefit-list .check-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--blue-100); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.benefit-list .check-icon svg { width: 20px; height: 20px; }
.benefit-list strong { display: block; color: var(--navy-900); font-family: var(--font-heading); font-size: 1rem; margin-bottom: 2px; }
.benefit-list span { color: var(--color-muted); font-size: 0.92rem; }
@media (max-width: 980px) {
  .why-us-grid { grid-template-columns: 1fr; gap: 56px; }
  .why-us-collage { max-width: 460px; margin: 0 auto; }
}

/* ---------- Free Estimate two-column section ---------- */
.estimate-section { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.estimate-info { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.estimate-info h2, .estimate-info p { color: var(--white); }
.estimate-points { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.estimate-points li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); font-size: 0.96rem; }
.estimate-points svg { width: 20px; height: 20px; color: var(--blue-300); flex-shrink: 0; }
.estimate-form-card { background: var(--white); padding: 48px; }
.estimate-form-card h3 { font-size: 1.4rem; }
@media (max-width: 900px) {
  .estimate-grid { grid-template-columns: 1fr; }
  .estimate-info, .estimate-form-card { padding: 40px 28px; }
}

/* ---------- Floating desktop contact button ---------- */
.floating-contact {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  display: none; align-items: center; gap: 10px;
  background: var(--navy-900); color: var(--white);
  padding: 14px 22px 14px 16px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 0.92rem;
  transition: transform .25s ease, background .25s ease;
}
.floating-contact:hover { background: var(--blue-600); transform: translateY(-2px); }
.floating-contact .icon-circle-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  animation: pulseRing 2.2s ease-in-out infinite;
}
.floating-contact svg { width: 17px; height: 17px; }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23,105,224,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(23,105,224,0); }
}
@media (min-width: 721px) { .floating-contact { display: flex; } }

/* ---------- How it works ---------- */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps-row.has-connector::before {
  content: '';
  position: absolute;
  top: 23px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.step-item { position: relative; z-index: 1; padding-top: 8px; text-align: center; }
.step-number {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px var(--color-bg);
}
.step-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-item p { font-size: 0.92rem; }
@media (max-width: 980px) {
  .steps-row.has-connector::before { display: none; }
}
@media (max-width: 720px) {
  .steps-row.has-connector { grid-template-columns: 1fr; }
  .steps-row.has-connector::before {
    display: block;
    top: 23px; bottom: 23px; left: 50%; right: auto; width: 2px; height: auto;
    transform: translateX(-50%);
  }
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
}
.testimonial-stars { color: var(--brand-accent); letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.testimonial-text { font-style: italic; color: var(--stone-700); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-700); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
}
.testimonial-author strong { font-family: var(--font-heading); font-size: 0.95rem; color: var(--navy-900); display: block; }
.testimonial-author span { font-size: 0.8rem; color: var(--color-muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 16px; }
.gallery-grid > div:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); transition: transform .4s ease; }
.gallery-grid > div { overflow: hidden; border-radius: var(--radius-sm); }
.gallery-grid > div:hover img { transform: scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band h2 { margin-bottom: 8px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.78); }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin-top: 16px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--blue-500); color: var(--white); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 { color: var(--white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.68); transition: color .2s ease; }
.footer-col a:hover { color: var(--gold-300); }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; margin-bottom: 16px; color: rgba(255,255,255,0.75); }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,0.85); }
.footer-contact a:hover { color: var(--gold-300); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0 90px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.84rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-300); }
.footer-legal { display: flex; gap: 20px; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-action-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(15,33,53,0.1);
}
.mobile-action-bar .row { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 8px; font-weight: 600; font-size: 0.92rem;
}
.mobile-action-bar .call { color: var(--navy-800); background: var(--white); }
.mobile-action-bar .quote { color: var(--white); background: var(--blue-500); }
.mobile-action-bar svg { width: 18px; height: 18px; }

/* ---------- Breadcrumb / page header ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 92px 0 78px;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }

/* Optional photographic background. The image sits behind a navy scrim
   so headline contrast stays well above AA regardless of the photo. */
.page-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transform: scale(1.06);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(150deg, rgba(11,31,58,0.92), rgba(26,58,99,0.82)),
    radial-gradient(circle at 82% 30%, rgba(23,105,224,0.22), transparent 48%);
  pointer-events: none;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: clamp(1.95rem, 3.5vw, 3.1rem);
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--gold-300); }
.page-hero-lead { max-width: 640px; color: rgba(255,255,255,0.8); font-size: 1.05rem; }
.page-hero .breadcrumb > span:last-child { color: var(--brand-accent); font-weight: 700; }

/* ---------- Service detail layout ---------- */
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.detail-block { margin-bottom: 48px; }
.detail-block h2 { font-size: 1.6rem; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.98rem; color: var(--color-text); }
.check-list svg { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

.sidebar-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.sidebar-card h3 { font-size: 1.15rem; }
.sidebar-card .btn { margin-top: 10px; }
.sidebar-list { margin-top: 20px; }
.sidebar-list li { padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { font-weight: 500; color: var(--navy-800); }
.sidebar-list a:hover { color: var(--brand-accent); }
.sidebar-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  transition: border-color .2s ease, color .2s ease;
}
.sidebar-phone svg { width: 18px; height: 18px; color: var(--brand-accent); }
.sidebar-phone:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

/* ---------- Service cards on the category pages ---------- */
.svc-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.svc-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-accent); }
.svc-card-art { display: block; background: var(--navy-800); aspect-ratio: 1200/690; overflow: hidden; }
.svc-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-card-art img { transform: scale(1.06); }
.svc-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.svc-card-body > strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.svc-card-body > span { font-size: 0.9rem; color: var(--color-muted); line-height: 1.55; }
.svc-card-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  font-weight: 700; font-size: 0.86rem; color: var(--brand-accent);
}
.svc-card-more svg { width: 16px; height: 16px; transition: transform .25s ease; }
.svc-card:hover .svc-card-more svg { transform: translateX(4px); }

/* ---------- Single service page ---------- */
.service-hero {
  position: relative;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 58%, var(--navy-600) 100%);
  color: var(--white);
  padding: 72px 0 96px;
}
.service-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.service-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
}
.service-hero .breadcrumb { margin-bottom: 18px; }
.service-hero .breadcrumb > span:last-child { color: var(--brand-accent); font-weight: 700; }
.service-hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.10);
}
.service-hero-art img { width: 100%; height: auto; display: block; }

.service-steps { counter-reset: none; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.service-steps li {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.service-steps li:hover { border-color: var(--brand-accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-step-num {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}
.service-steps strong { display: block; font-family: var(--font-heading); color: var(--navy-900); margin-bottom: 4px; }
.service-steps p { margin: 0; font-size: 0.94rem; }

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.benefit-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--navy-900);
}
.benefit-card svg { width: 22px; height: 22px; color: var(--brand-accent); flex-shrink: 0; margin-top: 1px; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.related-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-accent); }
.related-art { background: var(--navy-800); aspect-ratio: 1200/690; overflow: hidden; }
.related-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.related-card:hover .related-art img { transform: scale(1.06); }
.related-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.related-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.related-body p { font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.related-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem; color: var(--brand-accent); }
.related-more svg { width: 17px; height: 17px; transition: transform .25s ease; }
.related-card:hover .related-more svg { transform: translateX(4px); }

@media (max-width: 900px) {
  .service-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-hero { padding: 56px 0 72px; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; color: var(--navy-900);
}
.faq-question svg { width: 20px; height: 20px; color: var(--blue-500); flex-shrink: 0; transition: transform .3s ease; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-item.open .faq-question { color: var(--blue-600); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 4px 22px; color: var(--color-muted); font-size: 0.96rem; }
.faq-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.faq-filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--color-border);
  background: var(--white); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all .2s ease;
}
.faq-filter-btn.active, .faq-filter-btn:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.88rem; font-weight: 600; color: var(--navy-800); }
label .req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], select, textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--color-text);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(30,58,95,0.10);
}
textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.8rem; color: var(--color-muted); }
.field-error { font-size: 0.8rem; color: var(--danger); display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.has-error .field-error { display: block; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.file-drop {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.file-drop:hover, .file-drop.drag-over { border-color: var(--navy-600); background: var(--navy-100); }
.file-drop svg { width: 30px; height: 30px; color: var(--stone-500); margin: 0 auto 10px; }
.file-drop-list { margin-top: 14px; font-size: 0.85rem; text-align: left; }
.file-drop-list li { display: flex; justify-content: space-between; padding: 6px 0; }

/* radio/checkbox card selectors (quote form step 1) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card label {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 30px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer; transition: all .2s ease;
  font-weight: 600; color: var(--navy-900);
}
.choice-card label svg { width: 34px; height: 34px; color: var(--navy-700); }
.choice-card input:checked + label { border-color: var(--gold-400); background: var(--gold-100); box-shadow: var(--shadow-sm); }
.choice-card label:hover { border-color: var(--navy-500); }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card ul { margin-top: 24px; }
.contact-info-card li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info-card svg { width: 22px; height: 22px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.contact-info-card strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-card a, .contact-info-card span { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 28px; border: 1px solid rgba(255,255,255,0.15); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

/* Form card wrapper */
.form-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

/* Alerts */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 24px; display:flex; gap:12px; align-items:flex-start;}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #E8F5EE; color: var(--success); }
.alert-error { background: #FBEAE8; color: var(--danger); }

/* Quote stepper */
.quote-wrap { max-width: 860px; margin: 0 auto; }
.quote-progress { display: flex; align-items: center; margin-bottom: 48px; }
.quote-progress .qp-step { flex: 1; text-align: center; position: relative; }
.quote-progress .qp-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; margin: 0 auto 10px;
  color: var(--stone-500); position: relative; z-index: 2; transition: all .3s ease;
}
.quote-progress .qp-label { font-size: 0.82rem; color: var(--color-muted); font-weight: 500; }
.quote-progress .qp-step::before {
  content: ''; position: absolute; top: 20px; left: -50%; width: 100%; height: 2px; background: var(--color-border); z-index: 1;
}
.quote-progress .qp-step:first-child::before { display: none; }
.quote-progress .qp-step.active .qp-circle, .quote-progress .qp-step.done .qp-circle { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.quote-progress .qp-step.done::before, .quote-progress .qp-step.active::before { background: var(--navy-800); }
.quote-progress .qp-step.active .qp-label { color: var(--navy-900); font-weight: 700; }

.quote-step { display: none; }
.quote-step.active { display: block; }
.quote-nav { display: flex; justify-content: space-between; margin-top: 36px; gap: 16px; }

.review-summary { background: var(--color-bg-alt); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.review-summary dt { font-weight: 600; color: var(--navy-800); font-size: 0.85rem; margin-top: 12px; }
.review-summary dd { margin: 2px 0 0; color: var(--color-muted); }

.ref-badge {
  display: inline-block; background: var(--navy-900); color: var(--gold-300);
  font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.06em;
  padding: 12px 24px; border-radius: var(--radius-sm); margin: 18px 0;
}

/* ---------- Legal pages ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.35rem; margin-top: 40px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; color: var(--color-muted); }

/* =====================================================================
   Premium layer — preloader, glass, gradient text, tilt, magnetic,
   wave dividers, trust marquee, testimonial carousel, scroll-to-top
   ===================================================================== */

/* =====================================================================
   LOADING SYSTEM
   1. .preloader      — full-screen branded loader on first page load
   2. .page-loader    — lighter overlay shown while navigating page→page
   3. .top-progress   — thin bar at the very top during navigation
   4. .btn .spinner   — inline spinner inside buttons during submits
   ===================================================================== */

/* ---------- 1. First-load preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  transition: opacity .55s ease, visibility .55s ease;
}
.preloader::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 25%, rgba(23,105,224,0.20), transparent 42%),
    radial-gradient(circle at 80% 75%, rgba(23,105,224,0.14), transparent 46%);
  pointer-events: none;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Logo inside a sweeping progress ring */
.preloader-mark {
  position: relative;
  width: 104px; height: 104px;
  display: flex; align-items: center; justify-content: center;
}
.preloader-mark img {
  width: 54px; height: 54px;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader-ring {
  position: absolute; inset: 0;
  transform: rotate(-90deg);
}
.preloader-ring circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.preloader-ring .ring-track { stroke: rgba(255,255,255,0.13); }
.preloader-ring .ring-progress {
  stroke: var(--blue-400);
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
  animation: ringSweep 1.6s cubic-bezier(.5,0,.3,1) infinite;
}
@keyframes ringSweep {
  0%   { stroke-dashoffset: 302; transform: rotate(0deg); }
  55%  { stroke-dashoffset: 76; }
  100% { stroke-dashoffset: 302; transform: rotate(360deg); }
}
.preloader-ring { transform-origin: 50% 50%; }
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.78; }
}

.preloader-brand {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
  color: var(--white);
}
.preloader-brand span { color: var(--blue-300); }
.preloader-tagline {
  position: relative;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: -18px;
}

/* Three bouncing dots under the mark */
.preloader-dots { position: relative; display: flex; gap: 7px; }
.preloader-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-400);
  animation: dotBounce 1.25s ease-in-out infinite;
}
.preloader-dots i:nth-child(2) { animation-delay: .16s; }
.preloader-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .45; }
  40% { transform: translateY(-8px); opacity: 1; }
}

/* ---------- 2. Page-to-page transition overlay ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(11,31,58,0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.page-loader.is-active { opacity: 1; visibility: visible; }
.page-loader-spinner {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.16);
  border-top-color: var(--blue-400);
  border-right-color: var(--blue-400);
  animation: spin .75s linear infinite;
}

/* ---------- 3. Top progress bar ---------- */
.top-progress {
  position: fixed; top: 0; left: 0; z-index: 10001;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
  box-shadow: 0 0 10px rgba(23,105,224,0.7);
  opacity: 0;
  transition: width .25s ease, opacity .3s ease;
}
.top-progress.is-active { opacity: 1; }

/* ---------- Reduced motion: keep loaders, drop the flourish ---------- */
@media (prefers-reduced-motion: reduce) {
  .preloader-mark img,
  .preloader-dots i,
  .preloader-ring .ring-progress { animation: none; }
  .preloader-ring .ring-progress { stroke-dashoffset: 150; }
}

/* ---------- Header shrink-on-scroll refinement ---------- */
.site-header.is-scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-scrolled .brand-icon { width: 40px; height: 40px; }
.header-inner, .brand-icon { transition: all .3s ease; }

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(90deg, var(--blue-300), var(--blue-400) 60%, var(--blue-300));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* ---------- Glassmorphism ---------- */
.glass-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.16);
}

/* ---------- Tilt cards (JS sets --rx/--ry/--tz via inline style) ---------- */
.tilt-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease;
  will-change: transform;
}

/* ---------- Magnetic buttons ---------- */
.btn-magnetic { transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease, background .25s ease; }

/* ---------- Floating decorative shapes (hero) ---------- */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  will-change: transform;
}
.hero-decor { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.hero-chip-slot {
  position: absolute;
  will-change: transform;
  transition: transform .3s ease-out;
}
.hero-chip-slot.c1 { top: 6%; right: 6%; }
.hero-chip-slot.c2 { bottom: 14%; right: 2%; }
.hero-chip-slot.c3 { top: 46%; left: 2%; }
@media (max-width: 980px) {
  .hero-decor { display: none; }
}
.hero-chip {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--gold-300);
  animation: chipFloat 5.5s ease-in-out infinite;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.hero-chip svg { width: 26px; height: 26px; }
.hero-chip-slot.c2 .hero-chip { animation-delay: 1.2s; }
.hero-chip-slot.c3 .hero-chip { animation-delay: 2.4s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}

/* ---------- Wave section dividers ----------
   The box sits flush against the PRECEDING section, so its own
   background must match that section; the path (filled with the
   NEXT section's color) then carves the transition curve into it. */
.section-wave { position: relative; line-height: 0; }
.section-wave svg { display: block; width: 100%; height: 70px; }
.wave-to-light { background: var(--navy-900); }
.wave-to-light path { fill: var(--color-bg); }
.wave-to-alt { background: var(--color-bg); }
.wave-to-alt path { fill: var(--color-bg-alt); }
.wave-to-navy { background: var(--color-bg); }
.wave-to-navy path { fill: var(--navy-900); }

/* ---------- Trust marquee ---------- */
.trust-marquee-wrap {
  overflow: hidden;
  background: var(--navy-900);
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.trust-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
.trust-marquee-wrap:hover .trust-marquee-track { animation-play-state: paused; }
.trust-marquee-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
  white-space: nowrap;
}
.trust-marquee-item svg { width: 20px; height: 20px; color: var(--gold-400); flex-shrink: 0; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Testimonial carousel ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.22,.8,.3,1);
}
.carousel-slide { flex: 0 0 100%; min-width: 0; padding: 4px; }
.carousel-slide-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .carousel-slide-group { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .carousel-slide-group { grid-template-columns: 1fr; } }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.carousel-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--color-border); background: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .2s ease;
}
.carousel-arrow:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone-300); border: none; cursor: pointer; transition: all .25s ease; padding: 0; }
.carousel-dot.active { background: var(--gold-400); width: 26px; border-radius: 4px; }

/* ---------- Scroll-to-top ---------- */
.scroll-top-btn {
  position: fixed; right: 24px; bottom: 96px; z-index: 150;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-300);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: none; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { background: var(--blue-500); color: var(--white); }
.scroll-top-btn svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .scroll-top-btn { bottom: 88px; right: 16px; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav, .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  :root { --header-height: 72px; }
  .hero { padding: 60px 0 90px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 36px 26px; flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mobile-action-bar { display: block; }
  body { padding-bottom: 0; }
  .steps-row { grid-template-columns: 1fr; }

  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav .nav-item > a { padding: 14px 16px; }
  .nav-open .header-phone { display: flex; padding: 10px 16px 0; }
}

/* =====================================================================
   ANIMATED BACKGROUND WATERMARKS
   A fixed, decorative layer of large outline tool icons drifting slowly
   up and down behind the page.

   Layering: the layer sits at z-index 0 and every content band is lifted
   to z-index 1. Bands with their own background (hero, .section-alt,
   .stat-strip, footer) therefore hide the watermarks, while transparent
   .section bands let them show through — which keeps contrast safe and
   gives the effect a natural rhythm down the page.
   ===================================================================== */
.bg-watermarks {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
}
.wm-item {
  position: absolute;
  width: var(--wm-size, 120px);
  height: var(--wm-size, 120px);
  color: var(--blue-500);
  opacity: 0.07;
  will-change: transform;
  animation: wmFloat var(--wm-dur, 18s) ease-in-out infinite;
  animation-delay: var(--wm-delay, 0s);
}
.wm-item svg { width: 100%; height: 100%; display: block; }

@keyframes wmFloat {
  0%, 100% { transform: translateY(0) rotate(var(--wm-rot, 0deg)); }
  50%      { transform: translateY(-38px) rotate(calc(var(--wm-rot, 0deg) * -1)); }
}

/* Lift content above the watermark layer. The sticky header already has
   its own (higher) z-index, so it is intentionally left alone. */
.hero,
.page-hero,
.stat-strip,
.section,
.section-wave,
.trust-marquee-wrap,
.estimate-section,
.site-footer,
.mobile-action-bar {
  position: relative;
  z-index: 1;
}

/* Slightly stronger on plain white/off-white bands where they'd otherwise
   be almost invisible, and calmer on small screens. */
@media (max-width: 720px) {
  .wm-item { opacity: 0.05; }
  /* Drop the two largest to keep mobile paint cost down */
  .wm-item:nth-child(2), .wm-item:nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wm-item { animation: none; }
}

/* =====================================================================
   HEADER — utility top bar, uppercase nav, services mega menu
   Matches the reference layout: dark bar with email / socials / phone,
   then a white bar with logo, divider-separated uppercase nav, and an
   orange Free Estimate button.
   ===================================================================== */

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.9);
  font-size: 0.86rem;
  position: relative;
  z-index: 101;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 8px; }
.topbar-mail svg, .topbar-tel svg { width: 17px; height: 17px; color: var(--brand-accent); flex-shrink: 0; }
.topbar-mail:hover, .topbar-tel:hover { color: var(--brand-accent); }
.topbar-tel span, .topbar-mail span { font-weight: 600; }

.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social a {
  width: 26px; height: 26px;
  border-radius: 5px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.topbar-social a:hover { background: var(--brand-accent); transform: translateY(-2px); }
.topbar-social svg { width: 14px; height: 14px; }

/* ---------- Main nav: uppercase, divider-separated ---------- */
.main-nav { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-mega { position: static; }
.nav-item + .nav-item::before {
  content: '';
  width: 1px; height: 20px;
  background: var(--color-border);
  margin: 0 4px;
  flex-shrink: 0;
}
.main-nav .nav-item > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  white-space: nowrap;
  border-radius: 0;
  transition: color .2s ease;
  position: relative;
}
.main-nav .nav-item > a:hover { background: none; color: var(--brand-accent); }
.main-nav .nav-item > a.active { color: var(--brand-accent); }
.main-nav .nav-item > a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
}
.nav-caret { width: 12px; height: 12px; transition: transform .25s ease; }
.nav-item.has-mega:hover .nav-caret { transform: rotate(180deg); }

/* ---------- Orange Free Estimate button ---------- */
.btn-estimate {
  background: var(--brand-accent);
  color: var(--white);
  border-radius: 4px;
  padding: 15px 34px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  box-shadow: var(--shadow-sm);
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
}
.btn-estimate:hover {
  background: var(--brand-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Services mega menu ---------- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(11,31,58,0.18);
  border-top: 3px solid var(--brand-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 120;
}
.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 34px;
}
.mega-col { display: flex; flex-direction: column; min-width: 0; }
.mega-heading {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-accent);
  padding: 0 0 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}
.mega-heading:hover { color: var(--brand-accent-dark); }
.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-800);
  padding: 9px 0;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color .2s ease, padding-left .2s ease;
}
.mega-link:hover { color: var(--brand-accent); }
.mega-link-text { flex: 1; min-width: 0; }
/* Small artwork chip beside each service so the menu reads visually. */
.mega-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 32px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: 0 2px 8px rgba(11,31,58,0.18);
  transition: transform .22s ease, box-shadow .22s ease;
}
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-link:hover .mega-thumb { transform: scale(1.08); box-shadow: 0 6px 16px rgba(11,31,58,0.28); }

@media (max-width: 720px) {
  .site-header.nav-open .mega-thumb { width: 40px; height: 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav .nav-item > a { padding: 12px 11px; font-size: 0.76rem; letter-spacing: 0.04em; }
  .btn-estimate { padding: 13px 22px; font-size: 0.8rem; }
}
@media (max-width: 900px) {
  .topbar-mail span, .topbar-tel span { font-size: 0.78rem; }
  .topbar-social { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { justify-content: center; gap: 14px; flex-wrap: wrap; }
  .topbar-mail { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-estimate { display: none; }

  /* Mobile: nav becomes a stacked panel; the mega menu flattens inline. */
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 8px 12px 16px;
    box-shadow: var(--shadow-md);
    max-height: 78vh;
    overflow-y: auto;
  }
  .site-header.nav-open .nav-item { display: block; }
  .site-header.nav-open .nav-item + .nav-item::before {
    width: auto; height: 1px; margin: 0; display: block;
  }
  .site-header.nav-open .main-nav .nav-item > a { padding: 14px 12px; }
  .site-header.nav-open .mega-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    min-width: 0; box-shadow: none; border-top: none;
    background: var(--color-bg-alt);
  }
  .site-header.nav-open .mega-inner { grid-template-columns: 1fr; padding: 12px 16px; gap: 4px; }
  /* Collapsed until the Services row is tapped. */
  .site-header.nav-open .mega-menu { display: none; }
  .site-header.nav-open .nav-item.mega-open .mega-menu { display: block; }
  .site-header.nav-open .nav-item.has-mega > a::after {
    content: '+';
    margin-left: 8px;
    font-weight: 700;
    color: var(--brand-accent);
  }
  .site-header.nav-open .nav-item.mega-open > a::after { content: '\2013'; }
  .nav-caret { display: none; }
}
