/* ============================================
   TS Homes LLC — Shared Styles
   Palette: alabaster #F6F4EF / midnight navy #1F2B3A / copper #B4764A
   Type: Cormorant Garamond (display) + Montserrat (body)
   ============================================ */

:root {
  --bg: #FFFFFF;
  --ink: #1F2B3A;
  --muted: #4A5260;
  --bronze: #B4764A;
  --bronze-soft: #C9915F;
  --line: #E2DED4;
  --card: #FAF9F5;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.15;
}

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

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

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  display: block;
  margin-bottom: 18px;
}

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: var(--bronze); font-style: italic; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}

.nav-links a:hover,
.nav-links a.active { border-bottom-color: var(--bronze); color: var(--bronze); }

.nav-cta {
  border: 1px solid var(--ink) !important;
  padding: 10px 22px !important;
  transition: background 0.25s, color 0.25s !important;
}

.nav-cta:hover { background: var(--ink); color: var(--bg) !important; border-bottom-color: var(--ink) !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 26px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 90px; border-bottom: 1px solid var(--line); text-align: center; }

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  max-width: 780px;
  margin: 0 auto 28px;
}

.hero h1 em { font-style: italic; color: var(--bronze); }

.hero p.lede {
  font-size: 18px;
  max-width: 640px;
  color: var(--muted);
  margin: 0 auto 44px;
}

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; }
.hero .btn-row { justify-content: center; }

.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
}

.btn-solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--bronze); border-color: var(--bronze); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }

.section-head { max-width: 640px; margin-bottom: 60px; }

.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 18px; }

.section-head p { color: var(--muted); }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 42px 34px;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover { border-color: var(--bronze-soft); transform: translateY(-4px); }

.card h3 { font-size: 26px; margin-bottom: 14px; }

.card p { font-size: 15px; color: var(--muted); }

.card .rule { width: 36px; height: 1px; background: var(--bronze); margin-bottom: 22px; }

/* ---------- Process timeline (signature) ---------- */
.process { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }

.steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--line);
}

.step { text-align: center; padding: 0 14px; position: relative; }

.step .dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  background: var(--bg);
  color: var(--bronze);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 22px; margin-bottom: 8px; }

.step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; }

.quote-band blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-style: italic;
  font-weight: 500;
  max-width: 820px;
  margin: 0 auto 20px;
}

.quote-band cite {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.cta-band h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }

.cta-band p { color: #CBD1DA; max-width: 540px; margin: 0 auto 40px; }

.cta-band .btn-ghost { color: var(--bg); border-color: var(--bg); }
.cta-band .btn-ghost:hover { background: var(--bg); color: var(--ink); }

/* ---------- Forms ---------- */
form { max-width: 640px; }

.field { margin-bottom: 26px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s;
}

input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bronze); }

textarea { min-height: 150px; resize: vertical; }

/* ---------- Detail rows (services page) ---------- */
.detail-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-of-type { border-bottom: none; }

.detail-row h3 { font-size: 30px; }

.detail-row .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--bronze);
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
}

.detail-row p { color: var(--muted); font-size: 15.5px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }

.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }

footer h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--bronze);
}

footer p, footer a, footer li { font-size: 14px; color: var(--muted); text-decoration: none; }

footer ul { list-style: none; }

footer li { margin-bottom: 10px; }

footer a:hover { color: var(--bronze); }

.disclosure {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 12.5px;
  color: #5B6270;
  line-height: 1.7;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line); }

.page-hero h1 { font-size: clamp(38px, 5vw, 56px); max-width: 720px; margin-bottom: 20px; }

.page-hero p { color: var(--muted); max-width: 600px; font-size: 17px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .detail-row { grid-template-columns: 1fr; gap: 14px; padding: 40px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }

  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: none; }
  .nav-cta { border: none !important; }

  .hero { padding: 70px 0 60px; }
  section { padding: 60px 0; }
}

/* ---------- Logo integration ---------- */
.logo-nav { height: 38px; width: auto; display: block; }
footer .logo-nav { height: 34px; }
.logo-hero { width: min(480px, 88vw); height: auto; margin: 0 auto 48px; display: block; }

/* ---------- Photography ---------- */
.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.photo-band figure { margin: 0; }
.photo-band img, .photo-wide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  display: block;
}
.photo-wide img { aspect-ratio: 16 / 9; }
figcaption {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
figcaption span { color: var(--bronze); }

@media (max-width: 900px) {
  .photo-band { grid-template-columns: 1fr; }
  .logo-hero { margin-bottom: 32px; }
}

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 22px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.filter-btn:hover { border-color: var(--bronze); color: var(--bronze); }
.filter-btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card { margin: 0; cursor: pointer; }
.p-card:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.p-img { position: relative; overflow: hidden; border: 1px solid var(--line); }
.p-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.p-card:hover .p-img img { transform: scale(1.04); }
.p-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(31,43,58,0.85);
  color: var(--bg);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.p-card figcaption {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 12px;
}
.p-card figcaption span { color: var(--bronze); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 34, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 88vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; border: 1px solid rgba(246,244,239,0.15); }
.lightbox figcaption {
  color: #C6CBD4;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 16px;
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: none;
  border: none;
  color: #F6F4EF;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
  padding: 12px;
  transition: color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--bronze-soft); }
.lb-close { top: 22px; right: 28px; font-size: 44px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); font-size: 56px; }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); font-size: 56px; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
}

/* ---------- Reviews ---------- */
.reviews-grid {
  columns: 2;
  column-gap: 28px;
}
.review-card {
  break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--bronze);
  padding: 38px 34px;
  margin: 0 0 28px;
}
.stars {
  color: var(--bronze);
  font-size: 15px;
  letter-spacing: 0.3em;
  margin-bottom: 18px;
}
.r-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 24px;
}
.r-meta { display: block; }
.r-name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.r-detail {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-top: 6px;
}
@media (max-width: 900px) {
  .reviews-grid { columns: 1; }
}

/* ---------- Service areas ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 40px; }
.area h3 { font-size: 24px; margin-bottom: 8px; }
.area h3::after { content: ''; display: block; width: 30px; height: 1px; background: var(--bronze); margin-top: 10px; }
.area p { font-size: 14px; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) { .areas-grid { grid-template-columns: 1fr; } }
