@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Great+Vibes&family=Lato:wght@300;400;700&display=swap');

:root {
  --green-dark: #1a3320;
  --green-mid: #2d5a3d;
  --green-light: #4a7c59;
  --gold: #c9a84c;
  --gold-dim: #9a7f38;
  --parchment: #f5f0e8;
  --cream: #faf7f2;
  --brown-dark: #2d1810;
  --brown-mid: #5c3d2e;
  --text-dark: #1a1a1a;
  --text-mid: #3a3a3a;
  --text-light: #6a6a6a;
  --nav-h: 70px;
  --ease: all 0.3s ease;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text-dark); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; }
p { line-height: 1.8; color: var(--text-mid); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  background: rgba(20,40,26,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--gold); letter-spacing: 2px;
  line-height: 1;
}
.nav-logo span {
  font-family: 'Lato', sans-serif; font-size: 0.6rem;
  font-weight: 300; letter-spacing: 4px;
  color: rgba(255,255,255,0.55); display: block;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.8); transition: var(--ease);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold); border-bottom-color: var(--gold);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; transition: var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--green-dark); flex-direction: column;
    gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li a { display: block; padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,0.07); }
}

/* ── LAYOUT ── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.eyebrow {
  font-family: 'Great Vibes', cursive; font-size: 2rem;
  color: var(--gold); display: block; margin-bottom: 4px;
}
.divider { width: 56px; height: 2px; background: var(--gold); margin: 16px auto 0; }
.section-header p { max-width: 580px; margin: 18px auto 0; font-size: 1.05rem; }
.parchment-bg { background: var(--parchment); }
.green-bg { background: var(--green-dark); color: #fff; }
.text-center { text-align: center; }

/* ── PAGE HEADERS (inner pages) ── */
.page-header {
  padding: calc(var(--nav-h) + 70px) 24px 80px;
  background: var(--green-dark); text-align: center;
  color: #fff; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image: var(--bg-img);
  background-size: cover; background-position: center; opacity: 0.2;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.gold-rule { width: 56px; height: 2px; background: var(--gold); margin: 18px auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 13px 30px;
  font-family: 'Lato', sans-serif; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  border: 2px solid var(--gold); cursor: pointer; transition: var(--ease);
}
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-outline { background: transparent; color: #fff; }
.btn-outline:hover { background: var(--gold); color: var(--green-dark); }
.btn-green { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.btn-green:hover { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }

/* ── HERO ── */
.hero {
  height: 100vh; min-height: 620px;
  background-image: url('images/dji_fly_20240408_121054_773_1712592675922_photo_optimized.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(15,30,18,.55) 0%,rgba(15,30,18,.38) 45%,rgba(5,15,8,.78) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; max-width: 900px; }
.hero-est {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem); color: var(--gold);
  display: block; margin-bottom: -6px;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 900;
  color: #fff; letter-spacing: 5px; text-transform: uppercase; line-height: 1;
  margin-bottom: 14px;
}
.hero-sub {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,.88); margin-bottom: 22px;
}
.hero-rule { width: 70px; height: 1px; background: var(--gold); margin: 0 auto 22px; }
.hero-desc {
  font-size: clamp(.9rem, 1.8vw, 1rem);
  color: rgba(255,255,255,.78); line-height: 1.8;
  max-width: 600px; margin: 0 auto 34px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: 3px;
  text-transform: uppercase; display: flex; flex-direction: column;
  align-items: center; gap: 6px; z-index: 1;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero-scroll::after { content: '↓'; font-size: 1rem; color: var(--gold); }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
}

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px;
}
.service-card {
  background: #fff; padding: 38px 30px;
  border: 1px solid rgba(201,168,76,.18); border-top: 4px solid var(--gold);
  position: relative; overflow: hidden; transition: var(--ease);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--green-dark); transform: scaleY(0);
  transform-origin: bottom; transition: transform 0.4s ease; z-index: 0;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card > * { position: relative; z-index: 1; }
.service-icon { font-size: 2.2rem; margin-bottom: 18px; display: block; }
.service-card h3 { color: var(--green-dark); margin-bottom: 10px; transition: var(--ease); font-size: 1.25rem; }
.service-card p { font-size: .95rem; transition: var(--ease); }
.service-card:hover h3, .service-card:hover p { color: #fff; }

/* ── LEGACY SPLIT ── */
.legacy-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.legacy-img { background-size: cover; background-position: center; }
.legacy-text {
  background: var(--green-dark); color: #fff;
  padding: 80px 60px; display: flex; flex-direction: column; justify-content: center;
}
.legacy-text h2 { color: #fff; margin-bottom: 18px; }
.legacy-text p { color: rgba(255,255,255,.75); margin-bottom: 20px; font-size: 1rem; }
.legacy-text .divider { margin: 0 0 22px; }
@media (max-width: 768px) {
  .legacy-split { grid-template-columns: 1fr; }
  .legacy-img { min-height: 280px; }
  .legacy-text { padding: 50px 30px; }
}

/* ── AWARD CERTIFICATE ── */
.certificate {
  background: var(--parchment); border: 3px solid var(--gold);
  outline: 1px solid rgba(201,168,76,.4); outline-offset: -10px;
  padding: 56px 50px; max-width: 680px; margin: 0 auto;
  text-align: center; position: relative;
}
.cert-dept { font-size: .85rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--green-dark); }
.cert-main-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; color: var(--green-dark); text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }
.cert-award { font-family: 'Great Vibes', cursive; font-size: 2.6rem; color: var(--gold); margin: 10px 0 4px; }
.cert-sub { font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: var(--gold-dim); }
.cert-rule { width: 70px; height: 2px; background: var(--gold); margin: 18px auto; }
.cert-body-text { font-family: 'Playfair Display', serif; font-size: .95rem; color: var(--text-mid); margin-bottom: 6px; }
.cert-family { font-family: 'Great Vibes', cursive; font-size: 2.8rem; color: var(--green-dark); margin: 8px 0; }
.cert-detail { font-size: 1rem; color: var(--text-mid); margin-bottom: 8px; }
.cert-desc { font-size: .88rem; color: var(--text-mid); max-width: 480px; margin: 0 auto 20px; line-height: 1.75; font-style: italic; }
.cert-date { font-family: 'Playfair Display', serif; font-size: .95rem; color: var(--text-mid); }
.cert-sigs { display: flex; justify-content: space-around; margin-top: 28px; gap: 16px; flex-wrap: wrap; }
.cert-sig { text-align: center; }
.cert-sig .sig { font-family: 'Great Vibes', cursive; font-size: 1.6rem; color: var(--green-dark); display: block; }
.cert-sig .sig-title { font-size: .72rem; color: var(--text-light); letter-spacing: 1px; line-height: 1.5; }

/* ── ARTICLE ── */
.article-wrap { max-width: 720px; margin: 0 auto; }
.article-pub { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--green-mid); font-weight: 700; margin-bottom: 8px; }
.article-wrap h2 { color: var(--green-dark); margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.article-byline { color: var(--text-light); font-size: .88rem; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(0,0,0,.1); }
.article-body p { margin-bottom: 1.3em; font-size: 1rem; }
.pullquote {
  border-left: 4px solid var(--gold); padding: 14px 22px;
  margin: 28px 0; background: var(--parchment);
}
.pullquote p {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.1rem !important; color: var(--green-dark) !important; margin: 0 !important;
}
.article-img { margin: 28px 0; }
.article-img img { width: 100%; border: 4px solid var(--green-dark); }
.article-img figcaption {
  background: var(--green-dark); color: rgba(255,255,255,.7);
  padding: 7px 12px; font-size: .78rem; font-style: italic;
}

/* ── FAMILY TREE ── */
.tree-timeline { position: relative; }
.tree-timeline::before {
  content: ''; position: absolute; left: 29px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--gold), var(--gold-dim) 90%, transparent);
}
.gen-row { display: flex; gap: 26px; margin-bottom: 28px; align-items: flex-start; }
.gen-badge {
  width: 58px; height: 58px; min-width: 58px; border-radius: 50%;
  background: var(--green-dark); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; position: relative; z-index: 1;
}
.gen-badge .gn { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--gold); line-height: 1; }
.gen-badge .gl { font-size: .42rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.gen-badge.current { background: var(--gold); border-color: var(--green-dark); }
.gen-badge.current .gn { color: var(--green-dark); }
.gen-badge.current .gl { color: rgba(26,51,32,.6); }
.gen-card {
  flex: 1; background: #fff; border: 1px solid rgba(201,168,76,.22);
  border-left: 3px solid var(--gold); padding: 22px 26px;
}
.gen-era { font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dim); font-weight: 700; margin-bottom: 4px; }
.gen-couple { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--green-dark); margin-bottom: 5px; }
.gen-dates { font-size: .82rem; color: var(--text-light); margin-bottom: 5px; }
.gen-loc { font-size: .82rem; color: var(--green-mid); font-style: italic; margin-bottom: 7px; }
.gen-note { font-size: .86rem; color: var(--brown-mid); padding-top: 9px; border-top: 1px solid rgba(0,0,0,.06); margin-top: 7px; line-height: 1.65; }
.gen-note strong { color: var(--green-dark); }
.gen-split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gen-split-card {
  background: #fff; border: 1px solid rgba(201,168,76,.22);
  border-left: 3px solid var(--gold); padding: 18px 20px;
}
.gen-children {
  flex: 1; background: var(--parchment);
  border: 1px solid rgba(201,168,76,.2); padding: 18px 22px;
}
.gen-children h4 {
  color: var(--green-dark); margin-bottom: 10px;
  font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
}
.child-list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.child-list li {
  background: #fff; border: 1px solid rgba(201,168,76,.3);
  padding: 5px 12px; font-size: .88rem; color: var(--text-mid);
}
.child-list li .sub { color: var(--text-light); font-size: .75rem; display: block; }
@media (max-width: 768px) {
  .tree-timeline::before { left: 19px; }
  .gen-badge { width: 38px; height: 38px; min-width: 38px; }
  .gen-badge .gn { font-size: .9rem; }
  .gen-split { grid-template-columns: 1fr; }
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px;
}
.gal-item { position: relative; overflow: hidden; aspect-ratio: 1; }
.gal-item a { display: block; height: 100%; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-overlay {
  position: absolute; inset: 0; background: rgba(20,40,26,.45);
  opacity: 0; transition: var(--ease);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.8rem; pointer-events: none;
}
.gal-item:hover .gal-overlay { opacity: 1; }
/* Lightbox */
.lb { display: none; }
.lb:target {
  display: flex; position: fixed; inset: 0;
  background: rgba(0,0,0,.93); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.lb img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lb-close {
  position: absolute; top: 18px; right: 26px;
  font-size: 2.4rem; color: #fff; cursor: pointer; line-height: 1;
  transition: color .2s;
}
.lb-close:hover { color: var(--gold); }
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-icon {
  width: 42px; height: 42px; min-width: 42px; background: var(--green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--gold);
}
.contact-detail p { font-size: .93rem; margin: 0; }
.contact-detail strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--green-dark); margin-bottom: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-lbl { display: block; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--green-dark); margin-bottom: 5px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #ddd;
  font-family: 'Lato', sans-serif; font-size: .93rem; background: #fff; transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--green-mid); }
.contact-form textarea { min-height: 110px; resize: vertical; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ── FOOTER ── */
footer {
  background: var(--brown-dark); color: rgba(255,255,255,.65);
  padding: 50px 24px 28px; text-align: center;
}
.foot-logo { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold); }
.foot-tag { font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 4px 0 28px; }
.foot-links { display: flex; justify-content: center; gap: 22px; list-style: none; margin-bottom: 28px; flex-wrap: wrap; }
.foot-links a { font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; transition: color .2s; }
.foot-links a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .75rem; color: rgba(255,255,255,.35); }
.foot-bottom p + p { margin-top: 5px; }
