/* StoneART Creations: tokens, base, components, header, hero, estimate band. Mobile first. */
@font-face { font-family: "Besley"; src: url("../fonts/besley-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("../fonts/besley-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ground: #eeeae2;      /* limestone */
  --sand-ground: #e4dbcb; /* sand surface */
  --ink: #2e3036;         /* slate */
  --body: #474a53;
  --label: #6e624c;
  --olive: #4a4234;       /* deep olive-brown from the logo */
  --rust: #835639;
  --rust-dark: #6a4329;
  --sand: #c2b593;
  --on-dark: #efeae0;
  --on-dark-2: #c4bdad;
  --rule: rgba(110, 98, 76, 0.32);
  --rule-strong: #9d846e;
  --serif: "Besley", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: 16px;
  --gap: 12px;
  --cut: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--body); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; text-wrap: pretty; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.06; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 500; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* The StoneART signature: one cut corner, like the faceted stone in the logo */
.cut { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  min-height: 48px; padding: 0.75em 1.25em; border: 1px solid transparent; border-radius: 2px;
  font: 600 1rem/1.15 var(--sans); letter-spacing: 0.01em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-dark); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: #1d1f23; }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #d3c7a6; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-lg { min-height: 54px; padding-inline: 1.45em; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* Captions: what it is, then where */
.ph { margin: 0; position: relative; }
.ph img { width: 100%; height: auto; }
.cap { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 10px; font-size: 0.86rem; line-height: 1.35; }
.cap b { font-weight: 600; color: var(--ink); }
.cap span { color: var(--label); }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(238, 234, 226, 0.97); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; gap: 12px; width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; min-height: 64px; }
.brand { margin-right: auto; }
.brand img { width: 118px; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink); }
.nav a:hover { color: var(--rust); }
.top-call { min-height: 42px; padding: 0.55em 0.9em; font-size: 0.92rem; }
.top-call .nw { display: none; }
.menu { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 1.5px; background: var(--ink); content: ""; transition: transform 0.25s var(--ease); }
.menu-bars { position: relative; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }
.menu[aria-expanded="true"] .menu-bars { background: transparent; }
.menu[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--ground); border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 12px; }
.nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--rule); }

/* Hero: the finished deck full-bleed, words over it, facts set into its bottom edge */
.hero { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: calc(100svh - 64px); background: var(--ink); color: #fff; overflow: clip; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30, 32, 36, 0.15) 0%, rgba(30, 32, 36, 0.35) 40%, rgba(30, 32, 36, 0.86) 100%); }
.hero-in { position: relative; z-index: 2; align-self: end; width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 34vh 0 32px; display: grid; gap: 28px; }
.hero h1 { color: #fff; max-width: 13em; }
.lede { margin-top: 16px; font-size: 1.15rem; max-width: 32em; color: rgba(255, 255, 255, 0.9); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips-stack { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.chips-stack li { display: grid; gap: 6px; width: 76px; font-size: 0.74rem; line-height: 1.2; color: rgba(255, 255, 255, 0.86); }
.chips-stack img { aspect-ratio: 1; object-fit: cover; outline: 1px solid rgba(194, 181, 147, 0.85); outline-offset: 3px; }
.hero-cap { position: absolute; z-index: 2; right: var(--gutter); top: 16px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.85); }
.facts { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; background: rgba(30, 32, 36, 0.78); border-top: 1px solid rgba(194, 181, 147, 0.35); }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 14px 0; font-size: 0.82rem; color: var(--on-dark-2); }
.facts li:nth-child(n+3) { border-top: 1px solid rgba(194, 181, 147, 0.25); }
.facts b { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; color: var(--on-dark); }

/* Rust band with the short estimate form */
.band-rust { background: var(--rust); color: #fff; }
.quick { display: grid; gap: 12px; padding: 32px 0; }
.quick h2 { color: #fff; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
.quick label { color: rgba(255, 255, 255, 0.92); }
.quick input { border-color: transparent; }
.field label, .form label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; }
.quick .field label { color: #fff; }
.field input, .form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: max(1rem, 1em); color: var(--ink);
  background: #fbfaf7; border: 1px solid #a69b86; border-radius: 2px;
}
.field input:focus-visible, .form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input:user-invalid, .form input:user-invalid { border-color: #a12a1c; box-shadow: inset 0 -2px 0 #a12a1c; }
.form-note:not(:empty) { grid-column: 1 / -1; font-size: 0.95rem; color: var(--ink); padding: 10px 12px; background: #fbfaf7; }

/* One-time reveal; content stays visible without JS */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal].is-waiting { opacity: 0; transform: translateY(14px); }
  .motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
}

@media (min-width: 700px) {
  :root { --gutter: 32px; --gap: 20px; --cut: 32px; }
  .brand img { width: 140px; }
  .top-call .nw { display: inline; }
  .hero-in { grid-template-columns: 1fr auto; align-items: end; padding: 30vh 0 44px; }
  .chips-stack li { width: 92px; }
  .facts { grid-template-columns: repeat(4, 1fr); padding: 0 max(var(--gutter), calc((100% - 1280px) / 2)); }
  .facts li { padding: 20px 18px 20px 0; }
  .facts li + li { border-left: 1px solid rgba(194, 181, 147, 0.25); padding-left: 18px; }
  .facts li:nth-child(n+3) { border-top: 0; }
  .quick { grid-template-columns: 1.35fr 1fr 1fr auto; align-items: end; gap: 16px; padding: 40px 0; }
  .quick h2 { align-self: center; }
}

@media (min-width: 960px) {
  .top-in { min-height: 78px; gap: 32px; }
  .brand img { width: 158px; }
  .nav { display: flex; gap: 26px; }
  .menu { display: none; }
  .top-call { min-height: 46px; font-size: 0.97rem; }
  .hero { min-height: min(calc(100svh - 78px), 900px); }
  .hero::before { background: linear-gradient(90deg, rgba(30, 32, 36, 0.82) 0%, rgba(30, 32, 36, 0.55) 42%, rgba(30, 32, 36, 0.08) 75%), linear-gradient(180deg, transparent 55%, rgba(30, 32, 36, 0.5) 100%); }
  .hero-in { padding: 120px 0 56px; }
  .hero-cap { top: 20px; right: 32px; }
}
