/* foundationrepaircost.net - cool-editorial design (talaria-site-designer)
   Home archetype: Saira heads, Inter body, IBM Plex Mono figures.
   Targets the site's real class names: header .wrap, .logo, .logomark,
   .logotype, .lt-name, .lt-tag, .hgrad, .hero, .calc, .fld, .qty,
   .result, .bar, .feats, .feat, .faq, .ad, .guides, .gcard,
   .related, .disc, .lead, .cta, footer .wrap, .cols, cc-banner */

:root {
  --accent:   #D99126;
  --accent-dk:#A36A14;
  --accent2:  #E9DAC4;
  --paper:    #F5F3EE;
  --panel:    #FFFFFF;
  --ink:      #1E1A14;
  --ink2:     #3C3424;
  --muted:    #6B6054;
  --rule:     #E4DDD0;
  --rule2:    #D5CCBC;
  --nav-bg:   #1E1A14;
  --r:        8px;
  --maxw:     960px;
  --head:     'Saira', system-ui, sans-serif;
  --body:     'Inter', system-ui, sans-serif;
  --mono:     'IBM Plex Mono', ui-monospace, monospace;
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block }
a { color: var(--accent-dk); text-underline-offset: 2px }
a:hover { text-decoration: underline }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px }
h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700 }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem) }
h3 { font-size: 1.12rem }
p { margin: 0 0 1rem }
ul { padding-left: 1.4em; margin: .5rem 0 1rem }
li { margin-bottom: .4em }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
a, button, select, input { transition: background-color .14s ease, border-color .14s ease, color .14s ease, transform .1s ease }
button:active, .cta:active { transform: scale(.98) }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto } }

/* ---- header ---- */
header {
  background: var(--nav-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* brand mark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo:hover { text-decoration: none }

.logomark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.logomark svg { width: 22px; height: 22px }

.logotype {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.lt-name {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.18rem;
  color: #fff;
  letter-spacing: -.01em;
}
.lt-name .ac { color: var(--accent2) }
.lt-tag {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}

header nav a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin-left: 14px;
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
header nav a:hover {
  color: #fff;
  border-bottom-color: var(--accent2);
  text-decoration: none;
}

/* hairline accent rule under header */
.hgrad {
  height: 2px;
  background: var(--accent);
  opacity: .7;
}

/* ---- hero (homepage: two-column, light paper bg) ---- */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  overflow: hidden;
}
.hero .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: block;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin: .1em 0 .4em;
  max-width: 18ch;
  line-height: 1.08;
}
.hero p {
  font-size: 1.05rem;
  color: var(--ink2);
  max-width: 52ch;
  margin-bottom: .5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent2);
  color: var(--accent-dk);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  max-height: 420px;
  overflow: hidden;
}
.hero-photo {
  width: 100%;
  max-width: 380px;
  max-height: 420px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  border-radius: var(--r) var(--r) 0 0;
  border: 1px solid var(--rule);
  border-bottom: none;
  margin-left: auto;
}
@media (max-width: 800px) {
  .art { max-height: 260px; min-height: 160px }
  .hero-photo { max-width: 100%; margin: 0 auto; border-radius: var(--r) }
}

/* byline - shown on inner pages, hidden on homepage via hero context */
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .84rem;
  margin: 10px 0 0;
}
.byline b { color: var(--ink); font-weight: 600 }
.byline .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent2);
  display: inline-block;
  object-fit: cover;
  border: 1px solid var(--rule);
}
/* on homepage hero, suppress the byline */
.hero .byline { display: none }
/* on inner pages, byline shows in the light hero */
.byline.light {
  color: var(--muted);
  display: flex;
}
.byline.light b { color: var(--ink) }

/* ---- main content ---- */
main { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px }
main h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  margin: 1.8em 0 .5em;
  padding-bottom: .3em;
  border-bottom: 1px solid var(--rule);
}
main h2:first-child { margin-top: 0 }
main p { color: var(--ink2) }
main ul li { color: var(--ink2) }
main strong { color: var(--ink) }

/* ---- calculator card ---- */
.calc {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 26px;
  margin: -36px 0 24px;
  position: relative;
  box-shadow: 0 4px 24px rgba(30,26,20,.07);
}
.calc h2 {
  font-family: var(--head);
  font-size: 1.28rem;
  font-weight: 600;
  border: none;
  margin: 0 0 16px;
  padding: 0;
}

/* form fields */
.fld {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 13px 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink2);
}
.fld select, .qty input {
  padding: 11px 13px;
  border: 1px solid var(--rule2);
  border-radius: 7px;
  font-size: 1rem;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  appearance: auto;
}
.fld select:focus, .qty input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217,145,38,.14);
}
.hint {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: .78rem;
  margin-top: 3px;
  font-family: var(--body);
}

.qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink2);
}
.qty input { width: 88px }

/* result display - mono figures */
.result {
  margin-top: 18px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  text-align: center;
  border-top: 3px solid var(--accent);
}
.result .big {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-dk);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  display: block;
  margin: 4px 0;
}
.bar {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--accent-dk));
  margin: 14px 0 4px;
  position: relative;
}
.bar i {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 13px;
  background: var(--accent-dk);
  border-radius: 2px;
}

/* lead / CTA block */
.lead {
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 18px 20px;
  text-align: left;
}
.lead h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-family: var(--head);
  font-weight: 600;
}
.lead small { color: var(--muted); font-size: .8rem }
.cta {
  display: inline-block;
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  padding: 11px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .01em;
}
.cta:hover { background: var(--accent-dk); color: #fff; text-decoration: none }

/* ---- feature cards ---- */
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.feat {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.feat span { font-weight: 600; display: block; font-size: .9rem; color: var(--ink) }
.feat small { color: var(--muted); font-size: .8rem }
.feat svg path, .feat svg rect, .feat svg circle { /* keep icon color from HTML */ }

/* ---- data tables ---- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  font-size: .94rem;
}
th {
  font-family: var(--body);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
td {
  border-bottom: 1px solid var(--rule);
  padding: 11px 14px;
  color: var(--ink2);
}
tr:last-child td { border-bottom: 0 }
tr td:first-child { font-weight: 500; color: var(--ink) }
tr td:last-child {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---- FAQ ---- */
.faq {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 2px 18px;
  margin: 8px 0;
}
.faq summary {
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "\2212" }
details.faq { }
details.faq summary { }

/* ---- guide cards ---- */
.guides {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 10px 0 20px;
}
.gcard {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 16px 18px;
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .14s, transform .12s;
}
.gcard:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none }
.gcard strong {
  display: block;
  color: var(--accent-dk);
  font-family: var(--head);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.25;
}
.gcard small { color: var(--muted); font-size: .8rem }

/* ---- related tags ---- */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.related a {
  text-decoration: none;
  border: 1px solid var(--rule2);
  background: var(--panel);
  padding: 7px 14px;
  border-radius: 22px;
  font-size: .88rem;
  color: var(--ink2);
}
.related a:hover { border-color: var(--accent); color: var(--accent-dk); text-decoration: none }

/* ---- ad placeholder ---- */
.ad {
  margin: 24px 0;
  min-height: 90px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---- disclaimer ---- */
.disc {
  font-size: .8rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 13px 16px;
  margin-top: 18px;
  line-height: 1.6;
}

/* ---- ctabar ---- */
.ctabar { margin: 14px 0 18px }
.ctabar .cta { display: inline-block }

/* ---- form card (contact) ---- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px;
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 0;
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink2);
}
.field input, .field textarea {
  padding: 11px 13px;
  border: 1px solid var(--rule2);
  border-radius: 7px;
  font-size: 1rem;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217,145,38,.14);
}
#formResult { margin-top: 10px; font-weight: 600; color: var(--accent) }

/* ---- about banner ---- */
.aboutbanner {
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 18px;
  background: var(--accent2);
  border: 1px solid var(--rule);
}

/* ---- footer (dark bookend) ---- */
footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,.62);
  margin-top: 36px;
  border-top: 2px solid var(--accent);
}
footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 22px 24px;
  font-size: .88rem;
}
footer a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin-right: 14px;
}
footer a:hover { color: var(--accent2); text-decoration: none }
footer .cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
footer .cols > div { min-width: 120px }
footer strong { color: #fff }
footer small { color: rgba(255,255,255,.48) }
footer p { color: rgba(255,255,255,.55); margin: 6px 0 0 }

/* related mesh in footer */
.related-mesh {
  margin-top: 14px;
  font-size: .8rem;
  line-height: 1.8;
  color: rgba(255,255,255,.42);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
}
.related-mesh a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-right: 0;
}
.related-mesh a:hover { color: var(--accent2) }

/* ---- cookie consent banner ---- */
#cc-banner {
  background: var(--nav-bg) !important;
  border-top: 1px solid rgba(255,255,255,.12);
}
#cc-acc {
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}
#cc-acc:hover { background: var(--accent-dk) !important }
#cc-rej {
  background: transparent !important;
  color: rgba(255,255,255,.8) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 6px !important;
}

/* ---- inner page hero (article/guide pages - no .hero wrapper, just main) ---- */
main h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 .4em;
}
main > .byline { margin-bottom: 16px }

/* ---- number highlights (mono) ---- */
.num, .mono, .big { font-family: var(--mono); font-variant-numeric: tabular-nums }

/* ---- mobile nav ---- */
@media (max-width: 640px) {
  header .wrap { padding: 12px 16px }
  header nav a { margin-left: 10px; font-size: .82rem }
  .lt-name { font-size: 1rem }
  .lt-tag { display: none }
  main { padding: 20px 16px }
  .calc { margin: -24px 0 18px; padding: 18px }
  .result .big { font-size: 1.6rem }
  footer .wrap { padding: 28px 16px 18px }
  footer .cols { gap: 20px }
}

/* ---- homepage two-column hero layout (added 2026-06-29) ---- */
.hero-row {
  display: grid !important;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: stretch;
  padding-top: 44px !important;
  padding-bottom: 40px !important;
}
.hero-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-left .pill {
  margin-bottom: 14px;
}
.hero-left h1 {
  margin-bottom: .4em;
}
.hero-left > p {
  margin-bottom: 0;
  flex-shrink: 0;
}
.hero-photo-wrap {
  margin-top: auto;
  padding-top: 22px;
  flex-shrink: 0;
}
.hero-photo-wrap picture {
  display: block;
}
.hero-photo {
  max-width: 360px;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--r);
  border: 1px solid var(--rule);
  display: block;
}
.hero-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* override the negative-margin pull-up on calc inside hero */
.hero-right .calc {
  margin: 0 !important;
  flex: 1;
}
/* art / old photo wrapper no longer needed in hero - hide if it appears */
.hero .art { display: none }

@media (max-width: 860px) {
  .hero-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 28px !important;
  }
  .hero-left {
    padding-bottom: 20px;
  }
  .hero-photo-wrap {
    display: none;
  }
  .hero-right {
    padding-bottom: 24px;
  }
}
