/* ============================================================
   THE GARDEN HOUSE — 704 Amberson Ave, Pittsburgh PA 15232
   Modern minimal aesthetic
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #F7F6F2;
  --ink:       #1A1A1A;
  --ink-soft:  #555555;
  --ink-faint: #888888;
  --line:      #E5E2DA;
  --line-soft: #EFEDE7;
  --accent:    #3F5C42;       /* sage / botanical green */
  --accent-d:  #2C4530;
  --max:       1180px;
  --pad:       clamp(20px, 4vw, 48px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); text-decoration: underline; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 0.4em; }
h3 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 0.4em; }
h4 { font-size: 18px; font-weight: 600; font-family: "Inter", sans-serif; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6em; }
p  { margin-bottom: 1em; color: var(--ink-soft); max-width: 68ch; }
.lead { font-size: 1.18em; color: var(--ink); }

.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-block;
}

/* ── Layout ───────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: clamp(60px, 8vw, 110px) 0; }
section + section { border-top: 1px solid var(--line-soft); }
.section-soft { background: var(--bg-soft); }

/* ── Nav ──────────────────────────────────────────────────── */
#site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo:hover { text-decoration: none; color: var(--accent); }
.nav-logo small { display: block; font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: -2px; }
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--ink-soft); font-weight: 500; letter-spacing: 0.01em;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
body[data-page="home"]         .nav-links a[data-page="home"],
body[data-page="history"]      .nav-links a[data-page="history"],
body[data-page="house"]        .nav-links a[data-page="house"],
body[data-page="garden"]       .nav-links a[data-page="garden"],
body[data-page="maintenance"]  .nav-links a[data-page="maintenance"],
body[data-page="neighborhood"] .nav-links a[data-page="neighborhood"],
body[data-page="documents"]    .nav-links a[data-page="documents"],
body[data-page="contact"]      .nav-links a[data-page="contact"] {
  color: var(--ink); border-bottom-color: var(--accent);
}
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-mobile {
  display: none; background: var(--bg); border-bottom: 1px solid var(--line-soft);
}
.nav-mobile ul { list-style: none; padding: 8px var(--pad) 20px; }
.nav-mobile li a {
  display: block; padding: 12px 0; font-size: 16px; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile li:last-child a { border-bottom: none; }
.nav-mobile.open { display: block; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: clamp(80px, 14vw, 180px) 0 clamp(60px, 10vw, 120px);
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.hero h1 { margin-bottom: 24px; max-width: 16ch; }
.hero p.lead { max-width: 56ch; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); }
.hero-meta {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 32px; font-size: 14px; color: var(--ink-faint);
}
.hero-meta strong { color: var(--ink); font-weight: 600; display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }

/* Hero photo variant */
.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  margin-bottom: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Page header (non-home pages) ─────────────────────────── */
.page-head { padding: clamp(70px, 10vw, 130px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 16px; }
.page-head p.lead { max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); }

/* ── Two-column ──────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 900px) { .three-col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .three-col { grid-template-columns: 1fr; } }

/* ── Card ──────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
}
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card-link h3 { color: var(--ink); }
.card-link .arrow { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 500; font-size: 14px; }

/* ── Definition list (systems, vendors, plants) ───────────── */
.dl { margin: 0; }
.dl-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 18px 0; border-top: 1px solid var(--line-soft);
}
.dl-row:last-child { border-bottom: 1px solid var(--line-soft); }
.dl-row dt { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding-top: 2px; }
.dl-row dd { color: var(--ink); margin: 0; }
.dl-row dd p { margin-bottom: 0.4em; color: var(--ink-soft); }
.dl-row dd p:last-child { margin-bottom: 0; }
.dl-row .todo { color: var(--ink-faint); font-style: italic; font-size: 14px; }
@media (max-width: 700px) {
  .dl-row { grid-template-columns: 1fr; gap: 6px; }
  .dl-row dt { font-size: 11px; }
}

/* ── Photo grid ───────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.photo-grid figure {
  margin: 0;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.photo-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid figure .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; padding: 16px;
}

/* ── Form ─────────────────────────────────────────────────── */
.form { max-width: 620px; }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  border-radius: 0; transition: border-color .15s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { min-height: 160px; resize: vertical; }
.btn {
  display: inline-block; padding: 14px 28px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  background: var(--ink); color: #fff; border: none; transition: background .15s;
  font-family: inherit;
}
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.form-status { margin-top: 16px; font-size: 14px; }
.form-status.ok { color: var(--accent-d); }
.form-status.err { color: #B0413E; }

/* ── Note / callout ───────────────────────────────────────── */
.note {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  padding: 18px 22px; margin: 24px 0; font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }

/* ── Footer ───────────────────────────────────────────────── */
#site-footer {
  background: var(--ink); color: #C8C5BD; padding: 60px 0 30px; margin-top: 80px;
}
#site-footer .footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
#site-footer .footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid #2E2E2E;
}
#site-footer h5 {
  color: #fff; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 16px; font-family: "Inter", sans-serif;
}
#site-footer .footer-brand p { color: #A9A6A0; font-size: 14px; max-width: 38ch; }
#site-footer .footer-brand .footer-name {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; color: #fff; margin-bottom: 6px;
}
#site-footer .footer-brand .footer-addr { font-size: 13px; color: #A9A6A0; margin-bottom: 16px; letter-spacing: 0.04em; }
#site-footer ul { list-style: none; }
#site-footer ul li { margin-bottom: 8px; }
#site-footer a { color: #C8C5BD; font-size: 14px; }
#site-footer a:hover { color: #fff; text-decoration: none; }
#site-footer .footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #888; flex-wrap: wrap; gap: 12px;
}
@media (max-width: 800px) {
  #site-footer .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Utility ───────────────────────────────────────────────── */
.mt-0 { margin-top: 0 !important; }
.mt-l { margin-top: clamp(28px, 4vw, 48px); }
.mb-l { margin-bottom: clamp(28px, 4vw, 48px); }
.text-center { text-align: center; }
hr.divider { border: 0; border-top: 1px solid var(--line-soft); margin: clamp(40px, 6vw, 70px) 0; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
