/* ==========================================================================
   Adrian & Kelsey-Grace — Wedding site
   Theme: off-white base, navy blue, gold accents
   ========================================================================== */

:root {
  --navy: #14213d;
  --navy-soft: #1f3357;
  --navy-deep: #0e1830;
  --gold: #bfa15f;
  --gold-bright: #d4b976;
  --gold-deep: #9c8140;
  --base: #faf8f3;      /* very slight off-white */
  --base-alt: #f3efe6;
  --white: #ffffff;
  --ink: #22262f;
  --ink-soft: #5a5f6a;
  --line: rgba(20, 33, 61, 0.12);
  --shadow: 0 18px 40px -24px rgba(20, 33, 61, 0.45);
  --shadow-soft: 0 8px 24px -18px rgba(20, 33, 61, 0.5);
  --radius: 14px;
  --maxw: 1040px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background-color: var(--base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--navy); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9em;
}

/* --- Ornamental divider ------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 1.4em 0;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(90px, 22vw);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider span { font-size: 1.1rem; letter-spacing: 0.2em; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--navy);
  color: var(--base);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--navy-soft); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: var(--shadow-soft);
}
.btn-gold:hover { background: var(--gold-bright); color: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* --- Site nav ----------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
}
.brand .amp { color: var(--gold); font-style: italic; padding: 0 2px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); background: var(--base-alt); }
.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--base);
}
.nav-links a.nav-cta:hover { background: var(--navy-soft); color: var(--white); }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(70px, 12vw, 130px) 0 clamp(50px, 8vw, 90px);
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(191, 161, 95, 0.14), transparent 60%),
    linear-gradient(180deg, var(--base), var(--base-alt));
  overflow: hidden;
}
.hero .eyebrow { margin-bottom: 1.4em; }
.hero-names {
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 1;
  margin: 0;
  color: var(--navy);
}
.hero-names .amp {
  display: block;
  font-style: italic;
  font-size: 0.5em;
  color: var(--gold);
  margin: 0.1em 0;
}
.hero-date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.6em;
}
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--navy-soft);
  max-width: 560px;
  margin: 1em auto 0;
}
.hero-actions {
  margin-top: 2.4em;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.section-alt { background: var(--base-alt); }

/* --- Detail cards ------------------------------------------------------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 38px 32px;
}
.venue-card { text-align: center; }
.venue-card .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.8em;
}
.venue-card h3 { font-size: 1.9rem; margin-bottom: 0.35em; }
.venue-card .addr {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}
.venue-card .time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0.4em 0 1.2em;
}

/* --- Schedule ----------------------------------------------------------- */
.schedule {
  max-width: 460px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.schedule li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.schedule li:last-child { border-bottom: none; }
.schedule .when {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-deep);
  white-space: nowrap;
}
.schedule .what {
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-align: right;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(250, 248, 243, 0.75);
  text-align: center;
  padding: 44px 0;
}
.site-footer .brand { color: var(--base); }
.site-footer .brand .amp { color: var(--gold-bright); }
.site-footer p { margin: 0.6em 0 0; font-size: 0.82rem; letter-spacing: 0.08em; }
.site-footer a { color: var(--gold-bright); }

/* ==========================================================================
   RSVP flow
   ========================================================================== */
.flow-wrap {
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px 60px;
}
.progress {
  width: 100%;
  max-width: 620px;
  height: 4px;
  border-radius: 999px;
  background: var(--base-alt);
  margin: 30px 0 40px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 620px;
  padding: clamp(30px, 5vw, 52px);
}
.step {
  display: none;
  animation: fadeUp 0.5s ease both;
}
.step.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.step .step-count {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 1em;
}
.step h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 0.3em; }
.step .hint { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.6em; }

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}
input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(191, 161, 95, 0.14);
}
textarea { resize: vertical; min-height: 120px; }

/* party / guest list step */
.add-row { display: flex; gap: 10px; align-items: stretch; }
.add-row input[type="text"] { flex: 1; }
.add-row .btn { white-space: nowrap; align-self: stretch; }
.add-help { font-size: 0.82rem; color: var(--ink-soft); margin: 8px 0 0; }
.guest-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.guest-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.guest-chip .guest-name { color: var(--navy); font-weight: 400; }
.guest-rm {
  border: none;
  background: none;
  color: var(--gold-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}
.guest-rm:hover { color: var(--navy); }

/* choice buttons (yes/no) */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 20px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--base);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}
.choice:hover { border-color: var(--gold); background: var(--white); }
.choice.selected {
  border-color: var(--gold);
  background: rgba(191, 161, 95, 0.12);
  box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.14);
}

/* anonymous toggle */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--base);
  cursor: pointer;
}
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }
.check-row .check-text strong { display: block; color: var(--navy); font-weight: 500; }
.check-row .check-text span { font-size: 0.85rem; color: var(--ink-soft); }

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}
.step-actions .spacer { flex: 1; }
.link-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 4px;
}
.link-back:hover { color: var(--navy); }

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: rgba(191, 161, 95, 0.12);
  border: 1px solid rgba(191, 161, 95, 0.4);
  color: var(--navy);
}
.field-error { color: #a3402f; font-size: 0.85rem; margin-top: 8px; min-height: 1em; }

/* confirmation */
.confirm { text-align: center; }
.confirm .seal {
  width: 76px; height: 76px; margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(191, 161, 95, 0.15);
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  font-size: 2rem;
}
.confirm h2 { font-size: 2.4rem; }

/* ==========================================================================
   Message board
   ========================================================================== */
.board-grid {
  columns: 3 300px;
  column-gap: 24px;
}
.msg-card {
  break-inside: avoid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 22px;
  margin-bottom: 24px;
}
.msg-card .quote { color: var(--gold); font-family: var(--font-display); font-size: 2.2rem; line-height: 0.2; }
.msg-card .note {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.4;
  margin: 12px 0 16px;
}
.msg-card .from {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.msg-card .from .date { color: var(--ink-soft); font-weight: 400; letter-spacing: 0.08em; }

.empty-state, .loading-state {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
}

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-wrap { max-width: 480px; margin: 60px auto; }
.admin-panel { max-width: 1180px; margin: 40px auto; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.data th, table.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data th {
  background: var(--navy);
  color: var(--base);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
table.data tr:nth-child(even) td { background: var(--base); }
table.data td.wrap { white-space: normal; min-width: 220px; }
.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stat-row { display: flex; gap: 26px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--navy); line-height: 1; }
.stat .lbl { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* ==========================================================================
   Utilities & responsive
   ========================================================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2em; }
.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 (max-width: 620px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .choices { grid-template-columns: 1fr; }
  .board-grid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
