:root {
  /* Aliases for the questionnaire/form CSS, which was written against
     --accent / --text / --bg. Without these, every var(--accent) rule was
     invalid — most visibly the quiz Start button (transparent background,
     white text: invisible in light mode). */
  --accent: var(--blue);
  --text: var(--ink);
  --bg: var(--white);
  --navy: #263D4E;
  --navy-deep: #1B2E3B;
  --ink: #1F2933;
  --muted: #5F6F7A;
  --blue: #2B9DEE;
  --blue-dark: #1E7CC4;
  --blue-soft: #CAE2F5;
  --bg-soft: #EEF2F6;
  --warm: #FFBC7D;
  --line: #DCE4EC;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(38, 61, 78, 0.06), 0 2px 8px rgba(38, 61, 78, 0.06);
  --shadow-md: 0 4px 16px rgba(38, 61, 78, 0.10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* never allow sideways page panning on small screens */
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lede { color: var(--muted); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  line-height: 1.4;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.site-logo { height: 44px; width: auto; display: block; }
.site-brand-name { font-weight: 800; color: var(--navy); font-size: 1.25rem; letter-spacing: -0.01em; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 10px 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0;
  position: relative;
  z-index: 1;
}
.hero-title { color: #fff; margin-bottom: 18px; }
.hero-lede { color: rgba(255,255,255,0.82); font-size: 1.15rem; margin-bottom: 30px; max-width: 34rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
/* Soft blue glow behind the graphic column */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 400px at 76% 16%, rgba(43,157,238,0.30), transparent 70%);
}
.hero-graphic { position: relative; padding: 30px 14px 42px; }
.hero-graphic .shape { position: absolute; border-radius: 18px; }
/* Offset blue gradient frame peeking from behind the photo */
.hero-graphic .shape-a {
  top: 12px; right: 2px; bottom: 26px; left: 34px;
  background: linear-gradient(135deg, #2B9DEE 0%, #48A7F0 60%, #7CC4F7 100%);
  border: none; transform: rotate(2.5deg);
  box-shadow: 0 18px 44px -12px rgba(43,157,238,0.45);
}
/* Warm accent blob, bottom-left */
.hero-graphic .shape-b {
  top: auto; right: auto; bottom: 8px; left: -4px;
  width: 118px; height: 118px;
  background: rgba(255,188,125,0.22); border: 1px solid rgba(255,188,125,0.5);
  border-radius: 30px; transform: rotate(-8deg);
}
/* Dotted pattern, top-right */
.hero-graphic .shape-c {
  top: 0; right: 8px; bottom: auto; left: auto;
  width: 120px; height: 84px; border: none; background: transparent;
  background-image: radial-gradient(rgba(202,226,245,0.55) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
}
.hero-graphic .hero-photo {
  position: relative; z-index: 1;
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 28px 60px -14px rgba(0,0,0,0.5);
  transform: rotate(-1.25deg);
}
.hero-graphic .hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Floating glass chips overlapping the photo */
.hero-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.94); color: var(--navy);
  font-size: 0.82rem; font-weight: 700; white-space: nowrap;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #2B9DEE; flex: none; }
.hero-chip .dot-warm { background: #F0A24A; }
.hero-chip-a { top: 10px; left: 0; transform: rotate(-2deg); }
.hero-chip-b { bottom: 18px; right: 6px; transform: rotate(1.5deg); }
.hero-trust { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item strong { font-size: 1.35rem; color: #fff; }
.hero-trust-item span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* Slim page hero for landing pages */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px;
  border-radius: 50%; background: rgba(43,157,238,0.16);
}
.page-hero h1 { color: #fff; max-width: 16em; }
.page-hero .lede { color: rgba(255,255,255,0.82); font-size: 1.12rem; max-width: 40rem; }
.page-hero .hero-actions { margin-top: 26px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 13px;
  --tile: var(--blue); background: var(--tile); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon.accent { --tile: #263D4E; background: var(--tile); }
.card-icon.warm { --tile: #E8934A; background: var(--tile); }
.card-icon .cut, .hq-ill .cut { fill: var(--tile); }
.card-icon .cut-stroke, .hq-ill .cut-stroke { fill: none; stroke: var(--tile); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.card ul li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); font-size: 0.95rem; }
.card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue-dark); font-weight: 700; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Steps / process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: var(--white); box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--white); overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--blue-dark); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 18px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: -70px; bottom: -70px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(255,188,125,0.14);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 36rem; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; background: var(--bg-soft); color: var(--navy);
}
.badge-blue { background: var(--blue-soft); color: var(--navy); }
.badge-warm { background: #FFF1E2; color: #8A5A1E; }
.badge-green { background: #E4F5E9; color: #1E7A3C; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--white); }
table.data th, table.data td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: var(--bg-soft); color: var(--navy); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.data tr:last-child td { border-bottom: none; }

/* ---------- Login link cards ---------- */
.login-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; }
.login-card {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none; background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.login-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.login-card .card-icon { margin: 0; width: 46px; height: 46px; font-size: 1.3rem; }
.login-card strong { display: block; color: var(--navy); }
.login-card span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 8px 0; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 1.6rem; color: var(--navy); }
.trust-item span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; background: var(--white); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.testimonial blockquote { margin: 0; color: var(--ink); font-size: 1.02rem; }
.testimonial cite { font-style: normal; color: var(--muted); font-size: 0.9rem; }
.testimonial cite strong { display: block; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.footer-brand p { font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 0.95rem; }
.footer-contact a { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Content pages ---------- */
.page-content { max-width: 780px; }
.page-content h2 { margin-top: 1.8em; }
.prose-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.divider { border: none; border-top: 1px solid var(--line); margin: 48px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px; }
  .site-nav a { padding: 13px 14px; }
  .nav-toggle { display: block; order: -1; } /* hamburger first from the left on phones */
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0; gap: 32px; }
  .hero-graphic { padding: 18px 8px 34px; order: -1; } /* photo first on phones */
  .hero-chip { font-size: 0.75rem; padding: 7px 12px; }
  .card-grid, .card-grid.cols-4, .card-grid.cols-2, .steps, .testimonial-grid, .login-grid, .prose-split { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
}

/* ==========================================================================
   Dark mode (v1.1.0) — re-maps surfaces; navy brand sections stay navy.
   Toggle with [data-theme="dark"] on <html>, persisted in localStorage.
   ========================================================================== */
:root[data-theme="dark"] {
  --ink: #E8EEF2;
  --muted: #9AA8B4;
  --blue-dark: #5EB5F5;
  --bg-soft: #15202E;
  --line: #2A3A4C;
  --white: #101922;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] body { background: var(--white); color: var(--ink); }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: #E6EDF3; }
[data-theme="dark"] .site-header { background: var(--white); }
[data-theme="dark"] .site-brand-name { color: #E6EDF3; }
[data-theme="dark"] .site-logo { background: none; border-radius: 0; padding: 0; filter: brightness(0) invert(1); }
[data-theme="dark"] .site-nav a { color: #DCE6EE; }
[data-theme="dark"] .site-nav a:hover { background: var(--bg-soft); color: #fff; }
[data-theme="dark"] .nav-toggle { color: #DCE6EE; border-color: var(--line); }
[data-theme="dark"] .card-icon { color: #fff; }
[data-theme="dark"] .faq-item summary { color: #E6EDF3; }
[data-theme="dark"] .login-card strong { color: #E6EDF3; }
[data-theme="dark"] .trust-item strong { color: #E6EDF3; }
[data-theme="dark"] .testimonial cite strong { color: #E6EDF3; }
[data-theme="dark"] table.data th { color: #E6EDF3; }
[data-theme="dark"] .btn-outline { border-color: var(--line); color: #DCE6EE; }
[data-theme="dark"] .btn-outline:hover { border-color: #DCE6EE; color: #fff; }
[data-theme="dark"] .theme-toggle-wp { border-color: var(--line); color: #DCE6EE; }
[data-theme="dark"] .theme-toggle-wp:hover { background: var(--bg-soft); }

/* Theme toggle button (header) */
.theme-toggle-wp {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle-wp:hover { background: var(--bg-soft); }


/* ---------- Questionnaire system (Typeform-style, full page) ---------- */
/* Shared by the HOA proposal and software fit quizzes. */
.hq { min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
.hq-topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hq-topbar-inner { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.hq-topbar .site-logo { height: 36px; width: auto; }
.hq-topbar-spacer { flex: 1; }
.hq-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 1.1rem; cursor: pointer; text-decoration: none; }
.hq-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.hq-progress { height: 4px; background: var(--line); }
.hq-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #6ec1ff); border-radius: 0 4px 4px 0; transition: width .45s ease; }

.hq-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px 64px; }
.hq-step { display: none; width: 100%; max-width: 680px; animation: hqIn .38s ease; }
.hq-step.active { display: block; }
@keyframes hqIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hq-kicker { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin: 0 0 10px; }
.hq-q { font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.01em; }
.hq-sub { color: var(--muted); margin: 0 0 26px; font-size: 1.02rem; }
.hq-field { margin-bottom: 26px; }
.hq-input, .hq-textarea { width: 100%; font-size: 1.25rem; padding: 14px 4px; background: transparent; border: none; border-bottom: 2px solid var(--line); color: var(--text); border-radius: 0; outline: none; transition: border-color .2s; }
.hq-input:focus, .hq-textarea:focus { border-color: var(--accent); }
.hq-textarea { border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 130px; font-size: 1.05rem; resize: vertical; }
.hq-input::placeholder, .hq-textarea::placeholder { color: var(--muted); opacity: .7; }

.hq-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hq-chip { border: 2px solid var(--line); background: var(--white); color: var(--text); border-radius: 14px; padding: 13px 18px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; text-align: left; }
.hq-chip:hover { border-color: var(--accent); }
.hq-chip:active { transform: scale(.98); }
.hq-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--white)); box-shadow: 0 0 0 1px var(--accent) inset; }
.hq-chip .hq-check { display: inline-block; width: 1.1em; margin-right: .4em; opacity: 0; }
.hq-chip[aria-pressed="true"] .hq-check { opacity: 1; }

.hq-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hq-btn { background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 15px 34px; font-size: 1.08rem; font-weight: 700; cursor: pointer; transition: filter .15s, transform .1s; }
.hq-btn:hover { filter: brightness(1.08); }
.hq-btn:active { transform: scale(.98); }
.hq-back { background: none; border: none; color: var(--muted); font-size: 1rem; font-weight: 600; cursor: pointer; padding: 10px 4px; }
.hq-back:hover { color: var(--text); }
.hq-hint { color: var(--muted); font-size: .85rem; }
.hq-hint kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-family: inherit; background: var(--white); }
.hq-error { display: none; color: #e5484d; font-weight: 600; margin: 0 0 16px; }
.hq-error.show { display: block; }
.hq-errors { max-width: 680px; margin: 0 auto 20px; background: #fdecec; border: 1px solid #f5c2c4; color: #a32b2e; border-radius: 12px; padding: 14px 18px; }
[data-theme="dark"] .hq-errors { background: #3a2320; border-color: #6e3b34; color: #f2b8b0; }
.hq-errors ul { margin: 6px 0 0; padding-left: 20px; }

.hq-done { text-align: center; max-width: 620px; margin: 0 auto; animation: hqIn .45s ease; }
.hq-done-icon { width: 84px; height: 84px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--white)); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; margin-bottom: 22px; }
.hq-done h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0 0 12px; }
.hq-done p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; margin: 0 0 30px; }

.hq-welcome { text-align: left; }
.hq-welcome .hq-ill { --tile: var(--blue); background: var(--tile); border-radius: 22px; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.hq-welcome .hq-ill svg { width: 48px; height: 48px; color: #fff; }

@media (max-width: 640px) {
	.hq-main { padding: 24px 18px 56px; align-items: flex-start; padding-top: 8vh; }
	.hq-chip { width: 100%; }
	.hq-btn { width: 100%; }
	.hq-nav { flex-direction: column; align-items: stretch; }
	.hq-back { text-align: center; }
}

/* ---------- Contact / general forms ---------- */
.bk-form { max-width: 720px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bk-field { margin-bottom: 18px; }
.bk-field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .95rem; }
.bk-optional { font-weight: 400; color: var(--muted); }
.bk-field input[type="text"], .bk-field input[type="email"], .bk-field input[type="tel"], .bk-field select, .bk-field textarea {
	width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit; color: var(--text);
	background: var(--white); border: 2px solid var(--line); border-radius: 12px; outline: none; transition: border-color .15s;
}
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { border-color: var(--accent); }
.bk-field textarea { resize: vertical; min-height: 140px; }
.bk-check label { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.bk-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); }
.bk-hp { position: absolute; left: -9999px; }
.bk-privacy { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.bk-notice { max-width: 720px; border-radius: 12px; padding: 18px 22px; margin-bottom: 24px; }
.bk-notice p { margin: 6px 0 0; }
.bk-notice ul { margin: 8px 0 0; padding-left: 20px; }
.bk-notice-success { background: #e9f7ef; border: 1px solid #bfe6cd; color: #1c5c34; }
.bk-notice-error { background: #fdecec; border: 1px solid #f5c2c4; color: #a32b2e; }
[data-theme="dark"] .bk-notice-success { background: #1c3325; border-color: #2e5b3c; color: #a9ddb4; }
[data-theme="dark"] .bk-notice-error { background: #3a2320; border-color: #6e3b34; color: #f2b8b0; }
@media (max-width: 640px) { .bk-row { grid-template-columns: 1fr; } }

/* ---------- SVG line icons (replace emoji) ---------- */
.card-icon svg { width: 26px; height: 26px; }
.theme-toggle-wp svg { width: 20px; height: 20px; }
.hq-icon-btn svg { width: 20px; height: 20px; }

/* ---------- Section photos ---------- */
.sec-photo { margin: 0 0 28px; border-radius: 18px; overflow: hidden; }
.sec-photo img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }
@media (max-width: 640px) { .sec-photo img { aspect-ratio: 16/10; } }

/* ---------- About page ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-story-photo { margin: 0; border-radius: 18px; overflow: hidden; }
.about-story-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.about-story-text h2 { margin: 10px 0 16px; }
.about-story-text p { color: var(--muted); margin-bottom: 14px; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--navy); border-radius: 18px; padding: 44px; text-align: center; }
.stat-num { display: block; font-size: 2.6rem; font-weight: 800; color: #fff; }
.stat-label { color: rgba(255,255,255,0.72); font-size: .95rem; }
.btn-ghost-light { background: transparent; border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.cta-band .hero-actions { justify-content: center; }
@media (max-width: 860px) {
	.about-story { grid-template-columns: 1fr; gap: 28px; }
	.stats-band { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
}

/* ---------- Estimate wizard (services page intake, v1.2.5) ---------- */
.est { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 10px 30px rgba(38, 61, 78, .08); }
.est-progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.est-progress-fill { height: 100%; width: 16%; background: var(--accent); border-radius: 3px; transition: width .3s ease; }
.est-step { display: none; }
.est-step.active { display: block; }
.est-q { font-size: 1.35rem; margin: 0 0 14px; color: var(--ink); }
.est-sub { color: var(--muted); margin: 0 0 20px; line-height: 1.55; }
.est-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 26px; }
.est-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.est-choice { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.est-choice input { position: absolute; opacity: 0; pointer-events: none; }
.est-choice:hover { border-color: var(--accent); }
.est-choice.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.est-choice-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); align-items: center; justify-content: center; }
.est-choice-icon svg { width: 24px; height: 24px; }
.est-choice-title { font-weight: 700; color: var(--ink); }
.est-choice-text { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.est-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.est-chip { border: 2px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: .95rem; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.est-chip:hover { border-color: var(--accent); }
.est-chip.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.est-field { display: block; margin-bottom: 16px; }
.est-field > span { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.est-field input, .est-field select, .est-field textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; color: var(--ink); background: var(--white); }
.est-field input:focus, .est-field select:focus, .est-field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.est-account-box[hidden] { display: none; }
.est-account-box { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 16px; cursor: pointer; line-height: 1.5; }
.est-account-box input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.est-error { color: #b3261e; font-weight: 600; margin: 14px 0 0; }
.est-errors { max-width: 760px; margin: 0 auto 18px; background: #fdecea; border: 1px solid #f5c6c2; color: #7a1f1a; border-radius: 12px; padding: 14px 18px; }
.est-done { max-width: 760px; margin: 0 auto; text-align: center; border: 1px solid var(--line); border-radius: 16px; padding: 40px 28px; background: var(--white); }
.est-done-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; }
.est-done p { color: var(--muted); line-height: 1.6; }
@media (max-width: 720px) {
  .est { padding: 20px; }
  .est-choices { grid-template-columns: 1fr; }
}

/* ---------- Service estimate questionnaire (full page) ---------- */
.hq-summary { display: grid; grid-template-columns: 150px 1fr; gap: 8px 18px; margin: 0 0 26px; text-align: left; }
.hq-summary dt { font-weight: 700; color: var(--text); }
.hq-summary dd { margin: 0; color: var(--muted); white-space: pre-line; }
.hq-account-box { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 4px 0 26px; cursor: pointer; line-height: 1.5; color: var(--text); max-width: 560px; }
.hq-account-box input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
@media (max-width: 560px) { .hq-summary { grid-template-columns: 1fr; gap: 2px 0; } .hq-summary dd { margin-bottom: 10px; } }

/* ---------- Blog ---------- */
.blog-cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.blog-cat-chip { border: 1.5px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
a.blog-cat-chip:hover { border-color: #fff; }
.blog-cat-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.post-card-top .badge { text-decoration: none; }
.post-card-title { font-size: 1.22rem; line-height: 1.3; margin: 0 0 10px; }
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { color: var(--muted); font-size: .96rem; line-height: 1.55; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.post-card-link { font-weight: 700; font-size: .92rem; color: var(--accent); text-decoration: none; white-space: nowrap; }
.post-card-link:hover { text-decoration: underline; }
.post-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .87rem; }
.post-meta-light { color: rgba(255,255,255,.75); margin-top: 14px; }

.post-card-featured { flex-direction: row; margin-bottom: 28px; }
.post-card-featured .post-card-media { flex: 1.15; aspect-ratio: auto; min-height: 300px; }
.post-card-featured .post-card-body { flex: 1; justify-content: center; padding: 34px 36px; }
.post-card-featured .post-card-title { font-size: 1.65rem; }
.post-card-featured .post-card-excerpt { -webkit-line-clamp: 4; font-size: 1.02rem; }

.post-hero .badge { margin-bottom: 16px; display: inline-block; text-decoration: none; }
.post-featured { margin: 0 auto 8px; max-width: 980px; }
.post-featured img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.post-body { margin: 0 auto; font-size: 1.06rem; line-height: 1.75; }
.post-body p { margin-bottom: 1.15em; }
.post-body h2 { line-height: 1.3; }
.post-body ul { margin-bottom: 1.15em; padding-left: 1.3em; }
.post-body li { margin-bottom: .45em; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 780px; margin: 40px auto 0; }
.post-nav-item a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; background: var(--white); transition: border-color .15s; }
.post-nav-item a:hover { border-color: var(--accent); }
.post-nav-next { text-align: right; }
.post-nav-dir { display: block; font-size: .82rem; font-weight: 700; color: var(--accent); margin-bottom: 5px; }
.post-nav-title { display: block; font-weight: 600; color: var(--text); line-height: 1.35; }

.navigation.pagination { margin-top: 36px; }
.navigation.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.navigation.pagination .page-numbers { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; text-decoration: none; color: var(--text); font-weight: 600; background: var(--white); }
.navigation.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.navigation.pagination a.page-numbers:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card-featured { flex-direction: column; }
  .post-card-featured .post-card-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-card-featured .post-card-body { padding: 24px; }
}

/* Careers application confirmation checkbox */
.hq-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: 0.98rem; line-height: 1.55; cursor: pointer; }
.hq-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue, #2B9DEE); }

/* Careers application chips use a .selected class */
.hq-chip.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--white)); box-shadow: 0 0 0 1px var(--accent) inset; }

/* STR Help Center */
.help-search { margin-top: 26px; max-width: 560px; }
.help-search input { width: 100%; padding: 16px 24px; border-radius: 999px; border: 2px solid transparent; background: #fff; color: var(--ink, #1F2933); font-size: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.help-search input::placeholder { color: #7A8794; }
.help-search input:focus { outline: none; border-color: var(--warm, #FFBC7D); }
.help-card h3 a { color: inherit; text-decoration: none; }
.help-card h3 a:hover { color: var(--blue, #2B9DEE); }
.help-card .read-more { font-weight: 600; color: var(--blue, #2B9DEE); text-decoration: none; }
.help-crumb { color: rgba(255,255,255,.75); margin: 0 0 12px; font-size: .95rem; }
.help-crumb a { color: #fff; font-weight: 600; }
.help-noresults { padding: 18px 0 0; font-weight: 600; }

/* Help category icons: black in light mode, white in dark mode */
.help-cat-title { display: flex; align-items: center; gap: 12px; }
.help-cat-icon { display: inline-flex; flex: none; color: #000; }
.help-cat-icon svg { width: 30px; height: 30px; }
:root[data-theme="dark"] .help-cat-icon { color: #fff; }

/* Help center accordion + article pages (Airbnb-style structure) */
.help-acc-list { border-bottom: 1px solid var(--line); }
.help-acc { border-top: 1px solid var(--line); }
.help-acc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 2px; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; color: var(--ink); }
.help-acc-name { font-size: 1.12rem; font-weight: 700; }
.help-acc-count { color: var(--muted, #5F6F7A); font-size: .88rem; font-weight: 500; }
.help-acc-chev { margin-left: auto; display: inline-flex; color: var(--muted, #5F6F7A); transition: transform .25s ease; }
.help-acc-chev svg { width: 22px; height: 22px; }
.help-acc.open .help-acc-chev { transform: rotate(180deg); }
.help-acc-panel { display: none; padding-bottom: 10px; }
.help-acc.open .help-acc-panel { display: block; }
.help-row { display: flex; align-items: center; gap: 14px; padding: 15px 2px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.help-row:first-child { border-top: 0; }
.help-row-title { font-weight: 600; font-size: 1rem; }
.help-row:hover .help-row-title { color: var(--blue, #2B9DEE); }
.help-row-chev { margin-left: auto; display: inline-flex; color: var(--muted, #5F6F7A); }
.help-row-chev svg { width: 20px; height: 20px; }
.help-row-icon svg { width: 24px; height: 24px; }
.help-row-cat { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5F6F7A); margin-bottom: 2px; }
.help-article-head { padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.help-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted, #5F6F7A); margin-bottom: 22px; }
.help-breadcrumb a { color: var(--ink); text-decoration: none; font-weight: 500; }
.help-breadcrumb a:hover { text-decoration: underline; }
.help-breadcrumb-here { color: var(--muted, #5F6F7A); }
.help-article-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin: 0 0 12px; }
.help-article-dek { font-size: 1.1rem; color: var(--muted, #5F6F7A); max-width: 720px; margin: 0; }
.topic-list { border-bottom: 1px solid var(--line); }
.topic-row { display: block; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; }
.topic-eyebrow { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #5F6F7A); margin-bottom: 6px; }
.topic-title { display: block; font-size: 1.12rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-bottom: 6px; }
.topic-row:hover .topic-title { color: var(--blue, #2B9DEE); }
.topic-dek { display: block; color: var(--muted, #5F6F7A); line-height: 1.55; }
