/* ==========================================================================
   Twelve Two Properties: custom home building and development
   Light luxury system built around the gold gable logo: ivory and champagne
   surfaces, Playfair Display headings, Cinzel spaced caps, antique gold
   accents, black reserved for the process band and the footer.
   ========================================================================== */

:root {
  --ivory: #faf8f2;
  --ivory-2: #f3edde;
  --white: #fffefa;
  --ink: #15120e;
  --ink-soft: #2b2620;
  --body-color: #555046;
  --stone: #99917f;
  --line: #e7dfcd;
  --line-gold: #ddcb9e;
  --line-dark: rgba(217, 179, 106, 0.22);
  --gold: #a67c3d;
  --gold-deep: #8a6a35;
  --gold-light: #d9b36a;
  --gold-pale: #f0e6cb;
  /* legacy aliases kept for any inline styles */
  --brass: #a67c3d;
  --brass-dark: #8a6a35;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-caps: 'Cinzel', 'Times New Roman', serif;
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body-color);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--gold); }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(1180px, 90%); margin: 0 auto; }

section { padding: clamp(4rem, 8vw, 7rem) 0; }
.band-ink {
  background: var(--ink);
  color: #b7ab93;
  border-top: 1px solid var(--gold);
}
.band-ink h2, .band-ink h3 { color: #f3e9d2; }
.band-alt {
  background: var(--ivory-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tile-wall { background: var(--ivory-2); }

.overline {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.overline::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.9em;
}
.band-ink .overline { color: var(--gold-light); }

.section-head { max-width: 660px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.lead { font-size: 1.14rem; line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-caps);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  padding: 1.25em 2.3em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-solid { background: var(--ink); color: #e7cd8f; }
.btn-solid:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #e7cd8f; }
.btn-light { border-color: var(--gold-light); background: var(--gold-light); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--gold-light); }
.btn-ghost { border-color: rgba(217, 179, 106, 0.55); background: transparent; color: var(--gold-light); }
.btn-ghost:hover { border-color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }

.logo { text-decoration: none; line-height: 1.05; display: flex; align-items: center; gap: 0.95rem; }
.logo .logo-mark { height: 46px; width: auto; flex: none; }
.logo .logo-words { display: block; }
.logo .word {
  display: block;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo .sub {
  display: block;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 0.53rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.34rem;
}
.logo-light .word { color: #f3e9d2; }
.logo-light .sub { color: var(--gold-light); }

.site-nav { display: flex; align-items: center; gap: 2.1rem; }
.site-nav > a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav > a:hover { color: var(--gold); }
.site-nav .btn { padding: 1em 1.7em; }
.site-nav a.btn-solid { color: #e7cd8f; }
.site-nav a.btn-solid:hover { color: var(--white); background: var(--gold-deep); border-color: var(--gold-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: none;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; width: 100%; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 11.5em; }
.hero .lead { max-width: 30em; }
.hero .btn-row { margin-top: 2.4rem; }
.hero-art { padding-right: 18px; padding-bottom: 18px; }
.hero-art .arch {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line-gold);
  box-shadow: 18px 18px 0 var(--gold-pale);
}

/* ---------- Services (ruled editorial rows) ---------- */
.service-rows { border-top: 1px solid var(--line-gold); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2.1rem 0.5rem;
  border-bottom: 1px solid var(--line-gold);
  transition: background-color 0.2s ease;
}
.service-row:hover { background: var(--white); }
.service-row .num { font-family: var(--font-serif); font-size: 1.2rem; color: var(--gold); }
.service-row h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.service-row p { margin: 0; font-size: 0.98rem; }

/* ---------- Project tiles ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project a { text-decoration: none; }
.project .photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  margin-bottom: 1.2rem;
  display: block;
}
.photo-slot {
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  background: linear-gradient(160deg, var(--ivory-2) 0%, #ece2cb 60%, #e4d8ba 100%);
  border: 1px solid var(--line-gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.photo-slot span {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.photo-slot.tall { aspect-ratio: 3 / 4; }
.project h3 { font-size: 1.25rem; margin-bottom: 0.2em; }
.project .meta {
  font-family: var(--font-caps);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Process (black band, gold numerals) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2.2rem; margin-top: 3rem; }
.process-step .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-light);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
}
.process-step h3 { color: #f3e9d2; font-size: 1.12rem; margin-bottom: 0.4em; }
.process-step p { font-size: 0.94rem; margin: 0; color: #a89c85; }

/* ---------- Principles (two-column editorial) ---------- */
.principles { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.principle-list { border-top: 1px solid var(--line-gold); }
.principle { padding: 1.7rem 0.25rem; border-bottom: 1px solid var(--line-gold); }
.principle h3 { font-size: 1.18rem; margin-bottom: 0.35em; }
.principle p { margin: 0; font-size: 0.98rem; }

/* ---------- Testimonials (currently unused, kept for return) ---------- */
.quote-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.quote { border-top: 2px solid var(--gold); padding-top: 1.6rem; }
.quote blockquote {
  margin: 0 0 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.quote cite { font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.quote.placeholder blockquote { color: var(--stone); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-note { font-size: 0.95rem; color: var(--stone); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.9rem 2.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid #d3c5a2;
  border-radius: 0;
  padding: 0.45em 0.1em 0.6em;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 96px; }
.form-status { display: none; margin-top: 1.4rem; padding: 1rem 1.2rem; font-size: 0.95rem; border: 1px solid var(--line-gold); }
.form-status.ok { display: block; color: #3d6b4f; border-color: #b9cfc1; background: #eef3ee; }
.form-status.err { display: block; color: #8c3a2e; border-color: #d8bcb4; background: #f7eeea; }

/* ---------- Materials ---------- */
.material-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.material { margin: 0; }
.material img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  display: block;
}
.material figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-family: var(--font-caps);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Footer (black, gold seam, gold lockup) ---------- */
.site-footer {
  background: #100d0a;
  color: #a89c85;
  font-size: 0.9rem;
  border-top: 1px solid var(--gold);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; padding: 3.6rem 0 2.6rem; }
.site-footer .logo .logo-mark { height: 56px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer-nav a {
  color: #b7ab93;
  text-decoration: none;
  font-family: var(--font-caps);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 1.3rem 0 1.6rem; font-size: 0.78rem; }
.footer-bottom p { margin: 0.2rem 0; }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.gl {
  padding: 0;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  overflow: hidden;
  cursor: zoom-in;
  background: none;
  display: block;
}
.gl img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gl:hover img { transform: scale(1.04); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 13, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 3px; border: 1px solid rgba(217, 179, 106, 0.4); }
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: none;
  border: none;
  color: #e7cd8f;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.4em;
  opacity: 0.85;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 0.9rem; right: 1.3rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gl:hover img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line-gold);
    padding: 0.5rem 5%; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 1em 0.2em; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin: 1rem 0.2em 0.6rem; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 430px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .principles, .contact-grid { grid-template-columns: 1fr; }
  .quote-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-row { grid-template-columns: 56px 1fr; }
  .service-row p { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr; }
  .material-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-art { padding-right: 12px; padding-bottom: 12px; }
  .hero-art .arch { box-shadow: 12px 12px 0 var(--gold-pale); }
}
