/* Breaking-news story page (site root) only. Loads after styles.css. */

.news-strip {
  justify-content: space-between;
  padding: 0.45rem 0.9rem;
}
.logo-xs {
  height: 26px;
  margin: 0;
  background: #fff;
  border-radius: 6px;
  padding: 2px 6px;
}
.news-strip-area { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.page-news .hook { display: none !important; }
.news-hero { padding: 0 0 0.5rem; }

/* Photo placeholders: obviously placeholders */
.photo-ph {
  position: relative;
  background: repeating-linear-gradient(135deg, #eef1f4 0 14px, #e3e8ed 14px 28px);
  border: 2px dashed #9aa7b3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  color: #5f6b76;
  text-align: center;
}
.photo-ph--a { height: 430px; border-left: 0; border-right: 0; border-top: 0; }
.photo-ph--b { height: 400px; margin: 0 1.1rem; border-radius: 18px; }
.photo-ph-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 270px;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}
.photo-ph-round { border: 2px dashed #9aa7b3; background: #eef1f4; }
.finn-card .owner-photo-label { font-size: 7.5px; text-align: center; line-height: 1.2; padding: 0.15rem; }
.ph-text { color: #6b7681; font-style: italic; }

/* News tag */
.update-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #C8102E;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.7rem 0.35rem 1.55rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}
.update-tag::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.update-tag--static { position: relative; top: auto; left: auto; display: inline-block; margin-bottom: 0.6rem; }

.story-1 { padding-bottom: 0.4rem; }
.story-h1 {
  font-size: 1.75rem;
  text-align: left;
  margin: 0.9rem 1.1rem 0.45rem;
}
.story-sub {
  margin: 0 1.1rem 0.5rem;
  font-size: 1.08rem;
  color: var(--ink);
}
.scroll-cue {
  /* 13px padding on top and bottom makes the hit box >= 44px (content is 1.45 * 0.8rem).
     margin-top is -13px (not 0.4rem - 13px) because the cue's old 0.4rem top margin
     collapsed with .story-sub's 0.5rem bottom margin. The bottom margin did not
     collapse, so it stays 0.9rem - 13px. Positions below do not move. */
  box-sizing: content-box;
  display: block;
  width: 100%;
  margin: -13px 0 calc(0.9rem - 13px);
  padding: 13px 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}
.scroll-cue:focus {
  outline: none;
}
.scroll-cue:focus-visible {
  outline: 2px solid var(--ink, #11304B);
  outline-offset: 2px;
}
.scroll-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 0 0 3px 6px;
}

.story-2 { padding-top: 0.6rem; border-top: 1px solid var(--line); }
.trophy-line {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.9rem 1.1rem 0.6rem;
}
.trophy-line .aside {
  display: block;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0;
  color: var(--navy-2);
  margin-top: 0.2rem;
}
.effort-intro { margin: 0 1.1rem 0.35rem; font-weight: 700; font-size: 1.05rem; }
.draft-flag--inline {
  margin: 0 1.1rem 0.45rem;
  display: inline-block;
  background: #FFF4E5;
  border: 1.5px dashed #D9822B;
  color: var(--draft);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.weekly-list { list-style: none; margin: 0 1.1rem 0.8rem; padding: 0; }
.weekly-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.38rem 0;
  border-bottom: 1px solid #EEF2F6;
}
.weekly-list li:last-child { border-bottom: 0; }
.weekly-list .ok-check { margin-top: 0; }
.bridge { margin: 0 1.1rem 0.9rem; font-size: 1.05rem; }
.bridge strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.15rem; }

/* Loading title */
.load-title { font-size: 1.45rem; margin: 0.2rem 0 0.4rem; }

/* Contact */
.finn-card { margin: 0.6rem 0 0.4rem; }
.page-news .contact .summary { margin-top: 0.4rem; }

/* Thanks */
.caller-num { font-weight: 700; color: var(--ink); }
.page-news .caller-photo span { font-size: 6.5px; text-align: center; line-height: 1.2; }

/* Real photos (Finn, 18 Nov). Crops via object-position; boxes keep the placeholder sizes. */
.story-photo { position: relative; overflow: hidden; background: #cfe3ec; }
.story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-photo--a { height: 430px; }
.story-photo--a img { object-position: 50% 80%; }
.story-photo--b { height: 400px; margin: 0 1.1rem; border-radius: 18px; }
.story-photo--b img { object-position: 50% 30%; }
.owner-photo--img, .caller-photo--img { overflow: hidden; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); background: #d7e3ee; }
.owner-photo--img img, .caller-photo--img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.finn-card .finn-promise { margin: 0.3rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--ink, #11304B); font-weight: 400; }
.contact .consent-row { font-size: 13px; line-height: 1.4; }

/* Above-ground not-served screen */
.above-out { text-align: center; padding-top: 28px; }
.above-out h2 { margin-top: 18px; }
.above-out .back-link { margin-top: 22px; background: none; border: 0; color: #0b5c8a; font: inherit; font-weight: 600; text-decoration: underline; padding: 14px 8px; min-height: 48px; cursor: pointer; }

/* Real review (Justina P., Google; Finn OK'd 18 Nov) */
.review-quote { margin: 4px 0 14px; padding: 10px 14px; background: #f3f7fb; border-radius: 12px; }
.review-quote .review-stars { margin: 0 0 2px; color: #f5a623; font-size: 15px; letter-spacing: 2px; }
.review-quote blockquote { margin: 0; font-size: 15px; line-height: 1.4; color: #11304B; font-style: italic; }
.review-quote figcaption { margin-top: 4px; font-size: 13px; color: #5b6b7b; }

.call-now-q { margin: 0 0 10px; font-weight: 700; font-size: 18px; color: #11304B; text-align: center; }


/* Social section on thank-you (Finn, 18 Nov) */
.social-box { margin: 22px 0 8px; padding: 18px 16px; border-radius: 16px; background: #f3f7fb; text-align: center; }
.social-title { margin: 0; font-size: 20px; font-weight: 800; color: #11304B; }
.social-sub { margin: 4px 0 14px; font-size: 15px; color: #5b6b7b; }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 12px; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.social-btn svg { width: 22px; height: 22px; }
.social-btn--fb { background: #1877F2; }
.social-btn--ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }

.legal .foot-logo { display: block; height: 44px; width: auto; margin: 4px auto 10px; }

/* ---- Responsive layout: phones stay mobile-first; tablet/desktop drop the 390px frame. ---- */

/* Below 720px the .story-copy wrapper is layout-transparent so pacing matches live. */
@media (max-width: 719px) {
  .story-copy { display: contents; }
}

/* Desktop call controls: the number is the action, because most computers can't tap-to-call. */
.label-desktop { display: none; }
.label-phone { display: inline; }
@media (min-width: 1024px) {
  .label-phone { display: none; }
  .label-desktop { display: inline; }
  .call-bar-text strong { font-size: 1.15rem; }
  .call-bar-text .nowrap { font-size: 1.2rem; }
  .call-bar-go { font-size: 1.05rem; padding: 12px 18px; white-space: nowrap; }
}

/* Tablet and up: two-column story so the offer (and on taller screens, the quiz) sit in the first view. */
@media (min-width: 720px) {
  .news-hero { padding-bottom: 0.75rem; }
  .story-1,
  .story-2 {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    column-gap: 1.5rem;
    align-items: center;
  }
  .story-photo--a {
    grid-column: 1;
    grid-row: 1;
    height: min(420px, 46vh);
    min-height: 300px;
    max-height: 480px;
    align-self: stretch;
  }
  .story-photo--a img { height: 100%; }
  .scroll-cue { display: none; }
  .story-1 .story-copy,
  .story-2 .story-copy {
    grid-column: 2;
    padding-right: 1.25rem;
  }
  .story-h1 {
    margin: 0 0 0.4rem;
    font-size: 2.05rem;
    text-align: left;
  }
  .story-sub {
    margin: 0;
    font-size: 1.15rem;
  }
  .story-2 { padding-top: 1rem; border-top: 1px solid var(--line); }
  .story-photo--b {
    grid-column: 1;
    grid-row: 1;
    height: min(320px, 34vh);
    min-height: 240px;
    max-height: 380px;
    margin: 0 0 0 1.1rem;
    align-self: stretch;
  }
  .story-photo--b img { height: 100%; }
  .trophy-line {
    margin: 0 0 0.45rem;
    font-size: 1.6rem;
  }
  .bridge { margin: 0; font-size: 1.1rem; }
  .bridge strong { font-size: 1.35rem; }
  .quiz-card--light h2,
  .contact h2 { font-size: 1.7rem; }
  .tiles { gap: 0.85rem; }
  .tile { min-height: 140px; }
}

@media (min-width: 720px) and (max-height: 850px) {
  .story-photo--a { height: 330px; min-height: 0; max-height: 330px; }
  .story-photo--b { height: 230px; min-height: 0; max-height: 230px; }
  .story-h1 { margin-top: 0.55rem; font-size: 1.85rem; }
  .story-2 { padding-top: 0.7rem; }
}

@media (min-width: 900px) {
  .story-h1 { font-size: 2.2rem; }
}
@media (min-width: 900px) and (min-height: 851px) {
  .story-photo--a { height: 440px; max-height: 440px; }
  .story-photo--b { height: 320px; max-height: 320px; }
}

/* Keep the form a comfortable measure on the wide column. */
@media (min-width: 720px) {
  .contact,
  .quiz-card--light,
  .thanks { max-width: 680px; margin-left: auto; margin-right: auto; width: 100%; }
  .flow-chrome { max-width: 680px; margin-left: auto; margin-right: auto; width: 100%; }
  .page-news .quiz-card:not(.quiz-card--light) {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Proof section (PROPOSAL ONLY, 19 Nov). Same tokens as the story. ---- */
.proof { margin: 0.2rem 1.1rem 0.4rem; padding: 1rem 1rem 0.9rem; background: #f3f7fb; border-radius: 18px; }
.proof-kicker { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1rem; }
.proof-stat { background: #fff; border-radius: 14px; padding: 0.7rem 0.75rem; box-shadow: 0 1px 0 var(--line); }
.proof-num { display: block; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; color: var(--navy); }
.proof-label { display: block; margin-top: 0.3rem; font-size: 0.92rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.proof-h { margin: 0 0 0.35rem; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); }
.proof-list { margin: 0 0 1rem; }
.proof-list li { flex-wrap: wrap; }
.proof-review { position: relative; margin: 0 0 0.6rem; padding: 0.75rem 0.9rem; background: #fff; border-radius: 12px; }
.proof-review .review-stars { margin: 0 0 2px; color: #f5a623; font-size: 15px; letter-spacing: 2px; }
.proof-review blockquote { margin: 0; font-size: 15px; line-height: 1.4; color: #11304B; font-style: italic; }
.proof-review figcaption { margin-top: 4px; font-size: 13px; color: #5b6b7b; }
.story-go { padding-top: 0.4rem; }
.bridge--go { margin-top: 0.6rem; }
@media (min-width: 720px) {
  .proof { max-width: 680px; margin: 0.6rem auto 0.4rem; }
  .story-go { display: block; max-width: 680px; margin: 0 auto; }
  .story-go .story-copy { padding: 0 1.1rem; }
}
.proof-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.8rem; }
.proof-list li { font-size: 0.98rem; padding: 0.32rem 0; }
.proof-list li.wide { grid-column: 1 / -1; }

.proof-review { box-shadow: 0 1px 0 var(--line); padding: 0.65rem 0.85rem; }
.proof-review blockquote { font-size: 14.5px; line-height: 1.38; }

.proof-vet { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; }
.vet-icon { width: 30px; height: 30px; flex: 0 0 auto; }
.proof-vet-text { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--navy); line-height: 1.2; }

/* ---- CLARITY FIXES (proposal, 20 Nov) ---- */
/* P1: first-screen CTA. Keeps the story cue under it. */
.story-cta { display: flex; width: calc(100% - 2.2rem); margin: 0.2rem 1.1rem 0.15rem; min-height: 50px; padding: 0.7rem 0.8rem; font-size: 1rem; line-height: 1.2; box-shadow: 0 4px 12px rgba(17,48,75,0.22); }
.story-cta + .scroll-cue { margin-top: -6px; }
@media (min-width: 720px) { .story-cta { width: auto; margin: 0.9rem 0 0; padding: 0.8rem 1.2rem; } }
/* P2: tapped photo / logo respond (they scroll), so no grey tap flash. */
.story-photo--a, #top-strip .logo-xs { -webkit-tap-highlight-color: transparent; cursor: pointer; }
/* P3: water condition, tap one of four. 2 x 2 grid, 56px+ tall targets. */
.water-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin: 0.15rem 0 0.2rem; }
.water-opt { appearance: none; -webkit-appearance: none; display: flex; align-items: center; gap: 0.55rem; min-height: 56px; padding: 0.55rem 0.65rem; border: 0; border-radius: 14px; background: var(--tile); color: var(--navy); font: inherit; font-weight: 700; font-size: 0.98rem; line-height: 1.2; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px #DCE4EC; }
.water-opt.is-picked { box-shadow: inset 0 0 0 3px var(--success); }
.water-swatch { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d4de; }

/* ---- STICKY CALL BUTTON (20 Nov). Phones only (768px and under). Floating pill, bottom right. ---- */
.sticky-call { display: none; }
@media (max-width: 768px) {
  .sticky-call {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900;
    display: inline-flex; align-items: center; gap: 0.45rem;
    min-height: 52px; padding: 0 1.15rem 0 1rem; border-radius: 999px;
    background: #2fb36b; color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1.05rem; line-height: 1; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(11, 42, 74, 0.28), 0 2px 4px rgba(11, 42, 74, 0.16);
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.25);
    transform: translateY(0); opacity: 1;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0s;
  }
  .sticky-call:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(11, 42, 74, 0.28); }
  .sticky-call.is-away { transform: translateY(16px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s; }
  .sticky-call-icon { flex: none; width: 20px; height: 20px; }
  /* Only enough room for the footer's last links to scroll clear of the button (app.js sets it). */
  body.has-sticky-call .phone { padding-bottom: var(--sticky-call-space, 0px); }
}
@media (prefers-reduced-motion: reduce) { .sticky-call, .sticky-call.is-away { transition: none; } }
