/* ===== Wicker Gardens — styles ===== */
:root {
  --forest: #2f4a2c;
  --forest-dark: #1f331d;
  --moss: #4f6b42;
  --sage: #a3b88a;
  --sage-light: #dfe7d2;
  --cream: #f8f3e7;
  --sand: #efe6d2;
  --clay: #a8582f;      /* accent */
  --clay-dark: #8a4524;
  --ink: #2a2a24;
  --muted: #5c5a4f;
  --white: #fffdf8;
  --error: #a3261a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 51, 29, 0.10);
  --header-h: 72px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--forest-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
a { color: var(--moss); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--forest); color: var(--white); padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(248, 243, 231, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 74, 44, 0.12);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(31, 51, 29, 0.08); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 1.65rem; font-weight: 700; color: var(--forest-dark); letter-spacing: .01em; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .4rem; }
.nav-link {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px;
  font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav-link:hover { background: var(--sage-light); color: var(--forest-dark); }
.nav-link.active { background: var(--forest); color: var(--white); }
.nav-link.nav-cta { border: 1.5px solid var(--forest); margin-left: .3rem; }
.nav-link.nav-cta.active { background: var(--forest); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle:hover { background: var(--sage-light); }
.nav-toggle-bar { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--forest-dark); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: var(--white); box-shadow: 0 6px 18px rgba(168, 88, 47, .3); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { border-color: rgba(255, 253, 248, .8); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 253, 248, .14); }
.btn-ghost-dark { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost-dark:hover { background: var(--sage-light); }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding: 5rem 0;
  color: var(--white);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("images/hero.jpg") center / cover no-repeat;
  background-image: image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 34, 19, .78) 0%, rgba(20, 34, 19, .45) 60%, rgba(20, 34, 19, .2) 100%),
    linear-gradient(0deg, rgba(20, 34, 19, .35), transparent 40%);
}
.hero-content { max-width: 1160px; }
.hero h1 { color: var(--white); max-width: 14ch; }
.tagline { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40ch; color: #f1ecdf; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage-light); margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--clay-dark); }
.placeholder-chip {
  position: absolute; right: 1rem; bottom: 1rem;
  font-size: .78rem; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(20, 34, 19, .55); color: #f1ecdf; border: 1px dashed rgba(255, 253, 248, .5);
}

/* ===== Details ===== */
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(47, 74, 44, .08);
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.6rem 1.6rem 1.8rem; }
.card-body p { color: var(--muted); margin: 0; }
.checklist { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .4rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: .55rem;
  border-left: 2.5px solid var(--moss); border-bottom: 2.5px solid var(--moss); transform: rotate(-45deg) translateY(-2px);
}
.info-list { margin: 0; display: grid; gap: .7rem; }
.info-list dt { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--forest); }
.info-list dd { margin: 0; color: var(--muted); }

.gallery-head { text-align: center; margin: 5rem 0 2rem; }
.gallery-title { font-size: 2.2rem; }
.gallery-head p { color: var(--muted); margin: 0; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gallery li { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery li.g-wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery li:hover img { transform: scale(1.04); }

/* ===== Book ===== */
.book { background: linear-gradient(180deg, var(--sand), var(--cream)); border-top: 1px solid rgba(47, 74, 44, .08); }
.book-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.book-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.book-notes { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.book-notes li {
  padding: .9rem 1.1rem; border-radius: 10px; background: rgba(255, 253, 248, .7);
  border-left: 4px solid var(--sage); color: var(--muted);
}
.form-card { background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); border: 1px solid rgba(47, 74, 44, .08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field { margin-bottom: .6rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--forest-dark); }
.req { color: var(--clay-dark); }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border-radius: 10px;
  border: 1.5px solid #c9c2ae; background: #fffefb;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232f4a2c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 4px rgba(79, 107, 66, .18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.error { min-height: 1.3em; margin: .25rem 0 0; font-size: .85rem; color: var(--error); }
.form-note { font-size: .85rem; color: var(--muted); margin: .25rem 0 1.25rem; }

.form-success { text-align: center; padding: 2rem 1rem; }
.form-success:focus { outline: none; }
.success-icon { width: 64px; height: 64px; color: var(--moss); margin: 0 auto 1rem; }
.form-success p { color: var(--muted); max-width: 36ch; margin: 0 auto 1.5rem; }

/* ===== Footer ===== */
.site-footer { background: var(--forest-dark); color: #d9dfcf; padding: 3.5rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--white); margin-bottom: .3rem; }
.footer-muted, .footer-meta p { color: #c3cbb7; margin: 0 0 .3rem; }
.footer-meta { text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--sage-light); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: span 2; }
  .cards .card:last-child img { aspect-ratio: 16 / 7; }
  .book-grid { grid-template-columns: 1fr; }
  .book-intro { position: static; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 1.45rem; }
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid rgba(47, 74, 44, .12);
    box-shadow: 0 12px 24px rgba(31, 51, 29, .1);
    padding: .75rem 1.25rem 1.25rem;
    display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .nav-link { display: block; padding: .8rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .nav-link.nav-cta { margin-left: 0; text-align: center; }
  .hero { min-height: auto; padding: 5rem 0 6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .cards .card:last-child img { aspect-ratio: 4 / 3; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 140px; gap: .7rem; }
  .gallery-head { margin-top: 3.5rem; }
  .footer-meta { text-align: left; }
  .field { margin-bottom: 1.1rem; }
  .error:empty { min-height: 0; margin: 0; }
}

.card picture { display: block; }
.gallery picture { display: block; height: 100%; }
.card img { height: auto; }
.hero h1, .hero .tagline, .hero .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.photo-credit { font-size: .85rem; }
.photo-credit a { color: var(--sage-light); }
.gallery { grid-auto-flow: dense; }
