/* ============================================================
   Scott & Christina — coastal wedding site
   Palette: deep navy, dusty harbor blue, seafoam, sand, sunset coral
   ============================================================ */

:root {
  --navy: #16324a;
  --navy-soft: #24486b;
  --harbor: #5f87a3;
  --harbor-light: #a9c3d4;
  --seafoam: #eef4f6;
  --sand: #f9f6f0;
  --white: #ffffff;
  --coral: #dd9678;
  --ink: #2b3a45;
  --rule: #d8e2e8;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--harbor); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
}

/* ---------------- Header / nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 246, 240, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.monogram {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.monogram img { width: 24px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover { color: var(--navy); border-bottom-color: var(--harbor-light); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--harbor); }

.nav-links a.nav-rsvp {
  background: var(--navy);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 999px;
  border-bottom: none;
  transition: background 0.15s ease;
}

.nav-links a.nav-rsvp:hover { background: #0f2436; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------------- Hero (home) ---------------- */

.hero { position: relative; }

.hero img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  object-position: center 30%;
}

.hero-intro {
  text-align: center;
  padding: 64px 24px 40px;
  background: var(--sand);
}

.hero-intro .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--harbor);
  margin: 0 0 18px;
}

.hero-intro h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin: 0 0 10px;
  font-weight: 500;
}

.hero-intro .date-loc {
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 34px;
}

.hero-intro .date-loc .sep { color: var(--harbor); padding: 0 12px; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 14px 44px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover { background: #0f2436; }

.btn.ghost {
  background: transparent;
  color: var(--navy);
}

.btn.ghost:hover { background: var(--seafoam); }

/* Oyster divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 8px 0 46px;
  color: var(--harbor);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(120px, 24vw);
  background: var(--harbor-light);
}

.divider img { width: 48px; height: auto; flex: none; opacity: 0.9; }

/* ---------------- Weekend summary (home) ---------------- */

.weekend {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px 24px;
  text-align: center;
}

.weekend > h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 30px;
}

.weekend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.weekend-card {
  padding: 8px 44px;
}

.weekend-card + .weekend-card {
  border-left: 1px solid var(--rule);
}

.weekend-card .wk-day {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--harbor);
  margin: 0 0 6px;
}

.weekend-card h3 {
  font-size: 1.7rem;
  margin: 0 0 16px;
}

.weekend-card ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.weekend-card li { padding: 6px 0; }

.weekend-card li .t {
  font-weight: 400;
  color: var(--navy);
  padding-right: 10px;
}

.weekend-card .wk-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--harbor);
  margin: 0;
}

.weekend-where {
  margin: 90px 0 26px;
}

.weekend-where .addr {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0 0 6px;
}

.weekend-where p { margin: 0; }

/* ---------------- Page scaffolding ---------------- */

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.page-title {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 8px;
}

.page-sub {
  text-align: center;
  color: var(--harbor);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0 0 40px;
}

.card {
  text-align: center;
  margin-bottom: 54px;
}

.card + .card::before {
  content: "";
  display: block;
  width: 90px;
  height: 1px;
  background: var(--harbor-light);
  margin: 0 auto 54px;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 2rem;
}

.card .when {
  color: var(--harbor);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 4px;
}

.card .where { margin: 0 0 20px; color: var(--ink); }

/* Little line-art icons above card headings (travel page) */
.card-icon {
  display: block;
  margin: 0 auto 14px;
  color: var(--harbor);
}

/* Schedule table — centered, menu-style: times right-aligned against
   left-aligned events around the middle axis */
.schedule {
  width: auto;
  border-collapse: collapse;
  margin: 18px auto 12px;
}

.schedule td {
  padding: 8px 16px;
  vertical-align: top;
  text-align: left;
}

.schedule .time {
  white-space: nowrap;
  font-weight: 400;
  color: var(--harbor);
  letter-spacing: 0.06em;
  text-align: right;
}

.schedule .what { font-weight: 400; color: var(--ink); }

.schedule .note {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: #71818d;
  margin-top: 1px;
  font-weight: 400;
}

h3.mini {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--harbor);
  margin: 26px 0 8px;
  font-weight: 400;
}

/* FAQ */
.faq-item {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 42px;
}

.faq-item + .faq-item::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--harbor-light);
  margin: 0 auto 42px;
}

.faq-item h2 {
  font-size: 1.55rem;
  margin: 0 0 10px;
}

.faq-item p { margin: 0 0 10px; }
.faq-item p:last-child { margin-bottom: 0; }

/* Things to do */
.area-map {
  margin: 0 auto 70px;
}

.area-map img {
  width: 100%;
  height: auto;
}

.spot {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.spot + .spot::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--harbor-light);
  margin: 0 auto 44px;
}

.spot h2 { font-size: 1.7rem; margin: 0 0 10px; }
.spot p { margin: 0 0 10px; }
.spot p:last-child { margin-bottom: 0; }

.funfact {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--harbor);
}

/* ---------------- RSVP form ---------------- */

.rsvp-form {
  max-width: 560px;
  margin: 0 auto;
}

.rsvp-form .field { margin-bottom: 30px; }

.rsvp-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 7px;
  font-weight: 400;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--harbor-light);
  border-radius: 0;
  padding: 8px 2px;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
  box-shadow: 0 1px 0 var(--navy);
}

.rsvp-form textarea { resize: vertical; min-height: 70px; }

.rsvp-form button[type="submit"] {
  display: block;
  margin: 38px auto 0;
}

.radio-row { display: flex; gap: 26px; flex-wrap: wrap; }

.radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
}

.radio-row input { accent-color: var(--navy); width: 17px; height: 17px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.form-msg {
  margin-top: 22px;
  padding: 14px 18px;
  text-align: center;
  display: none;
}

.form-msg.ok { display: block; background: #e8f3ec; color: #23573a; border: 1px solid #bcdcc8; }
.form-msg.err { display: block; background: #f9e9e4; color: #7c3a26; border: 1px solid #eac4b6; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

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

.site-footer {
  background: var(--navy);
  color: var(--harbor-light);
  text-align: center;
  padding: 44px 24px 40px;
}

.site-footer .foot-names {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 0 6px;
}

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

.site-footer img { width: 44px; height: auto; margin: 0 auto 14px; opacity: 0.9; }

/* Watercolor banner footer (home page): a pure image band. The painting
   fades to white at the top, so a sand-colored gradient overlay melts its
   top edge into the page. */
.footer-watercolor {
  position: relative;
  aspect-ratio: 2103 / 418;
  background: #ffffff url("../assets/watercolor-footer.jpg") bottom center / cover no-repeat;
}

.footer-watercolor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--sand) 0%, rgba(249, 246, 240, 0) 40%);
  pointer-events: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 18px 0 24px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }

  .form-grid { grid-template-columns: 1fr; }

  .hero img { height: 48vh; }

  /* Names stack with the & alone on its own line */
  .hero-intro h1 .hero-name { display: block; }

  /* Date and location on separate lines, no separator dot */
  .hero-intro .date-loc .dl-part { display: block; }
  .hero-intro .date-loc .sep { display: none; }

  /* Street and town on separate lines, no comma between them */
  .weekend-where .addr .addr-part { display: block; }
  .weekend-where .addr .sep { display: none; }

  /* Rebalance so address + button stay centered in the gap above the
     watercolor band, which is much shorter at phone widths */
  .weekend { padding-bottom: 88px; }
  .weekend-where { margin-top: 24px; }

  .weekend-grid { grid-template-columns: 1fr; }

  .weekend-card { padding: 8px 0; }

  .weekend-card + .weekend-card {
    border-left: none;
    border-top: 1px solid var(--rule);
    margin-top: 30px;
    padding-top: 36px;
  }
}
