/* ============================================================================
   WedMeWed Design System — v1 (Phase 1)
   ----------------------------------------------------------------------------
   Aesthetic: Indian wedding invitation card. Ivory card stock, deep sindoor
   red, marigold gold. Display face: Marcellus (engraved-invitation feel).
   Body face: Mulish. Signature element: the "invitation card" — a surface
   with an inner hairline gold border inset like a wedding card, used for
   tool cards, forms and feature panels. Decoration is spent there and on
   the diamond-motif dividers; everything else stays quiet.
   ========================================================================== */

/* ------------------------------ Tokens ---------------------------------- */
:root {
  /* Palette */
  --wmw-sindoor:      #8A1E3C;   /* primary — deep sindoor red */
  --wmw-sindoor-deep: #5E1229;   /* hover / footer depth */
  --wmw-marigold:     #C6902B;   /* gold accent (borders, motifs) */
  --wmw-marigold-soft:#E9C77F;   /* gold highlight */
  --wmw-ivory:        #FFFAF3;   /* page background — invitation card stock */
  --wmw-blush:        #F8ECE4;   /* alternate section background */
  --wmw-ink:          #33222A;   /* text */
  --wmw-ink-soft:     #6E5A62;   /* secondary text */
  --wmw-line:         #EADFD3;   /* hairline borders on ivory */

  /* Type */
  --font-display: 'Marcellus', 'Georgia', serif;
  --font-body: 'Mulish', 'Segoe UI', system-ui, sans-serif;

  /* Shape & elevation */
  --radius-card: 18px;
  --radius-btn: 999px;
  --shadow-soft: 0 6px 24px rgba(94, 18, 41, 0.07);
  --shadow-lift: 0 14px 34px rgba(94, 18, 41, 0.13);

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

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--wmw-ink);
  --bs-body-bg: var(--wmw-ivory);
  --bs-link-color: var(--wmw-sindoor);
  --bs-link-hover-color: var(--wmw-sindoor-deep);
}

/* ------------------------------ Base ------------------------------------ */
html { scroll-behavior: smooth; }

body {
  background: var(--wmw-ivory);
  color: var(--wmw-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--wmw-ink);
}

::selection { background: var(--wmw-marigold-soft); color: var(--wmw-ink); }

a { text-decoration: none; transition: color 0.18s var(--ease-out); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--wmw-sindoor);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2000;
  background: var(--wmw-sindoor);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
}

/* ------------------------------ Header ---------------------------------- */
.site-header {
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wmw-line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }

.brand-word {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--wmw-ink);
  letter-spacing: 0.02em;
}
.brand-accent { color: var(--wmw-sindoor); }

.navbar .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--wmw-ink);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}
.navbar .nav-link:hover { color: var(--wmw-sindoor); text-decoration: none; }
.navbar .nav-link.active {
  color: var(--wmw-sindoor);
  position: relative;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 2px;
  height: 2px;
  background: var(--wmw-marigold);
  border-radius: 2px;
}

.navbar-toggler { border-color: var(--wmw-line); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(138, 30, 60, 0.25); }

/* ------------------------------ Buttons ---------------------------------- */
.btn-wmw,
.btn-wmw-outline,
.btn-wmw-gold {
  border-radius: var(--radius-btn);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.5rem;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
              background 0.18s var(--ease-out), color 0.18s var(--ease-out);
}

.btn-wmw {
  background: var(--wmw-sindoor);
  border: 1px solid var(--wmw-sindoor);
  color: #fff;
}
.btn-wmw:hover, .btn-wmw:focus {
  background: var(--wmw-sindoor-deep);
  border-color: var(--wmw-sindoor-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-wmw-outline {
  background: transparent;
  border: 1.5px solid var(--wmw-sindoor);
  color: var(--wmw-sindoor);
}
.btn-wmw-outline:hover, .btn-wmw-outline:focus {
  background: var(--wmw-sindoor);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-wmw-gold {
  background: var(--wmw-marigold);
  border: 1px solid var(--wmw-marigold);
  color: #fff;
}
.btn-wmw-gold:hover, .btn-wmw-gold:focus {
  background: #B07F22;
  border-color: #B07F22;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.btn-wmw:active, .btn-wmw-outline:active, .btn-wmw-gold:active { transform: translateY(0); }

/* Button loading state: <button class="btn btn-wmw is-loading" disabled> */
.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15em; height: 1.15em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wmw-spin 0.7s linear infinite;
}
@keyframes wmw-spin { to { transform: rotate(360deg); } }

/* ------------------------------ Hero ------------------------------------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
}

/* Faint corner mandala rings — pure CSS, no image request */
.hero-ornament {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid var(--wmw-marigold);
  opacity: 0.16;
  pointer-events: none;
}
.hero-ornament::before, .hero-ornament::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  border: 1px dashed var(--wmw-marigold);
}
.hero-ornament::after { inset: 72px; border-style: solid; opacity: 0.7; }
.hero-ornament-left  { top: -180px; left: -180px; }
.hero-ornament-right { bottom: -220px; right: -180px; }

.hero-eyebrow {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--wmw-marigold);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title-accent {
  color: var(--wmw-sindoor);
  white-space: nowrap;
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--wmw-ink-soft);
  max-width: 640px;
  margin-bottom: 2rem;
}

.hero-actions { margin-bottom: 2.8rem; }

.hero-trust {
  gap: 1.6rem;
  align-items: center;
}
.hero-trust-item { display: flex; flex-direction: column; align-items: center; }
.hero-trust-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--wmw-sindoor);
}
.hero-trust-label { font-size: 0.85rem; color: var(--wmw-ink-soft); }
.hero-trust-divider {
  width: 1px; height: 34px;
  background: var(--wmw-line);
}
@media (max-width: 575.98px) { .hero-trust-divider { display: none; } }

/* ------------------------------ Sections --------------------------------- */
.section { padding: 4.5rem 0; }
.section-blush { background: var(--wmw-blush); }

.section-head { margin-bottom: 1.5rem; }
.section-motif { margin-bottom: 1rem; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.8rem;
}
.section-sub {
  color: var(--wmw-ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
}

/* ------------------------- Signature: invitation card --------------------- */
/* A surface with an inner hairline gold border inset like a wedding card.   */
.tool-card,
.form-card,
.promise-card {
  background: #fff;
  border: 1px solid var(--wmw-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 8px;                       /* the "card stock" margin */
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
              border-color 0.22s var(--ease-out);
}

.tool-card-inner,
.form-card-inner,
.promise-card-inner {
  border: 1px solid var(--wmw-marigold-soft);  /* inner gold hairline */
  border-radius: calc(var(--radius-card) - 7px);
  padding: 1.6rem 1.5rem;
  height: 100%;
}

.tool-card { width: 100%; }
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--wmw-marigold-soft);
}

.tool-card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--wmw-blush), #fff);
  border: 1px solid var(--wmw-line);
  color: var(--wmw-sindoor);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.22s var(--ease-out);
}
.tool-card:hover .tool-card-icon { transform: scale(1.07) rotate(-3deg); }

.tool-card-title { font-size: 1.22rem; margin-bottom: 0.5rem; }
.tool-card-title a { color: var(--wmw-ink); }
.tool-card-title a:hover { color: var(--wmw-sindoor); text-decoration: none; }
.tool-card-desc { color: var(--wmw-ink-soft); font-size: 0.95rem; margin-bottom: 1rem; }

.tool-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wmw-marigold);
  border: 1px solid var(--wmw-marigold-soft);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  background: #FFFDF8;
}

.tool-card-go {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--wmw-sindoor);
}

/* ------------------------------ Features --------------------------------- */
.feature { padding: 1rem; }
.feature-icon {
  width: 62px; height: 62px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--wmw-marigold-soft);
  color: var(--wmw-sindoor);
  font-size: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.feature-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-text { color: var(--wmw-ink-soft); font-size: 0.96rem; }

/* ------------------------------ Lists ------------------------------------ */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.4rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.7rem;
  color: var(--wmw-ink);
}
.check-list li::before {
  content: "\2726"; /* four-pointed star — motif echo */
  position: absolute;
  left: 0.3rem; top: 0;
  color: var(--wmw-marigold);
  font-size: 0.95rem;
}

/* ------------------------------ Promise card ------------------------------ */
.promise-title { font-size: 1.35rem; margin-bottom: 0.7rem; color: var(--wmw-sindoor); }
.promise-text { color: var(--wmw-ink-soft); }
.promise-sign {
  font-family: var(--font-display);
  color: var(--wmw-marigold);
  margin-bottom: 0;
  margin-top: 1rem;
}

/* ------------------------------ CTA band ---------------------------------- */
.cta-band {
  background: linear-gradient(150deg, var(--wmw-sindoor) 0%, var(--wmw-sindoor-deep) 100%);
  color: #fff;
  padding: 4.2rem 0;
}
.cta-motif { margin-bottom: 1.1rem; }
.cta-title {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 0.8rem;
}
.cta-text {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 1.4rem;
}

/* ------------------------------ Page hero (inner pages) ------------------- */
.page-hero {
  padding: 3.6rem 0 1.6rem;
}
.page-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.page-sub { color: var(--wmw-ink-soft); font-size: 1.08rem; max-width: 620px; }

/* ------------------------------ Prose content ----------------------------- */
.content-prose h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.7rem;
  padding-top: 0.4rem;
}
.content-prose p, .content-prose li { color: var(--wmw-ink); }
.content-prose ul { padding-left: 1.2rem; }
.content-prose li { margin-bottom: 0.45rem; }

/* ------------------------------ Breadcrumbs ------------------------------- */
.wmw-breadcrumbs {
  border-bottom: 1px solid var(--wmw-line);
  background: #FFFDF8;
  font-size: 0.88rem;
}
.wmw-breadcrumbs .breadcrumb { padding: 0.65rem 0; }
.wmw-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "\2726";
  color: var(--wmw-marigold);
  font-size: 0.7rem;
  line-height: 1.8;
}
.wmw-breadcrumbs .breadcrumb-item.active { color: var(--wmw-ink-soft); }

/* ------------------------------ Forms ------------------------------------- */
.form-label { font-weight: 700; font-size: 0.92rem; }
.req { color: var(--wmw-sindoor); }

.form-control {
  border: 1px solid var(--wmw-line);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  background: #FFFDF8;
  transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.form-control:focus {
  border-color: var(--wmw-sindoor);
  box-shadow: 0 0 0 0.2rem rgba(138, 30, 60, 0.12);
  background: #fff;
}
.form-text { color: var(--wmw-ink-soft); }

/* Honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ------------------------------ Contact aside ------------------------------ */
.contact-aside {
  background: var(--wmw-blush);
  border-radius: var(--radius-card);
  padding: 1.6rem 1.5rem;
}
.contact-aside-title { font-size: 1.2rem; margin-bottom: 1rem; }
.contact-aside-item { font-weight: 600; }
.contact-aside-text { color: var(--wmw-ink-soft); font-size: 0.94rem; margin-bottom: 0; }

/* ------------------------------ Alerts / flash ----------------------------- */
.flash-stack { padding-top: 1rem; }
.wmw-alert { border-radius: 12px; box-shadow: var(--shadow-soft); }

/* ------------------------------ Footer ------------------------------------- */
.site-footer {
  background: var(--wmw-sindoor-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.4rem 0 1.4rem;
  margin-top: 0;
}
.footer-motif { text-align: center; margin-bottom: 1.8rem; }
.footer-brand .brand-word { color: #fff; }
.footer-brand:hover { text-decoration: none; }
.footer-tag { color: var(--wmw-marigold-soft); font-size: 0.92rem; font-weight: 600; }
.footer-note { font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wmw-marigold-soft);
  margin-bottom: 0.9rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.82); font-size: 0.94rem; }
.footer-links a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.footer-social a:hover {
  background: var(--wmw-marigold);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.1rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-made span[aria-hidden] { color: var(--wmw-marigold-soft); }

/* ------------------------------ Error page --------------------------------- */
.error-page { padding: 5rem 0; }
.error-motif { margin-bottom: 1.4rem; }
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 6.5rem);
  line-height: 1;
  color: var(--wmw-marigold-soft);
  margin-bottom: 0.4rem;
}
.error-title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.7rem; }
.error-text { color: var(--wmw-ink-soft); max-width: 480px; }

/* ------------------------------ Empty state -------------------------------- */
/* Reusable: <div class="empty-state"><i class="bi ..."></i><h3>..</h3><p>..</p></div> */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1.5px dashed var(--wmw-line);
  border-radius: var(--radius-card);
  background: #FFFDF8;
}
.empty-state .bi { font-size: 2.2rem; color: var(--wmw-marigold); display: block; margin-bottom: 0.8rem; }
.empty-state h3 { font-size: 1.25rem; }
.empty-state p { color: var(--wmw-ink-soft); max-width: 420px; margin: 0 auto; }

/* ------------------------------ Skeleton loading --------------------------- */
.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #F3E9DF 25%, #FBF4EC 50%, #F3E9DF 75%);
  background-size: 200% 100%;
  animation: wmw-shimmer 1.3s ease-in-out infinite;
  min-height: 1em;
}
@keyframes wmw-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ------------------------------ Scroll reveal ------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* No-JS / pre-JS safety: reveal everything if JS never runs */
html:not(.js) .reveal { opacity: 1; transform: none; }

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