/* =========================================================================
   TVMountView — stylesheet
   Signature motif: "level lines" (tick-marked rules) evoking a spirit level.
   Teal carries structure; tangerine is the single bold accent.
   ========================================================================= */

:root {
  --teal:      #006d77;
  --teal-deep: #063b40;
  --aqua:      #83c5be;
  --alice:     #edf6f9;
  --silk:      #ffddd2;
  --tangerine: #e29578;

  --ink:   #0c2b2e;      /* body text */
  --muted: #4a6b6d;      /* secondary text */
  --line:  #cfe3e4;      /* hairlines on light */
  --paper: #ffffff;

  --maxw: 1140px;
  --radius: 10px;
  --radius-lg: 20px;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --shadow: 0 18px 40px -24px rgba(6, 59, 64, .55);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--alice);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-deep); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.08;
  color: var(--teal-deep);
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.45rem); }
p { margin: 0 0 1rem; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.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;
}
.skip {
  position: absolute; left: .5rem; top: -3rem; z-index: 100;
  background: var(--teal); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: .5rem; color: #fff; }

:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 2px; border-radius: 4px; }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 246, 249, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--teal); }
.brand-logo { width: 42px; height: 42px; object-fit: contain; display: block; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
/* wordmark colours mirror the logo: teal "TVMount" + terracotta "View" */
.bn-teal { color: var(--teal); }
.bn-teal-light { color: #fff; }
.bn-accent { color: #c25a35; }
.site-foot .bn-accent { color: var(--tangerine); }

.primary-nav ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  text-decoration: none; color: var(--teal-deep); font-weight: 500;
  transition: background .18s, color .18s;
}
.primary-nav a:hover { background: var(--aqua); color: var(--teal-deep); }
.primary-nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.nav-cta a { padding: .5rem 1.1rem; font-size: .95rem; }
.nav-cta a:hover { background: #d9825f; }
@media (min-width: 681px) { .nav-cta { margin-left: .4rem; } }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--teal-deep); transform: translate(-50%, -50%); transition: .2s;
}
.nav-toggle-bars::before { transform: translate(-50%, -7px); }
.nav-toggle-bars::after  { transform: translate(-50%, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- level line: the signature divider ---------- */
.level-line {
  height: 14px; margin: 0; border: 0;
  background-image:
    linear-gradient(var(--aqua), var(--aqua)),           /* the rule */
    repeating-linear-gradient(90deg, var(--teal) 0 1px, transparent 1px 28px); /* ticks */
  background-size: 100% 2px, 100% 10px;
  background-position: left center, left bottom;
  background-repeat: no-repeat, repeat-x;
  opacity: .8;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .18s, border-color .18s;
}
.btn-primary { background: var(--tangerine); color: var(--teal-deep); }
.btn-primary:hover { background: #d9825f; color: var(--teal-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* ---------- sections ---------- */
section { padding-block: clamp(3rem, 2rem + 5vw, 5.5rem); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker {
  display: inline-block; font-family: var(--f-display); font-weight: 700;
  color: var(--teal); font-size: .95rem; margin-bottom: .6rem;
  border-left: 3px solid var(--tangerine); padding-left: .6rem;
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--teal-deep); }
.hero .lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--muted); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-stats dt { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; color: var(--teal); line-height: 1; }
.hero-stats dd { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; max-width: 18ch; }

.hero-art {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* cards vary by role, not identical boxes */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; position: relative;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-num {
  font-family: var(--f-display); font-weight: 800; color: var(--aqua);
  font-size: 2.4rem; line-height: 1; display: block; margin-bottom: .6rem;
}
.card-icon { color: var(--teal); margin-bottom: .9rem; }

/* feature list with level-tick bullets */
.ticklist { list-style: none; padding: 0; margin: 0; }
.ticklist li { position: relative; padding-left: 1.9rem; margin-bottom: .85rem; color: var(--ink); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border: 2px solid var(--teal);
  border-radius: 3px; background: var(--silk);
}

/* ---------- panels / bands ---------- */
.band-teal { background: var(--teal-deep); color: var(--alice); }
.band-teal h2, .band-teal h3 { color: #fff; }
.band-teal p { color: #bfe0dd; }
.band-teal .kicker { color: var(--aqua); border-color: var(--tangerine); }

.band-silk { background: var(--silk); }

.callout {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--tangerine);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.5rem 0;
}
.callout strong { color: var(--teal-deep); }

/* ---------- FAQ ---------- */
.faq { max-width: 100%; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); margin-bottom: .9rem; padding: 0 1.3rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 0; font-family: var(--f-display);
  font-weight: 700; color: var(--teal-deep); display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tangerine); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { border-color: var(--aqua); }
.faq p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------- steps (real sequence → numbers allowed) ---------- */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; color: var(--teal);
  background: var(--alice); border-radius: 8px; width: 48px; height: 48px;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- contact ---------- */
.form-grid { display: grid; gap: 1.1rem; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--teal-deep); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,109,119,.15); }

/* ---------- article / policy pages ---------- */
/* Full container width (paragraphs stay readable via a generous measure). */
.article { max-width: 100%; }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; color: var(--ink); max-width: 95ch; }
.article p { max-width: 95ch; }
.meta { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }

.page-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 4rem); }
.page-hero .kicker { margin-bottom: 1rem; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--teal-deep); color: var(--alice); margin-top: 2rem; padding-top: 3.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.foot-brand .brand-name { color: #fff; font-size: 1.4rem; }
.foot-brand p { color: #a9d4d0; margin-top: .6rem; }
.foot-note { font-size: .9rem; color: #7fb3af !important; }
.foot-col h2 { font-size: 1rem; color: #fff; margin-bottom: .9rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: .55rem; }
.foot-col a { color: #bfe0dd; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; margin-top: 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.foot-bottom p { color: #7fb3af; font-size: .88rem; margin: 0; }

/* =========================================================================
   Photo-led sections (added to mirror a trust-first, image-heavy layout)
   ========================================================================= */

/* ---------- photo hero ---------- */
.hero-photo {
  position: relative;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: center;
  color: #fff;
  background-color: var(--teal-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  /* image set inline on the element so url() resolves against the HTML page */
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,59,64,.92) 0%, rgba(6,59,64,.78) 42%, rgba(6,59,64,.35) 100%);
}
.hero-photo .wrap { position: relative; z-index: 2; padding-block: 4rem; }
.hero-photo h1 { color: #fff; max-width: 15ch; }
.hero-photo .kicker { color: var(--aqua); border-color: var(--tangerine); }
.hero-photo .lede { color: #d7eeec; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); max-width: 50ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; list-style: none; padding: 0; }
.hero-badges li { display: inline-flex; align-items: center; gap: .45rem; color: #eaf6f5; font-weight: 500; font-size: .95rem; }
.hero-badges svg { color: var(--tangerine); flex: none; }

/* ---------- stats band ---------- */
.stats-band { background: var(--paper); border-block: 1px solid var(--line); }
.stats-band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2.4rem; }
.stat { text-align: center; }
.stat dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--teal); line-height: 1; }
.stat dd { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ---------- story (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-body p { color: var(--muted); }

/* ---------- topic cards with photos ---------- */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.topic {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.topic-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--alice); }
.topic-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.topic-body h3 { margin-bottom: .4rem; }
.topic-body p { color: var(--muted); margin-bottom: 1.1rem; }
.topic-link {
  margin-top: auto; font-family: var(--f-display); font-weight: 700; color: var(--teal);
  text-decoration: none; align-self: flex-start;
  border-bottom: 2px solid var(--tangerine); padding-bottom: 2px;
}
.topic-link:hover { color: var(--teal-deep); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(6,59,64,.85));
  color: #fff; font-size: .9rem; padding: 1.6rem .9rem .8rem; font-weight: 500;
}

/* ---------- reasons / trust-first strip ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.reason { padding: 0; }
.reason .reason-ic {
  width: 52px; height: 52px; border-radius: 12px; background: var(--alice);
  display: grid; place-items: center; color: var(--teal); margin-bottom: 1rem;
}
.reason h3 { margin-bottom: .35rem; }
.reason p { color: var(--muted); margin: 0; }

/* ---------- inline figure for article pages ---------- */
.figure { margin: 1.8rem 0; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.figure figcaption { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* ---------- page hero with photo (inner pages) ---------- */
.page-hero.has-photo {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--teal-deep); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-hero.has-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(6,59,64,.9), rgba(6,59,64,.6)); }
.page-hero.has-photo .wrap, .page-hero.has-photo > * { position: relative; z-index: 2; }
.page-hero.has-photo h1 { color:#fff; }
.page-hero.has-photo p { color:#d7eeec; }
.page-hero.has-photo .kicker { color: var(--aqua); border-color: var(--tangerine); }

@media (max-width: 900px) {
  .stats-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .topics, .reasons { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
}
@media (max-width: 680px) {
  .stats-band .wrap { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .stat { text-align: left; }
  .stat + .stat { border-left: 0; }
  .topics, .reasons, .gallery { grid-template-columns: 1fr; }
  .hero-photo { min-height: auto; }
}

/* =========================================================================
   Motion — scroll reveal + hover life (progressive enhancement)
   .reveal is added by JS only; without JS or with reduced-motion, content
   is visible by default (the class is never applied).
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* hero content: one orchestrated entrance on load */
  .hero-photo .wrap > * { animation: heroIn .8s cubic-bezier(.2,.6,.2,1) both; }
  .hero-photo .kicker      { animation-delay: .05s; }
  .hero-photo h1           { animation-delay: .14s; }
  .hero-photo .lede        { animation-delay: .24s; }
  .hero-photo .hero-actions{ animation-delay: .34s; }
  .hero-photo .hero-badges { animation-delay: .44s; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* hover life — subtle lift on interactive cards */
.card, .topic { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover   { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--aqua); }
.topic:hover  { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--aqua); }
.btn { will-change: transform; }

/* ---------- brand lockup (About) ---------- */
.brand-lockup-wrap { text-align: center; padding-bottom: 1.5rem; }
.brand-lockup { width: min(300px, 72%); height: auto; margin: 0 auto; }

/* ---------- values grid (About) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.value h3 { margin-bottom: .35rem; }
.value p { color: var(--muted); margin: 0; }
.value .reason-ic { width: 48px; height: 48px; border-radius: 11px; background: var(--alice); display: grid; place-items: center; color: var(--teal); margin-bottom: .9rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .values { grid-template-columns: 1fr; } }

/* ---------- in-page jump nav (Guides) ---------- */
.jumpnav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.jumpnav p { font-family: var(--f-display); font-weight: 700; color: var(--teal-deep); margin: 0 0 .6rem; font-size: .95rem; }
.jumpnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jumpnav a { display: inline-block; padding: .4rem .8rem; border-radius: 999px; background: var(--alice); color: var(--teal-deep); text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .18s, color .18s; }
.jumpnav a:hover { background: var(--teal); color: #fff; }

/* give anchored headings breathing room under the sticky header */
.article h2[id] { scroll-margin-top: 90px; }

/* ---------- motion preference (master off-switch) ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--alice);
    border-bottom: 1px solid var(--line); transform: translateY(-120%);
    transition: transform .25s ease; max-height: calc(100vh - 72px); overflow:auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; padding: 1rem 1.25rem; gap: .25rem; }
  .primary-nav a { padding: .8rem 1rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
}
