/* =========================================================
   MAYFLOWER DESIGNS — GLOBAL STYLESHEET
   Per Blue Logic dev standards: single global CSS file,
   all pages draw from this sheet as they're added.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — fixed per client design brief, do not alter */
  --color-cream:      #E8E1C7;
  --color-cranberry:  #B7484F;
  --color-burgundy:   #65081F;
  --color-sage:       #91946E;
  --color-forest:     #215732;

  /* Derived working tones */
  --color-burgundy-dark: #4a0616;
  --color-forest-dark:   #163f26;
  --color-cream-dim:     #ddd4b3;
  --color-ink:            #2a1a12;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--color-forest);
  color: var(--color-cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease-soft);
}
.skip-link:focus { top: 1rem; }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-cranberry);
  outline-offset: 3px;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(101,8,31,0.85), rgba(101,8,31,0));
  transition: background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}
.site-header.is-scrolled {
  background: var(--color-burgundy);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 72px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.logo img {
  height: 108px;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.logo-fallback-text { display: none; }
.logo--fallback .logo-fallback-text { display: inline; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
}
.main-nav .nav-link {
  color: var(--color-cream);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 0.3rem 0.1rem;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--color-cranberry);
  transition: right 0.25s var(--ease-soft);
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link:focus-visible::after { right: 0; }
.main-nav .nav-link--highlight {
  background: var(--color-cranberry);
  color: var(--color-cream);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(101,8,31,0.4);
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.main-nav .nav-link--highlight:hover,
.main-nav .nav-link--highlight:focus-visible {
  background: var(--color-burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
.main-nav .nav-link--highlight::after { display: none; }
.main-nav .nav-link--disabled {
  cursor: default;
}
.nav-link--disabled::after { display: none !important; }
.main-nav .nav-link[aria-current="page"]::after { right: 0; }
.mobile-nav .nav-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 1.4rem;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(232,225,199,0.15);
  transform: scale(1.08);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(320px, 84vw);
  background: var(--color-burgundy);
  padding: 5.5rem 1.75rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-soft);
  z-index: 210;
  box-shadow: -12px 0 32px rgba(0,0,0,0.25);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-nav .nav-link {
  color: var(--color-cream);
  font-size: 1.1rem;
  font-family: var(--font-display);
}
.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 6, 10, 0.45);
  z-index: 205;
  opacity: 0;
  transition: opacity 0.3s var(--ease-soft);
}
.nav-scrim.is-visible { display: block; opacity: 1; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .logo img { height: 82px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-burgundy);
}
.hero-strip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-strip-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: hero-scroll var(--marquee-duration, 60s) linear infinite;
}
@keyframes hero-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-strip-track img {
  height: 100%;
  width: 32vw;
  min-width: 320px;
  object-fit: cover;
  flex-shrink: 0;
  filter: saturate(1.15) brightness(1.03) contrast(1.02);
}
/* Only shade the very top (nav legibility) and bottom (transition
   into the next section) — the photos stay bright and full colour
   through the middle where the text card floats. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20,6,10,0.55) 0%,
      rgba(20,6,10,0.12) 16%,
      rgba(20,6,10,0) 32%,
      rgba(20,6,10,0) 68%,
      rgba(20,6,10,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 8rem var(--gutter) 4rem;
  display: flex;
  justify-content: center;
}
.hero-text-card {
  background: rgba(101,8,31,0.58);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 32px;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.75rem, 5vw, 3.5rem);
  box-shadow: 0 30px 70px rgba(15,3,7,0.4);
  color: var(--color-cream);
  text-align: center;
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(15,3,7,0.35);
}
.hero-body p {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--color-cream);
  opacity: 0.96;
  text-shadow: 0 1px 12px rgba(15,3,7,0.3);
}
.hero-body p:first-child {
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

/* =========================================================
   PAGE INTRO — simple colour band + heading, used on inner
   pages that don't have a full photo hero (e.g. What We Do).
   ========================================================= */
.page-intro {
  background: var(--color-burgundy);
  color: var(--color-cream);
  text-align: center;
  padding: clamp(8rem, 16vw, 10rem) var(--gutter) clamp(3rem, 6vw, 4rem);
}
.page-intro-inner {
  max-width: 680px;
  margin: 0 auto;
}
.page-intro h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.page-intro p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  opacity: 0.93;
  margin: 0;
}

/* =========================================================
   CTA GRID — rows of static pill buttons, each row a solid
   colour. Used on Home (3/2/3) and What We Do (3/3).
   ========================================================= */
.cta-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--color-cream);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
}
.cta-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: left;
  flex: 1 1 260px;
  max-width: 340px;
  min-height: 108px;
  padding: 1.2rem 2rem;
  border-radius: 999px;
  color: var(--color-cream);
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.cta-tile .cta-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(232,225,199,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--color-cream);
}
.cta-tile .cta-label {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.25;
}

/* Row colours — solid per row */
.cta-row--burgundy .cta-tile   { background: var(--color-burgundy);   box-shadow: 0 14px 30px rgba(101,8,31,0.3); }
.cta-row--forest .cta-tile     { background: var(--color-forest);     box-shadow: 0 14px 30px rgba(33,87,50,0.3); }
.cta-row--cranberry .cta-tile  { background: var(--color-cranberry);  box-shadow: 0 14px 30px rgba(183,72,79,0.32); }

.cta-tile:hover,
.cta-tile:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.25);
}
.cta-tile--disabled {
  cursor: default;
}

@media (max-width: 760px) {
  .cta-tile { flex-basis: 44%; }
}
@media (max-width: 480px) {
  .cta-row { gap: 1rem; }
  .cta-tile { flex-basis: 100%; max-width: 100%; min-height: 84px; padding: 1rem 1.5rem; }
}

/* =========================================================
   KIND WORDS — signature floating tab
   ========================================================= */
.kind-words-tab {
  position: fixed;
  right: 0;
  top: 62%;
  transform: translateY(-50%);
  z-index: 150;
  width: 60px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 34px;
  background: var(--color-cranberry);
  color: var(--color-cream);
  border: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  /* Wavy silhouette per Mel's sketch — an actual undulating edge, not a
     rounded blob. Fixed 60x200 box so the clip-path coordinates below
     line up exactly; the safe padding above keeps the vertical text
     clear of the wave at every point in its animation cycle. */
  clip-path: path('M 22 0 C 6 8, 6 30, 20 40 C 34 50, 34 72, 18 82 C 4 92, 4 114, 20 124 C 34 134, 34 156, 18 166 C 6 174, 6 192, 22 200 L 60 200 L 60 0 Z');
  filter: drop-shadow(-6px 6px 8px rgba(0,0,0,0.25));
  animation: kind-words-wriggle 7s ease-in-out infinite;
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), filter 0.25s var(--ease-soft);
}
.kind-words-tab:hover,
.kind-words-tab:focus-visible {
  background: var(--color-burgundy);
  transform: translateY(-50%) translateX(-6px);
  filter: drop-shadow(-8px 8px 10px rgba(0,0,0,0.35));
}
@keyframes kind-words-wriggle {
  0%, 100% {
    clip-path: path('M 22 0 C 6 8, 6 30, 20 40 C 34 50, 34 72, 18 82 C 4 92, 4 114, 20 124 C 34 134, 34 156, 18 166 C 6 174, 6 192, 22 200 L 60 200 L 60 0 Z');
  }
  50% {
    clip-path: path('M 18 0 C 34 10, 34 32, 20 42 C 6 52, 6 74, 22 84 C 36 94, 36 116, 18 126 C 4 136, 4 158, 20 168 C 34 176, 34 194, 18 200 L 60 200 L 60 0 Z');
  }
}

/* =========================================================
   MODALS (Kind Words + Email popup)
   ========================================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 6, 10, 0.55);
  backdrop-filter: blur(2px);
}
.modal-panel {
  position: relative;
  background: var(--color-cream);
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  animation: modal-in 0.3s var(--ease-soft);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--color-forest);
  color: var(--color-cream);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.modal-close:hover,
.modal-close:focus-visible {
  background: var(--color-cranberry);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.modal-panel h2 {
  font-size: 1.6rem;
  color: var(--color-burgundy);
  margin-bottom: 1.2rem;
}

/* Kind Words content */
.testimonials { display: flex; flex-direction: column; gap: 1.4rem; }
.testimonials blockquote {
  margin: 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--color-cranberry);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
}
.testimonials cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-forest);
  font-weight: 600;
}
.testimonial-meta {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}
.testimonials-empty {
  text-align: center;
  color: var(--color-sage);
  padding: 1rem 0;
}

/* Email popup content */
.popup-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--color-cranberry);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.popup-cta-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-cranberry);
  font-weight: 700;
  margin: -0.6rem 0 1rem;
}
.popup-fineprint { font-size: 0.75rem; color: var(--color-sage); margin-top: -0.4rem; }
.popup-body { margin-bottom: 1em; }
.popup-body p { margin: 0; }
.popup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.popup-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-sage);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.popup-form input[type="email"]:focus-visible {
  border-color: var(--color-cranberry);
  box-shadow: 0 0 0 3px rgba(183,72,79,0.18);
}
.popup-form button {
  flex: 0 0 auto;
  background: var(--color-cranberry);
  color: var(--color-cream);
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(183,72,79,0.35);
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.popup-form button:hover,
.popup-form button:focus-visible {
  background: var(--color-burgundy);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}
.popup-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--color-forest);
  color: var(--color-cream);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.popup-success.is-visible { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-forest-dark);
  color: var(--color-cream);
  padding: 3.5rem var(--gutter) 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232,225,199,0.18);
}
.footer-logo { height: 40px; margin-bottom: 0.6rem; }
.footer-brand p { opacity: 0.75; font-size: 0.9rem; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.92rem; opacity: 0.88; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  opacity: 0.9;
}
.footer-social a:hover { opacity: 1; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem 1rem;
}
.footer-copy,
.footer-credit {
  font-size: 0.78rem;
  opacity: 0.6;
  margin: 0;
}
.footer-credit a {
  color: inherit;
  text-decoration: underline;
  opacity: 1;
  transition: opacity 0.2s var(--ease-soft);
}
.footer-credit a:hover,
.footer-credit a:focus-visible { opacity: 0.75; }

/* =========================================================
   PERSISTENT CONTACT LINK (nav highlight covers this; utility
   class kept for reuse on future pages per brief's "every page
   needs a Contact Us button" requirement)
   ========================================================= */
.contact-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 150;
  background: var(--color-forest);
  color: var(--color-cream);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: none;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}

/* "HELP US HELP YOU" callout */
.contact-help {
  text-align: center;
  background: var(--color-forest);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}
.contact-help h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 0.6rem;
}
.contact-help p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.55;
}

/* "Forms aren't your vibe" alt-contact card */
.contact-alt {
  text-align: center;
  background: var(--color-cream-dim);
  border: 1.5px dashed var(--color-sage);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 3rem;
}
.contact-alt h3 {
  font-size: 1.15rem;
  color: var(--color-burgundy);
  margin-bottom: 0.4rem;
}
.contact-alt p {
  margin: 0 0 1rem;
  color: var(--color-ink);
  opacity: 0.85;
}
.contact-alt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.contact-alt-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-cranberry);
  color: var(--color-cream);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(183,72,79,0.3);
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.contact-alt-links a:hover,
.contact-alt-links a:focus-visible {
  background: var(--color-burgundy);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* Form shell */
/* Studio Ninja iframe embed — see contact-us.php. Kept separate from
   .contact-form-card (the custom form's own styling, currently unused
   but reserved for version 2 — see version-2-reserved/). */
.contact-form-embed {
  display: flex;
  justify-content: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 20px 50px rgba(42,26,18,0.1);
}
.contact-form-embed iframe {
  width: 100%;
  max-width: 640px;
  border: none;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 20px 50px rgba(42,26,18,0.1);
}
.form-section + .form-section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(145,148,110,0.3);
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-burgundy);
  margin-bottom: 1.25rem;
}
.form-group {
  margin-bottom: 1.4rem;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--color-ink);
}
.form-label .required-mark {
  color: var(--color-cranberry);
  margin-left: 0.15rem;
}
.form-hint {
  font-size: 0.82rem;
  color: var(--color-sage);
  margin: -0.15rem 0 0.5rem;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-sage);
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.form-textarea { resize: vertical; min-height: 92px; }
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: none;
  border-color: var(--color-cranberry);
  box-shadow: 0 0 0 3px rgba(183,72,79,0.16);
}
.form-input.has-error,
.form-textarea.has-error,
.form-select.has-error {
  border-color: var(--color-cranberry);
  background: #fdf4f4;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2365081F'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  padding-right: 2.75rem;
}
.char-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--color-sage);
  margin-top: 0.3rem;
}
.field-error {
  color: var(--color-cranberry);
  font-size: 0.82rem;
  margin-top: 0.4rem;
  display: none;
}
.field-error.is-visible { display: block; }

/* "What items are you looking for" — chip-style checkboxes */
.checkbox-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.checkbox-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-sage);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}
.checkbox-chip:hover { border-color: var(--color-cranberry); }
.checkbox-chip input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: var(--color-cranberry);
  flex-shrink: 0;
}
.checkbox-chip span {
  font-size: 0.92rem;
  line-height: 1.35;
}
.checkbox-chip:has(input:checked) {
  border-color: var(--color-cranberry);
  background: rgba(183,72,79,0.06);
}

.form-submit-row {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.form-submit {
  background: var(--color-cranberry);
  color: var(--color-cream);
  border: none;
  padding: 1rem 2.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 14px 30px rgba(183,72,79,0.35);
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.form-submit:hover,
.form-submit:focus-visible {
  background: var(--color-burgundy);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.form-submit:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}
.form-submit .spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(232,225,199,0.4);
  border-top-color: var(--color-cream);
  animation: spin 0.7s linear infinite;
  display: none;
}
.form-submit.is-loading .spinner { display: inline-block; }
.form-submit.is-loading .form-submit-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-global-error {
  display: none;
  background: #fdf4f4;
  border: 1.5px solid var(--color-cranberry);
  color: var(--color-burgundy);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  text-align: center;
}
.form-global-error.is-visible { display: block; }

.form-success-panel {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success-panel.is-visible { display: block; }
.form-success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}
.form-success-panel h2 {
  font-size: 1.5rem;
  color: var(--color-burgundy);
  margin-bottom: 0.6rem;
}
.form-success-panel p {
  color: var(--color-ink);
  opacity: 0.85;
  max-width: 440px;
  margin: 0 auto;
}

/* Honeypot — hidden from real visitors, left in the tab order for bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .form-submit .spinner { animation: none; }
}

/* =========================================================
   BLOG — listing + single post
   ========================================================= */
.blog-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}

/* Category filter pills */
.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.blog-category-pill {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-sage);
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft), color 0.2s var(--ease-soft);
}
.blog-category-pill:hover {
  border-color: var(--color-cranberry);
}
.blog-category-pill.is-active {
  background: var(--color-cranberry);
  border-color: var(--color-cranberry);
  color: var(--color-cream);
}

/* Post grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(42,26,18,0.1);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(42,26,18,0.16);
}
.blog-card-image {
  aspect-ratio: 4 / 3;
  background: var(--color-sage);
  overflow: hidden;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-date {
  font-size: 0.78rem;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-size: 1.2rem;
  color: var(--color-burgundy);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { text-decoration: underline; }
.blog-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-ink);
  opacity: 0.85;
  margin-bottom: 1.1rem;
  flex: 1;
}
.blog-card-link {
  align-self: flex-start;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-cranberry);
}
.blog-card-link:hover { text-decoration: underline; }

.blog-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-sage);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.blog-pagination a,
.blog-pagination span {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.blog-pagination a {
  background: var(--color-forest);
  color: var(--color-cream);
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.blog-pagination a:hover { background: var(--color-burgundy); transform: translateY(-2px); }
.blog-pagination .blog-pagination-current { color: var(--color-ink); opacity: 0.7; }

/* Single post */
.blog-post-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-forest);
  margin-bottom: 1.5rem;
}
.blog-post-back:hover { text-decoration: underline; }
.blog-post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: var(--color-sage);
}
.blog-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.blog-post-date {
  font-size: 0.85rem;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-post-category-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--color-cream-dim);
  color: var(--color-burgundy);
}
.blog-post-category-pill:hover { background: var(--color-sage); color: var(--color-cream); }
.blog-post-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-burgundy);
  margin-bottom: 2rem;
  line-height: 1.15;
}

/* Rich text body — matches what TinyMCE can produce in body_richtext */
.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-ink);
}
.blog-post-body h2 {
  font-size: 1.5rem;
  color: var(--color-burgundy);
  margin: 2rem 0 1rem;
}
.blog-post-body h3 {
  font-size: 1.2rem;
  color: var(--color-burgundy);
  margin: 1.75rem 0 0.9rem;
}
.blog-post-body p { margin: 0 0 1.2rem; }
.blog-post-body ul,
.blog-post-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.blog-post-body li { margin-bottom: 0.4rem; }
.blog-post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--color-cranberry);
  font-style: italic;
  color: var(--color-forest);
}
.blog-post-body a { color: var(--color-cranberry); text-decoration: underline; }
.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.blog-post-body::after { content: ""; display: table; clear: both; }

/* Inline image float classes — the admin editor's image alignment tool
   writes these directly onto <img> tags inside body_richtext. Values
   match the admin preview exactly (see Notion to-do list) so floated
   images look the same on the live site as they do in the editor. */
.blog-post-body .blog-img-left {
  float: left;
  margin: 4px 20px 12px 0;
  max-width: 45%;
}
.blog-post-body .blog-img-right {
  float: right;
  margin: 4px 0 12px 20px;
  max-width: 45%;
}
.blog-post-body .blog-img-center {
  display: block;
  margin: 16px auto;
  max-width: 100%;
}

.blog-not-found {
  text-align: center;
  /* Used as the first thing in <main> on 4 pages (blog-post.php,
     product.php, real-wedding.php, signage.php not-found/placeholder
     states) — none of them have a .page-intro band above providing
     header clearance, so this has to do that job itself, same as
     .product-page-wrap and .page-intro do. */
  padding: clamp(8rem, 16vw, 10rem) 1rem clamp(4rem, 8vw, 6rem);
}
.blog-not-found h1 {
  font-size: 1.8rem;
  color: var(--color-burgundy);
  margin-bottom: 0.8rem;
}
.blog-not-found p {
  color: var(--color-sage);
  margin-bottom: 1.5rem;
}

/* =========================================================
   REAL WEDDINGS — listing + single gallery
   ========================================================= */
.weddings-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.weddings-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-sage);
}

/* Listing grid — large cards per Mel's brief */
.weddings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (max-width: 760px) { .weddings-grid { grid-template-columns: 1fr; } }

.wedding-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(42,26,18,0.12);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.wedding-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(42,26,18,0.18);
}
.wedding-card-image {
  aspect-ratio: 4 / 3;
  background: var(--color-sage);
  overflow: hidden;
}
.wedding-card-image img { width: 100%; height: 100%; object-fit: cover; }
.wedding-card-body { padding: 1.5rem 1.6rem 1.75rem; }
.wedding-card-title {
  font-size: 1.4rem;
  color: var(--color-burgundy);
  margin-bottom: 0.5rem;
}
.wedding-card-meta {
  font-size: 0.88rem;
  color: var(--color-sage);
  margin: 0 0 0.7rem;
}
.wedding-card-vendors {
  font-size: 0.82rem;
  color: var(--color-forest);
  font-weight: 600;
  margin: 0;
}

/* Single wedding page */
.wedding-location { font-size: 0.85rem; color: var(--color-sage); }

.wedding-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 2.5rem 0;
}
@media (max-width: 760px) { .wedding-photo-grid { grid-template-columns: repeat(2, 1fr); } }
.wedding-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-sage);
}
.wedding-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Credited vendors — grouped by category, per Mel's suggestion */
.wedding-vendors {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(145,148,110,0.3);
}
.wedding-vendors-title {
  font-size: 1.3rem;
  color: var(--color-burgundy);
  margin-bottom: 1.5rem;
}
.vendor-category-group { margin-bottom: 1.75rem; }
.vendor-category-group:last-child { margin-bottom: 0; }
.vendor-category-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-sage);
  margin-bottom: 0.8rem;
}
.vendor-list { display: flex; flex-direction: column; gap: 0.9rem; }
.vendor-card {
  padding: 1rem 1.2rem;
  background: var(--color-cream-dim);
  border-radius: var(--radius-sm);
}
.vendor-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 0.5rem;
}
.vendor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}
.vendor-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cranberry);
}
.vendor-links a:hover { text-decoration: underline; }

/* =========================================================
   CREATE YOUR QUOTE — catalog listing + product detail
   ========================================================= */
.product-page-wrap {
  /* Unlike blog-post-wrap/weddings-wrap, this page has no .page-intro
     band above it providing header clearance — so the top padding here
     has to do that job itself, matching .page-intro's own top padding. */
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(8rem, 16vw, 10rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.catalog-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.catalog-empty { text-align: center; padding: 3rem 1rem; color: var(--color-sage); }

.catalog-search {
  position: relative;
  max-width: 420px;
  margin: 0 auto 1.75rem;
}
.catalog-search i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-sage);
  font-size: 0.9rem;
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--color-sage);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.catalog-search input:focus-visible {
  outline: none;
  border-color: var(--color-cranberry);
  box-shadow: 0 0 0 3px rgba(183,72,79,0.16);
}
/* Remove the default browser "x" clear icon so it doesn't clash with
   our own search icon layout — type=search still gets Escape-to-clear. */
.catalog-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.catalog-search-current-empty {
  text-align: center;
  color: var(--color-sage);
  font-size: 0.92rem;
  padding: 1rem 0 0.5rem;
}
.catalog-search-other {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(145,148,110,0.3);
}
.catalog-search-other-heading {
  font-size: 1.1rem;
  color: var(--color-burgundy);
  text-align: center;
  margin-bottom: 1.5rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}
@media (max-width: 1000px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .catalog-grid { grid-template-columns: 1fr; } }

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(42,26,18,0.1);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(42,26,18,0.16); }
.product-card-image { aspect-ratio: 1 / 1; background: var(--color-cream-dim); overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card-image-placeholder,
.product-detail-image-main .product-card-image-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
  background: var(--color-cream-dim);
  color: var(--color-sage);
  font-size: 0.8rem;
}
.product-card-image-placeholder i { font-size: 1.6rem; }
.product-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.product-card-category {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-sage); margin: 0 0 0.3rem;
}
.product-card-title { font-size: 1.05rem; color: var(--color-burgundy); margin: 0 0 0.4rem; line-height: 1.3; }
.product-card-price { font-size: 0.92rem; font-weight: 600; color: var(--color-forest); margin: 0; }

/* Single product page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }

.product-detail-image-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-cream-dim);
}
.product-detail-image-main img { width: 100%; height: 100%; object-fit: cover; }
.product-swatches { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.product-swatch {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-cream-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-sage);
  transition: border-color 0.2s var(--ease-soft);
}
.product-swatch img { width: 100%; height: 100%; object-fit: cover; }
.product-swatch.is-selected { border-color: var(--color-cranberry); }
.product-swatch:hover { border-color: var(--color-sage); }

.product-detail-category {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-sage); margin: 0 0 0.4rem;
}
.product-detail-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-burgundy); margin: 0 0 0.6rem; }
.product-detail-price { font-size: 1.3rem; font-weight: 700; color: var(--color-forest); margin: 0 0 1.2rem; }
.product-detail-description { margin-bottom: 1.5rem; line-height: 1.65; }
.product-detail-stock { font-size: 0.85rem; color: var(--color-sage); margin: -0.6rem 0 1.2rem; }
.product-quantity-input { max-width: 120px; }
.product-add-to-cart { width: 100%; justify-content: center; margin-top: 0.5rem; }
.product-add-feedback {
  margin-top: 0.8rem; text-align: center; font-size: 0.88rem;
  font-weight: 600; color: var(--color-forest);
}

/* =========================================================
   CART DRAWER
   ========================================================= */
.cart-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-cream);
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.cart-toggle:hover, .cart-toggle:focus-visible {
  background: var(--color-burgundy);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}
.cart-toggle-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--color-cranberry);
  color: var(--color-cream);
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.cart-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,6,10,0.5);
  z-index: 250;
  opacity: 0;
  transition: opacity 0.35s var(--ease-soft);
}
.cart-drawer-backdrop.is-open { opacity: 1; }
.cart-drawer-backdrop[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(430px, 92vw);
  background: var(--color-cream);
  z-index: 260;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-soft);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer[hidden] { display: none; }

.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(145,148,110,0.3);
}
.cart-drawer-header h2 { font-size: 1.3rem; color: var(--color-burgundy); }
.cart-drawer-header .modal-close { position: static; }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.cart-drawer-body[hidden] { display: none; }
.cart-drawer-body--success { align-items: center; text-align: center; justify-content: center; }
.success-response-time {
  font-size: 0.88rem;
  color: var(--color-sage);
  margin-top: -0.5rem;
}
.success-jump-queue {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(145,148,110,0.3);
  width: 100%;
}
.success-jump-queue-heading {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-burgundy);
  margin-bottom: 0.9rem;
}
.success-jump-queue .form-submit { width: 100%; justify-content: center; }

.cart-items { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.2rem; }
.cart-item { display: flex; gap: 0.9rem; }
.cart-item-image {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-cream-dim);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-sage);
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; margin: 0; }
.cart-item-variant { font-size: 0.82rem; color: var(--color-sage); margin: 0.15rem 0 0; }
.cart-item-custom { font-size: 0.8rem; font-style: italic; color: var(--color-forest); margin: 0.2rem 0 0; }
.cart-item-price { font-size: 0.85rem; font-weight: 600; color: var(--color-forest); margin: 0.3rem 0 0; }
.cart-item-controls { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.cart-item-qty {
  width: 56px; padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--color-sage); border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.cart-item-remove {
  background: none; border: none; color: var(--color-cranberry);
  font-size: 0.9rem; padding: 0.3rem;
}
.cart-item-remove:hover { color: var(--color-burgundy); }

.cart-empty-message { text-align: center; color: var(--color-sage); padding: 2rem 0; }

.cart-summary { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid rgba(145,148,110,0.3); }
.cart-subtotal-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 700; font-size: 1.1rem; color: var(--color-burgundy); margin: 0 0 0.4rem;
}
.cart-poa-note, .cart-estimate-note { font-size: 0.78rem; color: var(--color-sage); margin: 0 0 0.4rem; }
.cart-checkout-btn { width: 100%; justify-content: center; margin-top: 1rem; }
.cart-checkout-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.cart-back-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: none; border: none; color: var(--color-forest);
  font-weight: 600; font-size: 0.88rem; margin-bottom: 1.2rem; padding: 0;
}
.cart-back-link:hover { text-decoration: underline; }

.cart-drawer .form-submit { width: 100%; justify-content: center; margin-top: 1.5rem; }
