/* Settwell Driveways & Patios: shared styles */
:root {
  --limestone: #F3EEE6;
  --sand: #E4D8C4;
  --white: #FFFFFF;
  --charcoal: #26221F;
  --gravel: #5E5852;
  --brindle: #8A4B2F;
  --brindle-dark: #7F452B; /* hover: 8 % darker */
  --sandstone: #C9A26B;
  --display: 'Kanit', system-ui, sans-serif;
  --body: 'Libre Franklin', system-ui, sans-serif;
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1312px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); /* aligns with .wrap content */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--limestone); color: var(--charcoal);
  font: 400 17px/1.6 var(--body); overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brindle); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--limestone); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.0; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 48px; line-height: 1.05; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--charcoal); color: var(--limestone); padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  font: 600 16px/1 var(--body); text-decoration: none; border-radius: 6px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease-out, transform .18s ease-out;
}
.btn-primary { background: var(--brindle); color: var(--limestone); }
.btn-primary:hover { background: var(--brindle-dark); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: rgba(38, 34, 31, .08); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* header */
.site-header { position: relative; z-index: 20; background: var(--limestone); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--charcoal); text-decoration: none; font: 700 28px/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--brindle); }
.nav .btn { min-height: 44px; padding: 10px 18px; }

/* hero: on the home page the header floats over the full-height stage */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.home .hero-stage, .home .hero-intro { height: 100vh; height: 100svh; min-height: 0; }
.home .hero-copy { top: calc(80px + clamp(24px, 5vh, 56px)); }
.hero { position: relative; }
.hero-stage { position: relative; height: calc(100vh - 80px); height: calc(100svh - 80px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-copy { position: absolute; left: var(--edge); top: clamp(24px, 6vh, 64px); max-width: 560px; z-index: 3; }
.hero-copy h1 { font-size: 84px; }
.hero-copy .lede { margin-top: 20px; font-size: 19px; line-height: 1.5; max-width: 30ch; color: var(--charcoal); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.caption-deck { position: absolute; left: var(--edge); bottom: clamp(24px, 5vh, 56px); width: min(460px, calc(100% - 2 * var(--gutter))); z-index: 3; }
.caption { position: absolute; left: 0; bottom: 0; width: 100%; background: var(--white); border-top: 4px solid var(--brindle); border-radius: 4px; padding: 18px 22px 20px;
  box-shadow: 0 10px 30px rgba(38, 34, 31, .08); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.caption.on { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.caption h2 { font-size: 26px; font-weight: 600; line-height: 1.15; }
.caption p { margin-top: 6px; color: var(--gravel); font-size: 16px; }
.rail { position: absolute; right: var(--edge); bottom: clamp(24px, 5vh, 56px); /* bottom-right stays clear of the model in every state */ z-index: 3; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rail::before { content: ""; position: absolute; right: 7px; top: 22px; bottom: 22px; width: 2px; background: rgba(38, 34, 31, .18); }
.rail button { position: relative; width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 500 15px/1 var(--body); color: var(--gravel); }
.rail button::after { content: ""; width: 16px; height: 16px; border-radius: 3px; border: 2px solid var(--charcoal); background: var(--limestone); transition: background-color .18s; }
.rail button[aria-current="step"] { color: var(--charcoal); font-weight: 600; }
.rail button[aria-current="step"]::after { background: var(--brindle); border-color: var(--brindle); }
.rail button:hover { color: var(--charcoal); }
.rail button span { background: var(--limestone); padding: 4px 6px; border-radius: 4px; }

/* fallback still sequence (no WebGL / ?fallback=1) */
.stills { position: absolute; inset: 0; display: none; }
.stills > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stills .still-mark { display: grid; place-items: center; background: var(--limestone); }
.still-mark span { font: 700 clamp(64px, 12vw, 180px)/1 var(--display); letter-spacing: -0.01em; color: var(--charcoal); display: flex; align-items: center; gap: .2em; }
.still-mark svg { width: .8em; height: .8em; }
html.fallback .stills { display: block; }
html.fallback .hero-canvas { display: none; }
html.fallback .hero-stage .caption-deck { bottom: clamp(24px, 5vh, 56px); }

/* intro: poster in the video slot (fallback) and the reduced-motion hero */
.hero-intro { display: none; position: relative; min-height: calc(100svh - 80px); }
.hero-intro > img, .hero-intro > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-intro .hero-copy { background: rgba(243, 238, 230, .95); padding: 32px 36px 36px; border-radius: 6px; margin-left: -36px; max-width: 640px; }
.hero-intro .hero-copy { z-index: 2; }
html.fallback .hero-intro, html.rm .hero-intro { display: block; }
html.rm .hero-stage { display: none; }
html.fallback .home .site-header, html.rm .home .site-header { position: relative; background: var(--limestone); }
html.fallback .home .hero-intro, html.rm .home .hero-intro { height: calc(100svh - 80px); }
html.fallback .home .hero-intro .hero-copy, html.rm .home .hero-intro .hero-copy { top: clamp(32px, 8vh, 88px); }

.rm-list { display: none; padding: 72px 0; }
html.rm .rm-list { display: block; }
.rm-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); }
.rm-list li img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.rm-list h2 { font-size: 26px; font-weight: 600; margin-top: 16px; }
.rm-list p { color: var(--gravel); margin-top: 6px; }

/* sections */
.section { padding: 112px 0; }
.band { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; color: var(--gravel); font-size: 18px; }
.eyebrow { display: block; font: 600 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--brindle); margin-bottom: 16px; }
.band .eyebrow { color: var(--brindle); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-top: 4px solid var(--brindle); border-radius: 4px; padding: 28px 28px 32px; transition: transform .18s ease-out, box-shadow .18s ease-out; }
.card p { margin-top: 10px; color: var(--gravel); }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(38, 34, 31, .08); }
.card .glyph { width: 40px; height: 24px; margin-bottom: 20px; }

/* before / after */
.compare { position: relative; border-radius: 4px; overflow: hidden; background: var(--sand); aspect-ratio: 1448 / 1086; max-height: 78vh; margin: 0 auto; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--limestone); pointer-events: none; box-shadow: 0 0 0 1px rgba(38, 34, 31, .25); }
.compare .divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--limestone);
  border: 2px solid var(--charcoal); background-image: linear-gradient(90deg, transparent 13px, var(--charcoal) 13px 15px, transparent 15px 25px, var(--charcoal) 25px 27px, transparent 27px); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-wrap:focus-within .divider::after { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.compare .tag { position: absolute; top: 16px; padding: 6px 10px; border-radius: 4px; background: var(--charcoal); color: var(--limestone); font: 600 14px/1 var(--body); pointer-events: none; }
.compare .tag.l { left: 16px; } .compare .tag.r { right: 16px; }
.compare-wrap figcaption { margin-top: 14px; color: var(--gravel); }
.compare-wrap label { display: block; font-weight: 600; margin-bottom: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { border-top: 2px solid var(--charcoal); padding-top: 20px; }
.steps .num { font: 700 64px/1 var(--display); color: var(--brindle); display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 8px; color: var(--gravel); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--white); border-radius: 4px; padding: 28px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.review .stars { display: flex; gap: 3px; }
.review .stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.review figcaption { color: var(--gravel); font-weight: 500; margin-top: auto; }

.faqs { max-width: 860px; }
.faqs details { border-top: 1px solid rgba(38, 34, 31, .25); }
.faqs details:last-child { border-bottom: 1px solid rgba(38, 34, 31, .25); }
.faqs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 600 21px/1.3 var(--display); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font: 400 30px/1 var(--body); color: var(--brindle); transition: transform .18s ease-out; }
.faqs details[open] summary::after { transform: rotate(45deg); }
.faqs details p { padding: 0 0 24px; color: var(--gravel); max-width: 64ch; }

.cta { background: var(--sand); overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.cta-copy { padding: 96px 0; }
.cta-copy h2 { max-width: 14ch; }
.cta-copy p { margin-top: 18px; color: var(--gravel); font-size: 18px; max-width: 42ch; }
.cta-copy .hero-actions { margin-top: 28px; }
.cta figure { margin: 0; align-self: stretch; }
.cta figure img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 50% 25%; }

/* footer */
.footer { background: var(--charcoal); color: var(--limestone); padding: 72px 0 40px; }
.footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--limestone); }
.footer h2 { font: 600 16px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; }
.footer p, .footer li { color: var(--sand); }
.footer a { color: var(--sandstone); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer .base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(243, 238, 230, .2); font-size: 15px; color: var(--sand); }
.footer .place { margin-top: 14px; color: var(--limestone); }

/* work page */
.page-head { padding: 72px 0 48px; }
.page-head h1 { font-size: 84px; }
.page-head p { margin-top: 18px; font-size: 19px; color: var(--gravel); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.project { margin: 0; background: var(--white); border-radius: 4px; overflow: hidden; transition: transform .18s ease-out, box-shadow .18s ease-out; }
.project:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(38, 34, 31, .1); }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project figcaption { padding: 18px 22px 22px; font-weight: 500; }
.materials { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.materials li { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(38, 34, 31, .25); font: 600 21px/1.3 var(--display); }
.materials li:last-child { border-bottom: 1px solid rgba(38, 34, 31, .25); }
.materials svg { width: 72px; height: 36px; flex: none; border-radius: 3px; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; padding: 72px 0 96px; }
.contact-info h1 { font-size: 84px; }
.big-phone { display: inline-block; margin-top: 28px; font: 700 44px/1.1 var(--display); color: var(--brindle); text-decoration: none; }
.big-phone:hover { text-decoration: underline; }
.contact-info dl { margin: 28px 0 0; display: grid; gap: 18px; }
.contact-info dt { font-weight: 600; }
.contact-info dd { margin: 2px 0 0; color: var(--gravel); }
.pill { display: inline-block; margin-top: 28px; padding: 8px 14px; border-radius: 4px; background: var(--sand); font-weight: 600; }
.form { background: var(--white); border-top: 4px solid var(--brindle); border-radius: 4px; padding: 36px; display: grid; gap: 20px; align-self: start; }
.form h2 { font-size: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--gravel); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: 400 17px/1.4 var(--body); color: var(--charcoal); background: var(--white);
  border: 2px solid var(--gravel); border-radius: 4px; }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; padding-right: 44px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2326221F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; }
.field ::placeholder { color: var(--gravel); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.thanks { background: var(--sand); border-left: 4px solid var(--brindle); padding: 18px 20px; border-radius: 4px; font-weight: 600; }
.wide-photo { margin: 0 0 112px; }
.wide-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 4px; }
.wide-photo figcaption { margin-top: 14px; color: var(--gravel); }

/* motion helpers */
.fade { opacity: 0; transform: translateY(24px); }
html.rm .fade, html.no-js .fade { opacity: 1; transform: none; }

/* ≤ 1100 */
@media (max-width: 1100px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
/* phone */
@media (max-width: 767px) {
  body { font-size: 16px; }
  h2 { font-size: 32px; }
  .site-header .wrap { height: 68px; }
  .brand { font-size: 24px; }
  .brand svg { width: 26px; height: 26px; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .nav .btn { min-height: 44px; padding: 10px 12px; font-size: 15px; }
  .hero-stage { height: calc(100svh - 68px); }
  .hero-intro { min-height: calc(100svh - 68px); }
  .hero-copy, .home .hero-copy { top: 88px; right: var(--gutter); }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy .lede { font-size: 16px; margin-top: 12px; }
  .hero-actions { margin-top: 16px; gap: 10px; }
  html.fallback .home .hero-intro, html.rm .home .hero-intro { height: calc(100svh - 68px); }
  html.fallback .home .hero-intro .hero-copy, html.rm .home .hero-intro .hero-copy { top: 24px; }
  .hero-actions .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
  .caption-deck { bottom: 72px; }
  .caption { padding: 14px 16px 16px; }
  .caption h2 { font-size: 20px; }
  .caption p { font-size: 15px; }
  .rail { top: auto; bottom: 12px; left: var(--gutter); right: var(--gutter); width: auto; transform: none; flex-direction: row; justify-content: space-between; gap: 4px; }
  .rail::before { left: 8px; right: 8px; top: auto; bottom: 21px; width: auto; height: 2px; }
  .rail button { width: auto; flex-direction: row-reverse; gap: 6px; font-size: 13px; }
  .rail button span { padding: 3px 4px; }
  .rail button::after { width: 14px; height: 14px; }
  .hero-intro .hero-copy { padding: 20px 20px 24px; margin-left: 0; }
  .rm-list ol { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .cards, .reviews, .steps, .projects { grid-template-columns: 1fr; }
  .steps { gap: 24px; }
  .steps .num { font-size: 48px; }
  .compare { max-height: none; }
  .cta .wrap { grid-template-columns: 1fr; gap: 0; }
  .cta-copy { padding: 64px 0 32px; }
  .cta figure { margin: 0 calc(-1 * var(--gutter)); }
  .cta figure img { min-height: 0; height: auto; aspect-ratio: 4 / 5; object-position: 50% 12%; }
  .footer .cols { grid-template-columns: 1fr; gap: 32px; }
  .page-head { padding: 48px 0 32px; }
  .page-head h1, .contact-info h1 { font-size: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 72px; }
  .big-phone { font-size: 34px; }
  .form { padding: 24px 20px; }
  .form .row { grid-template-columns: 1fr; }
  .wide-photo { margin-bottom: 72px; }
  .wide-photo img { aspect-ratio: 4 / 3; }
  .materials li { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .project:hover { transform: none; }
}
