/* S&M Renovations LLC -- styles.css
   Brand colors (only): #040708 ink, #E15825 accent, #FFFFFF paper.
   Font: Montserrat with system fallback. Zero build, no framework. */

:root {
  --ink: #040708;
  --accent: #E15825;
  --paper: #FFFFFF;

  --maxw: 1040px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.wordmark {
  color: var(--paper);
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  text-transform: uppercase;
}
.locality {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 11vw, 7rem);
}
.hero-title {
  font-weight: 800;
  font-size: clamp(2.1rem, 6.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  margin-top: 1.4rem;
  max-width: 52ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 400;
  opacity: 0.9;
}

/* ---- Buttons ---- */
.cta-row {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  /* 1.2rem (>=18.66px) + bold = WCAG large text; ink-on-accent is already 5.41:1
     (AA normal), so the larger size is belt-and-suspenders, not a contrast fix. */
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  border: 2px solid var(--accent);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover,
.btn-primary:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-outline { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-outline:hover,
.btn-outline:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---- Owner-supervised strip (brand accent band; ink on accent = 5.41:1 AA) ---- */
.owner-strip {
  background: var(--accent);
  color: var(--ink);
  padding-block: clamp(2rem, 5vw, 3rem);
}
.owner-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
}
.owner-body {
  margin-top: 0.7rem;
  max-width: 60ch;
  font-weight: 600;
  font-size: clamp(1rem, 2.3vw, 1.2rem);
}

/* ---- Sections ---- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-light { background: var(--paper); color: var(--ink); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

/* ---- Services ---- */
.services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.service {
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  font-size: 1.08rem;
}
.services-note { margin-top: 1.4rem; font-weight: 500; opacity: 0.85; }

/* ---- Service area ---- */
.area-text {
  max-width: 60ch;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 500;
}

/* ---- Hours ---- */
.hours { list-style: none; max-width: 32rem; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--ink);
  font-weight: 500;
}
.hours li:last-child { border-bottom: 0; }
/* ink (not accent) on the light Hours section: accent text on white is 3.73:1 (AA fail) */
.hours .day { font-weight: 700; color: var(--ink); }

/* ---- Contact ---- */
.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  font-size: 1.15rem;
  font-weight: 500;
}
.contact-list a {
  color: var(--accent);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.contact-list a:hover,
.contact-list a:focus-visible { border-bottom-color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.6rem;
  font-size: 0.85rem;
}
.site-footer p { opacity: 0.8; }
.site-footer a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; }

/* ---- Legal / privacy page (ink-on-paper text = AA; accent only as underline) ---- */
.legal { max-width: 70ch; }
.legal-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.legal-meta { margin-top: 1rem; font-weight: 500; opacity: 0.85; }
.legal h2 { margin-top: 2rem; font-weight: 700; font-size: clamp(1.1rem, 2.6vw, 1.35rem); }
.legal p { margin-top: 0.7rem; max-width: 65ch; }
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
  font-weight: 600;
}
.legal-back { margin-top: 2.5rem; }

/* ---- Focus visibility ---- */
a:focus-visible,
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- Hero load motion: transform only -- H1/sub/CTAs are visible immediately ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-sub,
  .cta-row {
    transform: translateY(14px);
    animation: rise 0.6s ease forwards;
  }
  .hero-title { animation-delay: 0.05s; }
  .hero-sub { animation-delay: 0.18s; }
  .cta-row { animation-delay: 0.3s; }
  @keyframes rise { to { transform: translateY(0); } }
}

/* ---- Small screens ---- */
@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .btn { width: 100%; }
}
