/* Hill Country Design Gallery — site styles
   Plain CSS, mobile first. No build step required. */

:root {
  --paper: #f7f3ec;
  --limestone: #ece4d6;
  --sand: #d9ccb6;
  --ink: #2a2622;
  --ink-soft: #5a524a;
  --cedar: #8b5a3c;
  --cedar-dark: #6f4630;
  --oak: #a8844f;
  --sage: #5f6a4a;
  --night: #24211e;
  --night-text: #efe8dc;
  --night-soft: #c9bfae;
  --line: rgba(42, 38, 34, 0.14);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 8vw, 5.25rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.85rem); font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--cedar-dark); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cedar-dark);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; flex: none; }

.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); max-width: 38rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.8rem 1.6rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; border-radius: var(--radius); border: 1px solid var(--ink);
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--cedar-dark); border-color: var(--cedar-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--night-text); color: var(--night); border-color: var(--night-text); }
.btn-light:hover { background: #fff; color: var(--night); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 2.4rem; height: 2.4rem; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.2rem; }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.55rem 0.8rem; font: 500 0.85rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5.5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; letter-spacing: 0.03em; padding: 0.4rem 0; display: inline-block; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--cedar); color: var(--ink); }

/* Mobile nav (only collapses when JS is available) */
@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/tex-limestone.svg") center/cover;
  opacity: 0.35; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero h1 em { font-style: italic; color: var(--cedar-dark); }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero-note {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.92rem; color: var(--ink-soft); margin: 0;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.hero-note svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--cedar); }

/* Slab composition */
.slabs { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.75rem; aspect-ratio: 5 / 4; }
.slab { position: relative; margin: 0; border-radius: 2px; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 40px -22px rgba(42,38,34,.45); overflow: hidden; }
.slab-marble { grid-row: 1 / span 2; background: url("assets/tex-marble.svg") 30% 40%/cover; }
.slab-quartzite { background: url("assets/tex-quartzite.svg") center/cover; }
.slab-limestone { background: url("assets/tex-limestone.svg") center/cover; }
.slab figcaption {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  background: rgba(247, 243, 236, 0.9); color: var(--ink); padding: 0.3rem 0.55rem; border-radius: 2px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 10vw, 7.5rem) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p:last-child { margin-bottom: 0; }

.statement { background: var(--limestone); padding: clamp(3rem, 7vw, 5rem) 0; border-block: 1px solid var(--line); }
.statement p {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.25; font-weight: 500;
  max-width: 52rem; margin: 0; color: var(--ink);
}
.statement p span { color: var(--cedar-dark); font-style: italic; }

/* What we do */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; counter-reset: step; }
.step { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.step-num { display: block; font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--cedar-dark); margin-bottom: 0.75rem; }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); margin: 0; }
.aside-note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--oak); background: rgba(236, 228, 214, 0.55);
  color: var(--ink-soft); max-width: 48rem;
}
.aside-note strong { color: var(--ink); font-weight: 500; }

/* Materials */
.materials { background: var(--paper); border-top: 1px solid var(--line); }
.material-grid { display: grid; gap: 1.5rem; }
.material { margin: 0; background: #fbf9f5; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.swatch { aspect-ratio: 16 / 10; background-color: var(--limestone); border-bottom: 1px solid var(--line); }
.swatch-marble { background: url("assets/tex-marble.svg") 60% 30%/cover; }
.swatch-quartzite { background: url("assets/tex-quartzite.svg") 40% 60%/cover; }
.swatch-limestone { background: url("assets/tex-limestone.svg") center/cover; }
.swatch-granite { background: url("assets/tex-granite.svg") center/cover; }
.swatch-engineered { background: url("assets/tex-engineered.svg") center/cover; }
.swatch-tile {
  background-color: #b9b2a6;
  background-image:
    linear-gradient(90deg, rgba(247,243,236,.95) 2px, transparent 2px),
    linear-gradient(rgba(247,243,236,.95) 2px, transparent 2px),
    linear-gradient(135deg, #6f7d6d 0 50%, #7d8a79 50% 100%);
  background-size: 34px 34px, 34px 34px, 34px 34px;
  background-position: -1px -1px, -1px -1px, 0 0;
}
.swatch-architectural {
  background-color: #b58f5e;
  background-image:
    repeating-linear-gradient(90deg, rgba(42,38,34,.0) 0 22px, rgba(42,38,34,.18) 22px 23px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 3px, rgba(111,70,48,.10) 3px 5px, rgba(255,255,255,.0) 5px 9px),
    linear-gradient(180deg, #c29d6b, #a57d4b);
  background-size: 115px 100%, 100% 100%, 100% 100%;
}
.material-body { padding: 1.4rem 1.4rem 1.6rem; }
.material-body .kind { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cedar-dark); font-weight: 500; margin-bottom: 0.4rem; }
.material-body h3 { margin-bottom: 0.45rem; }
.material-body p { font-size: 0.98rem; color: var(--ink-soft); margin: 0; }
.material-intro {
  background: var(--night); color: var(--night-text); border-color: var(--night);
  padding: 1.75rem; justify-content: flex-end;
  background-image: linear-gradient(180deg, rgba(36,33,30,.55), rgba(36,33,30,.95)), url("assets/tex-granite.svg");
  background-size: cover;
}
.material-intro h3 { color: var(--night-text); font-size: clamp(1.7rem, 3vw, 2.1rem); }
.material-intro p { color: var(--night-soft); margin: 0; }

/* Trade */
.trade { background: var(--night); color: var(--night-text); position: relative; overflow: hidden; }
.trade::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/tex-marble.svg") center/cover; opacity: 0.05; pointer-events: none;
}
.trade .wrap { position: relative; }
.trade h2, .trade h3 { color: var(--night-text); }
.trade .eyebrow { color: #d6b48a; }
.trade .lead { color: var(--night-soft); }
.trade-grid { display: grid; gap: 3rem; }
.benefits { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.benefits li { padding: 1.15rem 0; border-top: 1px solid rgba(239, 232, 220, 0.18); display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; }
.benefits li:last-child { border-bottom: 1px solid rgba(239, 232, 220, 0.18); }
.benefits svg { width: 1.25rem; height: 1.25rem; color: #d6b48a; margin-top: 0.25rem; }
.benefits strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.2rem; color: var(--night-text); }
.benefits span { color: var(--night-soft); font-size: 0.98rem; }

/* Forms */
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form-card h3 { color: var(--ink); margin-bottom: 0.35rem; }
.form-card > p { color: var(--ink-soft); font-size: 0.95rem; }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fffdf9; border: 1px solid #b5aa98; border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 3rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232a2622' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cedar); box-shadow: 0 0 0 3px rgba(139, 90, 60, 0.2); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.5rem; }
.checks { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.97rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--cedar); margin: 0; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-fine { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Homeowners */
.homeowners { background: var(--limestone); position: relative; overflow: hidden; }
.homeowners::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/tex-limestone.svg") center/cover; opacity: 0.55; pointer-events: none;
}
.homeowners .wrap { position: relative; }
.homeowners-inner { display: grid; gap: 2rem; align-items: end; }
.homeowners-inner p { color: var(--ink-soft); }
.homeowners-inner .lead { color: var(--ink); }

/* About */
.founders { display: grid; gap: 1.5rem; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.75rem 0; border-top: 1px solid var(--ink); }
.monogram {
  width: 4.25rem; height: 4.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); background: url("assets/tex-limestone.svg") center/cover;
  border: 1px solid var(--sand);
}
.founder h3 { margin-bottom: 0.15rem; }
.founder .role { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cedar-dark); font-weight: 500; margin-bottom: 0.6rem; }
.founder p:last-child { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact { background: #efe9df; border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 3rem; }
.contact .form-card { box-shadow: 0 24px 50px -32px rgba(42,38,34,.45); background: #fbf9f5; }
.contact-details { display: grid; gap: 1.75rem; align-content: start; }
.detail { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.detail h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; color: var(--cedar-dark); margin-bottom: 0.5rem; }
.detail p { margin: 0; color: var(--ink-soft); }
.detail .big { font-family: var(--serif); font-size: 1.55rem; line-height: 1.25; color: var(--ink); margin-bottom: 0.4rem; font-weight: 500; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-soft); padding: 3.5rem 0 2.5rem; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.85rem; color: var(--night-text); text-decoration: none; }
.footer-brand img { width: 2.6rem; height: 2.6rem; }
.footer-brand span { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(239, 232, 220, 0.15); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }

/* Simple pages (thanks / 404) */
.simple-page { min-height: 70vh; display: grid; align-items: center; position: relative; overflow: hidden; padding: 5rem 0; }
.simple-page::before { content: ""; position: absolute; inset: 0; background: url("assets/tex-marble.svg") center/cover; opacity: 0.6; pointer-events: none; }
.simple-page .wrap { position: relative; }
.simple-card { max-width: 38rem; background: rgba(247, 243, 236, 0.92); padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); border: 1px solid var(--line); }
.simple-card .hero-actions { margin: 1.5rem 0 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .checks { grid-template-columns: 1fr 1fr; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid.two .full { grid-column: 1 / -1; }
  .material-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .founders { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .homeowners-inner { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .material-grid { grid-template-columns: repeat(4, 1fr); }
  .trade-grid { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: start; }
  .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 4.5rem; }
  .trade-copy { position: sticky; top: 6.5rem; }
}

/* ---------- Refinements ---------- */
.step-num { font-size: 1.5rem; }
.homeowners-inner { align-items: center; }
.homeowners-inner > div:last-child p { font-size: 1.05rem; }

@media (max-width: 559px) {
  .brand-name { font-size: 1.12rem; }
  .brand-name small { font-size: 0.56rem; letter-spacing: 0.18em; }
  .brand img { width: 2.1rem; height: 2.1rem; }
  .eyebrow { letter-spacing: 0.14em; }
  .hero .eyebrow::before { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  /* Compact, side-by-side material cards on phones */
  .material:not(.material-intro) { flex-direction: row; }
  .material:not(.material-intro) .swatch { flex: 0 0 36%; aspect-ratio: auto; min-height: 9rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .material-body { padding: 1.1rem 1.1rem 1.2rem; }
  .material-body p { font-size: 0.94rem; }
  .material-body h3 { font-size: 1.45rem; }
  .material-intro { padding: 1.5rem; min-height: 11rem; }
}
@media (max-width: 559px) {
  .nav-toggle { padding: 0.7rem; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-inner { gap: 0.5rem; }
  .hero .eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; }
}
[id] { scroll-margin-top: 5rem; }
