/* Pacific Highland Homes — site styles */

:root {
  --ink: #1d1a16;
  --ink-soft: #4c463d;
  --paper: #faf8f3;
  --paper-warm: #f2eee5;
  --line: #e2dccf;
  --bronze: #a07f4a;
  --bronze-deep: #83653a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 96px; height: auto; flex-shrink: 0; }
.brand .brand-name {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.brand .brand-sub {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bronze-deep);
}
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
.main-nav a:hover { color: var(--bronze-deep); }
.nav-phone {
  color: var(--ink) !important; font-weight: 500;
  border: 1px solid var(--bronze); padding: 8px 18px; border-radius: 2px;
}
.nav-phone:hover { background: var(--bronze); color: #fff !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--ink); line-height: 1;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: flex-end;
  background: linear-gradient(160deg, #2b2620 0%, #4a4234 55%, #6b5d47 100%);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.hero-slides img.active { opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 13, 0.78) 0%, rgba(20, 17, 13, 0.34) 55%, rgba(20, 17, 13, 0.38) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 88px; width: 100%; }
.hero-kicker {
  color: #d8c49a; font-size: 12px; letter-spacing: 0.42em;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500; color: #fdfcf8;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.08;
  max-width: 14em; text-wrap: balance;
}
.hero p {
  color: #e9e2d2; max-width: 34em; margin-top: 20px; font-size: 17px; font-weight: 300;
}
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 14px 30px;
  border-radius: 2px; transition: background 0.2s, color 0.2s;
}
.btn-solid { background: var(--bronze); color: #fff; }
.btn-solid:hover { background: var(--bronze-deep); }
.btn-ghost { border: 1px solid rgba(253, 252, 248, 0.6); color: #fdfcf8; }
.btn-ghost:hover { background: rgba(253, 252, 248, 0.12); }
.btn-dark { border: 1px solid var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--paper); }

/* ── Section scaffolding ────────────────────────────── */
section { padding: 92px 0; }
.section-kicker {
  color: var(--bronze-deep); font-size: 12px; letter-spacing: 0.38em;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12;
  max-width: 18em; text-wrap: balance;
}
.section-lede { color: var(--ink-soft); max-width: 44em; margin-top: 18px; font-size: 17px; }

/* ── Stats band ─────────────────────────────────────── */
.stats-band { background: var(--paper-warm); border-block: 1px solid var(--line); padding: 44px 0; }
.stats-band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--serif); font-size: 40px;
  font-weight: 500; color: var(--ink); line-height: 1.1;
}
.stat span { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }

/* ── Portfolio ──────────────────────────────────────── */
.portfolio-grid {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px;
}
.project-card {
  grid-column: span 3;
  cursor: pointer; border: none; background: none; text-align: left;
  font: inherit; color: inherit; padding: 0;
}
.project-figure {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 3px; background: var(--paper-warm);
}
.project-figure img, .project-figure svg {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-figure img,
.project-card:hover .project-figure svg { transform: scale(1.04); }
.photo-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(20, 17, 13, 0.62); color: #f3eee2;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 2px;
}
.project-meta { padding: 18px 4px 0; }
.project-meta h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.project-meta .addr {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bronze-deep); margin-top: 4px;
}
.project-meta .specs { font-size: 13px; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.04em; }
.project-meta p { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; }

/* ── About ──────────────────────────────────────────── */
.about { background: #211d18; color: #efe9db; }
.about .section-kicker { color: #cbb37f; }
.about .section-title { color: #fdfcf8; }
.about-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; margin-top: 40px; align-items: start; }
.about-cols p { color: #cfc7b4; margin-bottom: 18px; font-size: 16.5px; font-weight: 300; }
.about-highlights { border-left: 1px solid #4a4234; padding-left: 40px; display: grid; gap: 26px; }
.about-highlights h4 {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: #cbb37f;
  margin-bottom: 6px;
}
.about-highlights p { font-size: 15px; margin: 0; }

/* ── Process ────────────────────────────────────────── */
.process-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.process-step { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 32px 28px; }
.process-step .num {
  font-family: var(--serif); font-size: 30px; color: var(--bronze); font-weight: 600;
}
.process-step h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 10px 0 8px; }
.process-step p { color: var(--ink-soft); font-size: 14.5px; }

/* ── Contact ────────────────────────────────────────── */
.contact { background: var(--paper-warm); border-top: 1px solid var(--line); }
.contact-cols { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; margin-top: 40px; }
.contact-direct { display: grid; gap: 8px; align-content: start; }
.contact-direct a { color: var(--ink); text-decoration: none; font-size: 19px; font-family: var(--serif); }
.contact-direct a:hover { color: var(--bronze-deep); }
.contact-direct .label {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 18px;
}
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px;
  background: #fff; padding: 13px 14px; font: inherit; color: var(--ink);
  margin-top: 6px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--bronze); outline-offset: -1px; border-color: var(--bronze);
}
.contact-form button { justify-self: start; cursor: pointer; border: none; font-family: var(--sans); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background: #17140f; color: #9a917e; padding: 44px 0; font-size: 13px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .foot-brand { font-family: var(--serif); color: #e8e1d0; font-size: 17px; letter-spacing: 0.08em; }
.foot-logo { width: 200px; height: auto; display: block; margin-bottom: 10px; }
.site-footer .license { letter-spacing: 0.08em; }

/* ── Lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(15, 13, 10, 0.94);
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox svg { max-width: 88vw; max-height: 76vh; object-fit: contain; border-radius: 2px; }
.lightbox .lb-caption { color: #d8d0bd; margin-top: 16px; font-size: 14px; letter-spacing: 0.06em; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; background: none; border: none;
  color: #d8d0bd; font-size: 34px; cursor: pointer; line-height: 1;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(216, 208, 189, 0.4); color: #d8d0bd;
  font-size: 22px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
}
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
.lightbox .lb-nav:hover { background: rgba(216, 208, 189, 0.14); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 920px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .project-card { grid-column: span 1; }
  .about-cols, .contact-cols { grid-template-columns: 1fr; gap: 40px; }
  .about-highlights { border-left: none; padding-left: 0; }
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .brand { gap: 9px; }
  .brand-logo { width: 68px; }
  .brand .brand-name { font-size: 15px; }
  .brand .brand-sub { font-size: 8px; letter-spacing: 0.22em; }
  .hero { align-items: flex-start; min-height: 70vh; }
  .hero-inner { padding-top: 52px; padding-bottom: 40px; }
  .hero-kicker { font-size: 10px; letter-spacing: 0.34em; margin-bottom: 12px; }
  .hero h1 { font-size: 27px; line-height: 1.18; text-shadow: 0 1px 14px rgba(20, 17, 13, 0.55); }
  .hero p { font-size: 14px; margin-top: 14px; text-shadow: 0 1px 10px rgba(20, 17, 13, 0.6); }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { padding: 11px 20px; font-size: 11px; }
  .hero::after {
    background: linear-gradient(to bottom, rgba(20, 17, 13, 0.62) 0%, rgba(20, 17, 13, 0.28) 55%, rgba(20, 17, 13, 0.42) 100%);
  }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 22px; gap: 20px; display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .stats-band .wrap { grid-template-columns: 1fr; gap: 28px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
