/* ==========================================================
   Section 7 Testing — single-page styles
   Brand: navy #1B3558, gold #C4820A
   ========================================================== */

:root {
  --navy: #1B3558;
  --gold: #C4820A;
  --navy-soft: #2a4670;
  --gold-soft: #e2a93a;
  --bg: #ffffff;
  --bg-alt: #f6f4ee;
  --text: #1B3558;
  --muted: #5b6b80;
  --max: 980px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --shadow: 0 6px 24px rgba(27, 53, 88, 0.12);
  --font-sans: 'Roboto Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-variation-settings: 'wdth' 100, 'wght' 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover, a:focus { color: var(--gold); border-color: var(--navy); }

h1, h2, h3 {
  font-family: var(--font-sans);
  font-variation-settings: 'wdth' 90, 'wght' 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.5rem auto 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

ul { list-style: none; }

/* ===== Hero ===== */
.hero {
  padding: clamp(2rem, 6vw, 4rem) var(--pad) clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  max-width: var(--max);
  margin: 0 auto;
}

.logo-wrap {
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-variation-settings: 'wdth' 95, 'wght' 500;
  max-width: 38ch;
  margin: 0 auto 0.5rem;
}

.usp {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ===== Buttons ===== */
.cta-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  padding: 0.7rem 1.4rem;
  font-family: var(--font-sans);
  font-variation-settings: 'wdth' 95, 'wght' 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.cta-btn:active { transform: translateY(1px); }

/* ===== Blocks ===== */
.block {
  padding: clamp(2rem, 5vw, 3rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.block:nth-of-type(even) {
  background: var(--bg-alt);
  max-width: none;
  margin: 0;
}
.block:nth-of-type(even) > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.lede {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto 2rem;
  color: var(--muted);
}

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid #e3dfd4;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  border-bottom: 1px solid #eee2c8;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.card ul li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  position: relative;
  font-size: 0.97rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85rem;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== Anatomy bundles ===== */
.anatomy-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto 1.75rem;
  max-width: 600px;
}

.anatomy-list li {
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-variation-settings: 'wdth' 95, 'wght' 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--navy);
}

.bundles { text-align: center; }

/* ===== Why list ===== */
.why-list {
  max-width: 65ch;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}
.why-list li {
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.why-list strong { color: var(--navy); }

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) var(--pad);
}

footer p { margin: 0.25rem 0; }

footer a {
  color: #fff;
  border-bottom-color: var(--gold);
  font-family: var(--font-mono);
}
footer a:hover, footer a:focus { color: var(--gold-soft); }

.contact-name {
  font-variation-settings: 'wdth' 90, 'wght' 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem !important;
}

.location {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-top: 0.5rem !important;
  opacity: 0.85;
}

.footer-cta {
  margin: 1.5rem auto 0.5rem;
  background: transparent;
  color: #fff;
  border-color: var(--gold);
}
.footer-cta:hover, .footer-cta:focus {
  background: var(--gold);
  border-color: var(--gold);
}

.copyright {
  margin-top: 1.5rem !important;
  font-size: 0.8rem;
  opacity: 0.6;
  font-family: var(--font-mono);
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fade 0.15s ease;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  background: #fff;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.modal h2 { text-align: center; margin-bottom: 1.25rem; color: var(--navy); }
.modal h2::after { background: var(--gold); }

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.modal-close:hover { color: var(--gold); }

.modal form { display: grid; gap: 0.85rem; }

.modal label {
  display: block;
  font-variation-settings: 'wdth' 95, 'wght' 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.req { color: var(--gold); }

.modal input,
.modal textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d3cfc3;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 130, 10, 0.18);
}
.modal textarea { resize: vertical; min-height: 110px; }

.submit { width: 100%; margin-top: 0.25rem; }

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
