/* ============================================================
   K&K Wedding — Sage & Blush
   Palette: soft sage greens with baby pink accents and dusty rose.
   ============================================================ */

:root {
  /* Primary — sage green */
  --sage: #8a9d76;
  /* primary brand color */
  --sage-deep: #3e5238;
  /* deep sage / forest — hero backgrounds */
  --sage-soft: #a8baa0;
  /* soft sage — gradient glow */

  /* Accent — baby pink */
  --pink: #f0bfc8;
  /* baby pink — primary accent */
  --pink-bright: #e4a3b1;
  /* slightly deeper pink for hover */
  --pink-soft: #fadde2;
  /* very light blush */

  /* Secondary — dusty rose */
  --rose: #c98d99;
  /* dusty rose CTA */
  --rose-deep: #a47280;
  /* hover */
  --maroon: #7d3c4a;
  /* deep wine — emphasis headings & admin sign-out (harmonizes with the rose family) */

  /* Neutrals */
  --cream: #faf6f1;
  --cream-2: #f0e8de;
  --ink: #3d3a36;
  --muted: #857c75;
  --white: #ffffff;

  --shadow-sm: 0 2px 10px rgba(62, 82, 56, 0.08);
  --shadow-md: 0 14px 40px rgba(62, 82, 56, 0.16);
  --radius: 16px;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-accent: "Marcellus", Georgia, serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-h: 70px;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rose-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Decorative bits ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-accent);
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--pink);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 8px;
  color: var(--pink);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, var(--pink));
}

.divider::after {
  background: linear-gradient(90deg, var(--pink), transparent);
}

.divider span {
  font-size: 1.1rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--pink);
  color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--pink-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--pink-soft);
  border-color: rgba(231, 207, 154, 0.55);
}

.btn-ghost:hover {
  background: rgba(231, 207, 154, 0.12);
  transform: translateY(-2px);
}

.btn-rose {
  background: var(--rose);
  color: #fff;
}

.btn-rose:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--sage);
}

.btn-outline:hover {
  background: rgba(168, 186, 160, 0.16);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-block {
  width: 100%;
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(62, 82, 56, 0.95);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pink-soft);
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f7ecd9;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 1px;
  font-family: var(--font-accent);
  opacity: 0.92;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--pink-soft);
}

.nav-links a.active {
  color: var(--pink-soft);
}

.nav-links a.active:not(.nav-cta)::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: var(--pink);
  margin-top: 4px;
  border-radius: 2px;
}

.nav-links .nav-cta {
  padding: 9px 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: var(--pink-soft);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--nav-h) + 30px) 20px 60px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(168, 186, 160, 0.4), transparent 60%),
    linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 70%, #2a3725 100%);
  overflow: hidden;
}

/* subtle ocean glow at the base */
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40%;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(240, 191, 200, 0.32), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--pink-soft);
}

.hero-names {
  font-size: clamp(3rem, 11vw, 6.4rem);
  color: #fff;
  margin: 10px 0 6px;
  font-weight: 600;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-names .amp {
  color: var(--pink);
  font-style: italic;
  font-size: 0.7em;
  display: inline-block;
  margin: 0 0.1em;
}

.hero-meta {
  font-family: var(--font-accent);
  letter-spacing: 2px;
  color: var(--pink-soft);
  font-size: clamp(0.95rem, 2.4vw, 1.18rem);
}

.hero-meta .dot {
  color: var(--pink);
  margin: 0 10px;
}

.photo-frame {
  width: min(330px, 78vw);
  aspect-ratio: 4 / 5;
  margin: 30px auto 6px;
  border-radius: 200px 200px 16px 16px;
  padding: 10px;
  background: linear-gradient(135deg, var(--pink-soft), var(--pink) 55%, var(--pink-bright));
  box-shadow: var(--shadow-md);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 192px 192px 8px 8px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ── Countdown ───────────────────────────────────────────── */
.countdown {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 30px 0 4px;
  flex-wrap: wrap;
}

.count-box {
  min-width: 78px;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(231, 207, 154, 0.3);
  backdrop-filter: blur(3px);
}

.count-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.count-label {
  font-family: var(--font-accent);
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-top: 6px;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section-cream {
  background: var(--cream);
}

.section-alt {
  background: var(--cream-2);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 6vw, 60px);
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  color: var(--sage);
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
  margin-top: 10px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink);
}

/* ── Explore grid (home page) ────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 2 columns on tablets, single column on phones. */
@media (max-width: 760px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

.explore-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(168, 186, 160, 0.5);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--pink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.explore-card .ic {
  font-size: 2rem;
  margin-top: 12px;
}

.explore-card .ic img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: inline-block;
}

.explore-card h3 {
  font-family: var(--font-display);
  color: var(--sage);
  font-size: 1.5rem;
  margin: 10px 0 6px;
}

.explore-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* RSVP card — the primary call to action. Spans the full grid width as a
   horizontal banner so it never sits alone in a half-empty row. */
.explore-card.cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
  padding: 24px 36px;
  background: linear-gradient(120deg, var(--rose) 0%, var(--rose-deep) 100%);
  border: 1px solid transparent;
  border-top: 4px solid var(--pink-soft);
  color: #fff;
  box-shadow: 0 14px 36px rgba(164, 114, 128, 0.35);
}

.explore-card.cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(164, 114, 128, 0.46);
}

/* Icon in a soft white disc so the watercolor reads on the gradient. */
.explore-card.cta .ic {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.explore-card.cta .ic img {
  width: 72px;
  height: 72px;
}

.cta-body {
  flex: 1 1 auto;
}

.explore-card.cta h3 {
  color: #fff;
  font-size: 1.7rem;
  margin: 0 0 4px;
}

.explore-card.cta p {
  color: rgba(255, 255, 255, 0.92);
}

.cta-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: 4px;
}

.cta-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--rose-deep);
  font-family: var(--font-accent);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}

.explore-card.cta:hover .cta-action {
  background: var(--pink-soft);
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .explore-card.cta {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 30px 24px;
  }

  .cta-action {
    width: 100%;
    justify-content: center;
  }
}

/* ── Our Story ───────────────────────────────────────────── */
.story {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.story p {
  font-size: 1.12rem;
  color: #4a3a36;
}

/* ── Events / timeline ───────────────────────────────────── */
.day-group {
  margin-bottom: clamp(38px, 6vw, 58px);
}

.day-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  color: var(--rose-deep);
  margin-bottom: 6px;
}

.day-sub {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 26px;
}

/* One row per day on desktop: `--cols` is set inline from the day's event
   count, and the grid is capped/centered so a short day doesn't stretch. */
.events-grid {
  --card-max: 360px;
  --events-gap: 20px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: var(--events-gap);
  max-width: calc(
    var(--cols, 1) * var(--card-max) + (var(--cols, 1) - 1) * var(--events-gap)
  );
  margin-inline: auto;
}

.event-card {
  background: var(--white);
  border: 1px solid rgba(168, 186, 160, 0.5);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--pink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* Subgrid keeps time / name / location / description / CTA on shared rows,
   so every card in a row lines up regardless of text length. */
@supports (grid-template-rows: subgrid) {
  .events-grid {
    grid-auto-rows: auto;
  }

  .event-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    row-gap: 0;
  }

  .event-desc {
    align-self: start;
  }
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-time {
  font-family: var(--font-accent);
  color: var(--rose-deep);
  letter-spacing: 1px;
  font-size: 0.82rem;
}

.event-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw + 0.55rem, 1.45rem);
  color: var(--sage);
  margin: 6px 0 8px;
  text-wrap: balance;
}

.event-loc {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.event-desc {
  color: #5a4843;
  font-size: 0.97rem;
  margin: 0 0 14px;
  flex: 1;
}

.event-cal {
  display: inline-flex;
  align-self: start;
  justify-self: start;
  align-items: center;
  gap: 7px;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 1.5px solid var(--pink);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.event-cal svg {
  width: 15px;
  height: 15px;
}

.event-cal:hover {
  color: var(--rose-deep);
  border-color: var(--rose-deep);
}

/* Tablet: two even columns; a lone trailing card centers across both. */
@media (min-width: 621px) and (max-width: 1000px) {
  .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: calc(2 * var(--card-max) + var(--events-gap));
  }

  .events-grid > .event-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: var(--card-max);
  }
}

@media (max-width: 620px) {
  .events-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
  }
}

/* ── Travel ──────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168, 186, 160, 0.4);
  text-align: center;
}

.info-card .ic {
  font-size: 1.8rem;
  margin-top: 12px;
}

.info-card .ic img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: inline-block;
}

.info-card h3 {
  font-size: 1.3rem;
  color: var(--sage);
  margin: 12px 0 6px;
}

.info-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.travel-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(34px, 6vw, 54px);
  box-shadow: var(--shadow-md);
}

.travel-cta h3 {
  color: #fff;
  font-size: 1.9rem;
}

.travel-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 12px auto 22px;
}

.travel-note {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-top: 26px;
}

.travel-note strong {
  color: var(--sage);
}

/* ── Dress code ──────────────────────────────────────────── */
.dress-wrap {
  max-width: 820px;
  margin: clamp(48px, 7vw, 80px) auto 0;
  text-align: center;
}

.dress-wrap p {
  font-size: 1.1rem;
  color: #4a3a36;
}

.dress-guides {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.dress-guides-title {
  font-family: var(--font-display);
  color: var(--sage);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
}

.dress-guides-sub {
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: 1rem;
}

.dress-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.dress-guide {
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(168, 186, 160, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dress-guide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dress-guide-thumb {
  display: block;
  background: var(--cream-2);
  overflow: hidden;
  cursor: zoom-in;
}

.dress-guide-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.dress-guide-thumb:hover img {
  transform: scale(1.025);
}

.dress-guide figcaption {
  padding: 20px 22px 22px;
  text-align: center;
}

.dress-guide figcaption h3 {
  font-family: var(--font-display);
  color: var(--sage-deep);
  font-size: 1.4rem;
  margin: 0 0 14px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(168, 186, 160, 0.5);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 44px 22px 4px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--sage);
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--pink);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  margin: 0 0 22px;
  color: #5a4843;
  font-size: 1.02rem;
  padding-right: 30px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--sage-deep);
  color: var(--pink-soft);
  text-align: center;
  padding: 56px 20px 40px;
}

.footer .brand {
  color: #fff;
  display: block;
  font-size: 2.4rem;
  margin-bottom: 6px;
}

.footer p {
  margin: 4px 0;
  opacity: 0.85;
  font-family: var(--font-accent);
  letter-spacing: 1px;
}

.footer-links {
  margin-top: 18px;
}

.footer-links a {
  color: var(--pink-soft);
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

/* ── RSVP page ───────────────────────────────────────────── */
.subpage-hero {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(168, 186, 160, 0.4), transparent 60%),
    linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: #fff;
  text-align: center;
  padding: calc(var(--nav-h) + 70px) 20px 80px;
  position: relative;
  overflow: hidden;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -60%;
  height: 80%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(240, 191, 200, 0.26), transparent 70%);
  pointer-events: none;
}

.subpage-hero>* {
  position: relative;
  z-index: 2;
}

.subpage-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: #fff;
}

.subpage-hero .eyebrow {
  color: var(--pink-soft);
}

.subpage-hero p {
  color: var(--pink-soft);
  max-width: 560px;
  margin: 14px auto 0;
}

.form-wrap {
  max-width: 720px;
  margin: -40px auto 0;
  padding: 0 20px clamp(60px, 10vw, 100px);
  position: relative;
  z-index: 2;
}

.form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(168, 186, 160, 0.45);
}

.field {
  margin-bottom: 22px;
}

.field>label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.86rem;
  letter-spacing: 0.5px;
  color: var(--sage);
  margin-bottom: 8px;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #e2d6c4;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(228, 163, 177, 0.28);
  background: #fff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.choice-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.choice {
  flex: 1;
  min-width: 140px;
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: block;
  text-align: center;
  padding: 16px;
  border: 1.5px solid #e2d6c4;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-accent);
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--cream);
  transition: all 0.18s ease;
}

.choice input:checked+label {
  border-color: var(--sage);
  background: var(--sage);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.events-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 8px;
}

.events-fieldset>legend {
  font-family: var(--font-accent);
  font-size: 0.86rem;
  letter-spacing: 0.5px;
  color: var(--sage);
  padding: 0;
  margin-bottom: 12px;
}

.select-all-btn {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-deep);
  background: var(--cream-2);
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.select-all-btn:hover {
  background: var(--sage);
  color: #fff;
}

.event-day-head {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--rose-deep);
  margin: 18px 0 10px;
}

.event-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #eadfcd;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.event-check:hover {
  border-color: var(--pink);
}

.event-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--sage);
  flex-shrink: 0;
}

.event-check .ec-title {
  font-weight: 700;
  color: var(--ink);
}

.event-check .ec-meta {
  font-size: 0.84rem;
  color: var(--muted);
}

#attendingFields {
  transition: opacity 0.2s ease;
}

.hidden {
  display: none !important;
}

.form-msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.error {
  background: #fbe9e7;
  color: #a4271a;
  border: 1px solid #f3c4bd;
}

.form-msg.success {
  background: #e8f5e9;
  color: #1f6b35;
  border: 1px solid #bfe3c6;
}

.rsvp-success {
  text-align: center;
  padding: 20px 0;
}

.rsvp-success .big img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto;
}

.rsvp-success h2 {
  color: var(--sage);
  font-size: 2rem;
  margin: 10px 0;
}

.rsvp-success p {
  color: var(--muted);
}

/* ── Admin ───────────────────────────────────────────────── */
.admin-body {
  background: var(--cream-2);
  min-height: 100vh;
}

.admin-login {
  max-width: 380px;
  margin: 14vh auto 0;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.admin-login h1 {
  color: var(--sage);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.admin-login p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 70px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-top h1 {
  color: var(--sage);
  font-size: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--pink);
}

.stat .n {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}

.stat .l {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.panel h2 {
  color: var(--sage);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

table.data th {
  background: var(--cream);
  color: var(--sage);
  font-family: var(--font-accent);
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
}

table.data tr:hover td {
  background: #fffdf8;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge.yes {
  background: #e8f5e9;
  color: #1f6b35;
}

.badge.no {
  background: #fbe9e7;
  color: #a4271a;
}

/* Wedding-side pills (Bride = pink, Groom = sage) — match the palette. */
.badge.bride {
  background: var(--pink-soft);
  color: var(--maroon);
}

.badge.groom {
  background: #e7efe1;
  color: var(--sage-deep);
}

.tag {
  display: inline-block;
  background: var(--cream-2);
  color: var(--sage);
  border-radius: 6px;
  padding: 2px 8px;
  margin: 2px;
  font-size: 0.74rem;
}

.admin-error {
  color: #a4271a;
  margin-top: 12px;
  font-size: 0.9rem;
}

.lock-banner {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.lock-banner.open {
  background: #eef5e6;
  color: var(--sage-deep);
  border: 1px solid var(--sage-soft);
}

.lock-banner.locked {
  background: #fbe9e7;
  color: #a4271a;
  border: 1px solid #f3c4bd;
}

.lock-banner:empty {
  display: none;
}

/* ── Gallery ─────────────────────────────────────────────── */
/* Masonry "tiled exhibit": photos keep their natural orientation and flow into
   columns, so portraits stay tall and landscapes stay wide — no cropping. */
.gallery-grid {
  column-count: 3;
  column-gap: 14px;
}

@media (max-width: 860px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}

.gphoto {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid rgba(168, 186, 160, 0.4);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 860px) {
  .gphoto { margin-bottom: 10px; }
}

/* Entrance: each tile rises + fades in when scrolled into view (JS adds .inview). */
.gallery-grid.js .gphoto {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease,
    transform 0.75s cubic-bezier(0.16, 0.84, 0.3, 1),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-grid.js .gphoto.inview {
  opacity: 1;
  transform: none;
}

/* Shimmering placeholder — only while JS drives the fade-in, until load. */
.gallery-grid.js .gphoto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--cream-2) 28%, #f6ede2 50%, var(--cream-2) 72%);
  background-size: 220% 100%;
  animation: gShimmer 1.5s ease-in-out infinite;
}

.gallery-grid.js .gphoto.loaded::before {
  opacity: 0;
  animation: none;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

@keyframes gShimmer {
  0% { background-position: 160% 0; }
  100% { background-position: -60% 0; }
}

/* Hover overlay: soft veil + a "view" magnifier, revealed on pointer devices. */
.gphoto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transform: scale(1.08);
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='54'%20height='54'%3E%3Ccircle%20cx='27'%20cy='27'%20r='25'%20fill='rgba(62,82,56,0.55)'/%3E%3Cg%20fill='none'%20stroke='%23faf6f1'%20stroke-width='2.6'%20stroke-linecap='round'%3E%3Ccircle%20cx='24'%20cy='24'%20r='8.5'/%3E%3Cline%20x1='30.5'%20y1='30.5'%20x2='38'%20y2='38'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(to top, rgba(40, 50, 38, 0.42), rgba(40, 50, 38, 0) 55%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 54px 54px, cover;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.gphoto-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* JS present → photo fades in once decoded (the movement is on the tile). */
.gallery-grid.js .gphoto-img {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-grid.js .gphoto.loaded .gphoto-img {
  opacity: 1;
}

/* Desktop hover: lift the card, zoom the photo, reveal the overlay cue. */
@media (hover: hover) and (pointer: fine) {
  .gphoto.loaded:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--pink);
  }
  .gphoto.loaded:hover .gphoto-img {
    transform: scale(1.07);
  }
  .gphoto.loaded:hover::after {
    opacity: 1;
    transform: scale(1);
  }
}

/* Touch devices: a gentle press-in instead of hover. */
@media (hover: none) {
  .gphoto:active .gphoto-img {
    transform: scale(0.97);
    transition: transform 0.2s ease;
  }
}

.gallery-empty {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 30px 0 10px;
}

.gallery-empty .big img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto;
}

.gallery-empty h2 {
  color: var(--sage);
  font-size: 1.9rem;
  margin: 8px 0 8px;
}

.gallery-empty p {
  color: var(--muted);
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 38, 28, 0.94);
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, backdrop-filter 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(5px);
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scoping the "shown" state to .open means opening the lightbox always
   triggers the zoom-in transition — no requestAnimationFrame needed. */
.lightbox.open .lightbox-img.ready {
  opacity: 1;
  transform: scale(1);
}

.lightbox-spinner {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: lbSpin 0.8s linear infinite;
}

.lightbox.loaded .lightbox-spinner {
  display: none;
}

@keyframes lbSpin {
  to { transform: rotate(360deg); }
}

.lb-btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lb-close {
  top: 18px;
  right: 18px;
  font-size: 1.9rem;
}

.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }

.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--pink-soft);
  font-family: var(--font-accent);
  letter-spacing: 2px;
  font-size: 0.85rem;
}

body.lb-lock {
  overflow: hidden;
}

@media (max-width: 600px) {
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-btn { width: 42px; height: 42px; }
  .lightbox-img { max-width: 96vw; max-height: 80vh; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(280px, 80vw);
    height: calc(100vh - var(--nav-h));
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--sage-deep);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
  }

  .nav-links .nav-cta {
    margin-top: 10px;
    color: var(--sage-deep);
  }

  /* The rose "Book Your Stay" CTA keeps its white text (the dark override
     above is meant for the pink RSVP button). */
  .nav-links .btn-rose.nav-cta {
    color: #fff;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  /* Without the transitions, make sure tiles and photos are simply shown. */
  .gallery-grid.js .gphoto,
  .gallery-grid.js .gphoto-img,
  .lightbox-img {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   K&K Wedding Camera
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cam-wrap {
  max-width: 720px;
}

.cam-center {
  text-align: center;
}

.cam-ic {
  line-height: 1;
  margin-bottom: 8px;
}

.cam-ic img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto;
}

.cam-title {
  font-family: var(--font-display);
  color: var(--sage);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  margin: 6px 0 8px;
}

.cam-sub {
  color: var(--muted);
  margin: 0 auto;
  max-width: 460px;
}

.cam-spinner {
  display: inline-block;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(138, 157, 118, 0.25);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: camSpin 0.8s linear infinite;
}

@keyframes camSpin { to { transform: rotate(360deg); } }

.cam-intro {
  text-align: center;
  margin-bottom: 22px;
}

.cam-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 460px;
  margin: 6px auto 0;
}

/* ── Film exposure counter ───────────────────────────────── */
.cam-home {
  text-align: center;
}

.cam-greeting {
  font-family: var(--font-display);
  color: var(--sage-deep);
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.film-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--sage-deep);
  color: #fff;
  border-radius: 14px;
  padding: 14px 26px;
  margin: 10px auto 6px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35), var(--shadow-sm);
  border: 1px solid rgba(231, 207, 154, 0.3);
}

.film-counter-num {
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--pink-soft);
  letter-spacing: 1px;
}

.film-counter-of {
  font-family: "Courier New", monospace;
  font-size: 1rem;
  color: rgba(250, 221, 226, 0.7);
}

.cam-remaining {
  font-family: var(--font-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2px 0 22px;
}

.cam-home-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.cam-shutter-cta {
  font-size: 0.95rem;
  padding: 16px 30px;
}

.cam-cta-ic {
  font-size: 1.1rem;
}

.cam-file-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.cam-sealed-note {
  margin: 22px auto 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.cam-sealed-note a {
  color: var(--rose-deep);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.cam-link-btn {
  display: inline-block;
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-top: 14px;
  padding: 8px;
}

.cam-link-btn:hover { color: var(--sage); }

/* ── Countdown (reuses the home count-box look) ──────────── */
.cam-countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 22px 0 6px;
}

.cam-countdown .count-box {
  background: var(--sage-deep);
  border: 1px solid rgba(231, 207, 154, 0.3);
  min-width: 70px;
}

.cam-countdown .count-num {
  font-size: 1.7rem;
}

/* ── Live camera stage ───────────────────────────────────── */
.cam-stage {
  background: #1a211a;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.cam-viewfinder {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  margin: 0 auto;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 620px) {
  .cam-viewfinder { aspect-ratio: 4 / 3; }
}

#camVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cam-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}

.cam-flash.on {
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

.cam-viewfinder.saved::after {
  content: "✓ Saved";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(62, 82, 56, 0.92);
  color: #fff;
  font-family: var(--font-accent);
  letter-spacing: 1px;
  padding: 12px 22px;
  border-radius: 999px;
  animation: camSaved 0.6s ease;
}

@keyframes camSaved {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.05); }
}

/* Viewfinder corner ticks for the disposable-camera feel. */
.cam-frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.cam-frame-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.cam-frame-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.cam-frame-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.cam-frame-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.cam-hud {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: "Courier New", monospace;
  color: #fff;
  font-size: 0.95rem;
}

.cam-hud-rec {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink-bright);
  box-shadow: 0 0 8px var(--pink-bright);
  animation: camPulse 1.6s ease-in-out infinite;
}

@keyframes camPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.cam-permission {
  position: absolute;
  inset: 0;
  background: rgba(26, 33, 26, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  border-radius: 14px;
}

.cam-permission .cam-title { color: var(--pink-soft); }
.cam-permission .cam-sub { color: rgba(255, 255, 255, 0.82); margin-bottom: 18px; }

.cam-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 20px 8px 6px;
}

.cam-shutter {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--pink);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, border-color 0.2s ease;
}

.cam-shutter:hover { border-color: var(--pink-bright); }
.cam-shutter:active { transform: scale(0.92); }

.cam-shutter:disabled,
.cam-shutter.busy {
  border-color: var(--muted);
  cursor: progress;
  opacity: 0.7;
}

.cam-ctrl-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.cam-ctrl-btn:hover { background: rgba(255, 255, 255, 0.24); }

.cam-controls-meta {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin: 0 0 4px;
}

.cam-gallery-head {
  /* Clear the hero: form-wrap pulls up -40px, so this lands the back link on
     the cream body (~24px below the hero) instead of on the green. */
  margin-top: 64px;
  margin-bottom: 18px;
}

/* The gallery panel opens with this back link sitting on the green hero (the
   form-wrap pulls up -40px), so style it as a self-contained chip instead of a
   bare underlined link — legible on the hero and tidy on the cream body. */
.cam-gallery-head .cam-link-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  color: var(--sage-deep);
  border: 1px solid rgba(62, 82, 56, 0.14);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.cam-gallery-head .cam-link-btn:hover {
  background: var(--white);
  color: var(--sage-deep);
}

.cam-collected {
  color: var(--sage-deep);
  font-size: 1.05rem;
  margin: 16px 0 0;
}

/* ── Consent dialog ──────────────────────────────────────── */
.cam-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(30, 38, 28, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cam-dialog {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  max-width: 440px;
  width: 100%;
  padding: 30px 28px 24px;
  border: 1px solid rgba(168, 186, 160, 0.45);
}

.cam-dialog .cam-title { text-align: center; }

.cam-consent-list {
  margin: 16px 0 10px;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cam-consent-list li { margin-bottom: 6px; }

.cam-consent-fine {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  margin: 6px 0 18px;
}

.cam-dialog-actions {
  text-align: center;
}

/* ── Capture / upload toast ──────────────────────────────── */
.cam-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  z-index: 130;
  background: var(--sage-deep);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 88vw;
  text-align: center;
}

.cam-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cam-toast.success { background: #2f7a43; }
.cam-toast.error { background: #a4271a; }
.cam-toast.retry { background: var(--rose-deep); cursor: pointer; }
.cam-toast.pending { background: var(--sage); }

@media (max-width: 560px) {
  .cam-controls { gap: 26px; }
  .cam-shutter { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .cam-hud-rec, .cam-spinner { animation: none !important; }
}

/* ── Admin photo review grid ─────────────────────────────── */
.cam-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.cam-admin-photo {
  background: var(--cream-2);
  border: 1px solid rgba(168, 186, 160, 0.4);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cam-admin-photo.is-hidden {
  opacity: 0.6;
  border-color: var(--maroon);
}

.cam-admin-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream-2);
}

.cam-admin-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.cam-photo-badge {
  background: var(--maroon);
  color: #fff;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.66rem;
}

.cam-admin-actions {
  display: flex;
  gap: 6px;
  padding: 4px 8px 8px;
}