/* ==========================================================================
   Tub Inlay Pros — shared styles for Blueprint Precision secondary pages
   (get-a-quote, blog, contact, city landing pages) — companion to index.html
   ========================================================================== */

:root {
  --paper:    #f5f8ff;
  --paper-2:  #e9effc;
  --white:    #ffffff;
  --navy:     #0a1f44;
  --navy-2:   #10294f;
  --navy-3:   #16346b;
  --blue:     #2458e6;
  --blue-d:   #1a46c2;
  --sky:      #d9e5ff;
  --yellow:   #ffc933;
  --yellow-d: #eeb418;
  --ink:      #0f1c33;
  --ink-soft: #4c5b77;
  --line:     rgba(15, 28, 51, 0.12);
  --line-nav: rgba(217, 229, 255, 0.16);
  --font: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

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

img, svg { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }
a { color: var(--blue); }

::selection { background: rgba(255, 201, 51, 0.55); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; }

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sect-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  margin-bottom: 14px;
}
.sect-index::before { content: ""; width: 34px; height: 2px; background: var(--yellow); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 15px 30px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-d); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 201, 51, 0.35); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(36, 88, 230, 0.35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(10, 31, 68, 0.3); }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 68, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-nav);
}
.nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand svg { width: 38px; height: 38px; }
.brand em { color: var(--yellow); font-style: normal; }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: rgba(217, 229, 255, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow); }
.nav-links a[aria-current="page"] { color: var(--yellow); }
.nav-cta { padding: 12px 24px; font-size: 0.94rem; }
.nav-links a.nav-cta { color: var(--navy); }

/* ---------- Page hero strip ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 85% 0%, rgba(36, 88, 230, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: clamp(52px, 8vh, 90px) 0 clamp(48px, 7vh, 80px);
}
.page-hero .wrap { position: relative; z-index: 1; }

/* Opt-in scenic backdrop: <div class="page-hero-bg"> with an SVG scene or <img> */
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg svg, .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(97deg, var(--navy) 18%, rgba(10, 31, 68, 0.9) 44%, rgba(10, 31, 68, 0.42) 78%, rgba(10, 31, 68, 0.6) 100%),
    linear-gradient(180deg, rgba(10, 31, 68, 0.35) 0%, rgba(10, 31, 68, 0.05) 50%, rgba(10, 31, 68, 0.45) 100%),
    radial-gradient(70% 120% at 85% 0%, rgba(36, 88, 230, 0.25), transparent 60%);
}
@media (max-width: 700px) {
  .page-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(10, 31, 68, 0.9) 0%, rgba(10, 31, 68, 0.62) 55%, rgba(10, 31, 68, 0.5) 100%),
      radial-gradient(90% 45% at 85% 0%, rgba(36, 88, 230, 0.25), transparent 62%);
  }
}
.page-hero .mono-eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.page-hero .mono-eyebrow::before { content: "//"; opacity: 0.7; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .lede { color: rgba(217, 229, 255, 0.82); font-size: 1.12rem; max-width: 58ch; margin: 0; }

/* ---------- Sections ---------- */

.sect { padding: clamp(56px, 8vh, 90px) 0; }

/* ---------- Info cards (contact / quote pages) ---------- */

.info-cards { display: grid; gap: 16px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.info-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--sky);
  color: var(--blue);
  display: grid; place-items: center;
}
.info-icon svg { width: 24px; height: 24px; }
.info-card h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.info-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.info-card a { font-weight: 700; text-decoration: none; }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Two-column layouts ---------- */

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

/* ---------- Form ---------- */

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: 12px;
  padding: clamp(26px, 4vw, 42px);
  position: relative;
  display: grid; gap: 16px;
  box-shadow: 0 32px 70px rgba(15, 28, 51, 0.12);
}
.form .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 7px; }
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 14px 16px;
  transition: border-color 0.25s, background-color 0.25s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.form input.is-invalid, .form textarea.is-invalid { border-color: #d43c3c; background: #fdeeee; }
.form-note { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.form-note a { font-weight: 700; }
.form-success {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px;
  padding: 30px;
  background: var(--white);
  border-radius: 8px;
  z-index: 2;
}
.form-success.is-shown { display: flex; }
.form-success h3 { color: var(--blue); margin: 0; }
.form-success p { color: var(--ink-soft); margin: 0; max-width: 40ch; }

.file-drop { position: relative; }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop-face {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed rgba(36, 88, 230, 0.5);
  border-radius: 6px;
  background: var(--sky);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 14px;
  transition: border-color 0.25s;
}
.file-drop:hover .file-drop-face,
.file-drop input:focus-visible + .file-drop-face { border-color: var(--blue); }
.file-drop.is-filled .file-drop-face { border-style: solid; }

/* ---------- Blog / field notes ---------- */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.post:hover { transform: translateY(-5px); box-shadow: 0 24px 52px rgba(15, 28, 51, 0.12); border-color: rgba(36, 88, 230, 0.4); }
.post--featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(36, 88, 230, 0.4), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  border: 0;
  border-top: 6px solid var(--yellow);
}
.post--featured h2 { color: #fff; max-width: 26ch; }
.post--featured p { color: rgba(226, 235, 253, 0.92); max-width: 68ch; }
.post-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.post--featured .post-tag { color: var(--yellow); }
.post h3 { margin-bottom: 10px; }
.post p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.post-meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  margin-top: 16px;
}
.post--featured .post-meta { color: rgba(217, 229, 255, 0.65); border-top-color: rgba(217, 229, 255, 0.25); }

/* ---------- Before / After comparison ---------- */

.ba { max-width: 920px; margin: 30px auto 0; }
.ba-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 64px rgba(15, 28, 51, 0.12);
}
.ba-frame svg, .ba-frame img { display: block; width: 100%; height: auto; }
.ba-pane--after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba-chip {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  pointer-events: none;
}
.ba-chip--after { left: auto; right: 14px; background: var(--yellow); color: var(--navy); }
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: var(--yellow);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}
.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  border: 3px solid var(--navy);
  display: grid;
  place-items: center;
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 3;
}
.ba-caption { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars { color: var(--yellow-d); letter-spacing: 3px; font-size: 0.95rem; }
.review blockquote { margin: 0; font-size: 0.97rem; color: var(--ink); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; }
.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.82rem;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.review figcaption strong { display: block; }
.review figcaption span:last-child { color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }

/* Two-column FAQ: wrap two .faq lists in .faq-grid — each column expands independently */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  align-items: start;
}
.faq-grid .faq { max-width: none; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  padding: 19px 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .fx {
  font-family: var(--mono);
  color: var(--blue);
  font-weight: 600;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary .fx { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--yellow);
  border-top: 3px solid var(--navy);
  padding: clamp(44px, 6vh, 64px) 0;
  color: var(--navy);
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy); margin-bottom: 6px; }
.cta-band p { margin: 0; font-weight: 600; opacity: 0.8; }

/* ---------- Legal / policy documents (privacy, terms, warranty) ---------- */

.doc-hero .wrap { max-width: 884px; }

.doc {
  max-width: 820px;
  margin: 0 auto clamp(70px, 9vh, 110px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 26px 60px rgba(15, 28, 51, 0.08);
}
.doc .updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 18px;
  margin: 0 0 28px;
}
.doc h2 {
  font-size: 1.28rem;
  margin: 34px 0 12px;
  padding-top: 4px;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 8px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--blue); font-weight: 600; }
.doc a:hover { color: var(--blue-d); }
.doc .highlight {
  background: var(--sky);
  border-left: 5px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.doc .highlight p { margin: 0; color: var(--ink); }
.doc .highlight p + p { margin-top: 10px; }

/* ---------- Footer ---------- */

.foot {
  background:
    radial-gradient(55% 85% at 88% 0%, rgba(36, 88, 230, 0.3), transparent 58%),
    linear-gradient(180deg, var(--navy), #071734);
  color: rgba(217, 229, 255, 0.72);
  padding: 44px 0 56px;
  font-size: 0.9rem;
}
.foot-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.foot a { color: rgba(217, 229, 255, 0.72); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--yellow); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; }
  .posts, .reviews { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links a:not(.btn) { display: none; }
  .form .duo { grid-template-columns: 1fr; }
  .posts, .reviews { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .cta-band .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
