/* ---- Tokens ---- */
:root {
  --ink: #1B1815;
  --bronze: #AD8A5C;
  --bronze-dark: #8C6C42;
  --cream: #F5F1E8;
  --paper: #FFFFFF;
  --stone: #6B6459;
  --line: #DED5C0;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: none;
  padding: 0 40px;
}

.logo img { height: 46px; width: auto; }

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { border-color: var(--bronze); color: var(--bronze-dark); }
.main-nav a.active { border-color: var(--bronze); color: var(--bronze-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.nav-quote-mobile { display: none; }

/* ---- Hero: centered, panoramic photo below ---- */
.hero {
  padding: 40px 0 0;
}

.hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 26px;
}

.hero-copy h1 {
  font-size: clamp(24px, 3.2vw, 38px);
  white-space: nowrap;
}

.hero-copy .lede {
  margin-top: 12px;
  font-size: 16px;
  color: var(--stone);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-media {
  width: 100%;
  height: 460px;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--bronze-dark); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { border-color: var(--bronze); color: var(--bronze-dark); }

/* Roofline divider motif, echoes the logo mark */
.roofline {
  width: 100%;
  height: 46px;
  display: block;
}

/* ---- Section shell ---- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
}
.section-head .desc {
  color: var(--stone);
  font-size: 17px;
  max-width: 46ch;
}

/* ---- Services ---- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--paper);
  padding: 40px 34px;
}
.service h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.service p {
  color: var(--stone);
  font-size: 15px;
}

/* ---- Projects / gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 6px;
}

.g-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.g-wide { grid-column: span 2; }

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.5s ease, opacity 0.3s ease;
  display: block;
}
.g-item:hover img { transform: scale(1.04); opacity: 0.92; }

.g-item figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  pointer-events: none;
}
.g-tag {
  background: rgba(27,24,21,0.72);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: var(--radius);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,13,11,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

/* ---- About strip ---- */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-strip .stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}
.about-strip .stat { max-width: 250px; }
.about-strip .stat b {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 27px;
  color: var(--bronze-dark);
}
.about-strip .stat span {
  font-size: 13px;
  color: var(--stone);
}

/* ---- Contact / footer ---- */
.contact {
  background: var(--ink);
  color: var(--cream);
}
.contact .section-head h2 { color: var(--cream); }
.contact .section-head .desc { color: #C9C1B3; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,241,232,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}
.contact-list li span:first-child { color: #C9C1B3; }

form.cta-form {
  display: grid;
  gap: 14px;
}
.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(245,241,232,0.06);
  border: 1px solid rgba(245,241,232,0.25);
  color: var(--cream);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: #9C9384; }
.cta-form button {
  justify-self: start;
  background: var(--bronze);
  color: var(--ink);
  border: none;
  cursor: pointer;
}
.cta-form button:hover { background: var(--bronze-dark); color: var(--cream); }

footer.site-footer {
  background: var(--ink);
  color: #9C9384;
  border-top: 1px solid rgba(245,241,232,0.12);
  padding: 28px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

/* ---- Interior page header (Services, Projects, About, Service Area) ---- */
.page-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  max-width: 16ch;
}
.page-hero p {
  margin-top: 16px;
  color: var(--stone);
  font-size: 17px;
  max-width: 52ch;
}

/* ---- Service detail cards (Services page) ---- */
.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: none; }
.service-detail h3 { font-size: 26px; }
.service-detail .desc-col p {
  color: var(--stone);
  font-size: 16px;
  margin-bottom: 18px;
}
.service-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-detail li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.service-detail li:first-child { border-top: none; }

/* ---- Service area grid ---- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.area-card {
  background: var(--paper);
  padding: 26px 22px;
}
.area-card h3 { font-size: 17px; }
.area-card p { margin-top: 6px; color: var(--stone); font-size: 14px; }


@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
  }
  .site-header.nav-open .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .site-header.nav-open .main-nav a:last-child { border-bottom: none; }
  .site-header.nav-open .main-nav .nav-quote-mobile {
    display: block;
    color: var(--bronze-dark);
    font-weight: 600;
  }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .wrap { padding: 0 20px; }
  .hero-media { height: 260px; }
  .hero-copy { padding: 20px 20px 32px; }
  .hero-copy h1 { white-space: normal; }
  .section-head { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g-wide { grid-column: span 2; }
  .about-strip { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 20px; }
  footer.site-footer { flex-direction: column; gap: 8px; }
}
