/* ============================================================
   Flight Crew × Rockhouse — happy hour invite
   70% Flight Crew (dark navy / white / brand blue),
   30% pirate (gold treasure accents + a treasure route + ✕).
   ============================================================ */

:root {
  --navy-900: #0a1626;
  --navy-800: #0e1e33;
  --navy-700: #14263d;
  --line: #24405f;
  --ink: #eef4fb;
  --muted: #9fb3c8;
  --blue: #1c7cc4;
  --blue-bright: #38a0e6;
  --gold: #e6b23e;
  --gold-bright: #f3c65a;
  --danger: #e77c7c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 50% -5%, rgba(28, 124, 196, 0.22), rgba(28, 124, 196, 0) 60%),
    radial-gradient(70% 50% at 90% 100%, rgba(230, 178, 62, 0.1), rgba(230, 178, 62, 0) 55%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}

/* ---------------- Top bar (logo) ---------------- */

.topbar {
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 4vw, 1.6rem) 1rem 0.4rem;
}

.logo {
  height: clamp(30px, 8vw, 40px);
  width: auto;
}

/* ---------------- Layout ---------------- */

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0.75rem clamp(0.75rem, 3vw, 1.25rem) 1rem;
  display: grid;
  gap: 0.85rem;
}

.card {
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.1rem, 4vw, 1.6rem);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* ---------------- Invite + RSVP ---------------- */

.kicker {
  margin: 0 0 0.3rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invite__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.invite__greeting {
  margin: 0 0 0.6rem;
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1.05rem;
}
.invite__greeting:empty {
  display: none;
}

.event-details {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}
.event-details__row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.event-details dt {
  flex: 0 0 auto;
  min-width: 78px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.event-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
}

.invite__tags {
  margin: 0 0 0.5rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.invite__presented {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Giveaway callout (gold-accented, draws the eye to the entry form) */
.giveaway {
  padding: clamp(0.9rem, 3.5vw, 1.2rem);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(230, 178, 62, 0.12), rgba(230, 178, 62, 0.03));
}

.giveaway__title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  font-weight: 800;
  color: var(--gold-bright);
}

.giveaway__sub {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.rsvp {
  display: flex;
  gap: 0.5rem;
}

.rsvp__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--navy-900);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  min-height: 50px;
}

.rsvp__input::placeholder {
  color: #6b829b;
}

.rsvp__input:focus-visible {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(56, 160, 230, 0.25);
}

.btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 100%);
  border: 1px solid var(--blue);
  border-radius: 10px;
  padding: 0.8rem 1.15rem;
  min-height: 50px;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 6px 16px rgba(28, 124, 196, 0.35);
}

.btn:hover {
  box-shadow: 0 8px 20px rgba(28, 124, 196, 0.5);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  min-height: 42px;
}
.btn--ghost:hover {
  border-color: var(--blue-bright);
  box-shadow: none;
}

.rsvp__msg {
  margin: 0.7rem 0 0;
  min-height: 1.2em;
  font-weight: 600;
}
.rsvp__msg[data-tone="ok"] {
  color: var(--gold-bright);
}
.rsvp__msg[data-tone="already"] {
  color: var(--blue-bright);
}
.rsvp__msg[data-tone="err"] {
  color: var(--danger);
}

.crew {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.crew:empty {
  display: none;
}

/* ---------------- How to get there ---------------- */

.getthere__title {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.getthere__intro {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}
.getthere__intro strong {
  color: var(--ink);
}
.getthere__intro em {
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 600;
}

.mapframe {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #16283d;
  line-height: 0;
}

.gmap {
  width: 100%;
  height: clamp(240px, 42vh, 320px);
  border: 0;
  display: block;
}

.btn--wide {
  width: 100%;
  margin-top: 0.7rem;
}

.directions {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.directions p {
  margin: 0 0 0.6rem;
}
.directions strong {
  color: var(--ink);
}
.directions__lead {
  color: var(--ink);
  font-weight: 600;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}
.steps li {
  padding-left: 0.15rem;
}
.steps li::marker {
  color: var(--gold);
  font-weight: 700;
}

/* ---------------- Help ---------------- */

.help__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.help__sub {
  margin: 0 0 0.9rem;
  color: var(--muted);
}
.help__sub strong {
  color: var(--ink);
}
.help__actions {
  display: flex;
  gap: 0.6rem;
}
.help__actions .btn {
  flex: 1 1 0;
}
.help__num {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------------- Inline brand mark (replaces the anchor emoji) ---------------- */
.fc-mark {
  height: 0.95em;
  width: auto;
  vertical-align: -0.12em;
  margin-left: 0.15em;
}

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

.footer {
  text-align: center;
  padding: 0.5rem 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.linkbtn {
  background: none;
  border: none;
  color: var(--blue-bright);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .route-dash {
    animation: dash 1.4s linear infinite;
  }
  @keyframes dash {
    to {
      stroke-dashoffset: -24;
    }
  }
}

/* narrow phones: stack the RSVP button under the field */
@media (max-width: 380px) {
  .rsvp {
    flex-wrap: wrap;
  }
  .rsvp__input,
  .btn {
    flex: 1 1 100%;
  }
}
