@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/cormorant-garamond.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 500; font-display: swap; src: url(../fonts/cormorant-garamond-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/jost.woff2) format("woff2"); }

:root {
  --ivory: #F7F3EC;
  --sand: #E9E1D3;
  --stone: #8A7F6E;
  --stone-text: #685E4F; /* stone deepened for small labels: AA on ivory and sand */
  --olive: #4F5638;
  --olive-dark: #3F452C;
  --terracotta: #B9785A;
  --charcoal: #2E2C29;
  --text: #56544F;        /* charcoal at ~80% on ivory, for body text */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;

  --pad: 1rem;            /* side padding of the one container */
  --space: 4.5rem;        /* between sections */
  --finish-gap: 4rem;     /* between finish sections */
  --bar: 3.5rem;          /* mobile call bar height */
}
@media (min-width: 760px) {
  :root { --pad: 1.5rem; --space: 6.5rem; --finish-gap: 6rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory) url(../images/plaster-texture.webp) repeat;
  background-size: 512px;
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-x: hidden;
  hyphens: none;
  padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); /* room for the mobile call bar */
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--olive); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; color: var(--charcoal); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; }
.tel { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--ivory); padding: .5rem 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }

.label { font: 500 .72rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--stone-text); margin-bottom: 1rem; }
.label--light { color: rgba(247, 243, 236, .8); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-head { text-align: center; display: grid; justify-items: center; }
.section-head h2 { max-width: 22ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--olive); color: var(--ivory); text-decoration: none;
  font: 500 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .2s;
}
.btn:hover { background: var(--olive-dark); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--small { min-height: 2.6rem; padding: 0 1rem; font-size: .68rem; letter-spacing: .14em; }
.btn--light { background: var(--ivory); color: var(--olive); }
.btn--light:hover { background: var(--sand); }

/* ---------- Header ---------- */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 84px; }
.logo img { height: 64px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 1.5rem; }
.site-header__phone { display: none; color: var(--charcoal); text-decoration: none; letter-spacing: .03em; }
@media (min-width: 640px) {
  .site-header__inner { height: 104px; }
  .logo img { height: 84px; }
  .site-header__phone { display: inline; }
}

/* ---------- Opening ---------- */
.hero { display: grid; gap: 1.75rem; }
.hero .hero__photo { aspect-ratio: 4 / 5; width: calc(100% + 2 * var(--pad)); margin-inline: calc(-1 * var(--pad)); } /* mobile: edge to edge */
.hero__side { display: grid; gap: 1.25rem; align-content: center; text-align: center; justify-items: center; }
.hero h1 { font-size: clamp(1.8rem, 7.4vw, 3rem); } /* 3 lines max at 390, "Los Angeles" kept whole */
.hero__line { max-width: 34ch; }
.hero .form-card { width: 100%; text-align: left; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 3fr 2fr; gap: 3rem; align-items: center; padding-top: 1rem; }
  .hero .hero__photo { aspect-ratio: auto; width: 100%; margin-inline: 0; height: min(78vh, 720px); min-height: 560px; }
  .hero__side { text-align: left; justify-items: start; }
  .hero h1 { font-size: clamp(2.2rem, 2.8vw, 2.8rem); max-width: none; }
}

/* ---------- Form card ---------- */
.form-card { background: var(--sand); padding: 1.5rem; scroll-margin-top: 1rem; }
.form-card__title { font: 400 1.6rem/1.15 var(--serif); color: var(--charcoal); margin-bottom: 1rem; }
.lead { display: grid; gap: .75rem; }
.field span { display: block; font: 500 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-text); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; height: 2.9rem; padding: 0 .85rem;
  font: 400 1rem var(--sans); color: var(--charcoal);
  background: var(--ivory); border: 1px solid rgba(138, 127, 110, .4); border-radius: 2px;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--stone-text) 50%), linear-gradient(-45deg, transparent 50%, var(--stone-text) 50%);
  background-position: right 1.2rem center, right .9rem center; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 2px rgba(79, 86, 56, .2); }
.field [aria-invalid="true"] { border-color: var(--terracotta); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .btn { margin-top: .35rem; width: 100%; }
.form__note { font-size: .85rem; color: var(--stone-text); }
.form__status:empty { display: none; }
.form__status { font-size: .95rem; border-left: 2px solid var(--terracotta); padding-left: .8rem; }
.thanks { outline: none; display: grid; gap: .6rem; }
.thanks__title { font: 400 1.8rem/1.15 var(--serif); color: var(--charcoal); }

/* ---------- About: short and centered ---------- */
.about { margin-top: var(--space); display: grid; justify-items: center; text-align: center; }
.about h2 { max-width: 16ch; margin-bottom: 1.25rem; }
.about__text { max-width: 36ch; font-size: 1.1rem; }
@media (min-width: 760px) { .about__text { max-width: 60ch; } }

/* ---------- Our finishes ---------- */
.finishes { margin-top: var(--space); }
.finishes__list { display: grid; gap: var(--finish-gap); margin-top: 3rem; }
.finish { display: grid; gap: 1.5rem; }
.finish__text { text-align: center; display: grid; justify-items: center; }
.finish__num { display: flex; align-items: center; gap: .75rem; font: 500 .8rem/1 var(--sans); letter-spacing: .2em; color: var(--terracotta); margin-bottom: .9rem; }
.finish__num::before, .finish__num::after { content: ""; width: 1.75rem; height: 1px; background: var(--terracotta); opacity: .6; }
.finish h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .75rem; }
.finish__text p:last-child { max-width: 36ch; }
.finish__arches { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding-bottom: 1.5rem; }
.arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }
.finish .arch + .arch { transform: translateY(1.5rem); } /* second arch sits a little lower */
@media (min-width: 760px) and (max-width: 899px) { .finish__arches { gap: 1.25rem; padding-bottom: 40px; } .finish .arch + .arch { transform: translateY(40px); } }
@media (min-width: 900px) {
  /* side by side from 900px (tablet stacks like mobile); arches ~25% larger than v3, text column tighter to them */
  .finish { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 2.5rem; align-items: center; }
  .finish h3 { font-size: clamp(1.8rem, 2.6vw, 2.2rem); }
  .finish__text { text-align: left; justify-items: start; }
  .finish__num::before { display: none; }
  .finish__num::after { width: 2.5rem; }
  .finish--flip { grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); } /* arches keep the wide column when text moves right */
  .finish--flip .finish__text { order: 2; }
  .finish__arches { gap: 1.5rem; padding-bottom: 40px; }
  .finish .arch + .arch { transform: translateY(40px); }
}

/* photos: shared */
.ph { display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) and (hover: hover) {
  .ph img { transition: transform .5s ease; }
  .ph:hover img { transform: scale(1.03); }
}

/* ---------- Our promise: olive band, tall arch + oversized stats ---------- */
.promise { margin-top: var(--space); background: var(--olive); color: var(--ivory); padding-block: var(--space); }
.promise__inner { display: grid; gap: 2.5rem; }
.promise__photo { aspect-ratio: 3 / 4; }
.promise__content { display: grid; justify-items: center; text-align: center; }
.promise h2 { color: var(--ivory); font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.02; }
.promise h2 em { font-style: italic; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; width: 100%; margin: 2.5rem 0 2rem; }
.stat { border-top: 1px solid rgba(247, 243, 236, .45); padding-top: 1rem; }
.stat--wide { grid-column: 1 / -1; }
.stat__num { font: 300 3.5rem/1 var(--serif); color: var(--ivory); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.stat__cap { margin-top: .6rem; font: 500 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(247, 243, 236, .78); }
.promise__line { max-width: 36ch; color: rgba(247, 243, 236, .92); }
.promise__license { margin: .75rem 0 2rem; font-size: .85rem; letter-spacing: .06em; color: rgba(247, 243, 236, .72); }
@media (min-width: 900px) {
  .promise__inner { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .promise__content { justify-items: start; text-align: left; }
  .stats { gap: 2.5rem 2.5rem; }
  .stat__num { font-size: clamp(4.5rem, 6.4vw, 6rem); } /* 72-96px */
  .promise__line { max-width: 48ch; }
}

/* ---------- Areas we serve: two self-running rows (not tied to scroll) ---------- */
.areas { margin-top: var(--space); }
.areas__rows { display: grid; gap: .5rem; margin-top: 2.5rem; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; }
.marquee li { font: 300 clamp(2rem, 5vw, 3.4rem)/1.3 var(--serif); color: var(--charcoal); white-space: nowrap; display: flex; align-items: center; }
.marquee li::after { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: var(--terracotta); margin: 0 clamp(1rem, 2.4vw, 1.75rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Recent projects: masonry, natural ratios, soft corners ---------- */
.gallery { margin-top: var(--space); }
.gallery__grid { columns: 2; column-gap: .75rem; margin-top: 2.5rem; }
.tile { margin-bottom: .75rem; border-radius: 6px; break-inside: avoid; }
.tile img { height: auto; }
@media (min-width: 1000px) {
  .gallery__grid { columns: 3; column-gap: 1rem; }
  .tile { margin-bottom: 1rem; }
}

/* ---------- Closing ---------- */
.closing { margin-top: var(--space); display: grid; gap: 2rem; justify-items: center; text-align: center; }
.closing h2 { max-width: 24ch; }
.form-card--closing { width: 100%; max-width: 520px; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--space); border-top: 1px solid rgba(138, 127, 110, .3); }
.site-footer__inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; padding-block: 2.5rem; font-size: .95rem; }
.site-footer img { height: 96px; width: auto; }
.site-footer__legal { font-weight: 500; color: var(--charcoal); }
.site-footer__contact { display: grid; gap: .25rem; }
.site-footer__contact a { color: var(--charcoal); }
.site-footer__copy { font-size: .8rem; color: var(--stone-text); }
@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; column-gap: 2rem; padding-bottom: 9rem; /* ends above the round button */ }
  .site-footer__contact { justify-items: end; text-align: right; }
  .site-footer__copy { grid-column: 1 / -1; justify-self: center; }
}

/* ---------- Call: bar on mobile, round button on desktop ---------- */
.call-bar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1.35fr;
  background: var(--charcoal); padding-bottom: env(safe-area-inset-bottom);
}
.call-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; height: var(--bar); color: var(--ivory); text-decoration: none; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.call-bar a + a { background: var(--olive); }
.call-bar .icon { flex: none; opacity: .85; }
.call-round { display: none; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .call-bar { display: none; }
  .call-round {
    position: fixed; z-index: 20; right: 1.5rem; bottom: 1.5rem;
    display: grid; place-content: center; text-align: center; gap: .3rem;
    width: 7rem; height: 7rem; border-radius: 50%;
    background: var(--olive); color: var(--ivory); text-decoration: none;
    font: 400 .72rem/1.2 var(--sans); letter-spacing: .02em; white-space: nowrap;
    box-shadow: 0 10px 30px -12px rgba(30, 28, 25, .55);
    transition: background-color .2s;
  }
  .call-round span { font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
  .call-round:hover { background: var(--olive-dark); }
}
/* narrower desktops: the right margin is smaller than the button, so it would sit on the hero form.
   Bottom-left there (over the hero photo instead); bottom-right once the margin fits it. */
@media (min-width: 900px) and (max-width: 1423px) {
  .call-round { right: auto; left: 1.5rem; }
}

/* ---------- Lightbox: prev / next, swipe on touch ---------- */
.lightbox { border: 0; padding: 0; background: none; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(30, 28, 25, .92); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; touch-action: pan-y; }
.lightbox__close, .lightbox__btn { position: fixed; background: none; border: 0; color: var(--ivory); cursor: pointer; line-height: 1; }
.lightbox__close { top: .75rem; right: 1rem; font-size: 2.5rem; padding: .25rem .6rem; }
.lightbox__btn { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 1rem .9rem; }
.lightbox__prev { left: .25rem; }
.lightbox__next { right: .25rem; }
.lightbox__btn:hover, .lightbox__close:hover { color: var(--sand); }

/* ---------- Fade-up on enter ---------- */
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .fade.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .fade { opacity: 1; transform: none; transition: none; }
  .ph img, .ph:hover img { transition: none; transform: none; }
  /* cities: a still, centered, wrapped list */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; justify-content: center; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee__dup { display: none !important; }
  .marquee li { font-size: clamp(1.4rem, 3vw, 2rem); }
  .marquee li:last-child::after { display: none; }
}
