/* Prices page and homepage offer popup. */
header nav {
  gap: clamp(16px, 2.2vw, 32px);
}

header nav a {
  white-space: nowrap;
}

nav a[aria-current="page"] {
  color: #1e4896;
}

.prices-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.price-eyebrow {
  color: #a84f00;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prices-hero {
  padding: 76px 0 88px;
  background: linear-gradient(135deg, #1e4896, #144880);
  color: #fff;
}

.prices-hero .price-eyebrow {
  color: #ffd39c;
}

.prices-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
}

.prices-hero p:not(.price-eyebrow) {
  max-width: 580px;
  font-size: 1.1rem;
}

.prices-back {
  display: inline-block;
  margin-top: 24px;
  color: #fff;
  text-underline-offset: 4px;
}

.prices-section {
  padding-block: 40px 72px;
}

.package-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  background: linear-gradient(135deg, #1e4896, #144880);
  color: #fff;
  border: 1px solid #144880;
  box-shadow: 0 12px 32px rgba(20, 72, 128, 0.16);
  border-radius: 20px;
}

.package-card h2 {
  color: #fff;
  margin: 8px 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.package-price,
.offer-price {
  color: #144880;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.package-price span,
.offer-price span,
.price-card strong span {
  font-size: 0.55em;
}

.prices-heading {
  margin: 48px 0 24px;
}

.prices-heading h2,
.prices-contact h2 {
  color: #144880;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  padding: 26px 22px;
  background: #fff;
  border: 1px solid #e1e7ee;
  border-radius: 16px;
}

.price-card dt {
  min-height: 3.2em;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.price-card strong {
  display: block;
  margin-top: 16px;
  color: #144880;
  font-size: 2.6rem;
  line-height: 1.2;
}

.price-caption {
  color: #595959;
  margin-top: 10px;
  font-size: 0.9rem;
}

.price-notice {
  margin-top: 24px;
  padding: 24px;
  border-left: 4px solid #ff7a00;
  border-radius: 0 12px 12px 0;
  background: #edf2f8;
}

.price-notice h2 {
  font-size: 1.1rem;
  color: #144880;
  margin-bottom: 8px;
}

.prices-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.prices-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.prices-contact-link {
  color: #144880;
  text-underline-offset: 4px;
}

.prices-page .btn,
.offer-dialog .btn {
  animation: none;
}

.prices-page a:focus-visible,
.offer-dialog a:focus-visible,
.offer-close:focus-visible {
  outline: 3px solid #144880;
  outline-offset: 4px;
}

.offer-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 44px 32px 28px;
  overflow-y: auto;
  border: 1px solid #ffd4a3;
  border-radius: 22px;
  background: #fff;
  color: #333;
  text-align: center;
  box-shadow: 0 24px 80px rgba(20, 72, 128, 0.25);
}

.offer-dialog::backdrop {
  background: rgba(13, 30, 53, 0.55);
}

.offer-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #edf2f8;
  color: #144880;
  font-size: 1.8rem;
  cursor: pointer;
}

.offer-dialog h2 {
  color: #144880;
  margin: 12px 0 8px;
  font-size: 1.9rem;
  line-height: 1.2;
}

.offer-price {
  margin-block: 16px;
}

.offer-details {
  margin-bottom: 24px;
}

.offer-note {
  color: #595959;
  font-size: 0.8rem;
  margin-top: 18px;
}

body:has(.offer-dialog[open]) {
  overflow: hidden;
}

@media (min-width: 769px) and (max-width: 1100px) {
  header nav {
    gap: 16px;
  }

  header nav a {
    font-size: 0.85rem;
  }

  header {
    padding-inline: 24px;
  }
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  header nav {
    gap: 0;
  }

  .prices-hero {
    padding-block: 48px;
  }

  .package-card,
  .prices-contact {
    flex-direction: column;
    align-items: flex-start;
  }

  .package-card {
    padding: 26px;
  }

  .prices-actions {
    width: 100%;
    align-items: stretch;
    text-align: center;
  }

  .prices-actions form {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card dt {
    min-height: 0;
  }

  .offer-dialog {
    padding-inline: 20px;
  }

  .offer-dialog .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prices-page *,
  .offer-dialog * {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the summer offer readable on its blue background. */
.package-card .price-eyebrow {
  color: #ffd39c;
}

.package-card .package-price {
  color: #fff;
}
