/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:        #f5f0e8;
  --cream-dark:   #ebe4d6;
  --ink:          #2c2420;
  --ink-mid:      #5a4e45;
  --ink-light:    #8a7e74;
  --gold:         #b8956a;
  --gold-light:   #d4b48c;
  --rose:         #c4858a;
  --shadow:       rgba(44, 36, 32, 0.08);
  --shadow-md:    rgba(44, 36, 32, 0.14);

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Source Serif 4', 'Georgia', serif;
  --font-sans:    'Cormorant Garamond', 'Georgia', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--ink);
}

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

/* ─── Google Fonts Import ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* ─── Header / Navigation ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(184, 149, 106, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.25s ease;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
nav a:hover,
nav a.active {
  color: var(--ink);
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Mobile nav (hidden by default, toggled by JS on mobile) */
.mobile-nav {
  display: none;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ─── Hero / Page Title Band ─── */
.page-hero {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  border-bottom: 1px solid rgba(184, 149, 106, 0.18);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.page-hero .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-light);
  font-size: 1.1rem;
  font-weight: 400;
}

/* ─── Main Content ─── */
main {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem;
}

/* ─── About Page Layout ─── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  right: -12px; bottom: -12px;
  border: 1px solid var(--gold-light);
  z-index: 0;
  border-radius: 2px;
}
.about-image-wrap img {
  position: relative;
  z-index: 1;
  border-radius: 3px;
  box-shadow: 0 6px 24px var(--shadow-md);
}

.about-image-caption {
  margin-top: 1rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.about-image-caption a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 2px;
}
.about-image-caption a:hover { color: var(--ink); border-color: var(--ink); }

.about-text blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.8rem;
  margin: 0;
}
.about-text blockquote p {
  margin-bottom: 1.1rem;
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.8;
}
.about-text blockquote p:last-child {
  margin-bottom: 0;
}

/* ─── Obituary / Memorial Note ─── */
.memorial-note {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 149, 106, 0.3);
}
.memorial-note p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.8;
  font-style: italic;
}

/* ─── Reviews Page ─── */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.review-card {
  background: white;
  border-radius: 4px;
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 3px solid var(--gold-light);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.review-card:hover {
  box-shadow: 0 4px 20px var(--shadow-md);
  transform: translateY(-2px);
}

.review-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.review-card .attribution {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink-light);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ─── Photo Gallery ─── */
.gallery-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--ink-light);
  font-style: italic;
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--cream-dark);
  border: 1px solid rgba(184, 149, 106, 0.2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(44,36,32,0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.overlay span {
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ─── Contact Page ─── */
.contact-layout {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-layout .contact-intro {
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-book-box {
  background: white;
  border-radius: 6px;
  padding: 2.5rem;
  box-shadow: 0 3px 18px var(--shadow);
  border: 1px solid rgba(184, 149, 106, 0.18);
}
.contact-book-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.contact-book-box p {
  color: var(--ink-mid);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.btn-amazon {
  display: inline-block;
  background: #f0a500;
  color: #111;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 0.7rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-amazon:hover {
  background: #d4920a;
  color: #111;
  transform: translateY(-1px);
}

.contact-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.contact-divider::before,
.contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(184, 149, 106, 0.3);
}
.contact-divider span {
  color: var(--ink-light);
  font-style: italic;
  font-size: 0.95rem;
}

.contact-form-box {
  background: white;
  border-radius: 6px;
  padding: 2.5rem;
  box-shadow: 0 3px 18px var(--shadow);
  border: 1px solid rgba(184, 149, 106, 0.18);
  text-align: left;
}
.contact-form-box h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
  text-align: center;
}
.contact-form-box .form-note {
  color: var(--ink-light);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.6rem;
  font-style: italic;
}

.contact-form-box label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-mid);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  margin-top: 1.1rem;
}
.contact-form-box label:first-of-type {
  margin-top: 0;
}

.contact-form-box input,
.contact-form-box textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(184, 149, 106, 0.35);
  border-radius: 4px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.contact-form-box input:focus,
.contact-form-box textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.18);
}
.contact-form-box textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

/* Honeypot — visually hidden, traps bots */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-send {
  display: block;
  width: 100%;
  margin-top: 1.6rem;
  background: var(--gold);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-send:hover {
  background: #a07d56;
  transform: translateY(-1px);
}

/* Success message (shown after Netlify redirects back) */
.success-message {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.success-message.visible { display: block; }
.success-message h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.success-message p {
  color: var(--ink-mid);
  font-style: italic;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid rgba(184, 149, 106, 0.2);
  padding: 2.2rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.footer-dates {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-light);
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  nav { display: none; }
  .hamburger { display: flex; }

  .mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--cream);
    border-top: 1px solid rgba(184, 149, 106, 0.2);
    padding: 1rem 2rem 1.5rem;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    color: var(--ink-mid);
    padding: 0.55rem 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(184, 149, 106, 0.12);
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover { color: var(--ink); }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image-wrap {
    max-width: 260px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero h1 { font-size: 2rem; }
  main { padding: 2rem 1.5rem; }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    padding: 1rem 1.2rem;
  }
}

/* ─── Placeholder image style (for gallery) ─── */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  color: var(--ink-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-direction: column;
  gap: 0.5rem;
}
.img-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.35;
}
