/* ==========================================================================
   SPYGLASS — Custom Home Builders
   Brand: pine green · brass/gold · charcoal · parchment
   Type:  Marcellus (display) · Archivo (body) · IBM Plex Mono (spec labels)
   ========================================================================== */

:root {
  --pine: #1c4433;
  --pine-deep: #123126;
  --brass: #b3893c;
  --brass-light: #cfa95c;
  --charcoal: #24261f;
  --parchment: #f2ede0;
  --parchment-deep: #e9e1cf;
  --ink: #24261f;
  --ink-soft: #4d4f45;
  --white: #fdfcf8;

  --font-display: "Marcellus", serif;
  --font-body: "Archivo", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* --------------------------------------------------------------------------
   Sightline — the brand's signature mark: a surveyor's level line
   with a crosshair ring, used above headings and in the hero.
   -------------------------------------------------------------------------- */
.sightline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.sightline::before {
  content: "";
  width: 11px; height: 11px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.sightline::after {
  content: "";
  height: 1px;
  flex-grow: 1;
  max-width: 88px;
  background: var(--brass);
}
.sightline .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  order: -1;
}
.sightline--center { justify-content: center; }
.sightline--center::after { max-width: 44px; }
.sightline--center::before { order: -2; }
.sightline--light .eyebrow { color: var(--brass-light); }
.sightline--light::before { border-color: var(--brass-light); }
.sightline--light::after { background: var(--brass-light); }

@media (max-width: 480px) {
  .sightline .eyebrow {
    white-space: normal;
    font-size: 0.65rem;
    line-height: 1.4;
  }
  .sightline::after { max-width: 32px; }
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--pine);
  color: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(207, 169, 92, 0.35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.wordmark {
  text-decoration: none;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
}
.wordmark .logo-chip {
  height: 48px;
  width: auto;
  display: block;
}
.site-footer .wordmark .logo-chip { height: 42px; }
.wordmark .name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  color: var(--parchment);
}
.wordmark .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-top: 2px;
}
.site-nav ul {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--parchment);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--brass-light); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--brass-light); }
.site-nav .nav-cta {
  border: 1px solid var(--brass);
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--brass); color: var(--pine-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--brass-light);
  color: var(--parchment);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--pine-deep);
    border-bottom: 1px solid var(--brass);
    padding: 1rem var(--pad) 1.5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a { display: block; padding: 0.7rem 0; font-size: 1.05rem; }
  .site-nav .nav-cta { display: inline-block; margin-top: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--parchment);
  isolation: isolate;
}
@supports (height: 100dvh) {
  .hero {
    min-height: min(88dvh, 780px);
  }
}
.hero img.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(18, 25, 20, 0.88) 0%,
    rgba(18, 25, 20, 0.45) 45%,
    rgba(18, 25, 20, 0.18) 100%
  );
}
.hero .wrap { padding-top: 6rem; padding-bottom: clamp(3rem, 8vh, 5.5rem); width: 100%; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.12;
  max-width: 15ch;
  margin-bottom: 1.1rem;
}
.hero p.lede {
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(242, 237, 224, 0.92);
  margin-bottom: 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Page heroes (interior pages) */
.page-hero {
  background: var(--pine);
  color: var(--parchment);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 3.75rem);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  max-width: 20ch;
}
.page-hero p {
  max-width: 58ch;
  margin-top: 1rem;
  color: rgba(242, 237, 224, 0.88);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}
.btn--brass {
  background: var(--brass);
  color: var(--pine-deep);
  border: 1px solid var(--brass);
  font-weight: 600;
}
.btn--brass:hover, .btn--brass:focus-visible { background: var(--brass-light); border-color: var(--brass-light); }
.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(242, 237, 224, 0.65);
}
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--brass-light); color: var(--brass-light); }
.btn--pine {
  background: var(--pine);
  color: var(--parchment);
  border: 1px solid var(--pine);
}
.btn--pine:hover, .btn--pine:focus-visible { background: var(--pine-deep); }

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

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.25rem, 8vw, 5.5rem) 0; }
.section--deep { background: var(--parchment-deep); }
.section--pine { background: var(--pine); color: var(--parchment); }
.section--charcoal { background: var(--charcoal); color: var(--parchment); }

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  max-width: 24ch;
  margin-bottom: 1rem;
}
.section .section-intro { max-width: 62ch; color: var(--ink-soft); margin-bottom: 2.5rem; }
.section--pine .section-intro,
.section--charcoal .section-intro { color: rgba(242, 237, 224, 0.85); }

/* --------------------------------------------------------------------------
   Project cards — styled as builder spec sheets
   -------------------------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.project-card {
  background: var(--white);
  border: 1px solid rgba(36, 38, 31, 0.12);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(36, 38, 31, 0.16);
}
.project-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-card .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card .photo.photo--full {
  aspect-ratio: auto;
  background: var(--parchment-deep);
}
.project-card .photo.photo--full img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.project-card:hover .photo.photo--full img { transform: none; }
.project-card:hover .photo img { transform: scale(1.035); }
.project-card .body { padding: 1.4rem 1.5rem 1.6rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-card .proj-no {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.project-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}
.project-card p { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }
.project-card .spec-row {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(36, 38, 31, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.project-card .spec-row strong { color: var(--pine); font-weight: 500; }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid rgba(36, 38, 31, 0.12);
  border-top: 3px solid var(--brass);
  border-radius: 2px;
  padding: 1.5rem 1.4rem 1.6rem;
  counter-increment: step;
}
.section--pine .step,
.section--deep .step { background: var(--white); }
.step::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--brass);
  display: block;
  margin-bottom: 0.7rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.step p { font-size: 0.93rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}
.quote-card {
  background: var(--white);
  border: 1px solid rgba(36, 38, 31, 0.12);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
  padding: 1.75rem 1.6rem;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.quote-card cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pull-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  line-height: 1.45;
}
.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 54ch; margin: 0 auto 2rem; color: rgba(242, 237, 224, 0.85); }

/* --------------------------------------------------------------------------
   Two-column feature (About page, Services intro)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split .photo-frame {
  border: 1px solid rgba(36, 38, 31, 0.15);
  padding: 0.6rem;
  background: var(--white);
  border-radius: 2px;
}
.split .photo-frame img { border-radius: 1px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* Value list */
.value-list { list-style: none; margin-top: 1.5rem; }
.value-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(36, 38, 31, 0.12);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: baseline;
}
.value-list li::before {
  content: "—";
  color: var(--brass);
  font-weight: 600;
}
.value-list strong { color: var(--pine); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-lines { list-style: none; margin-top: 1.5rem; }
.contact-lines li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(36, 38, 31, 0.12);
}
.contact-lines .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 0.25rem;
}
.contact-lines a {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.contact-lines a:hover { color: var(--pine); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(242, 237, 224, 0.82);
  padding: 3.25rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .wordmark .name { font-size: 1.3rem; }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(242, 237, 224, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-legal {
  border-top: 1px solid rgba(242, 237, 224, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(242, 237, 224, 0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   JobTread form wrapper — lets the embedded form sit comfortably
   -------------------------------------------------------------------------- */
.jt-embed { margin-top: 0.5rem; }

/* Re-theme the embedded JobTread form to match the site palette and type
   system. JobTread's own CSS defines --color-white/--color-gray-* on the
   .jtwf element and every utility class reads from those variables, so
   overriding the variables here recolors the whole form — card background,
   inputs, focus states — without touching JobTread's embed markup or logic.
   These are plain (non-layered) rules, so they automatically win over the
   embed's own @layer-scoped styles regardless of source order. */
.jt-embed .jtwf {
  font-family: var(--font-body);
  --color-white: var(--parchment);
  --color-gray-200: #d9cfb8;
  --color-gray-50: #ece4d2;
}

.jt-embed .jtwf .font-bold {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}
.jt-embed .jtwf .font-bold .text-red-500 {
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: normal;
}
.jt-embed .jtwf input,
.jt-embed .jtwf textarea,
.jt-embed .jtwf .grow.min-w-0 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.jt-embed .jtwf input::placeholder,
.jt-embed .jtwf textarea::placeholder {
  font-family: var(--font-body);
}
.jt-embed .jtwf input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
}
.jt-embed .jtwf button[data-submit-button] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: none;
  background-color: var(--brass) !important;
  color: var(--pine-deep) !important;
}
.jt-embed .jtwf button[data-submit-button]:hover {
  filter: none;
  background-color: var(--brass-light) !important;
}
