/* Flat Rock Custom — sizing + mobile pass (2026-09-27).
   Loaded last, after chrome.css. To undo: delete this file and its <link> tag. */

/* Anything marked hidden stays hidden, even if a component sets display. */
[hidden] { display: none !important; }

/* ---- Type: Barlow Condensed (headlines) + Barlow (text) ---- */
:root {
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
body { font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: .005em; }
h1, h2 { text-transform: uppercase; }
h1 { line-height: .95; letter-spacing: .01em; }
h2 { line-height: 1; letter-spacing: .015em; }
.hero__tagline { font-weight: 600; letter-spacing: .01em; font-size: var(--step-4); }
.lede { font-weight: 500; }
.svc-list li { font-weight: 600; font-size: var(--step-2); letter-spacing: .01em; }
.brand__word .w1 { font-weight: 700; font-size: var(--step-2); letter-spacing: .03em; text-transform: uppercase; }
.pill { font-weight: 700; letter-spacing: .07em; }
.site-nav a { font-weight: 600; }

/* ---- Desktop: readable menu ---- */
@media (min-width: 900px) {
  .site-nav a { font-size: var(--step--1); letter-spacing: .08em; }
}

/* ---- Hero sized to its content, not the screen ---- */
.hero--min { min-height: 0; padding-block: var(--s-8); }
.hero--min h1 { max-width: 22ch; }
@media (min-width: 900px) {
  .hero--min { min-height: min(64vh, 620px); padding-block: var(--s-9); }
}

/* ---- Phones ---- */
@media (max-width: 639px) {
  h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 3.05rem); line-height: .95; letter-spacing: .01em; }
  h2 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.4rem); }

  .hero--min { padding-block: var(--s-7); }
  .hero--min h1 { max-width: none; margin-bottom: var(--s-3); }
  .hero__tagline { font-size: var(--step-3); }
  .hero--min .hero__tagline { margin-bottom: var(--s-5); }
  .hero--min .hero__contactline { margin-top: var(--s-5); font-size: var(--step--1); line-height: 1.5; }

  /* Buttons: stacked, same width, one line each */
  .pill-row { flex-direction: column; align-items: stretch; gap: var(--s-3); margin-top: var(--s-5); }
  .pill-row .pill { width: 100%; padding: 15px var(--s-4); letter-spacing: .05em; text-align: center; }

  .section { padding-block: var(--s-7); }
  .cta-band { padding-block: var(--s-7); }
  .min-title { font-size: var(--step-3); }

  .svc-list li { font-size: var(--step-1); gap: var(--s-3); }
  .svc-list .icon { width: 26px; height: 26px; }

  .lede { font-size: var(--step-1); }
  .facts { margin: var(--s-5) 0; }
  .facts li > span:first-child { min-width: 6rem; }
  .about-min { gap: var(--s-5); }
  .form-layout { gap: var(--s-6); }

  .footer-min { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .footer-min p { font-size: var(--step--1); overflow-wrap: anywhere; }
  .site-footer--min { padding-block: var(--s-6) var(--s-5); }
  .site-footer__bottom p { font-size: var(--step--2); }
}

/* ---- Small phones (iPhone SE / mini, ≤ 380px) ---- */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand { gap: 8px; }
  .site-header .brand img { height: 30px; }
  .nav-toggle { padding-inline: 10px; }
  .pill-row .pill { padding-inline: 10px; letter-spacing: .02em; }
  .nav-toggle__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* ---- Service descriptions + service-area line (SEO content, 2026-09-27) ---- */
.svc-list li { align-items: flex-start; }
.svc-list .icon { margin-top: 3px; }
.svc-list h3 { font: inherit; margin: 0; letter-spacing: inherit; text-transform: none; }
.svc-list li p {
  font-family: var(--font-body); font-weight: 400; font-size: .95rem; line-height: 1.5;
  letter-spacing: 0; color: var(--charcoal-80); margin: 4px 0 0; max-width: 42ch;
}
.svc-area { margin: var(--s-6) 0 0; max-width: 62ch; color: var(--charcoal-80); }
.svc-area a { color: var(--orange-deep); font-weight: 600; }

/* ==== Polish pass (2026-09-27): fixes from the visual, code and copy reviews ==== */
html { scroll-padding-top: 92px; }

/* Brand orange for filled buttons: the deeper orange passes AA at any size (5.3:1) */
.pill--solid.pill--accent { background-color: var(--orange-deep); }
.pill--solid.pill--accent:hover { background-color: #9e4206; }
.pill--solid.pill--accent:active { background-color: #8a3a05; }

/* Header "Get an estimate": stop the plain nav-link rules from shrinking and left-aligning it */
.site-nav .nav-cta .pill { border-bottom: 0; text-align: center; justify-content: center; }
@media (max-width: 899px) {
  .site-nav .nav-cta .pill { display: flex; font-size: 19px; font-weight: 700; letter-spacing: .05em; padding: 14px 24px; }
}
@media (min-width: 900px) {
  .site-nav .nav-cta .pill { display: inline-flex; font-size: 15px; font-weight: 700; letter-spacing: .07em; padding: 10px 20px; }
  .site-nav[hidden] { display: block !important; }   /* desktop menu never depends on JS */
}
/* Without JS the drawer can't open or close, so show the links inline instead */
@media (max-width: 899px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: static; box-shadow: none; }
}

/* Header + logo: mark is cropped tight now, so size it directly */
.brand img { height: 38px; width: auto; }
.brand { gap: 10px; }
.nav-toggle { min-width: 44px; justify-content: center; border-width: 1.5px; }

/* Hero */
.hero__tagline { color: var(--on-dark-accent); }
@media (max-width: 639px) { h1 { font-size: clamp(2.2rem, 10.2vw, 3.05rem); } }

/* Type rhythm */
.lede { font-size: var(--step-1); }
.min-title { margin-bottom: var(--s-5); }
.svc-list li { margin: 0; padding-block: 20px; }

/* About: single readable column until the owner photo exists */
.about-min:has(> .photo-slot[hidden]) { grid-template-columns: minmax(0, 760px); }

/* Contact: give the aside its own section feel */
.contact-min h2 { font-size: var(--step-3); }
@media (max-width: 899px) { .contact-min { border-top: 2px solid var(--charcoal); padding-top: var(--s-5); } }

/* Breadcrumbs */
.crumbs { font-size: 13px; padding-block: var(--s-4) 0; }
.crumbs a { display: inline-block; padding-block: 4px; }

/* Footer: aligned row, bigger tap targets, readable fine print */
.footer-min { align-items: center; }
.footer-min p { line-height: 1.3; }
.footer-min nav a, .footer-min p a { display: inline-block; padding-block: 8px; font-size: 15px; }
.site-footer__bottom p { font-size: 12.5px; }

/* Privacy / legal page */
.legal { max-width: 720px; }
.legal h2 { font-size: var(--step-3); margin: var(--s-6) 0 var(--s-3); }
.legal p { max-width: 65ch; }
.legal a { color: var(--orange-deep); }
.legal-updated { margin-top: var(--s-6); font-size: var(--step--1); color: var(--charcoal-60); }

/* Business contact and predictable contrast over the decorative texture. */
.header-phone { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; color: #21201f; font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.site-header > .wrap { gap: 12px; }
@media (max-width: 899px) {
  .site-header > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .nav-toggle { grid-column: 2; grid-row: 1; }
  .header-phone { grid-column: 1 / -1; grid-row: 2; justify-self: start; padding-left: 0; }
  html { scroll-padding-top: 140px; }
}
.hero--min .hero__scrim { background: rgba(20,19,18,.90); }
.hero--min .hero__rim { display: none; }
.hero--min h1 { color: #ffffff; }
.hero--min .hero__tagline { color: #ff9d52; }
.hero--min .hero__contactline { color: #d8d4cc; }
.contact-phone { color: #9e4206; font-weight: 700; }
