/* Stone & Timber Construction — brand colors */
:root {
  --navy: #233442;
  --teal: #2d6b73;
  --sage: #859f78;
  --slate: #8c9aaa;
  --cream: #f6f2eb;
  --ink: #233442;
  --muted: #5a6876;
  --white: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --radius: 4px;

  /* Wood-tone placeholder shown until real photos are added */
  --wood:
    repeating-linear-gradient(90deg, rgba(0,0,0,.09) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #8a6a4b, #5e4630 55%, #7b5c3f);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Buttons */
.btn {
  display: inline-block;
  font: 700 0.95rem/1 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: #245a61; }
.btn--sage { background: var(--sage); color: var(--navy); }
.btn--sage:hover { background: #95ae88; }
.btn--block { width: 100%; padding: 1em; font-size: 1rem; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e6e9ec;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.topbar__logo img { height: 44px; width: auto; }
.topbar .btn { padding: .7em 1em; font-size: .875rem; white-space: nowrap; }
@media (max-width: 420px) {
  .topbar__logo img { height: 34px; }
}

/* Photos (real image first, wood placeholder underneath as a fallback) */
.photo { margin: 0; background-color: #6b5038; background-size: cover; background-position: center; }
.photo--hero { background-image: url("images/hero.jpg"), var(--wood); }
.photo--p1   { background-image: url("images/project-1.jpg"), var(--wood); }
.photo--p2   { background-image: url("images/project-2.jpg"), var(--wood); }

/* Hero */
.hero { min-height: min(78vh, 640px); display: flex; align-items: flex-end; }
.hero__inner { padding-top: 120px; padding-bottom: 40px; }
.hero__panel {
  background: rgba(35, 52, 66, .88);
  color: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  max-width: 560px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.hero__sub {
  margin: 12px 0 0;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem;
  color: #b9cbb0;
}
.hero__lead { margin: 12px 0 22px; color: #dbe2e8; }
@media (min-width: 720px) {
  .hero__inner { padding-bottom: 64px; }
  .hero__panel { padding: 36px 40px; }
}

/* Services band */
.services { background: var(--navy); color: var(--white); }
.services__list {
  list-style: none; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding-top: 0; padding-bottom: 0;
}
.services__list li {
  padding: 22px 8px; text-align: center;
  font-weight: 600; letter-spacing: .03em;
}
.services__specialty { color: #b9cbb0; }
.services__specialty::before { content: "★ "; color: var(--sage); }
@media (min-width: 720px) {
  .services__list { grid-template-columns: repeat(4, 1fr); }
  .services__list li { padding: 28px 8px; font-size: 1.05rem; }
}

/* Gallery */
.gallery { padding: 16px 0; background: var(--white); }
.gallery__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery .photo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
@media (min-width: 720px) {
  .gallery { padding: 32px 0; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Contact */
.contact { background: var(--teal); color: var(--white); padding: 56px 0; }
.contact__inner { display: grid; gap: 32px; }
.kicker {
  margin: 0 0 6px; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #cfe3d8;
}
.contact h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: 12px; }
.contact__intro p { color: #e3eeee; }
.contact__email a { color: var(--white); font-weight: 600; word-break: break-word; }
@media (min-width: 860px) {
  .contact { padding: 80px 0; }
  .contact__inner { grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
}

.form { margin: 0; }
.form__row { margin-bottom: 16px; }
.form__row--split { display: grid; gap: 16px; }
@media (min-width: 560px) { .form__row--split { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form .opt { font-weight: 400; color: #cfe3d8; }
.form input, .form textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.form textarea { resize: vertical; min-height: 130px; }
.form input::placeholder { color: #98a3ad; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__captcha { margin: 4px 0 16px; min-height: 0; }
.form__captcha:empty { margin: 0; }
.form__status { margin: 12px 0 0; min-height: 1.6em; font-weight: 600; }
.form__status.is-error {
  color: var(--navy);
  background: #fbe9e3;
  border-left: 4px solid #c0563a;
  padding: 10px 12px;
  border-radius: var(--radius);
}
/* keep the reCAPTCHA box from overflowing very narrow phones */
@media (max-width: 340px) { .form__captcha { transform: scale(.88); transform-origin: left top; } }

/* Footer */
.footer { background: var(--navy); color: #c4cdd6; padding: 40px 0; font-size: .95rem; }
.footer__inner { display: flex; gap: 20px; align-items: flex-start; }
.footer__mark { width: 52px; height: auto; flex: none; }
.footer p { margin: 0 0 6px; }
.footer__name { font-family: var(--serif); font-size: 1.15rem; color: var(--white); }
.footer a { color: var(--white); word-break: break-word; }
.footer__copy { margin-top: 12px !important; color: var(--slate); font-size: .85rem; }

/* Thank-you page */
body:has(.thanks) { background: var(--cream); }
.thanks { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 48px 16px; background: var(--cream); }
.thanks h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 20px 0 10px; }
.thanks p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }
.thanks img { margin: 0 auto; height: 120px; width: auto; }
