/* HMR Waterfront — light premium · #1e3a6d */

:root {
  --blue: #1e3a6d;
  --blue-dark: #152a4f;
  --blue-light: #2a4f85;
  --blue-border: rgba(30, 58, 109, 0.35);
  --blue-focus: rgba(30, 58, 109, 0.15);
  --white: #ffffff;
  --off-white: #f8fafc;
  --surface: #ffffff;
  --text: #1e3a6d;
  --text-muted: #5a6f8f;
  --text-on-blue: #ffffff;
  --error: #dc2626;
  --shadow: 0 12px 40px rgba(30, 58, 109, 0.12);
  --shadow-lg: 0 20px 50px rgba(30, 58, 109, 0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 640px;
  --space-section: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* Background */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #eef3fa 0%, #f8fafc 45%, #e8eef8 100%);
}

.bg-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(30, 58, 109, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 109, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite;
}

.bg-orb--1 {
  width: 420px;
  height: 420px;
  background: #7ba3d4;
  top: -12%;
  right: -15%;
}

.bg-orb--2 {
  width: 360px;
  height: 360px;
  background: #1e3a6d;
  bottom: 5%;
  left: -12%;
  opacity: 0.12;
  animation-delay: -8s;
}

@keyframes drift {
  50% {
    transform: translate(16px, -20px);
  }
}

.glass {
  background: var(--surface);
  border: 1px solid var(--blue-border);
  box-shadow: var(--shadow);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border: none;
  border-bottom: 2px solid var(--blue);
  box-shadow: 0 2px 16px rgba(30, 58, 109, 0.1);
}

.header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand__logo {
  height: 38px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  gap: 1.5rem;
}

.header__nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.header__nav a:hover {
  opacity: 1;
}

/* Layout */
.main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: var(--space-section);
  padding: 0;
}

.hero__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.hero__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.hero__lead {
  margin: 0 auto 0.65rem;
  max-width: 26rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero__meta {
  display: flex;
  justify-content: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-on-blue);
  background: var(--blue);
  border: 1px solid var(--blue-dark);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(30, 58, 109, 0.25);
}

.hero__pill-icon {
  width: 16px;
  height: 16px;
  stroke: var(--white);
}

/* Section headers */
.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.65rem;
}

.section-head__num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-light);
  line-height: 1;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
  flex: 1;
}

.section-head__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-blue);
  padding: 0.25rem 0.55rem;
  background: var(--blue);
  border-radius: 4px;
}

.section-head--in-panel {
  margin: 0 0 0.85rem;
  padding: 0 0 0.65rem;
  background: transparent;
  border-bottom: 2px solid var(--blue);
  border-radius: 0;
}

.section-head--in-panel .section-head__num,
.section-head--in-panel .section-head__title {
  color: var(--blue);
}

.section-head--in-panel .section-head__badge {
  color: var(--text-muted);
  background: var(--off-white);
  border: 1px solid var(--blue-border);
}

/* Event tickets */
.events-section {
  margin-bottom: var(--space-section);
}

.event-tickets {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .event-tickets {
    grid-template-columns: 1fr 1fr;
  }
}

.ticket {
  position: relative;
  padding: 0.75rem 0.85rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--blue);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ticket::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
}

.ticket__ribbon {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.ticket__date {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.2;
}

.ticket__time {
  margin: 0.1rem 0 0.45rem;
  font-size: 0.75rem;
  color: var(--blue-light);
  font-weight: 600;
}

.ticket__venue {
  margin: 0;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text);
}

.ticket__addr {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* RSVP panel — light form, blue borders */
.rsvp-panel {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.rsvp-form {
  margin: 0;
}

.form-block {
  margin: 0;
  padding: 0;
  border: none;
}

.form-block__label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: none;
  padding: 0;
}

/* Location tiles */
.location-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.location-tile--wide {
  grid-column: 1 / -1;
}

.location-tile {
  cursor: pointer;
}

.location-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.location-tile__inner {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  border: 1.5px solid var(--blue-border);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.location-tile:hover .location-tile__inner {
  border-color: var(--blue);
  background: var(--white);
}

.location-tile input:checked + .location-tile__inner {
  border-color: var(--blue);
  border-width: 2px;
  background: rgba(30, 58, 109, 0.06);
  box-shadow: 0 2px 12px rgba(30, 58, 109, 0.12);
}

.location-tile input:checked + .location-tile__inner .location-tile__city {
  color: var(--blue);
}

.location-tile input:checked + .location-tile__inner .location-tile__sub {
  color: var(--text-muted);
}

.location-tile__city {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue);
}

.location-tile__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-divider {
  height: 1px;
  margin: 0.85rem 0;
  background: linear-gradient(90deg, transparent, var(--blue-border), transparent);
}

/* Input grid */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.6rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--blue);
  background: none;
  padding: 0;
}

.field__optional {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: 0;
}

.field__control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.65rem;
  min-height: 40px;
  background: var(--white);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-focus);
}

.field__control.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.field__control--area {
  align-items: flex-start;
  padding: 0.5rem 0.65rem;
  min-height: auto;
}

.field__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--blue);
  opacity: 0.9;
}

.field__control input,
.field__control textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

.field__control input::placeholder,
.field__control textarea::placeholder {
  color: #94a3b8;
}

.field__control textarea {
  resize: vertical;
  min-height: 56px;
  line-height: 1.5;
}

.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--error);
}

/* Footer actions */
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1.5px solid var(--blue-border);
}

.form-feedback[hidden] {
  display: none !important;
}

.form-feedback:not([hidden]) {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 8px;
}

.form-feedback__text {
  flex: 1;
  margin: 0;
}

.form-feedback--success:not([hidden]) {
  color: var(--blue);
  background: rgba(30, 58, 109, 0.08);
  border: 1.5px solid var(--blue);
}

.form-feedback--error:not([hidden]) {
  color: #991b1b;
  background: #fef2f2;
  border: 1.5px solid var(--error);
}

.form-feedback__icon {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-on-blue);
  background: var(--blue);
  border: 1.5px solid var(--blue-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(30, 58, 109, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  transition: transform 0.2s;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(30, 58, 109, 0.4);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  padding: 0.25rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--blue-dark);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* Page footer */
.footer {
  margin-top: 1.5rem;
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--blue);
  border: none;
  border-top: 1px solid var(--blue-dark);
  box-shadow: 0 -4px 24px rgba(30, 58, 109, 0.15);
}

.footer__logo {
  height: 30px;
  width: auto;
  margin: 0 auto 0.4rem;
  display: block;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.footer__copy,
.footer__org {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 480px) {
  .fields-grid {
    grid-template-columns: 1fr;
  }

  .location-tiles {
    grid-template-columns: 1fr;
  }

  .location-tile--wide {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .field__control input,
  .field__control textarea {
    font-size: 16px;
  }

  .field__control {
    min-height: 44px;
  }

  .field__control--area {
    min-height: auto;
  }

  .field__control textarea {
    min-height: 80px;
  }
}

@supports (-webkit-touch-callout: none) {
  .field__control input,
  .field__control textarea {
    font-size: 16px;
  }
}
