/* ============================================================
   COMPONENTS — Header, footer, nav, buttons, forms,
                cookie banner, promotional popup
   ============================================================ */

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--champagne);
  background: -webkit-linear-gradient(to right, var(--champagne), #f0e09a);
  background: linear-gradient(to right, var(--champagne), #f0e09a);
  color: #031016;
  box-shadow: 0 8px 28px rgba(230, 201, 130, 0.22);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(230, 201, 130, 0.3);
}

.btn-secondary {
  background: var(--surface);
  background: -webkit-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  color: var(--cream);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid transparent;
  padding: 0.875rem 0.75rem;
}

.btn-ghost:hover {
  color: var(--cream);
  background: var(--surface);
}

/* ── Site header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 1.125rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 1.75rem));
  z-index: 100;
  border: 1px solid var(--line);
  background: rgba(2, 7, 11, 0.58);
  background: -webkit-linear-gradient(
    120deg,
    rgba(2, 7, 11, 0.58),
    rgba(255, 255, 255, 0.04)
  );
  background: linear-gradient(
    120deg,
    rgba(2, 7, 11, 0.58),
    rgba(255, 255, 255, 0.04)
  );
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius-pill);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition:
    top 0.3s ease,
    box-shadow 0.3s ease;
}

/* Sweep shimmer */
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 243, 255, 0.1),
    transparent
  );
  transform: translateX(-80%);
  animation: cr-header-sweep 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cr-header-sweep {
  50%,
  100% {
    transform: translateX(100%);
  }
}

.site-header.scrolled {
  top: 0.625rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem;
  padding: 0.625rem 0.75rem 0.625rem 1.375rem;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-brand img {
  height: 4.5rem;
  width: auto;
}

/* Nav links */
.header-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.6875rem 0.9375rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-soft);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
}

.nav-link--active {
  color: var(--cream);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  min-height: 3rem;
  font-size: 0.875rem;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav overlay ──────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(2, 7, 11, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.nav-overlay-close {
  position: absolute;
  top: 1.375rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nav-overlay .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.nav-overlay .nav-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 0.75rem;
  color: var(--text-soft);
}

.nav-overlay .nav-link:hover,
.nav-overlay .nav-link--active {
  background: var(--surface);
  color: var(--cream);
}

.nav-overlay-cta {
  width: 100%;
  justify-content: center;
}

/* ── Site footer ─────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 7rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.625rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-faint);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--water);
  margin: 0 0 1.25rem;
}

.footer-nav-col ul,
.footer-contact-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-nav-col a {
  font-size: 0.9375rem;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.footer-nav-col a:hover {
  color: var(--cream);
}

.footer-contact-col li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer-contact-col span,
.footer-contact-col a {
  font-size: 0.9375rem;
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.footer-contact-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.75rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-faint);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-legal-links a {
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--text-soft);
}

/* ── Cookie consent banner ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem var(--gutter);
  background: rgba(6, 19, 26, 0.95);
  background: -webkit-linear-gradient(
    to top,
    rgba(2, 7, 11, 0.98),
    rgba(6, 19, 26, 0.94)
  );
  background: linear-gradient(
    to top,
    rgba(2, 7, 11, 0.98),
    rgba(6, 19, 26, 0.94)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner:not([hidden]) {
  transform: translateY(0);
}

.cookie-banner[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.cookie-banner-text {
  flex: 1;
  min-width: 16rem;
}

.cookie-banner-text p:last-child {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Promotional popup ───────────────────────────────────── */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(2, 7, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.promo-overlay:not([hidden]) {
  opacity: 1;
}

.promo-overlay[hidden] {
  display: flex;
  visibility: hidden;
  pointer-events: none;
}

.promo-popup {
  position: relative;
  width: 100%;
  max-width: 36rem;
  padding: clamp(2rem, 5vw, 3rem);
  background: rgba(6, 19, 26, 0.92);
  background: -webkit-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.035)
  );
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-deep);
  transform: translateY(1.5rem) scale(0.97);
  transition: transform 0.35s ease;
}

.promo-overlay:not([hidden]) .promo-popup {
  transform: none;
}

.promo-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.promo-close:hover {
  background: var(--surface-2);
  color: var(--cream);
}

.promo-eyebrow {
  margin-bottom: 0.875rem;
}

.promo-title {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.promo-text {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.promo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.promo-dismiss {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  text-align: center;
}

.promo-dismiss:hover {
  color: var(--text-soft);
}

/* ── Form fields ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.form-label .required {
  color: var(--water);
  margin-left: 0.25rem;
}

.form-field {
  width: 100%;
  min-height: 3rem;
  padding: 0.875rem 1.125rem;
  color: var(--cream);
  background: rgba(2, 7, 11, 0.38);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-field::placeholder {
  color: var(--text-faint);
}

.form-field:focus {
  outline: none;
  border-color: var(--water);
  background: rgba(2, 7, 11, 0.55);
}

.form-field:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 2px;
  border-color: var(--water);
  background: rgba(2, 7, 11, 0.55);
}

textarea.form-field {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.65;
}

select.form-field {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f7fbf4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.125rem center;
  padding-right: 2.75rem;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  accent-color: var(--water);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.55;
  cursor: pointer;
}

.form-field--error {
  border-color: #ff7070;
}

.form-error {
  font-size: 0.875rem;
  color: #ff7070;
  margin-top: 0.25rem;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-message--success {
  background: rgba(111, 243, 255, 0.1);
  border: 1px solid rgba(111, 243, 255, 0.25);
  color: var(--water);
}

.form-message--error {
  background: rgba(255, 112, 112, 0.1);
  border: 1px solid rgba(255, 112, 112, 0.25);
  color: #ff7070;
}

/* ── Glass card ──────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  background: -webkit-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .header-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Inner hero (all non-home pages) ────────────────────── */
.inner-hero {
  padding-block: clamp(7rem, 13vw, 10rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.inner-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.inner-hero-copy {
  max-width: 52ch;
}

.inner-hero-title {
  font-size: clamp(2.125rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0.5rem 0 1.25rem;
}

.inner-hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 2rem;
}

.inner-hero-visual {
  position: relative;
}

.inner-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 980px) {
  .inner-hero-inner {
    grid-template-columns: 1fr;
  }

  .inner-hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0.625rem;
  }

  .header-inner {
    padding: 0.5rem 0.625rem 0.5rem 0.875rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-banner-actions .btn-primary,
  .cookie-banner-actions .btn-secondary,
  .cookie-banner-actions .btn-ghost {
    flex: 1;
    justify-content: center;
  }

  .promo-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
