/* ============================================================
   Sylvana & Angel — Wedding Site
   Theme: Botanical (eucalyptus green & ivory)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Alex+Brush&family=Jost:wght@300;400;500;600&display=swap');

/* Custom typefaces: Gemola (display serif, matches the couple's logo/wordmark)
   and Avenir Next (clean geometric sans for body copy). Google Fonts above
   stay loaded as fallbacks in case a local font file fails to load. */
@font-face {
  font-family: 'Gemola';
  src: url('fonts/Gemola.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Avenir Next';
  src: url('fonts/AvenirNextLTPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wood: #3f4f37;        /* deep forest green — primary buttons/ink accent */
  --wood-dark: #2c3826;
  --wood-light: #b8c2ac;  /* pale sage, hairlines */
  --sage: #6f7d61;        /* mid sage — secondary accent */
  --sage-light: #eef1e6;  /* faint sage fill */
  --cream: #faf8f2;
  --white: #ffffff;
  --ink: #33402f;
  --ink-soft: #3d4838;
  --line: #e1ddcd;
  --danger: #9a4a3d;
  --ok: #3f6b3f;
  --pending: #a67c3d;
  --radius: 4px;
  --shadow: 0 10px 28px rgba(63, 79, 55, 0.08);
  --shadow-soft: 0 3px 14px rgba(63, 79, 55, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Avenir Next', 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

h1, h2, h3, .serif {
  font-family: 'Gemola', 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.script {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Thin sage rule with optional leaf sprig */
.rule {
  height: 1px;
  background: var(--wood-light);
  margin: 32px 0;
}
.rule-sprig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px 0;
}
.rule-sprig .line { height: 1px; width: 70px; background: var(--wood-light); }
.rule-sprig img, .rule-sprig svg { width: 90px; height: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--wood);
  background: var(--wood);
  color: var(--white);
  font-family: 'Avenir Next', 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--wood-dark); border-color: var(--wood-dark); transform: translateY(-1px); }
.btn.outline { background: transparent; color: var(--wood); }
.btn.outline:hover { background: var(--wood); color: var(--white); }
.btn.sage { background: var(--sage); border-color: var(--sage); }
.btn.sage:hover { background: #5c6850; border-color: #5c6850; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.small { padding: 8px 18px; font-size: 11px; }
.btn.danger { background: var(--danger); border-color: var(--danger); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

/* Forms */
label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: 'Avenir Next', 'Jost', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  margin-bottom: 18px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.radio-group { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.radio-option {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.radio-option input { display: none; }
.radio-option.selected {
  border-color: var(--sage);
  background: var(--sage-light);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.badge.confirmed { background: #e7ede4; color: var(--ok); }
.badge.declined { background: #f3e5e1; color: var(--danger); }
.badge.pending { background: #f4ecd9; color: var(--pending); }

.msg-error {
  color: var(--danger);
  font-size: 14px;
  margin: -8px 0 16px;
}
.msg-success {
  color: var(--ok);
  font-size: 14px;
  margin: -8px 0 16px;
}

.hidden { display: none !important; }

.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--wood);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.center { text-align: center; }
.muted { color: var(--ink-soft); font-size: 14px; }
