/* Yorkys General Plumbing — site.css
   Design plan (safina-taste-gates, seed 5399): Geist · Editorial Split (variance 4)
   · fade-up-reveals (motion 4) · relaxed density 4.
   Palette "Deep water, copper pipe": bone paper / ink navy / pipe copper. All text
   pairs measured AA (see taste-audit.md). One warm grade on imagery via .ph filter. */

/* ---------- fonts (self-hosted Geist) ---------- */
@font-face { font-family: "Geist"; src: url("/assets/font/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/font/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/font/geist-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/font/geist-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --paper: #f5f1e8;
  --paper-deep: #ece6d7;
  --ink: #1b3a54;        /* 10.5:1 on paper */
  --ink-deep: #142e44;
  --bone: #e8dfce;       /* 8.9:1 on ink */
  --copper: #8f5327;     /* 5.4:1 on paper — text-safe */
  --copper-hi: #c98a5a;  /* large text / decorative on navy (4.1:1, AA-large) */
  --muted: #4e5f6b;      /* 5.9:1 on paper */
  --line: rgba(27, 58, 84, 0.16);
  --line-navy: rgba(232, 223, 206, 0.18);
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --maxw: 68rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(4rem, 9vw, 8.5rem);
  --r: 14px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--copper); color: var(--paper); }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: var(--paper); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.kicker {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--copper);
  margin: 0 0 1.1rem;
}

/* section depth: radial washes, never flat */
.sec { padding-block: var(--sec); position: relative; }
.sec-paper {
  background:
    radial-gradient(58rem 30rem at 85% -8%, rgba(143, 83, 39, 0.07), transparent 62%),
    radial-gradient(46rem 26rem at -10% 108%, rgba(27, 58, 84, 0.06), transparent 60%),
    var(--paper);
}
.sec-deep {
  background:
    radial-gradient(52rem 30rem at 108% 6%, rgba(201, 138, 90, 0.12), transparent 62%),
    radial-gradient(44rem 26rem at -6% 96%, rgba(232, 223, 206, 0.07), transparent 58%),
    linear-gradient(178deg, var(--ink-deep), var(--ink) 58%, #1e425f);
  color: var(--bone);
}
.sec-deep .kicker { color: var(--copper-hi); }
.sec-deep a { color: var(--copper-hi); }
.sec-deep p { color: rgba(232, 223, 206, 0.92); }

/* ---------- header ---------- */
.hdr {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(40rem 18rem at 90% -30%, rgba(143, 83, 39, 0.06), transparent 60%),
    var(--paper);
}
.hdr-in {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  padding-block: 0.9rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; }
.brand-mark {
  width: 2.35rem; height: 2.35rem; border-radius: 9px; background: var(--ink);
  color: var(--paper); font-weight: 700; font-size: 1.18rem;
  display: grid; place-items: center; letter-spacing: 0;
  align-self: center; position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; right: 5px; bottom: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--copper-hi);
}
.brand-name { color: var(--ink); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.98rem; }
.nav a:hover { color: var(--copper); text-decoration: underline; text-underline-offset: 4px; }
.lang {
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.55rem 0.95rem;
  min-height: 44px; display: inline-flex; align-items: center;
}
.lang:hover { border-color: var(--copper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--ink); color: var(--paper);
  font: 600 1.02rem/1 var(--font); text-decoration: none;
  padding: 0.95rem 1.5rem; border-radius: 12px; border: 1px solid transparent;
  min-height: 48px; box-shadow: 0 10px 24px -14px rgba(20, 46, 68, 0.65);
}
.btn:hover { background: var(--ink-deep); color: var(--paper); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .ic { flex: none; }
.btn-copper { background: var(--copper); box-shadow: 0 10px 24px -14px rgba(143, 83, 39, 0.8); }
.btn-copper:hover { background: #7c4720; }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-navy); box-shadow: none; }
.btn-ghost:hover { background: rgba(232, 223, 206, 0.08); color: var(--bone); }

/* ---------- hero (Editorial Split) ---------- */
.hero { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem);
}
.hero-sub { font-size: 1.14rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.7rem; }
.hero-note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.9rem; padding: 0.5rem 0.95rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 253, 247, 0.6);
  font-size: 0.95rem; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
.hero-badge:hover { border-color: var(--copper); color: var(--copper); }
.hero-badge .star { color: var(--copper); }
.hero-media { position: relative; }
.hero-media .ph {
  border-radius: var(--r);
  box-shadow: 0 28px 60px -30px rgba(20, 46, 68, 0.55);
  filter: sepia(0.14) saturate(1.03) contrast(1.02);
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 42%; height: 42%;
  border-radius: 12px; border: 1.5px solid var(--copper); opacity: 0.55; z-index: -1;
}

/* ---------- trust strip ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; counter-reset: none;
}
.tcard {
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(255, 253, 247, 0.55);
  padding: 1.35rem 1.25rem 1.2rem;
}
.tcard .num {
  font-size: 0.95rem; font-weight: 700; color: var(--copper);
  font-variant-numeric: tabular-nums; letter-spacing: 0.06em;
  display: block; margin-bottom: 0.7rem;
}
.tcard h3 { margin-bottom: 0.4rem; }
.tcard p { font-size: 0.97rem; color: var(--muted); margin: 0; }
.tcard blockquote {
  margin: 0.2rem 0 0.3rem; font-style: italic; color: var(--ink); font-size: 1.02rem;
  max-width: 26ch; text-wrap: balance;
}
.tcard cite { font-style: normal; font-size: 0.85rem; color: var(--muted); display: block; }

/* ---------- services ---------- */
.sv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.svc {
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.4rem;
  background:
    radial-gradient(22rem 12rem at 100% 0%, rgba(143, 83, 39, 0.05), transparent 60%),
    rgba(255, 253, 247, 0.55);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.svc .sic {
  width: 2.9rem; height: 2.9rem; border-radius: 10px; grid-row: span 2;
  background: var(--ink); color: var(--bone); display: grid; place-items: center;
}
.svc h3 { margin: 0.1rem 0 0.45rem; }
.svc p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* ---------- promise band ---------- */
.promise-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.promise-quote {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 600; line-height: 1.22;
  letter-spacing: -0.01em; margin: 0 0 1rem; text-wrap: balance; color: #f2ecdf;
}
.promise-quote .hl { color: var(--copper-hi); }
.promise-note { color: rgba(232, 223, 206, 0.85); font-size: 1.02rem; }
.promise-media .ph {
  border-radius: var(--r);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.6);
  filter: sepia(0.1) saturate(1.04);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.promise-media figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: rgba(232, 223, 206, 0.62); }

/* ---------- reviews ---------- */
.rv-grid {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 4vw, 3.2rem);
  align-items: center;
}
.rv-score { text-align: center; }
.rv-num {
  font-size: clamp(4.6rem, 9vw, 6.8rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1; color: var(--ink);
}
.rv-sub { font-weight: 600; margin: 0.4rem 0 0; color: var(--muted); }
.stars { position: relative; display: inline-block; line-height: 0; margin-top: 0.8rem; }
.stars .row { display: flex; gap: 3px; color: rgba(27, 58, 84, 0.22); }
.stars .fill {
  position: absolute; inset: 0 auto 0 0; overflow: hidden; width: 96%;
}
.stars .fill .row { color: var(--copper); }

/* ---------- area ---------- */
.area-line {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink); margin-top: 1.6rem;
}
.area-line span { color: var(--copper); padding: 0 0.35rem; }

/* ---------- contact band ---------- */
.contact-in { text-align: center; max-width: 46rem; margin-inline: auto; }
.contact-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.6rem 2rem; margin: 1.8rem 0 2.1rem; padding: 0;
  font-size: 1.02rem; color: rgba(232, 223, 206, 0.92);
}
.contact-list li { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- footer ---------- */
.ftr { background: var(--ink-deep); color: rgba(232, 223, 206, 0.85); padding: 3.2rem 0 7.8rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.ftr h3 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-hi); margin-bottom: 0.9rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 0.5rem; font-size: 0.97rem; }
.ftr a { color: rgba(232, 223, 206, 0.9); text-decoration: none; }
.ftr a:hover { color: var(--copper-hi); text-decoration: underline; text-underline-offset: 3px; }
.ftr .brand-name { color: var(--bone); }
.ftr .brand-name small { color: rgba(232, 223, 206, 0.6); }
.ftr-note { font-size: 0.95rem; max-width: 26rem; margin: 0.7rem 0 0; }
.ftr-legal {
  border-top: 1px solid var(--line-navy); margin-top: 2.4rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-size: 0.85rem; color: rgba(232, 223, 206, 0.6);
}

/* ---------- mobile action bar ---------- */
.bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.9rem calc(0.55rem + env(safe-area-inset-bottom));
  display: grid; gap: 0.45rem;
}
.bar-call {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--copper); color: var(--paper);
  font: 700 1.06rem/1 var(--font); text-decoration: none;
  border-radius: 12px; min-height: 52px; letter-spacing: 0.01em;
}
.bar-call:hover { background: #7c4720; color: var(--paper); }
.bar-nav { display: flex; justify-content: space-around; align-items: center; }
.bar-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  padding: 0.35rem 0.5rem; min-height: 44px; display: inline-flex; align-items: center;
}
.bar-nav a.cur { color: var(--copper); }

/* ---------- 404 ---------- */
.nf { min-height: 68vh; display: grid; place-items: center; text-align: center; }

/* ---------- reveals (motion 4: fade-up, fire once) ----------
   Hidden state exists ONLY under .reveal-ready (JS-added when IO + motion OK),
   so the page is complete with JS off or reduced motion on. */
.reveal-ready .rv { opacity: 0; transform: translateY(14px); }
.reveal-ready .rv {
  transition: opacity 0.55s cubic-bezier(0.2, 0.6, 0.25, 1), transform 0.55s cubic-bezier(0.2, 0.6, 0.25, 1);
}
.reveal-ready .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .bar-call { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid, .rv-grid { grid-template-columns: 1fr; }
  .rv-score { text-align: left; }
  .rv-num { display: inline-block; }
  .stars { margin-left: 0.9rem; vertical-align: 0.55em; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .nav .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 2.2rem; }
  .hero-media { order: -1; }
  .hero-media .ph { aspect-ratio: 4 / 3; }
  .hero-media::after { display: none; }
  .sv-grid { grid-template-columns: 1fr; }
  .hdr .btn { display: none; }
  .hdr-in { justify-content: space-between; }
}
@media (min-width: 761px) {
  .bar { display: none; }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .area-line { font-size: 1.02rem; }
}
