*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --teal: #0f3b3d;
  --teal-dark: #0a2b2c;
  --cream: #f6f0e8;
  --white: #ffffff;
  --gold: #c9a45c;
  --text: #1f2d2e;
  --muted: #5f6f70;
  --shadow: 0 18px 40px rgba(15, 59, 61, 0.15);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  background: var(--teal);
  color: var(--white);
  padding: 2.5rem 0 4rem;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav__links a {
  position: relative;
  padding: 0.5rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.nav__links a:hover::after,
.nav__links a:focus::after {
  width: 100%;
}

.hero__content {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.hero__subline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 1rem auto 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section__heading {
  margin-bottom: 2rem;
}

.info__content {
  display: grid;
  gap: 1.5rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.info__highlight {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  color: var(--muted);
}

.order {
  background: var(--white);
}

.order__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order__item {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.order__time {
  display: inline-block;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.stay__intro {
  margin-bottom: 2rem;
  color: var(--muted);
}

.stay__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stay__card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 200px;
}

.stay__card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.stay__address {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.stay__features {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.25rem 0;
  line-height: 1.5;
}

.stay__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.stay__distance {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  transform: translateY(1px);
}

.stay__discount {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  margin: 0.25rem 0;
}

.stay__link {
  color: var(--teal);
  text-decoration: underline;
  font-size: 0.9rem;
  display: inline-block;
  white-space: nowrap;
}

.stay__venue {
  color: var(--teal);
  font-weight: 600;
}

.register {
  background: var(--cream);
}

.register__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 1rem;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d5d5d5;
  font-family: inherit;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
  overflow-y: auto;
}

input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 59, 61, 0.1);
}

fieldset {
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

legend {
  font-weight: 600;
  padding: 0 0.4rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.check input {
  width: auto;
  margin: 0;
  min-width: 20px;
  min-height: 20px;
  cursor: pointer;
  touch-action: manipulation;
  accent-color: var(--teal);
}

.check input[type="radio"] {
  min-width: 18px;
  min-height: 18px;
}

.check input[type="checkbox"]:checked,
.check input[type="radio"]:checked {
  accent-color: var(--teal);
}

.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.check input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.status--yes {
  color: #22c55e;
  font-weight: 600;
}

.status--no {
  color: #ef4444;
  font-weight: 600;
}

.status--waiting {
  color: #f59e0b;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button:active {
  transform: translateY(0);
}

.button--light {
  background: var(--white);
  color: var(--teal);
}

.button--dark {
  background: var(--teal);
  color: var(--white);
}

.button--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.form__note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.25rem;
}

.form__fineprint {
  font-size: 0.85rem;
  color: var(--muted);
}

.summary__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.summary__table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 59, 61, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.modal__content {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(15, 59, 61, 0.3);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e4e4e4;
}

.modal__header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}

.modal__close:hover,
.modal__close:focus {
  background: var(--cream);
  color: var(--text);
}

.modal__form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__form label {
  margin-bottom: 0.5rem;
}

.modal__form input {
  margin-top: 0.5rem;
}

.modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.modal__actions .button {
  flex: 1;
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem 0 3rem;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 1rem;
  }

  .nav__brand {
    font-size: 1.1rem;
  }

  .nav__links {
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
  }

  .nav__links a {
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
  }

  .hero__content {
    text-align: left;
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }

  .hero__subline {
    font-size: 1rem;
    margin: 1rem 0 1.5rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .section__heading {
    margin-bottom: 1.5rem;
  }

  .section__heading h2 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .info__content {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .order__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .order__item {
    padding: 1.25rem;
  }

  .stay__cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stay__card {
    padding: 1.25rem;
  }

  .register__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .summary__actions {
    flex-direction: column;
  }

  .summary__actions .button {
    width: 100%;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  table {
    font-size: 0.85rem;
    min-width: 600px;
  }

  th,
  td {
    padding: 0.5rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.25rem 0 2.5rem;
  }

  .nav__links {
    gap: 0.5rem;
  }

  .nav__links a {
    font-size: 0.85rem;
    padding: 0.35rem 0.4rem;
  }

  .hero__content {
    margin-top: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .section {
    padding: 2rem 1rem;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .info__content {
    padding: 1.25rem;
  }

  .info__highlight {
    padding-left: 0.75rem;
    font-size: 0.9rem;
  }

  .order__item {
    padding: 1rem;
  }

  .order__time {
    font-size: 0.95rem;
  }

  .stay__card {
    padding: 1rem;
  }

  .stay__card h3 {
    font-size: 1.1rem;
  }

  .card {
    padding: 1.25rem;
  }

  .form__fineprint {
    font-size: 0.8rem;
  }

  .summary__header h3 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.8rem;
  }

  .footer {
    padding: 1.5rem 1rem 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .nav__links {
    flex-direction: column;
    width: 100%;
  }

  .nav__links a {
    width: 100%;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section {
    padding: 1.75rem 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  input,
  textarea {
    padding: 0.65rem 0.75rem;
    font-size: 16px;
  }

  .modal__content {
    max-width: 100%;
    border-radius: 16px;
  }

  .modal__header {
    padding: 1.25rem 1.5rem;
  }

  .modal__header h3 {
    font-size: 1.25rem;
  }

  .modal__form {
    padding: 1.5rem;
  }

  .modal__actions {
    flex-direction: column;
  }

  .modal__actions .button {
    width: 100%;
  }
}
