/* ==========================================================================
   components.css — Buttons, dividers, section headers, quotes fallback, cards, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition:
    transform var(--duration-base) var(--ease-elegant),
    box-shadow var(--duration-base) var(--ease-elegant),
    background-color var(--duration-base) var(--ease-elegant),
    color var(--duration-base) var(--ease-elegant);
}

/* Rose-gold fill. Uses the deeper rose so ivory text meets WCAG AA (≥4.5:1). */
.btn-primary {
  background-color: var(--color-rose-gold-deep);
  color: var(--color-ivory);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--color-maroon);
  color: var(--color-ivory);
  transform: translateY(-3px);
  box-shadow: var(--shadow-rose);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-maroon);
  border-color: var(--color-gold);
}

.btn-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-maroon);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.btn-primary:active,
.btn-outline:active {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Ornamental divider: thin gold lines with a centered diamond
   Markup: <div class="divider" aria-hidden="true"><span class="divider__gem"></span></div>
   -------------------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: min(240px, 70%);
  margin: var(--space-sm) auto 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.divider::after {
  transform: scaleX(-1);
}

.divider__gem {
  width: 9px;
  height: 9px;
  background: var(--color-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px var(--color-ivory), 0 0 0 4px var(--color-gold);
}

.section--blush .divider__gem {
  box-shadow: 0 0 0 3px var(--color-blush), 0 0 0 4px var(--color-gold);
}

/* --------------------------------------------------------------------------
   Section header: eyebrow + heading + divider
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__eyebrow {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  /* Deep gold for AA contrast on ivory/blush */
  color: var(--color-gold-deep);
}

.section-header__title {
  margin: 0;
  font-size: var(--fs-xl);
}

/* --------------------------------------------------------------------------
   Quotes: no-JS fallback list (the carousel lives in quotes.css)
   -------------------------------------------------------------------------- */
.quotes {
  margin-top: var(--space-xl);
}

.quotes__item {
  margin: 0;
}

.quotes__item + .quotes__item {
  margin-top: var(--space-lg);
}

.quotes__text {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--color-maroon);
}

.quotes__author {
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Cards (wedding ceremony, gallery)
   -------------------------------------------------------------------------- */
.card {
  margin: 0;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-white);
  border: 1px solid rgba(201, 164, 92, 0.35);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.card__title {
  margin: 0 0 var(--space-xs);
  font-size: var(--fs-lg);
}

.card__text {
  margin: 0 0 var(--space-xs);
  color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Venue
   -------------------------------------------------------------------------- */
.venue__name {
  margin: 0 0 var(--space-xs);
  font-size: var(--fs-lg);
}

.venue__address {
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.venue__notes {
  margin: 0 0 var(--space-md);
  font-style: italic;
  color: var(--color-text);
}

.venue__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* Phase 5 renders the map here */
#map:not(:empty) {
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Gallery (renders only when config.gallery has items)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--space-sm);
}

.gallery-grid__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-xl);
  background: var(--color-maroon);
  color: var(--color-ivory);
  text-align: center;
}

.site-footer__names {
  --amp-color: var(--color-gold-light);
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--fs-xl);
  color: var(--color-ivory);
}

.site-footer__hashtag {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-md);
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.site-footer .divider__gem {
  box-shadow: 0 0 0 3px var(--color-maroon), 0 0 0 4px var(--color-gold);
}

.site-footer__love,
.site-footer__date {
  margin: var(--space-sm) 0 0;
  font-size: var(--fs-sm);
  color: var(--color-ivory);
}

.site-footer__love {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: var(--fs-md);
}

.site-footer__date {
  padding-left: 0.3em; /* balances the trailing letter-space so the line centres optically */
  font-size: var(--fs-sm);
  letter-spacing: 0.3em;
  color: var(--color-gold-light);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

