/* ============================================================
   San Diego Water Softener Repair
   Global stylesheet: base, buttons, header, hero, footer
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0b2b43;
  --navy-800: #0e3350;
  --navy-700: #14466b;
  --blue: #0a7ec2;
  --blue-600: #0973b3;
  --blue-700: #065a8c;
  --aqua: #23c0e0;
  --aqua-soft: #e6f7fb;
  --ink: #14212b;
  --muted: #5b6b78;
  --line: #e2ecf2;
  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(11, 43, 67, .06);
  --shadow: 0 14px 40px rgba(11, 43, 67, .12);
  --shadow-lg: 0 26px 60px rgba(11, 43, 67, .18);
  --container: 1250px;
  --header-h: 74px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-700); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
svg { flex: 0 0 auto; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(10, 126, 194, .28);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(10, 126, 194, .38); transform: translateY(-2px); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { color: var(--blue-700); border-color: var(--blue); }

.btn--white { background: #fff; color: var(--blue-700); }
.btn--white:hover { color: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .18); }

.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--outline-white:hover { background: #fff; color: var(--blue-700); border-color: #fff; }

.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 43, 67, .1); }

/* Main navbar */
.navbar { background: #000; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 46px; width: auto; }

.nav { flex: 1 1 auto; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.nav__link.is-active { color: var(--aqua); }
.nav__caret { transition: transform .2s ease; }
.has-dropdown:hover .nav__caret { transform: rotate(180deg); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 12px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--blue-700); }

.nav__mobile-cta { display: none; }

.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__call { white-space: nowrap; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(35, 192, 224, .28), transparent 60%),
    linear-gradient(160deg, #0e3350 0%, #0b2b43 55%, #082033 100%);
  color: #e8f3f9;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .06) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 68%, rgba(255, 255, 255, .05) 0 2px, transparent 3px);
  background-size: 220px 220px, 300px 300px;
  opacity: .7;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding-block: 78px 88px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  margin-bottom: 22px;
  border: 1px solid rgba(35, 192, 224, .4);
  border-radius: 999px;
  background: rgba(35, 192, 224, .12);
  color: #d6f6ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.hero__badge .dot {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--navy);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--aqua); }
.hero__lead {
  max-width: 560px;
  font-size: 1.06rem;
  color: #bcd8e6;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #d7e9f2;
}
.hero__trust svg { color: var(--aqua); }

/* Hero visual */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card__drop {
  width: 74px; height: 74px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(35, 192, 224, .4);
  margin-bottom: 20px;
}
.hero-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.hero-card > p { color: #bcd8e6; font-size: .95rem; margin-bottom: 22px; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-stat {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero-stat strong { display: block; color: #fff; font-size: 1.5rem; line-height: 1.1; }
.hero-stat span { font-size: 12.5px; color: #a9c8d8; font-weight: 600; }

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--navy);
}
.hero-float strong { font-size: 14px; display: block; }
.hero-float small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.hero-float--rating { left: -8px; bottom: 34px; }
.hero-float--rating .stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.hero-float--shield { right: -10px; top: 26px; }
.hero-float__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--aqua-soft); color: var(--blue-700);
}

/* ============================================================
   GENERIC SECTIONS (used by homepage sample content)
   ============================================================ */
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.section__head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe6f2; }
.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua-soft), #d4eefa);
  color: var(--blue-700);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.card__link { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #000; color: #b9cfdd; }

.footer-main { padding: 64px 0 44px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { height: 54px; width: auto; margin-bottom: 18px; }
.footer-col--brand p { font-size: 14.5px; line-height: 1.7; color: #9fbacb; }
.footer-contact { display: grid; gap: 11px; margin: 20px 0; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; color: #b9cfdd; }
.footer-contact svg { color: var(--aqua); margin-top: 3px; }
.footer-contact a { color: #b9cfdd; }
.footer-contact a:hover { color: #fff; }

.footer-social {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.footer-social:hover { background: var(--blue); color: #fff; }

.footer-col__title {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: var(--aqua);
}
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: #9fbacb; font-size: 14.5px; }
.footer-links a:hover { color: #fff; padding-left: 3px; }
.footer-links--cols { grid-template-columns: 1fr 1fr; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 13px; color: #8aa7b8; }
.footer-bottom__meta { font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 18px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(11, 43, 67, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  }
  .site-header.nav-open .nav { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 13px 12px; justify-content: space-between; color: var(--navy); }
  .nav__link:hover { background: var(--bg-soft); color: var(--blue-700); }
  .nav__link.is-active { color: var(--blue-700); }
  .has-dropdown .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 6px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .nav__caret { transform: rotate(180deg); }
  .dropdown a { padding: 10px 12px; }

  .nav__mobile-cta { display: block; margin-top: 14px; }

  .hero__inner { grid-template-columns: 1fr; gap: 46px; padding-block: 58px 70px; }
  .hero__visual { order: -1; }
  .hero-card { max-width: 460px; }
  .hero-float--shield { right: 0; }
  .hero-float--rating { left: 0; }

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

@media (max-width: 640px) {
  .brand__logo { height: 42px; }
  .section { padding: 60px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links--cols { grid-template-columns: 1fr 1fr; }
  .hero-float { display: none; }
  .navbar__call-text { display: none; }
}

/* ============================================================
   BLOG / ARTICLE
   ============================================================ */
.post { padding: 40px 0 88px; background: var(--bg); }

.post-article {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}

.post-head { max-width: 800px; margin: 0 0 28px; }
.post-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.12;
  margin-bottom: 16px;
}
.post-head__intro {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 20px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.post-meta span { display: inline-flex; align-items: center; gap: 7px; }
.post-meta svg { color: var(--blue); }

.post-featured {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 36px;
}
.post-featured img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Article body - fixed 800px reading width */
.post-body {
  width: 100%;
  max-width: 800px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.post-body > p:first-of-type { font-size: 1.12rem; color: #2d3d49; }

.post-body h2 {
  margin: 2.4em 0 .65em;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  scroll-margin-top: calc(var(--header-h) + 22px);
}
.post-body h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--aqua), var(--blue));
}
.post-body h3 {
  margin: 1.7em 0 .5em;
  font-size: 1.18rem;
  scroll-margin-top: calc(var(--header-h) + 22px);
}
.post-body p { margin-bottom: 1.15rem; }
.post-body ul,
.post-body ol {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
  display: grid;
  gap: .5rem;
}
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li::marker { color: var(--blue); font-weight: 700; }
.post-body strong { color: var(--navy); }
.post-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.post-body figure {
  margin: 1.9rem 0;
}
.post-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.post-featured figcaption,
.post-body figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.post-body .table-scroll {
  margin: 0 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .93rem;
  line-height: 1.5;
}
.post-body th,
.post-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.post-body thead th {
  background: var(--bg-soft);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.post-body tbody tr:last-child td { border-bottom: 0; }
.post-body tbody tr:nth-child(even) { background: #fafcfd; }

.post-body .callout {
  margin: 1.8rem 0;
  padding: 20px 24px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--aqua-soft);
}
.post-body .callout__label {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.post-body .callout p { margin: 0; }
.post-body .callout p + p { margin-top: .7rem; }

.post-body .post-cta {
  margin: 2.2rem 0;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-800), var(--navy));
  color: #d7e9f2;
}
.post-body .post-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.35rem;
}
.post-body .post-cta h2::after { display: none; }
.post-body .post-cta p { margin: 0 0 16px; font-size: .96rem; }
.post-body .post-cta .btn { text-decoration: none; }

.post-body details {
  margin: 0 0 .75rem;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.post-body details[open] { box-shadow: var(--shadow-sm); }
.post-body summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  font-size: .98rem;
}
.post-body summary::marker { color: var(--blue); }
.post-body details p { margin: .8rem 0 0; color: var(--muted); font-size: .95rem; }

/* Related posts */
.related-posts {
  max-width: 800px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.related-posts__head { margin-bottom: 22px; }
.related-posts__head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.related-posts__head p { margin: 0; color: var(--muted); font-size: .95rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: #cfe6f2;
  box-shadow: var(--shadow);
}
.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
}
.post-card h3 { margin: 0; font-size: 1rem; line-height: 1.32; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--blue-700); }
.post-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.post-card__link { margin-top: auto; padding-top: 4px; font-size: .82rem; font-weight: 700; }

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

@media (max-width: 640px) {
  .post { padding: 26px 0 60px; }
  .post-body { font-size: 1rem; }
  .post-body figure,
  .post-featured { margin: 1.5rem 0; }
  .post-head__intro { font-size: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
  .related-posts { margin-top: 42px; padding-top: 30px; }
}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-page { padding-bottom: 88px; }

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 60px;
  margin-bottom: 56px;
  background:
    radial-gradient(900px 420px at 82% -20%, rgba(35, 192, 224, .26), transparent 60%),
    linear-gradient(160deg, #0e3350 0%, #0b2b43 60%, #082033 100%);
}
.blog-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(35, 192, 224, .4);
  border-radius: 999px;
  background: rgba(35, 192, 224, .12);
  color: #d6f6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
}
.blog-hero p {
  max-width: 720px;
  margin: 0;
  color: #bcd8e6;
  font-size: 1.05rem;
}

.blog-list__head { margin-bottom: 30px; }
.blog-list__head h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.blog-list__head p { margin: 0; color: var(--muted); font-size: .98rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card__meta {
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-grid .post-card h3 { font-size: 1.05rem; }

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

@media (max-width: 640px) {
  .blog-page { padding-bottom: 60px; }
  .blog-hero { padding: 46px 0 42px; margin-bottom: 38px; }
  .blog-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.hero-photo {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.home-trust {
  padding: 26px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 28px;
}
.home-trust__item { display: flex; align-items: center; gap: 12px; }
.home-trust__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--aqua-soft);
  color: var(--blue-700);
}
.home-trust__item strong { display: block; color: var(--navy); font-size: 14.5px; line-height: 1.25; }
.home-trust__item span { color: var(--muted); font-size: 12.5px; font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.split__media { margin: 0; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__content h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.split__content p { color: var(--muted); }
.split__content .section__eyebrow { margin-bottom: 10px; }

.check-list { display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.check-list svg { color: var(--blue); margin-top: 3px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: #cfe6f2; box-shadow: var(--shadow); }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aqua-soft), #d4eefa);
  color: var(--blue-700);
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.service-card__link { margin-top: auto; font-weight: 700; font-size: 14px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-item {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.why-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--aqua-soft);
  color: var(--blue-700);
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step__number {
  margin-bottom: 10px;
  color: var(--aqua);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}
.step h3 { font-size: 1.1rem; margin-bottom: 7px; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

.cost-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 40px;
  background: linear-gradient(160deg, var(--bg-soft), #fff);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.cost-panel__intro h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
.cost-panel__intro p { color: var(--muted); font-size: .96rem; }
.cost-panel__intro .section__eyebrow { margin-bottom: 10px; }
.cost-rows { display: grid; gap: 12px; align-content: center; }
.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.cost-row span { color: var(--ink); font-size: .92rem; font-weight: 600; }
.cost-row strong { color: var(--blue-700); font-size: .98rem; white-space: nowrap; }
.cost-note { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }

.area-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.area-grid a {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
}
.area-grid a:hover { background: var(--aqua-soft); border-color: var(--aqua); color: var(--blue-700); }

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list details {
  margin-bottom: .75rem;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.faq-list details[open] { box-shadow: var(--shadow-sm); }
.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
  font-size: .98rem;
}
.faq-list summary::marker { color: var(--blue); }
.faq-list details p { margin: .8rem 0 0; color: var(--muted); font-size: .95rem; }

.cta-band {
  padding: 56px 0;
  background:
    radial-gradient(900px 400px at 85% -30%, rgba(35, 192, 224, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy));
  color: #d7e9f2;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 { margin-bottom: 8px; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; color: #bcd8e6; font-size: .98rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-band .btn--ghost:hover { background: #fff; color: var(--blue-700); border-color: #fff; }

@media (max-width: 980px) {
  .home-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media { order: 2; }
  .cost-panel { grid-template-columns: 1fr; gap: 28px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-trust { padding: 20px 0; }
  .home-trust__grid { gap: 16px 18px; }
  .service-card { padding: 24px; }
  .cost-panel { padding: 26px 22px; }
  .cost-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .cta-band { padding: 44px 0; }
}

/* Mobile hero refinements */
.hero__content { min-width: 0; }

@media (max-width: 640px) {
  .hero__inner { gap: 30px; padding-block: 40px 52px; }
  .hero__visual { order: 2; }
  .hero-photo { max-width: 100%; }
  .hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.4rem); }
  .hero__badge { margin-bottom: 16px; font-size: 12px; }
  .hero__lead { margin-bottom: 24px; font-size: 1rem; }
  .hero__actions { gap: 10px; margin-bottom: 26px; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { gap: 10px 20px; padding-top: 20px; }
  .hero__trust li { font-size: 13px; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 58px;
  background:
    radial-gradient(900px 420px at 82% -20%, rgba(35, 192, 224, .26), transparent 60%),
    linear-gradient(160deg, #0e3350 0%, #0b2b43 60%, #082033 100%);
}
.page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 13px;
  border: 1px solid rgba(35, 192, 224, .4);
  border-radius: 999px;
  background: rgba(35, 192, 224, .12);
  color: #d6f6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.page-hero h1 {
  max-width: 880px;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
}
.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #bcd8e6;
  font-size: 1.05rem;
}

.about-owner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: 30px;
  background: linear-gradient(160deg, var(--bg-soft), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.owner-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--blue-700));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 12px 26px rgba(10, 126, 194, .28);
}
.owner-name { margin: 0 0 2px; font-size: 1.25rem; }
.owner-role { margin: 0 0 10px; color: var(--blue-700); font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.owner-quote { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.owner-quote::before { content: "\201C"; color: var(--aqua); font-size: 1.6rem; font-weight: 800; line-height: 0; vertical-align: -0.25rem; margin-right: 3px; }

.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.credential-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.credential-item span { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.credential-item strong { color: var(--navy); font-size: .9rem; text-align: right; overflow-wrap: anywhere; }

.about-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.about-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.about-link:hover { border-color: var(--aqua); color: var(--blue-700); transform: translateY(-2px); }
.about-link span { color: var(--blue); }

.about-resources {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.about-resources p { margin: 0 0 8px; color: var(--navy); font-weight: 700; font-size: .95rem; }
.about-resources ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.about-resources a { font-size: .9rem; font-weight: 600; }

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

@media (max-width: 640px) {
  .page-hero { padding: 44px 0 40px; }
  .about-owner { grid-template-columns: 1fr; text-align: left; gap: 16px; padding: 24px 22px; }
  .owner-avatar { width: 76px; height: 76px; font-size: 1.6rem; }
}

.split__media figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
}

.page-hero__meta {
  margin-top: 14px;
  color: #a9c8d8;
  font-size: 12.5px;
  font-weight: 600;
}

/* ============================================================
   SERVICE PAGES
   ============================================================ */
.service-section { padding: 72px 0 88px; }
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}
.service-main { min-width: 0; }
.service-main.post-body { max-width: 800px; }

.service-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
}
.service-sidebar--legal { position: static; }
.side-card {
  padding: 24px;
  background: linear-gradient(160deg, var(--aqua-soft), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.side-card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.side-card > p { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.side-card .btn { width: 100%; }
.side-card .btn + .btn { margin-top: 10px; }
.side-card__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.5;
  text-align: center;
}
.side-card--plain { background: #fff; }
.side-card h4 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.side-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.side-list svg { color: var(--blue); margin-top: 2px; }
.side-links { display: grid; gap: 4px; }
.side-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: .88rem;
  font-weight: 600;
}
.side-links a:last-child { border-bottom: 0; }
.side-links a:hover { color: var(--blue-700); }

@media (max-width: 1000px) {
  .service-layout { grid-template-columns: 1fr; gap: 34px; }
  .service-sidebar { position: static; }
}

@media (max-width: 640px) {
  .service-section { padding: 50px 0 60px; }
  .side-card { padding: 22px; }
}

/* Services overview */
.service-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.service-showcase__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-showcase__card:hover {
  transform: translateY(-4px);
  border-color: #cfe6f2;
  box-shadow: var(--shadow);
}
.service-showcase__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}
.service-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.service-showcase__card:hover .service-showcase__media img { transform: scale(1.04); }
.service-showcase__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}
.service-showcase__body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service-showcase__body p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.service-showcase__link { margin-top: auto; font-weight: 700; font-size: 14px; }

@media (max-width: 760px) {
  .service-showcase { grid-template-columns: 1fr; }
}

/* Contact page */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.contact-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--aqua-soft);
  color: var(--blue-700);
}
.contact-card h3 {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.contact-card p,
.contact-card a {
  display: block;
  margin: 0;
  color: var(--navy);
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.5;
}
.contact-card a:hover { color: var(--blue-700); }

.contact-call-panel {
  padding: 36px 30px;
  background:
    radial-gradient(600px 300px at 80% -20%, rgba(35, 192, 224, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy));
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  color: #bcd8e6;
}
.contact-call-panel__label {
  display: block;
  margin-bottom: 10px;
  color: var(--aqua);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-call-panel .contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: clamp(1.65rem, 3.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}
.contact-call-panel .contact-phone:hover { color: var(--aqua); }
.contact-call-panel p { margin: 0 0 20px; font-size: .9rem; }
.contact-call-panel .btn { width: 100%; }
.contact-call-panel__note { margin: 14px 0 0 !important; font-size: .78rem !important; color: #a9c8d8; }

@media (max-width: 980px) {
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-call-panel { padding: 30px 22px; }
}
