/* Homepage only: Thermador-style top blocks (draft 2026-10-22).
   Loaded last on index.html, after tesla-home.css and thermador-site.css. */

.tp-home body.va {
  --va-paper: #fff; --va-ink: #00132d; --va-ink-2: #26344a; --va-muted: #5b6675;
  --va-line: #dfe6ee; --va-pill-line: #dfe6ee; --va-accent: #002f6d; --va-blue: #002f6d;
  --va-head: "Baskervville", "Libre Baskerville", Georgia, serif;
  --font-head: "Baskervville", "Libre Baskerville", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-body);
}
.tp-home .va h1, .tp-home .va h2 { font-family: var(--font-head); font-weight: 400; }
html.tp-home { scroll-snap-type: none; }

.th-wrap { max-width: 1304px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

.th-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 28px;
  background: #002f6d; color: #fff !important; border: 0; text-decoration: none !important;
  font: 600 .8rem/1 "Hanken Grotesk", Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s;
}
.th-btn:hover { background: #00224d; }
.th-btn-ghost { background: rgba(255, 255, 255, .92); color: #002f6d !important; }
.th-btn-ghost:hover { background: #d4e6ff; }

/* Hero: full-bleed photo, centered serif headline */
.th-hero { position: relative; min-height: min(86vh, 760px); display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.th-hero picture, .th-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 19, 45, .55), rgba(0, 19, 45, .28) 45%, rgba(0, 19, 45, .55)); }
.th-hero-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; padding: 130px 24px 64px; max-width: 980px; }
.tp-home .va .th-hero h1 { color: #fff !important; font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.06; margin: 0; }
.th-hero-sub { font-size: 1.15rem; max-width: 52ch; margin: 0; color: rgba(255, 255, 255, .95); }
.th-hero-sub strong { color: #fff; }
.th-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.th-hero .hero-callback { margin-top: 8px; background: rgba(0, 19, 45, .55); padding: 14px 16px; width: min(520px, 100%); text-align: left; border-radius: 0; }
.th-hero .hero-callback-title { color: #fff; font-weight: 500; }
.th-hero .hero-callback input { border-radius: 0 !important; }
.th-hero .hero-callback button { background: #002f6d !important; color: #fff !important; border-radius: 0 !important; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; }

/* Intro + appliance grid */
.th-intro { padding: 88px 0 72px; background: #fff; }
.th-intro h2, .th-kitchens h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0; color: #00132d; }
.th-intro > .th-wrap > p, .th-lead { margin: 20px 0 0; max-width: 62ch; font-size: 1.06rem; color: #26344a; }
.th-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 52px 24px; margin-top: 60px; }
.th-cat { display: grid; justify-items: center; gap: 18px; text-decoration: none; text-align: center; color: #00132d; }
.th-cat svg { width: 104px; height: 104px; stroke: #00132d; stroke-width: 1.4; fill: none; transition: transform .3s; }
.th-cat:hover svg { transform: translateY(-4px); }
.th-cat span { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* Three photo tiles */
.th-tiles-sec { padding: 0 0 88px; background: #fff; }
.th-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.th-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 16px; padding: 32px 20px; text-align: center; text-decoration: none; }
.th-tile picture, .th-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.th-tile:hover img { transform: scale(1.04); }
.th-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0, 0, 0, 0) 45%, rgba(0, 19, 45, .75)); }
.th-tile > h3, .th-tile > .th-btn { position: relative; z-index: 2; }
.tp-home .va .th-tile h3 { font-family: "Hanken Grotesk", Arial, sans-serif !important; font-weight: 500; font-size: 1.35rem; color: #fff; margin: 0; }
.th-tile .th-btn { min-height: 38px; padding: 0 18px; font-size: .74rem; }

/* Two kitchens: alternating photo and text */
.th-kitchens { padding: 0 0 96px; background: #fff; }
.th-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-top: 52px; }
.th-split + .th-split { margin-top: 24px; }
.th-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.th-split-txt { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 40px clamp(24px, 5vw, 72px); }
.tp-home .va .th-split-txt h3 { font-family: "Baskervville", Georgia, serif !important; font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0; color: #00132d; }
.th-split-txt p { max-width: 46ch; margin: 0; color: #5b6675; }
.th-rev picture { order: 2; }

/* Lower sections: Thermador palette on the existing blocks */
.tp-home .va .section h2, .tp-home .va .va-picker h2, .tp-home .va .va-fridge h2, .tp-home .va .va-steps h2 { font-family: "Baskervville", Georgia, serif !important; font-weight: 400 !important; color: #00132d; }
.tp-home .va-trust, .tp-home .va-topbar { background: #f5f8fa !important; color: #00132d; border-color: #dfe6ee !important; }
.tp-home .va-tab[aria-pressed="true"] { background: #d4e6ff !important; color: #00132d !important; border-radius: 0 !important; }
.tp-home .va-tab { border-radius: 0 !important; }
.tp-home .va-cta { background: #00132d !important; }
.tp-home .va-cta h2 { color: #fff !important; }

@media (max-width: 900px) {
  .th-cats { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .th-cat svg { width: 80px; height: 80px; }
  .th-tiles, .th-split { grid-template-columns: 1fr; }
  .th-rev picture { order: 0; }
  .th-intro { padding: 64px 0 56px; }
}
@media (max-width: 560px) {
  .th-hero-in { padding: 110px 16px 40px; }
  .th-btns { width: 100%; flex-direction: column; }
  .th-btns .th-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .th-cat svg, .th-tile img { transition: none; } }

/* Header stays white over the hero, so its text stays dark (overrides tesla-home.css top state) */
.tp-home:not(.tp-scrolled) .va .site-nav > a,
.tp-home:not(.tp-scrolled) .va .site-nav .nav-drop-btn,
.tp-home:not(.tp-scrolled) .va .btn-call-sm,
.tp-home:not(.tp-scrolled) .va .btn-sched-sm,
.tp-home:not(.tp-scrolled) #ao-chat-top { color: #00132d !important; }
.tp-home:not(.tp-scrolled) .logo-tagline-x { color: #5b6675 !important; border-left-color: #c9a24a !important; }
.tp-home:not(.tp-scrolled) .nav-burger span { background: #00132d !important; }
.th-tile > .th-tile-sub { position: relative; z-index: 2; margin: -8px 0 0; color: rgba(255, 255, 255, .9); font-size: .95rem; }
/* Team tile: four photos from Tommy's Telegram 2x2 edge to edge, text over the bottom row (Tommy 2026-10-24) */
.th-team-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #00132d; }
.th-team-grid picture, .th-team-grid img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.th-team::before { background: linear-gradient(rgba(0, 19, 45, 0) 50%, rgba(0, 19, 45, .82) 78%); }
/* Hero slider: 4 photos crossfade with their headlines; headlines share one grid cell so the hero never jumps */
.th-slides, .th-slide, .th-slide img { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-slide img { object-fit: cover; }
.th-slide { opacity: 0; transition: opacity 1.2s ease; }
.th-slide.is-on { opacity: 1; }
.th-heads { display: grid; }
.th-head { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.th-head.is-on { opacity: 1; visibility: visible; }
.tp-home .va .th-hero .th-head { color: #fff !important; font-family: "Baskervville", Georgia, serif; font-weight: 400; font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.06; margin: 0; }
.th-dots { display: flex; gap: 10px; }
.th-dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.th-dots button[aria-pressed="true"] { background: #fff; }
.th-dots button::before { content: ""; display: block; height: 24px; margin-top: -10px; } /* bigger tap target */
@media (prefers-reduced-motion: reduce) { .th-slide, .th-head { transition: none; } }
/* keep the holiday subject in frame on narrow screens: turkey, jack-o-lantern, tree with cookies */
.th-slide:nth-child(1) img { object-position: 55% center; }
.th-slide:nth-child(2) img { object-position: 22% center; }
/* Ratings strip under the hero: big clickable cards, rating only, no review counts (Tommy 2026-10-24) */
/* Official brand logos, 2026-10-25: minmax(0,1fr) + nowrap link so the row can't be pushed apart */
.th-reviews { background: #fff; padding: 28px 0 8px; }
.th-rv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.th-rv { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 18px 16px 16px; border: 1px solid #dfe6ee; background: #fff; text-decoration: none !important; color: #00132d; transition: box-shadow .2s, transform .2s; }
.th-rv:hover { box-shadow: 0 8px 24px rgba(0, 19, 45, .10); transform: translateY(-2px); }
.th-rv-top { display: flex; align-items: center; min-width: 0; height: 34px; }
/* one fixed box per logo, object-fit keeps each brand mark in its own aspect ratio */
.th-rv-logo { display: block; height: 26px; width: auto; max-width: min(82%, 140px); object-fit: contain; object-position: left center; }
.th-rv-angi { height: 32px; max-width: min(46%, 80px); }
.th-rv-homeadvisor { height: 27px; max-width: min(94%, 158px); }
.th-rv-thumbtack, .th-rv-nextdoor { height: 22px; max-width: min(76%, 132px); }
.th-rv-rate { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.th-rv-score { font-family: "Baskervville", Georgia, serif; font-size: 2.2rem; line-height: 1; }
.th-rv-score.th-rv-word { font-size: 1.3rem; padding-top: 8px; }
.th-rv-stars { color: #e8a317; font-size: 1rem; letter-spacing: 1px; }
.th-rv-link { font-size: .8rem; font-weight: 600; color: #002f6d; white-space: nowrap; }
@media (max-width: 1240px) { .th-rv { padding: 16px 12px 14px; } .th-rv-score { font-size: 1.9rem; } }
@media (max-width: 1100px) { .th-rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .th-rv { padding: 18px 16px 16px; } .th-rv-score { font-size: 2.2rem; } }
@media (max-width: 560px) { .th-rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .th-rv { padding: 14px 12px; } .th-rv-score { font-size: 1.8rem; } .th-rv-score.th-rv-word { font-size: 1.05rem; padding-top: 10px; } .th-rv-link { font-size: .75rem; } }
@media (max-width: 400px) { .th-rv { padding: 12px 10px; } .th-rv-rate { flex-wrap: wrap; } .th-rv-score { font-size: 1.5rem; } .th-rv-score.th-rv-word { font-size: .95rem; padding-top: 8px; } .th-rv-stars { font-size: .78rem; letter-spacing: 0; } .th-rv-link { font-size: .72rem; } }
