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

:root {
  --green: #294f38;
  --green-deep: #173524;
  --sage: #95a28b;
  --cream: #f8f1e7;
  --paper: #fffaf3;
  --peach: #e9c7ad;
  --ink: #203127;
  --muted: #667067;
  --line: rgba(41,79,56,.18);
  --shadow: 0 22px 60px rgba(35,61,43,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(41,79,56,.96); color: white; border-bottom: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(14px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: "Playfair Display", serif; font-weight: 700; font-size: 22px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--cream); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: white; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; color: white; font-size: 22px; }

.hero { position: relative; overflow: hidden; min-height: 620px; display: grid; place-items: center; text-align: center; padding: 90px 20px; color: white; background: var(--green); }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(circle at 18% 10%, rgba(255,255,255,.13), transparent 32%), linear-gradient(rgba(15,45,29,.62), rgba(15,45,29,.72)); }
.hero::after { content: ""; position: absolute; z-index: 2; width: 650px; height: 650px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -250px; top: -300px; }
.hero-content { position: relative; z-index: 3; max-width: 850px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.video-hero { min-height: min(860px, calc(100vh - 76px)); }
.hero-logo { width: 175px; height: 175px; margin: 0 auto 28px; object-fit: cover; border-radius: 50%; border: 8px solid rgba(255,255,255,.13); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.eyebrow { margin: 0 0 16px; color: var(--peach); font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(52px, 9vw, 108px); line-height: .94; font-weight: 600; }
.hero h1 em { display: block; margin-top: 18px; font-size: .43em; font-weight: 600; letter-spacing: .08em; }
.hero p { max-width: 600px; margin: 26px auto 32px; color: rgba(255,255,255,.78); font-size: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 25px; border: 0; border-radius: 999px; background: var(--green); color: white; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--green-deep); }
.button.light { background: var(--paper); color: var(--green); }

.section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2, .about-copy h2, .event-copy h1 { margin: 0 0 18px; font-family: "Playfair Display", serif; font-size: clamp(38px, 6vw, 66px); line-height: 1.05; color: var(--green-deep); }
.section-head p { color: var(--muted); }

.carousel-shell { position: relative; }
.carousel { overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); background: var(--sage); }
.carousel-track { display: flex; width: 100%; gap: 0; transition: transform .65s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.slide { position: relative; flex: 0 0 100%; width: 100%; min-width: 100%; height: min(72vh, 720px); margin: 0; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(transparent, rgba(16,35,23,.45)); }
.carousel-control { position: absolute; z-index: 3; top: 50%; width: 52px; height: 52px; border: 0; border-radius: 50%; color: var(--green); background: rgba(255,250,243,.92); font-size: 24px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.17); }
.carousel-control.prev { left: 22px; }
.carousel-control.next { right: 22px; }
.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--sage); cursor: pointer; transition: width .2s; }
.carousel-dots button.active { width: 28px; border-radius: 10px; background: var(--green); }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 8vw, 100px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: 760px; object-fit: cover; border-radius: 240px 240px 28px 28px; box-shadow: var(--shadow); }
.about-photo::after { content: "Lydia & Anece"; position: absolute; right: -24px; bottom: 42px; padding: 13px 20px; color: white; background: var(--green); border-radius: 999px; font-family: "Playfair Display", serif; font-style: italic; }
.about-copy p { margin: 0 0 20px; color: #435047; }
.about-copy .lead { font-size: 20px; color: var(--green-deep); font-weight: 600; }
.join-box { margin-top: 34px; padding: 28px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); }
.join-box h3 { margin: 0 0 8px; font-family: "Playfair Display", serif; font-size: 28px; }

.quotes { background: var(--green); color: white; }
.quotes .section-head h2 { color: white; }
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { position: relative; margin: 0; padding: 34px; border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.quote::before { content: "“"; display: block; height: 45px; color: var(--peach); font-family: "Playfair Display", serif; font-size: 70px; line-height: .8; }
.quote p { font-family: "Playfair Display", serif; font-size: 20px; line-height: 1.55; }
.quote cite { color: var(--peach); font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.cta { text-align: center; background: #ffffff; }
.cta h2 { margin: 0 0 16px; font-family: "Playfair Display", serif; font-size: clamp(40px, 6vw, 70px); }
.cta p { max-width: 600px; margin: 0 auto 28px; }

.footer { padding: 64px 0 28px; color: white; background: var(--green-deep); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; padding-bottom: 45px; }
.footer-brand { max-width: 420px; }
.footer-brand h2 { margin: 0 0 8px; font-family: "Playfair Display", serif; font-size: 36px; }
.footer-brand p { color: rgba(255,255,255,.65); }
.socials { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
.social-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; color: white; text-decoration: none; }
.social-link:hover { background: rgba(255,255,255,.08); }
.social-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--green); font-size: 14px; font-weight: 800; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); font-size: 12px; }

.events-hero { padding: 110px 0 80px; text-align: center; background: var(--green); color: white; }
.events-hero h1 { margin: 0; color: white; font-family: "Playfair Display", serif; font-size: clamp(50px, 8vw, 92px); }
.events-hero p { color: rgba(255,255,255,.7); }
.event-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 30px; background: var(--paper); box-shadow: var(--shadow); }
.event-card > img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; }
.event-copy { padding: clamp(35px, 7vw, 80px); align-self: center; }
.event-date { display: inline-flex; margin-bottom: 24px; padding: 8px 14px; border-radius: 999px; background: #e5ebdf; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.event-details { margin: 30px 0; padding: 22px 0; border-block: 1px solid var(--line); }
.event-details div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.event-details strong { color: var(--green); }
.event-list { display: grid; gap: 34px; }
.events-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; color: var(--muted); }
.manage-events-link { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.manage-events-link:hover { background: var(--green); color: white; }
.events-loading, .events-empty { padding: 70px 25px; border: 1px dashed var(--line); border-radius: 24px; text-align: center; color: var(--muted); }

.admin-page { min-height: 100vh; background: #f3eee5; }
.admin-main { padding: 55px 0 90px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.admin-heading h1 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(42px,6vw,68px); color: var(--green-deep); }
.admin-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 28px; align-items: start; }
.admin-panel { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.admin-panel h2 { margin: 0 0 20px; font-family: "Playfair Display", serif; font-size: 30px; }
.admin-form { display: grid; gap: 15px; }
.admin-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-form input, .admin-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); font: inherit; }
.admin-form textarea { min-height: 120px; resize: vertical; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 9px !important; }
.admin-check input { width: auto; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-actions button { flex: 1; }
.button.secondary { background: #ebe5dc; color: var(--green-deep); }
.admin-message { min-height: 24px; color: #9e3127; }
.admin-event-list { display: grid; gap: 12px; }
.admin-event { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.admin-event img { width: 90px; height: 76px; border-radius: 11px; object-fit: cover; }
.admin-event h3 { margin: 0 0 2px; font-size: 16px; }
.admin-event p { margin: 0; color: var(--muted); font-size: 13px; }
.admin-event-buttons { display: flex; gap: 7px; }
.small-button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--green); cursor: pointer; font-weight: 700; }
.small-button.danger { color: #a12f27; }
.login-panel { max-width: 480px; margin: 70px auto; }
.hidden { display: none !important; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
[data-reveal].revealed { opacity: 1; transform: none; }

@media (max-width: 850px) {
  .menu-button { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto; display: grid; gap: 0; padding: 20px; background: var(--green-deep); transform: translateY(-140%); transition: transform .25s; }
  .menu-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 15px 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .about-grid, .event-card { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .about-photo img { height: 620px; }
  .quotes-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .event-card > img { min-height: 430px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 26px, 1160px); }
  .hero { min-height: 580px; padding-top: 65px; }
  .hero-logo { width: 140px; height: 140px; }
  .section { padding: 76px 0; }
  .slide { height: 540px; }
  .carousel-control { width: 44px; height: 44px; }
  .about-photo img { height: 520px; border-radius: 160px 160px 24px 24px; }
  .about-photo::after { right: 10px; }
  .socials { grid-template-columns: 1fr; width: 100%; }
  .events-toolbar, .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-event { grid-template-columns: 70px 1fr; }
  .admin-event img { width: 70px; height: 65px; }
  .admin-event-buttons { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
