@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --wedding-ink: #403a36;
  --wedding-muted: #756d67;
  --wedding-rose: #b77f7b;
  --wedding-rose-dark: #8e5d5a;
  --wedding-sage: #87998d;
  --wedding-cream: #faf7f2;
  --wedding-paper: #fffdf9;
  --wedding-line: #e8ded5;
  --wedding-shadow: 0 18px 50px rgba(77, 57, 48, 0.1);
  --wedding-radius: 18px;
  --wedding-font-script: "Great Vibes", cursive;
  --wedding-font-heading: "Playfair Display", Georgia, "Iowan Old Style", serif;
  --wedding-font-body: "Cormorant Garamond", Georgia, "Iowan Old Style", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--wedding-ink);
  background: var(--wedding-cream);
  font-family: var(--wedding-font-body);
  font-size: 1.2rem;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--wedding-ink);
  font-family: var(--wedding-font-heading);
  font-weight: 500;
  letter-spacing: 0.01em;
}

a {
  color: var(--wedding-rose-dark);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--wedding-rose);
}

/* ---------- Monogram / logo ---------- */

.wedding-monogram {
  display: inline-block;
  color: inherit;
  line-height: 0;
}

.wedding-monogram svg {
  display: block;
  width: auto;
  height: 2.6rem;
  color: inherit;
  transition: height 0.3s ease;
}

body.header-fixed.header-animated #header.scrolled .wedding-monogram svg {
  height: 2rem;
}

.wedding-monogram-footer svg {
  height: 4.5rem;
  margin: 0 auto 0.75rem;
}

/* ---------- Header / navigation ---------- */

#header {
  border-bottom: 0;
}

body.header-dark.header-transparent #header:not(.scrolled),
body.header-transparent #header:not(.scrolled) {
  background: rgba(64, 58, 54, 0.45) !important;
}

#header:not(.scrolled) a {
  color: var(--wedding-paper);
}

#header.scrolled {
  background: var(--wedding-paper) !important;
  color: var(--wedding-ink) !important;
  border-bottom: 1px solid var(--wedding-line);
  box-shadow: 0 4px 24px rgba(77, 57, 48, 0.06);
}

#header.scrolled a {
  color: var(--wedding-ink) !important;
}

#header .navbar {
  flex-wrap: nowrap !important;
}

.navbar-section.logo {
  flex: 0 0 auto !important;
}

.navbar-section.desktop-menu {
  flex: 1 1 auto !important;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.navbar-section.desktop-menu::-webkit-scrollbar {
  display: none;
}

.dropmenu {
  min-width: 0;
}

.dropmenu > ul {
  flex-shrink: 0;
}

.dropmenu > ul > li > a {
  padding: 10px 11px !important;
  font-family: var(--wedding-font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  position: relative;
}

.dropmenu > ul > li > a::after {
  position: absolute;
  right: 1.1em;
  bottom: 0.7em;
  left: 1.1em;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropmenu > ul > li > a:hover,
.dropmenu > ul > li > a:focus,
.dropmenu > ul > li > a.active {
  color: var(--wedding-rose) !important;
}

.dropmenu > ul > li > a:hover::after,
.dropmenu > ul > li > a:focus::after,
.dropmenu > ul > li > a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

#header.scrolled .dropmenu > ul > li > a:hover,
#header.scrolled .dropmenu > ul > li > a:focus,
#header.scrolled .dropmenu > ul > li > a.active {
  color: var(--wedding-rose-dark) !important;
}

.mobile-menu .button_container span {
  background: var(--wedding-rose-dark);
}

.mobile-menu .button_container.active span {
  background: var(--wedding-paper) !important;
}

.overlay {
  background: var(--wedding-ink);
}

.treemenu a {
  font-family: var(--wedding-font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.treemenu li a:hover,
.treemenu li a:focus,
.treemenu li a.active {
  color: var(--wedding-rose) !important;
}

/* Mobile hamburger overlay — one-page section list (mirrors the desktop
   on-page nav, since the overlay otherwise falls back to the real page
   tree, which only has a single entry on this one-page site). */
.overlay-menu .mobile-sections {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.overlay-menu .mobile-sections li {
  margin: 0 0 1.5rem;
}

.overlay-menu .mobile-sections a {
  display: inline-block;
  color: var(--wedding-paper);
  font-family: var(--wedding-font-body);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.overlay-menu .mobile-sections a:hover,
.overlay-menu .mobile-sections a:focus,
.overlay-menu .mobile-sections a.active {
  color: var(--wedding-rose);
}

/* Language switcher (DE/EN) — deliberately understated: it inherits the
   surrounding nav's color/hover rules (light on the hero, ink once
   scrolled) rather than a fixed color of its own, and only differs from
   the section links by being dimmed until active or hovered. */
/* .dropmenu is display:none below 840px (mobile hamburger takes over) and
   otherwise a plain block, so its two child <ul>s (the section nav and the
   langswitcher) stack on separate lines by default. Only add flex above
   that breakpoint, so this doesn't fight the compiled theme's mobile
   display:none. */
@media (min-width: 841px) {
  .dropmenu {
    display: flex;
    align-items: center;
  }
}

.langswitcher {
  margin-left: 1.25rem !important;
}

.langswitcher a {
  opacity: 0.55;
}

.langswitcher a.active,
.langswitcher a:hover,
.langswitcher a:focus {
  opacity: 1;
}

.overlay-menu .langswitcher {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.overlay-menu .langswitcher a {
  color: var(--wedding-paper);
  font-family: var(--wedding-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.overlay-menu .langswitcher a.active,
.overlay-menu .langswitcher a:hover,
.overlay-menu .langswitcher a:focus {
  color: var(--wedding-rose);
  opacity: 1;
}

/* ---------- Hero ---------- */

.image-overlay .overlay-dark-gradient {
  background: linear-gradient(
    to bottom,
    rgba(64, 58, 54, 0.55),
    rgba(64, 58, 54, 0.35)
  );
}

.modular-hero h1 {
  font-family: var(--wedding-font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.modular-hero h2 {
  font-family: var(--wedding-font-script);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.modular-hero p {
  font-family: var(--wedding-font-body);
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.modular-hero #to-start {
  color: var(--wedding-paper);
}

.modular-hero.hero-fullscreen {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Content sections ---------- */

.modular-row {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.modular-row:nth-of-type(even) {
  background: var(--wedding-paper);
}

.modular-row:nth-of-type(odd) {
  background: var(--wedding-cream);
}

.modular-row .container {
  max-width: 70rem;
}

.modular-row .content-wrapper {
  max-width: 58rem;
  margin-right: auto;
  margin-left: auto;
}

.modular-row .content-wrapper > h1:first-child,
.modular-row .content-wrapper > h2:first-child {
  margin-bottom: 2.25rem;
  overflow-wrap: break-word;
  text-align: center;
  hyphens: auto;
}

@media (max-width: 480px) {
  .modular-row .content-wrapper > h1:first-child {
    font-size: 2rem;
  }

  .modular-row .content-wrapper > h2:first-child {
    font-size: 1.6rem;
  }
}

.modular-row .content-wrapper > h1:first-child::after,
.modular-row .content-wrapper > h2:first-child::after {
  display: block;
  width: 4rem;
  height: 1px;
  margin: 1.25rem auto 0;
  background: var(--wedding-rose);
  content: "";
}

.modular-row table {
  border: 1px solid var(--wedding-line);
  background: var(--wedding-paper);
  box-shadow: var(--wedding-shadow);
}

.modular-row th,
.modular-row td {
  padding: 1rem 1.25rem;
  border-color: var(--wedding-line);
}

.modular-row th {
  color: var(--wedding-rose-dark);
  font-family: Georgia, serif;
}

.modular-row ul {
  padding: 1.5rem 2rem;
  border: 1px solid var(--wedding-line);
  background: var(--wedding-paper);
  box-shadow: var(--wedding-shadow);
}

.modular-row .btn,
.modular-row a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0.75rem 2rem;
  border: 1px solid var(--wedding-rose-dark);
  border-radius: 999px;
  background: var(--wedding-rose-dark);
  color: var(--wedding-paper);
  font-family: var(--wedding-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: background 0.25s ease, color 0.25s ease;
}

.modular-row .btn:hover,
.modular-row a.button:hover {
  background: transparent;
  color: var(--wedding-rose-dark);
}

/* ---------- Footer ---------- */

.wedding-footer {
  background: var(--wedding-ink);
  color: rgba(250, 247, 242, 0.75);
  text-align: center;
}

.wedding-footer .wedding-monogram {
  color: var(--wedding-paper);
}

.wedding-footer p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* ---------- Forms (RSVP) ---------- */

.form-label {
  font-family: var(--wedding-font-body);
  font-weight: 600;
  color: var(--wedding-ink);
}

.form-field .required {
  margin-left: 0.2em;
  color: var(--wedding-rose-dark);
}

.form-input,
.form-select,
textarea.form-input {
  border: 1px solid var(--wedding-line);
  border-radius: 8px;
  background: var(--wedding-paper);
  color: var(--wedding-ink);
  font-family: var(--wedding-font-body);
  font-size: 1.1rem;
  box-shadow: none;
}

.form-input:focus,
.form-select:focus,
textarea.form-input:focus {
  border-color: var(--wedding-rose);
  box-shadow: 0 0 0 2px rgba(183, 127, 123, 0.2);
}

.form-radio input:checked + .form-icon {
  background: var(--wedding-rose-dark);
  border-color: var(--wedding-rose-dark);
}

.form-description {
  color: var(--wedding-muted);
  font-size: 0.9rem;
}

/* Form submit feedback (success/error message) — unstyled by default in
   this theme, so it read as plain body text and was easy to miss. */
.notices {
  margin: 0 0 2rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--wedding-line);
  border-radius: 8px;
  background: var(--wedding-paper);
  font-family: var(--wedding-font-body);
  font-size: 1.05rem;
}

.notices p {
  margin: 0;
}

.notices.success {
  border-color: var(--wedding-sage);
  background: rgba(135, 153, 141, 0.14);
  color: var(--wedding-ink);
}

.notices.error {
  border-color: var(--wedding-rose-dark);
  background: rgba(142, 93, 90, 0.1);
  color: var(--wedding-rose-dark);
}

/* Post-redirect confirmation (grav.messages / #messages), used for the RSVP
   success banner shown after landing back on #rsvp — Spectre's default
   toast is a solid, saturated fill with white text, which clashes with the
   rest of the theme, so it's restyled to match the soft card look used
   elsewhere (e.g. the info-box lists). */
#messages {
  margin: 0 0 2rem;
}

#messages .toast {
  border: 1px solid var(--wedding-line);
  border-radius: 8px;
  background: var(--wedding-paper);
  box-shadow: var(--wedding-shadow);
  color: var(--wedding-ink);
  font-family: var(--wedding-font-body);
  font-size: 1.05rem;
}

#messages .toast a {
  color: var(--wedding-rose-dark);
}

#messages .toast-success {
  border-color: var(--wedding-sage);
  background: rgba(135, 153, 141, 0.16);
}

#messages .toast-error {
  border-color: var(--wedding-rose-dark);
  background: rgba(142, 93, 90, 0.1);
  color: var(--wedding-rose-dark);
}

#messages .toast-warning {
  border-color: var(--wedding-rose);
  background: rgba(183, 127, 123, 0.12);
}

/* Array field (repeatable guest names) */
[data-grav-array-type='container'] .form-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

[data-grav-array-type='container'] .form-row input {
  flex: 1;
  border: 1px solid var(--wedding-line);
  border-radius: 8px;
  background: var(--wedding-paper);
  padding: 0.5rem 0.75rem;
  font-family: var(--wedding-font-body);
  font-size: 1.05rem;
}

[data-grav-array-action] {
  padding: 0.25rem;
  color: var(--wedding-rose-dark);
  cursor: pointer;
}

[data-grav-array-action='sort'] {
  color: var(--wedding-muted);
  cursor: grab;
}

.modular-form button[type='submit'] {
  margin-top: 1rem;
}

/* ---------- Contact cards ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (max-width: 720px) {
  .contact-cards {
    grid-template-columns: minmax(0, 1fr);
    max-width: 20rem;
    margin-right: auto;
    margin-left: auto;
  }
}

.contact-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--wedding-line);
  background: var(--wedding-paper);
  box-shadow: var(--wedding-shadow);
  text-align: center;
}

.contact-card-photo {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wedding-cream);
}

.contact-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card-monogram {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--wedding-rose-dark);
}

.contact-card-monogram svg {
  width: 55%;
  height: auto;
}

.contact-card-name {
  margin: 0;
  font-size: 1.4rem;
}

.contact-card-role {
  margin: 0.25rem 0 1rem;
  color: var(--wedding-rose-dark);
  font-family: var(--wedding-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-card-detail {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
}

.contact-card-detail a {
  color: var(--wedding-ink);
  text-decoration: none;
}

.contact-card-detail a:hover,
.contact-card-detail a:focus {
  color: var(--wedding-rose-dark);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 42rem;
  margin: 2.5rem auto 0;
}

.faq-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--wedding-line);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  margin: 0 0 0.5rem;
  font-family: var(--wedding-font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--wedding-ink);
}

.faq-answer {
  margin: 0;
  color: var(--wedding-muted);
}

/* ---------- RSVP status page ---------- */

.rsvp-summary {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.75rem 1.5rem;
}

.rsvp-summary dt {
  font-family: var(--wedding-font-heading);
  color: var(--wedding-rose-dark);
}

.rsvp-summary dd {
  margin: 0;
}

.rsvp-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

@media (max-width: 480px) {
  .rsvp-summary {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .rsvp-summary dt {
    margin-top: 1rem;
  }
}

/* ---------- Site gate (shared-password screen) ---------- */

.site-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
  background: var(--wedding-cream);
}

.site-gate-card {
  width: 100%;
  max-width: 26rem;
  padding: 3rem 2.5rem;
  border: 1px solid var(--wedding-line);
  border-radius: var(--wedding-radius);
  background: var(--wedding-paper);
  box-shadow: var(--wedding-shadow);
  text-align: center;
}

.site-gate-monogram {
  display: inline-block;
  color: var(--wedding-ink);
}

.site-gate-monogram svg {
  display: block;
  width: auto;
  height: 4rem;
  margin: 0 auto;
  /* Set color directly on the SVG too, not just inherited from the wrapper
     above: this used to be an <a href="/">, and Firefox's :visited privacy
     protections can stop an overridden `color` on a link from reaching a
     descendant SVG's `fill="currentColor"`, leaving the browser's default
     link-blue showing through instead. The wrapper is a plain <div> now
     (there's nothing to link to from the gate page anyway), but keeping an
     explicit color here too means this can't silently regress if it's ever
     wrapped in a link again. */
  color: var(--wedding-ink);
}

.site-gate-ornament {
  width: 4rem;
  height: 1px;
  margin: 1.5rem auto 2rem;
  background: var(--wedding-rose);
}

.site-gate-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--wedding-ink);
  font-family: var(--wedding-font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-gate-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wedding-line);
  border-radius: 8px;
  background: var(--wedding-cream);
  color: var(--wedding-ink);
  font-family: var(--wedding-font-body);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.2em;
}

.site-gate-form input[type="password"]:focus {
  outline: none;
  border-color: var(--wedding-rose);
  box-shadow: 0 0 0 2px rgba(183, 127, 123, 0.2);
}

.site-gate-message {
  margin: 1rem 0 0;
  font-family: var(--wedding-font-body);
  font-size: 0.95rem;
}

.site-gate-message.error {
  color: var(--wedding-rose-dark);
}

.site-gate-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  margin-top: 1.5rem;
  padding: 0.75rem 2.5rem;
  border: 1px solid var(--wedding-rose-dark);
  border-radius: 999px;
  background: var(--wedding-rose-dark);
  color: var(--wedding-paper);
  font-family: var(--wedding-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-gate-submit:hover,
.site-gate-submit:focus {
  background: transparent;
  color: var(--wedding-rose-dark);
}
