/* Mills' Roofing - modeled on the business's own 2025 site (Squarespace 7.1, Oranssi-style layout). */
:root { --red: #d8322a; --ink: #1d1d1b; --cream: #f4efe6; --sand: #e9e1d3; --muted: #5d5a54; --mono: "Space Mono", monospace; --sans: Archivo, "Helvetica Neue", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }

.pill { display: inline-block; background: var(--ink); color: #fff; font: 700 14px var(--mono); letter-spacing: .08em; padding: 15px 30px; border-radius: 300px; text-decoration: none; border: 0; cursor: pointer; transition: background .2s; }
.pill:hover { background: var(--red); }
.pill.light { background: #fff; color: var(--ink); }
.pill.light:hover { background: var(--red); color: #fff; }

.hdr { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: 1px solid var(--sand); }
.hdr-in { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 18px 4vw; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font: 400 14px var(--mono); text-decoration: none; letter-spacing: .04em; }
.nav a:hover { color: var(--red); }
.burger { display: none; margin-left: auto; background: none; border: 0; width: 34px; height: 24px; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); }
.burger span:first-child { top: 6px; } .burger span:last-child { bottom: 6px; }
.mobile-menu { display: none; }

.hero { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 78vh; }
.hero-text { padding: 8vw 4vw; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 84px); margin: 0; }
.slides { position: relative; overflow: hidden; background: var(--sand); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.slides img.on { opacity: 1; }
.dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; }

.kicker { font: 400 clamp(36px, 4vw, 56px)/1.05 var(--mono); letter-spacing: -.02em; margin: 0 0 50px; }
.kicker.small { font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 30px; }
.services, .projects, .about, .reviews, .inquiry { padding: 100px 4vw; max-width: 1400px; margin: 0 auto; }
.svc { list-style: none; padding: 0; margin: 0 0 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.svc li { border-top: 2px solid var(--ink); padding-top: 26px; }
.svc img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 18px; }
.svc h3 { font-size: 28px; margin: 0 0 12px; }
.svc p { margin: 0 0 10px; color: var(--muted); }
.center { text-align: center; }

.projects { background: var(--ink); color: #fff; max-width: none; }
.projects .kicker { max-width: 1400px; margin-left: auto; margin-right: auto; }
.proj { list-style: none; padding: 0; margin: 0 auto; max-width: 1400px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.proj li { grid-column: span 2; }
.proj li:nth-child(4), .proj li:nth-child(5) { grid-column: span 3; }
.proj img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.proj h3 { font: 700 15px var(--mono); letter-spacing: .08em; margin: 14px 0 0; }

.cta { position: relative; }
.cta img { width: 100%; height: 70vh; min-height: 420px; object-fit: cover; }
.cta-box { position: absolute; right: 6vw; bottom: 8vh; background: var(--cream); max-width: 460px; padding: 40px; }
.cta-box h3 { font-size: 32px; margin: 0 0 14px; }
.cta-box p { color: var(--muted); margin: 0 0 24px; }

.inquiry { max-width: 820px; }
.inquiry h2, .contact-form h2 { font-size: 36px; margin: 0 0 26px; }
.sqs-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.sqs-form legend, .fld > span { display: block; font: 400 14px var(--mono); margin-bottom: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sub span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.fld { display: block; margin-bottom: 18px; }
.sqs-form input, .sqs-form select, .sqs-form textarea { width: 100%; font: 16px var(--sans); padding: 13px 14px; border: 1px solid #b9b2a5; background: #fff; border-radius: 0; }
.sqs-form input:focus, .sqs-form select:focus, .sqs-form textarea:focus { outline: 2px solid var(--ink); }
.req { color: var(--red); }
.hp { position: absolute; left: -5000px; height: 1px; overflow: hidden; }
.err { color: var(--red); }

.about { border-top: 1px solid var(--sand); }
.about h2 { font-size: clamp(34px, 4vw, 56px); margin: 0 0 50px; max-width: 900px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 40px; align-items: center; }
.about-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about-grid p { font-size: 19px; }

.reviews { background: var(--sand); max-width: none; text-align: center; }
.quotes { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; gap: 60px; }
.quotes h2 { font-size: clamp(24px, 2.8vw, 38px); font-weight: 600; margin: 0 0 14px; }
.quotes p { font: 400 15px var(--mono); margin: 0; letter-spacing: .06em; }

.contact-page { max-width: 1400px; margin: 0 auto; padding: 90px 4vw 60px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.contact-page h1 { font-size: clamp(42px, 5vw, 72px); margin: 0 0 20px; }
.contact-info h3 { font: 700 14px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 30px 0 6px; }
.contact-info p { margin: 0; }
.map { display: block; width: 100%; height: 380px; border: 0; }

.thanks { max-width: 760px; margin: 0 auto; padding: 140px 4vw; text-align: center; }
.thanks h1 { font-size: 56px; margin: 0 0 20px; }
.thanks p { margin: 0 0 34px; }

.ftr { background: var(--ink); color: #fff; padding: 80px 4vw 30px; }
.ftr-in { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.ftr h2 { font-size: 44px; margin: 0 0 24px; }
.ftr p { margin: 0 0 16px; font-size: 18px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--red); }
.ftr .fb { font: 400 14px var(--mono); text-decoration: underline; }
.copy { max-width: 1400px; margin: 60px auto 0; font: 400 12px var(--mono); color: #9b978f; }

@media (max-width: 860px) {
  .nav, .hdr-in > .pill { display: none; }
  .burger { display: block; }
  body.menu-open .mobile-menu { display: flex; flex-direction: column; gap: 22px; padding: 20px 4vw 34px; }
  .mobile-menu a { font: 400 22px var(--mono); text-decoration: none; }
  .mobile-menu .pill { align-self: flex-start; font-size: 14px; }
  .logo img { height: 30px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 60px 6vw; }
  .slides { height: 60vw; }
  .svc { grid-template-columns: 1fr; gap: 36px; }
  .proj { grid-template-columns: 1fr; }
  .proj li, .proj li:nth-child(4), .proj li:nth-child(5) { grid-column: auto; }
  .cta-box { position: static; max-width: none; }
  .cta img { height: 50vh; min-height: 260px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { aspect-ratio: 4/3; }
  .contact-page { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; }
  .row2 { grid-template-columns: 1fr; }
  .services, .projects, .about, .reviews, .inquiry { padding: 64px 6vw; }
}
