/* Colors pulled from the Nursed Petals logo */
:root {
  --mint: #f2fffe;        /* logo background — keeps logos seamless */
  --mint-deep: #e3f6f3;
  --white: #ffffff;
  --crimson: #a8323f;
  --crimson-dark: #8a2633;
  --brown: #4e2a2e;
  --brown-soft: #7a5a5d;
  --petal: #e0652a;
  --leaf: #2f5b37;
  --line: #d9e9e6;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Lato", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(78, 42, 46, 0.25);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--mint);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8em 1.8em;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--crimson);
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.btn:hover { background: var(--crimson-dark); border-color: var(--crimson-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--crimson); }
.btn-ghost:hover { background: var(--crimson); color: var(--white); }
.btn-small { padding: 0.5em 1.3em; font-size: 0.85rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(16px, 4vw, 48px);
  background: rgba(242, 255, 254, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo img { height: 54px; width: auto; }
.topbar-nav { display: flex; align-items: center; gap: 22px; }
.topbar-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar-nav a:not(.btn):hover { color: var(--crimson); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 24px 16px 72px;
  max-width: 720px;
  margin: 0 auto;
}
.hero-emblem {
  width: min(420px, 82vw);
  margin: 0 auto;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  color: var(--crimson);
  margin: 12px 0 8px;
  letter-spacing: 0.01em;
}
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-style: italic;
  margin: 0 auto 28px;
  max-width: 32ch;
}
.occasions-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown-soft);
  margin: 0 0 12px;
}
.occasions {
  list-style: none;
  padding: 0;
  margin: 0 auto 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 620px;
}
.occasions li {
  padding: 0.45em 1.1em;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.occasions li::before {
  content: "✿";
  color: var(--petal);
  margin-right: 0.45em;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section headings ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--crimson);
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.section-title::after {
  content: "+";
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--crimson);
  margin-top: 2px;
}
.section-sub {
  text-align: center;
  color: var(--brown-soft);
  max-width: 46ch;
  margin: 0 auto 36px;
  padding: 0 16px;
}

/* ---------- Gallery / carousel ---------- */
.gallery-section {
  background: var(--white);
  padding: 72px 0 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px clamp(16px, 5vw, 64px) 16px;
  scrollbar-width: none;
  outline: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  cursor: zoom-in;
}
.slide img {
  height: min(62vh, 460px);
  width: auto;
  max-width: 84vw;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--mint-deep);
  transition: transform 0.3s;
}
.slide:hover img { transform: scale(1.015); }
.slide figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 10px;
  min-height: 0;
}
.slide figcaption:empty { display: none; }

/* Placeholder shown until a real photo is added */
.slide.is-placeholder { cursor: default; width: min(78vw, 368px); }
.slide.is-placeholder img { display: none; }
.slide.is-placeholder::before {
  content: "Photo coming soon";
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background:
    url("images/logo-seal.jpg") center 38% / 55% no-repeat,
    var(--mint);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brown-soft);
}

.carousel-btn {
  position: absolute;
  top: calc(50% - 8px);
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--crimson);
  font-size: 2rem;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.carousel-btn:hover { background: var(--crimson); color: var(--white); }
.carousel-btn:disabled { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots span.active { background: var(--crimson); transform: scale(1.3); }

/* ---------- About ---------- */
.about-section {
  padding: 80px 16px;
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 72% 40%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
}
.about-heading { text-align: left; }
.about-heading::after { text-align: left; }
.about-text p { margin: 0 0 1em; }
.about-sign {
  font-family: var(--script);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--crimson);
}
.about-text .about-sign { margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-section {
  padding: 72px 16px 88px;
  text-align: center;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.contact-seal {
  width: 130px;
  margin: 0 auto 4px;
  clip-path: circle(42.2% at 50% 50%); /* trims the logo's square mint background */
}
.text-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 24px 32px;
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  margin-bottom: 8px;
}
.contact-icon svg { width: 26px; height: 26px; fill: var(--crimson); }
.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-soft);
}
.text-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--brown);
}
.text-number:hover { color: var(--crimson); }
.text-note {
  margin: 2px 0 20px;
  font-style: italic;
  color: var(--brown-soft);
}
.text-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.copy-btn { cursor: pointer; font-family: inherit; }

/* ---------- Video ---------- */
.video-block {
  text-align: center;
  margin: 56px auto 0;
  padding: 0 16px;
}
.video-title {
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--crimson);
  margin: 0 0 18px;
}
.feature-video {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--brown);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 36px 16px 44px;
  background: var(--brown);
  color: #f3e6e7;
  font-size: 0.9rem;
}
.footer p { margin: 0; }
.footer-script {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.3;
  color: var(--white);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 20, 24, 0.92);
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
}
.lightbox button:hover { opacity: 1; }
.lightbox-close { top: 12px; right: 18px; font-size: 2.6rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; padding: 12px; }
.lightbox-nav.prev { left: 4px; }
.lightbox-nav.next { right: 4px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar-logo img { height: 42px; }
  .topbar-nav { gap: 14px; }
  .topbar-nav a:not(.btn) { display: none; }
  .carousel-btn { display: none; }
  .hero { padding-bottom: 56px; }
  .about-section { padding: 64px 16px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; margin: 0 auto; }
  .about-heading, .about-heading::after, .about-text { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html, .carousel-track { scroll-behavior: auto; }
  * { transition: none !important; }
}
