:root {
  --blue: #12304f;
  --blue-dark: #0b2038;
  --beige: #f3ecdf;
  --beige-dark: #e8dcc6;
  --teal: #1f8a8a;
  --teal-dark: #176b6b;
  --gold: #c9a227;
  --ink: #1d2733;
  --white: #ffffff;
  --radius: 10px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--beige);
}

h1, h2 {
  font-family: "Merriweather", Georgia, serif;
  color: var(--blue);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--gold);
  border-radius: 2px;
}
h2.center { text-align: center; }
h2.center::after { margin-left: auto; margin-right: auto; }

p { margin: 0 0 1rem; }
a { color: var(--teal-dark); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  text-decoration: none;
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand-mark { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--beige);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); border-bottom-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--blue-dark); }
.btn-gold:hover { background: #d8b23a; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 70%);
  color: var(--beige);
  padding: 5.5rem 0 9rem;
  overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 0.25rem; }
.hero-sub {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  margin-bottom: 1.75rem;
}
.hero-tagline { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 600; color: var(--white); margin-bottom: 0.75rem; text-wrap: balance; }
.hero-lead { font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }
.hero-mountains {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 120px;
  display: block;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--beige-dark); }
.lead { font-size: 1.2rem; }

/* Diagnostic card */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(18, 48, 79, 0.1);
  border-top: 6px solid var(--teal);
}
.diag-card { max-width: 820px; margin: 0 auto; padding: 2.5rem; }
.diag-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}
.diag-head h2 { margin-bottom: 0; }
.price {
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--beige);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 0.15rem 0.9rem;
}
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.note {
  background: var(--beige);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.75rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 4px 16px rgba(18, 48, 79, 0.08);
  text-align: center;
}
.step p { margin: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--gold);
}

/* Contact */
.contact { background: var(--beige); }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 1.15rem; }
.contact-list li { margin-bottom: 0.4rem; }
.contact-list .label { font-weight: 700; color: var(--blue); }
.contact-list a { font-weight: 600; word-break: break-word; }

/* Footer */
.site-footer {
  background: var(--blue);
  color: var(--beige);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 0.35rem; padding: 0.6rem 0; }
  .nav-links { gap: 0.1rem 1rem; }
  .nav-links a { font-size: 0.92rem; }
  html { scroll-padding-top: 125px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero { padding: 3.5rem 0 7rem; }
  .section { padding: 3.25rem 0; }
  .diag-card { padding: 1.75rem 1.25rem; }
  .lead { font-size: 1.1rem; }
  .btn { display: block; width: 100%; }
}
