/* ==========================================================================
   CLEARWATER PLUMBING — CORE STYLESHEET
   ========================================================================== */

:root {
  --blue: #0B5ED7;
  --blue-deep: #063B7A;
  --black: #0A1930;
  --black-soft: #122544;
  --white: #FFFFFF;
  --off-white: #F5F8FC;
  --light-blue: #EAF3FF;
  --dark-grey: #4e4e4f;
  --pastel-gray-azure: #9ebfdb;
  --soft-gray: #D3D3D3;


  --text-muted: #5C6B7A;
  --border-soft: rgba(8, 11, 16, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  --font-display: 'Plus Jakarta Sans', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --container: 1280px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  color: var(--black-soft);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--blue-deep); border-radius: 10px; border: 2px solid var(--off-white); }
html { scrollbar-color: var(--blue-deep) var(--off-white); scrollbar-width: thin; }

/* ---------- Focus states ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; background: var(--blue); color: #fff;
  padding: 12px 18px; border-radius: 8px; z-index: 999; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Custom Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 999999 !important;
  pointer-events: none !important;
  border-radius: 50%; transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background: var(--blue); transition: opacity .2s; }
.cursor-ring {
  width: 40px; height: 40px; border: 1.5px solid rgba(11,94,215,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: width .28s var(--ease), height .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease), opacity .2s;
  font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--white);
}
.cursor-ring.is-active { width: 84px; height: 84px; background: var(--blue); border-color: var(--blue); }
.cursor-ring.is-outline-only { width: 54px; height: 54px; background: transparent; border-color: rgba(11,94,215,0.75); }
.cursor-ring.on-dark { border-color: rgba(255,255,255,0.6); }
.cursor-ring.on-dark.is-outline-only { border-color: rgba(255,255,255,0.85); background: transparent; }
.cursor-ring.on-dark.is-active { background: var(--blue); border-color: var(--blue); }
body.cursor-enabled, body.cursor-enabled a, body.cursor-enabled button { cursor: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 999px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 24px -8px rgba(11,94,215,0.55); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(106, 148, 211, 0.7); }

.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--blue); background: rgba(255,255,255,0.08); }

.btn-outline-dark { background: transparent; color: var(--black-soft); border: 1.5px solid rgba(8,11,16,0.2); }
.btn-outline-dark:hover { border-color: var(--black-soft); background: rgba(8,11,16,0.04); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 20px 36px; font-size: 0.92rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 500;
  padding: 26px 0; transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-scrolled { padding: 14px 0; background: rgba(8,11,16,0.82); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 10px 30px -20px rgba(0,0,0,0.6); }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--white); }
.logo-word { color: var(--white); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.1; }
.logo-word span { display: block; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light-blue); opacity: 0.75; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  color: rgba(255,255,255,0.82); font-size: 0.88rem; font-weight: 600; position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px; background: var(--blue);
  transition: width .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; font-size: 0.9rem; }
.header-call svg { width: 17px; height: 17px; color: var(--blue); }

.hamburger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; background: var(--black); z-index: 600;
  display: flex; flex-direction: column; padding: 100px 32px 40px;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--white); padding: 12px 0; border-bottom: 1px solid var(--border-dark); opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-nav.is-open a { opacity: 1; transform: translateY(0); }
.mobile-nav-footer { margin-top: auto; display: flex; gap: 12px; padding-top: 24px; }

.mobile-cta-bar {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 400;
  display: none; background: var(--black); padding: 12px 16px; gap: 10px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.35);
}
.mobile-cta-bar a { flex: 1; text-align: center; justify-content: center; padding: 15px 10px; font-size: 0.78rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  background: var(--black); color: var(--white); overflow: hidden;
  padding: 160px 0 100px;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,11,16,0.55) 0%, rgba(8,11,16,0.65) 40%, var(--black) 100%); }
.hero-grid { position: absolute; inset: 0; opacity: 0.14; background-image: linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, black, transparent 85%); }
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-blue); margin-bottom: 22px; }
.hero-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(11,94,215,0.3); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 900px; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.78); max-width: 560px; margin-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.82rem; color: rgba(255,255,255,0.65); font-weight: 600; letter-spacing: 0.03em; }
.hero-trust span { display: flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.page-hero { min-height: 62vh; padding: 150px 0 80px; align-items: flex-end; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 780px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.08em; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--off-white); padding: 30px 0; border-bottom: 1px solid var(--border-soft); }
.trust-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 700; color: var(--black-soft); letter-spacing: 0.02em; }
.trust-item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

/* ---------- Section headers ---------- */
.section { padding: 120px 0; }
.section-tight { padding: 90px 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 18px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.on-dark .eyebrow { color: var(--light-blue); }
.on-dark .section-head h2, .on-dark .section-head p { color: var(--white); }
.on-dark .section-head p { color: rgba(255,255,255,0.68); }

.section-dark { background: var(--black); color: var(--white); }
.section-deep { background: linear-gradient(160deg, var(--black-soft), var(--black)); color: var(--white); }
.section-tint { background: var(--off-white); }

/* ---------- Differentiator cards ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.diff-card { background: var(--white); padding: 40px 26px; transition: background .35s var(--ease), transform .35s var(--ease); }
.diff-card:hover { background: var(--light-blue); transform: translateY(-4px); }
.diff-num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; color: var(--blue); margin-bottom: 26px; }
.diff-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.diff-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Service cards / grid ---------- */
.services-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.tab-btn { padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--border-soft); font-weight: 700; font-size: 0.84rem; transition: all .3s var(--ease); }
.tab-btn.is-active, .tab-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.service-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 34px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(8,11,16,0.18); border-color: transparent; }
.service-card .icon-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--light-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--blue); }
.service-card .icon-wrap svg { width: 24px; height: 24px; }
.service-card .s-num { font-size: 0.72rem; font-weight: 800; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 10px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; flex-grow: 1; }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.82rem; color: var(--blue); }
.card-link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.service-card:hover .card-link svg { transform: translateX(5px); }

/* ---------- Signature / dark showcase ---------- */
.signature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); border-radius: var(--radius); overflow: hidden; margin-top: 20px;}
.sig-card { background: var(--black-soft); padding: 36px 28px; transition: background .35s var(--ease); }
.sig-card:hover { background: #1B3660; }
.sig-card .icon-wrap { width: 46px; height: 46px; border-radius: 10px; background: rgba(11,94,215,0.18); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--blue); }
.sig-card .icon-wrap svg { width: 22px; height: 22px; }
.sig-card h3 { font-size: 1.02rem; color: var(--white); margin-bottom: 10px; }
.sig-card p { font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.sig-card a { font-size: 0.8rem; font-weight: 700; color: var(--light-blue); display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Split panels (residential/commercial) ---------- */
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { position: relative; border-radius: 20px; overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; padding: 44px; color: var(--white); }
.panel-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.panel:hover .panel-bg { transform: scale(1.06); }
.panel-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,16,0.15), rgba(6,10,16,0.92)); }
.panel-content { position: relative; z-index: 2; }
.panel-content .eyebrow { color: var(--light-blue); }
.panel-content h3 { font-size: 1.9rem; margin-bottom: 14px; }
.panel-content p { color: rgba(255,255,255,0.75); margin-bottom: 26px; max-width: 420px; }

/* ---------- Emergency band ---------- */
.emergency-band { background: linear-gradient(120deg, var(--blue-deep), var(--black)); color: var(--white); padding: 100px 0; text-align: center; }
.emergency-band h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.emergency-band p { max-width: 600px; margin: 0 auto 36px; color: rgba(255,255,255,0.78); font-size: 1.08rem; }
.emergency-phone { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--white); display: inline-flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.emergency-phone svg { width: 34px; height: 34px; color: var(--light-blue); }

/* ---------- Process steps ---------- */
.process-wrap { position: relative; }
.process-line { position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: var(--border-soft); z-index: 0; }
.process-line-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--blue); transition: width 1.2s var(--ease); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }
.process-step { text-align: left; }
.process-circle { width: 68px; height: 68px; border-radius: 50%; background: var(--white); border: 2px solid var(--border-soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; color: var(--blue); margin-bottom: 24px; transition: all .4s var(--ease); }
.process-step.is-visible .process-circle { border-color: var(--blue); background: var(--blue); color: var(--white); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Why choose (editorial) ---------- */
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.editorial-list .item { display: flex; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--border-soft); }
.editorial-list .item:first-child { padding-top: 0; }
.editorial-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--blue); flex-shrink: 0; }
.editorial-list h3 { font-size: 1.1rem; margin-bottom: 8px; }
.editorial-list p { color: var(--text-muted); font-size: 0.92rem; }
.editorial-image { border-radius: 20px; overflow: hidden; min-height: 500px; background-size: cover; background-position: center; }

/* ---------- Reviews ---------- */
.reviews-slider { position: relative; overflow: hidden; }
.reviews-track { display: flex; transition: transform .6s var(--ease); }
.review-card { flex: 0 0 100%; padding: 0 8px; }
.review-inner { background: var(--off-white); border-radius: 20px; padding: 48px; text-align: center; max-width: 720px; margin: 0 auto; }
.stars { color: var(--blue); font-size: 1.3rem; letter-spacing: 4px; margin-bottom: 22px; }
.review-quote { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.5; margin-bottom: 26px; }
.review-meta { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.review-meta span { display: block; font-weight: 500; margin-top: 3px; }
.slider-controls { display: flex; justify-content: center; gap: 14px; margin-top: 34px; }
.slider-controls button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border-soft); display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease); }
.slider-controls button:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.slider-controls svg { width: 18px; height: 18px; }
.review-disclaimer { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 20px; font-style: italic; }

/* ---------- Service areas map section ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; padding: 26px; color: var(--white); }
.area-card .panel-bg, .area-card .panel-overlay { position: absolute; inset: 0; }
.area-card .panel-overlay { background: linear-gradient(180deg, rgba(6,10,16,0.1), rgba(6,10,16,0.88)); }
.area-card h3 { position: relative; z-index: 2; font-size: 1.2rem; }
.area-card span { position: relative; z-index: 2; font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--light-blue); color: var(--blue); padding: 140px 0; text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); margin-bottom: 22px; }
.final-cta p { color: rgba(9, 2, 2, 0.68); font-size: 1.1rem; margin-bottom: 40px; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,0.65); padding: 90px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--border-dark); }
.footer-brand .logo-word { color: var(--white); }
.footer-brand p { margin-top: 18px; font-size: 0.92rem; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; transition: all .3s var(--ease); }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a, .footer-col li { display: block; font-size: 0.9rem; padding: 6px 0; transition: color .25s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; font-size: 0.8rem; flex-wrap: wrap; gap: 14px; }
.footer-bottom-links { display: flex; gap: 22px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .35s var(--ease); z-index: 300;
  box-shadow: 0 10px 24px -10px rgba(11,94,215,0.6);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1){transition-delay:.05s} .reveal-stagger.is-visible > *:nth-child(2){transition-delay:.12s}
.reveal-stagger.is-visible > *:nth-child(3){transition-delay:.19s} .reveal-stagger.is-visible > *:nth-child(4){transition-delay:.26s}
.reveal-stagger.is-visible > *:nth-child(5){transition-delay:.33s} .reveal-stagger.is-visible > *:nth-child(6){transition-delay:.4s}

/* ---------- Contact page ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: flex-start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 24px; }
.contact-info p { color: var(--text-muted); margin-bottom: 30px; }
.contact-info-row { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border-soft); }
.contact-info-row:last-child { border-bottom: 1px solid var(--border-soft); }
.contact-info-row .icon-wrap { width: 44px; height: 44px; border-radius: 10px; background: var(--light-blue); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-row .icon-wrap svg { width: 20px; height: 20px; }
.contact-info-row strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-row span, .contact-info-row a { font-size: 0.88rem; color: var(--text-muted); }

.contact-form { background: var(--off-white); border-radius: 22px; padding: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 10px; border: 1.5px solid var(--border-soft);
  background: var(--white); font-size: 0.94rem; transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field-error { display: block; font-size: 0.76rem; color: #c0392b; margin-top: 6px; min-height: 14px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-visible { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--blue); margin: 0 auto 18px; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { color: var(--text-muted); }
.contact-form.is-submitted form { display: none; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .35s var(--ease); color: var(--blue); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 26px; color: var(--text-muted); max-width: 720px; }

/* ---------- Symptom cards ---------- */
.symptom-card { cursor: pointer; }
.symptom-detail { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: 0.88rem; color: var(--text-muted); }
.symptom-detail.is-open { display: block; }
.symptom-detail strong { color: var(--black-soft); display: block; margin-top: 12px; margin-bottom: 4px; }
.symptom-detail strong:first-child { margin-top: 0; }

/* ---------- Detail page content blocks ---------- */
.content-block { max-width: 800px; }
.content-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 20px; }
.content-block p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.02rem; }
.content-block ul { margin: 20px 0; }
.content-block ul li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--text-muted); }
.content-block ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin: 30px 0; }
.stat-row .stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--blue); }
.stat-row .stat span { font-size: 0.82rem; color: var(--text-muted); }
.placeholder-note { display: inline-block; background: var(--light-blue); color: var(--blue-deep); font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-services a { display: block; background: var(--off-white); border-radius: 12px; padding: 22px 24px; font-weight: 700; font-size: 0.94rem; transition: all .3s var(--ease); }
.related-services a:hover { background: var(--blue); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav, .header-call { display: none; }
  .hamburger { display: flex; }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .signature-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panels { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-line { display: none; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-image { min-height: 320px; order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .related-services { grid-template-columns: 1fr 1fr; }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 78px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero, .page-hero { padding-top: 130px; }
  .diff-grid, .signature-grid, .grid-3, .grid-4, .areas-grid, .footer-top, .related-services { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 22px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .section { padding: 80px 0; }
  .back-to-top { bottom: 90px; right: 18px; width: 44px; height: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
/* FIX: Make header/navigation links always clickable */
.site-header {
  z-index: 99999;
}

.site-header .container {
  position: relative;
  z-index: 100000;
}

.logo,
.main-nav,
.main-nav a,
.header-actions,
.header-call,
.header-actions .btn,
.hamburger {
  position: relative;
  z-index: 100001;
  pointer-events: auto;
}

/* Custom cursor must NEVER capture clicks */
.cursor-dot,
.cursor-ring {
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .header-actions .btn-primary {
    display: none !important;
  }
}

/* =========================================================
   PREMIUM MOBILE NAVIGATION
   ========================================================= */

   @media (max-width: 1024px) {

    .mobile-nav {
      position: fixed;
      top: 78px;
      left: 14px;
      right: 14px;
      bottom: auto;
  
      height: auto;
      max-height: calc(100vh - 100px);
      overflow-y: auto;
  
      background: rgba(10, 25, 48, 0.98);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 20px;
  
      padding: 18px 22px 22px;
  
      box-shadow:
        0 25px 60px rgba(0,0,0,0.35),
        0 8px 25px rgba(0,0,0,0.20);
  
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
  
      transform: translateY(-20px);
      opacity: 0;
      visibility: hidden;
  
      transition:
        transform .35s ease,
        opacity .25s ease,
        visibility .35s ease;
  
      z-index: 99998;
    }
  
    .mobile-nav.is-open {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }
  
    /* Navigation links */
    .mobile-nav a {
      display: flex;
      align-items: center;
      justify-content: space-between;
  
      font-family: var(--font-display);
      font-size: 1.05rem;
      font-weight: 700;
  
      color: rgba(255,255,255,0.90);
  
      padding: 15px 4px;
  
      border-bottom: 1px solid rgba(255,255,255,0.08);
  
      opacity: 0;
      transform: translateY(8px);
  
      transition:
        color .2s ease,
        opacity .35s ease,
        transform .35s ease,
        padding-left .2s ease;
    }
  
    .mobile-nav.is-open a {
      opacity: 1;
      transform: translateY(0);
    }
  
    .mobile-nav a:hover,
    .mobile-nav a.active {
      color: var(--blue);
      padding-left: 7px;
    }
  
    /* Stagger the links */
    .mobile-nav.is-open a:nth-child(1) { transition-delay: .03s; }
    .mobile-nav.is-open a:nth-child(2) { transition-delay: .06s; }
    .mobile-nav.is-open a:nth-child(3) { transition-delay: .09s; }
    .mobile-nav.is-open a:nth-child(4) { transition-delay: .12s; }
    .mobile-nav.is-open a:nth-child(5) { transition-delay: .15s; }
    .mobile-nav.is-open a:nth-child(6) { transition-delay: .18s; }
    .mobile-nav.is-open a:nth-child(7) { transition-delay: .21s; }
    .mobile-nav.is-open a:nth-child(8) { transition-delay: .24s; }
    .mobile-nav.is-open a:nth-child(9) { transition-delay: .27s; }
    .mobile-nav.is-open a:nth-child(10) { transition-delay: .30s; }
  
    /* Mobile bottom action */
    .mobile-nav-footer {
      margin-top: 14px;
      padding-top: 16px;
      border-top: 1px solid rgba(255,255,255,0.10);
    }
  
    .mobile-nav-footer .btn {
      width: 100%;
      min-height: 48px;
      border-radius: 10px;
    }
  }