/* ============================================================
   CLEMENCY — Victorian Botanical Confectionery
   By The Darling House
   ============================================================ */

/* ----- Brand tokens ----- */
:root {
  --cream:       #F5F0E8;  /* primary background */
  --aged-paper:  #E8DDCF;  /* secondary background */
  --dusty-rose:  #C8A2A6;  /* accent */
  --lavender:    #B8ADC8;  /* secondary accent */
  --sage:        #8A9883;  /* botanical green */
  --sepia:       #3E322B;  /* primary text */
  --sepia-soft:  #5C4D43;  /* softened text */
  --gold:        #C6A36A;  /* used sparingly — borders only */

  --display: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  --caps:    "Cinzel", "Cormorant Garamond", Georgia, serif;
  --body:    "EB Garamond", "Crimson Text", Georgia, serif;
  --script:  "Great Vibes", cursive;

  --measure: 62ch;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- Reset-ish ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--cream);
  color: var(--sepia);
  font-family: var(--body);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint aged-paper grain */
  background-image:
    radial-gradient(circle at 20% 15%, rgba(198,163,106,0.05), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(184,173,200,0.05), transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sepia); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--dusty-rose); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--sage);
  margin: 0 0 0.9rem;
}
.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw + 0.5rem, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
}
.lede {
  font-size: 1.18em;
  font-style: italic;
  color: var(--sepia-soft);
  margin: 0 0 1.4rem;
}
.signature {
  font-family: var(--script);
  font-size: 2rem;
  color: var(--dusty-rose);
  margin-top: 1.6rem;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.86);
  backdrop-filter: saturate(120%) blur(4px);
  border-bottom: 1px solid var(--gold);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { text-decoration: none; line-height: 1; }
.nav__brand-name {
  display: block;
  font-family: var(--caps);
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 1.25rem;
  color: var(--sepia);
}
.nav__brand-sub {
  display: block;
  font-family: var(--body);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--sage);
  margin-top: 2px;
}
.nav__menu {
  display: flex;
  gap: 1.7rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__menu a {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  text-decoration: none;
  color: var(--sepia-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__menu a:hover { color: var(--sepia); border-color: var(--gold); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 1.5px;
  background: var(--sepia);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem clamp(3rem, 6vw, 5rem);
  background: var(--cream);
  overflow: hidden;
}
.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero__logo {
  width: min(560px, 88vw);
  margin: 0 auto;
  filter: drop-shadow(0 8px 22px rgba(62, 50, 43, 0.10));
  animation: rise 1.1s var(--ease) both;
}
.hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw + 0.6rem, 1.9rem);
  color: var(--sepia-soft);
  line-height: 1.45;
  margin: 0.6rem 0 1.8rem;
  animation: rise 1.1s 0.15s var(--ease) both;
}

/* Botanical engraved corners (CSS-drawn ornaments) */
.corner {
  position: absolute;
  width: clamp(70px, 12vw, 150px);
  height: clamp(70px, 12vw, 150px);
  border: 0 solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}
.corner::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--dusty-rose), transparent 65%);
}
.corner--tl { top: 18px; left: 18px; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner--tr { top: 18px; right: 18px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner--bl { bottom: 18px; left: 18px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner--br { bottom: 18px; right: 18px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.corner--tl::before { top: -8px; left: -8px; }
.corner--tr::before { top: -8px; right: -8px; background: radial-gradient(circle at 35% 35%, var(--lavender), transparent 65%); }
.corner--bl::before { bottom: -8px; left: -8px; background: radial-gradient(circle at 35% 35%, var(--sage), transparent 65%); }
.corner--br::before { bottom: -8px; right: -8px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--sepia);
  padding: 0.85em 1.9em;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
  position: relative;
}
.btn:hover {
  background: var(--sepia);
  color: var(--cream);
  letter-spacing: 0.22em;
}

/* ============================================================
   Floral dividers
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 540px;
  margin: clamp(2rem, 5vw, 3.5rem) auto;
  padding: 0 1.5rem;
}
.divider__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.divider__motif {
  font-size: 1.3rem;
  color: var(--dusty-rose);
  line-height: 1;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(1.5rem, 4vw, 3rem) 1.5rem; }
.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section__inner--narrow {
  max-width: var(--measure);
  text-align: center;
}

/* Story sits on aged paper */
.section--story .section__inner--narrow,
.section--seasonal .section__inner--narrow {
  background: var(--aged-paper);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--gold);
  position: relative;
}
.section--story .section__inner--narrow::before,
.section--seasonal .section__inner--narrow::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(198, 163, 106, 0.4);
  pointer-events: none;
}

/* ============================================================
   Featured Sweets — cards
   ============================================================ */
.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 2rem 1.6rem 1.8rem;
  text-align: center;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(198, 163, 106, 0.35);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(62, 50, 43, 0.10);
}
.card__bloom {
  display: block;
  font-size: 1.4rem;
  color: var(--dusty-rose);
  margin-bottom: 0.6rem;
}
.card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
}
.card__desc {
  margin: 0;
  color: var(--sepia-soft);
  font-size: 0.98em;
}

/* ============================================================
   Seasonal plate
   ============================================================ */
.seasonal__plate { margin-top: 1.2rem; }
.seasonal__season {
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

/* ============================================================
   Ornament list (Gatherings)
   ============================================================ */
.ornament-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: inline-block;
  text-align: left;
}
.ornament-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.8rem;
  color: var(--sepia-soft);
}
.ornament-list li::before {
  content: "\2767"; /* rotated floral heart bullet */
  position: absolute;
  left: 0;
  color: var(--dusty-rose);
}

/* ============================================================
   Inquiry form
   ============================================================ */
.inquiry {
  max-width: 540px;
  margin: 2rem auto 0;
  text-align: left;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-family: var(--caps);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--sage);
  margin-bottom: 0.4rem;
}
.field__opt { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--sepia-soft); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--sepia);
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.7em 0.8em;
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(92, 77, 67, 0.5); font-style: italic; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--dusty-rose);
  box-shadow: 0 0 0 3px rgba(200, 162, 166, 0.18);
}
.inquiry .btn { margin-top: 0.4rem; }
.inquiry__status {
  margin-top: 1rem;
  font-style: italic;
  color: var(--sage);
  min-height: 1.4em;
}
.inquiry__status.is-error { color: var(--dusty-rose); }

.visit__detail {
  text-align: center;
  margin-top: 2rem;
  font-style: italic;
  color: var(--sepia-soft);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  background: var(--sepia);
  color: var(--cream);
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-top: 2px solid var(--gold);
}
.site-footer__brand {
  font-family: var(--caps);
  font-weight: 600;
  letter-spacing: 0.3em;
  font-size: 1.7rem;
  margin: 0;
}
.site-footer__maker {
  font-family: var(--body);
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0.3rem 0 1.4rem;
}
.site-footer__fine {
  font-size: 0.82rem;
  color: rgba(245, 240, 232, 0.7);
  margin: 0;
}
.site-footer a { color: var(--gold); }

/* ============================================================
   Scroll-reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--gold);
    padding: 0.5rem 1.5rem 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav__menu.is-open { max-height: 60vh; }
  .nav__menu li { padding: 0.7rem 0; border-bottom: 1px solid rgba(198,163,106,0.25); }
  .nav__menu li:last-child { border-bottom: 0; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
