*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }

p { margin: 0 0 1em; color: var(--muted); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--ocean) 100%);
  color: var(--white);
}

.section-dark p,
.section-dark .muted { color: rgba(255,255,255,0.72); }

.section-mist { background: var(--fog); }

.grid-pattern {
  background-image:
    linear-gradient(rgba(18,48,73,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,48,73,0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  --header-h: 68px;
  background: rgba(8, 21, 38, 0.94);
  box-shadow: 0 8px 30px rgba(8, 21, 38, 0.18);
  backdrop-filter: blur(12px);
}

.site-header.solid {
  background: var(--navy);
}

.header-inner {
  width: min(calc(100% - 40px), 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}

.brand svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 400;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.header-actions {
  display: flex;
  gap: 10px;
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  background: transparent;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: white;
  margin: 5px auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-teal {
  background: var(--teal);
  color: white;
}

.btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: white;
  background: transparent;
}

.btn-outline {
  border-color: var(--line);
  color: var(--navy);
  background: white;
}

.btn-navy {
  background: var(--navy);
  color: white;
}

/* Footer */
.site-footer {
  background: #060f1b;
  color: white;
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 280px;
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.socials { display: flex; gap: 14px; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: white;
  color: var(--ink);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field.error input,
.form-field.error select,
.form-field.error textarea {
  border-color: #b4533a;
}

.field-error {
  color: #b4533a;
  font-size: 0.78rem;
  min-height: 1em;
}

.form-success {
  display: none;
  padding: 14px 16px;
  background: #e8f4f1;
  color: var(--teal-deep);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip-link:focus {
  left: 16px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
}

.mobile-nav {
  display: none;
}