/* Carte Performance Group — shared styles
   Palette pulled from the CPG crest: navy, gold, off-white. */

:root {
  --navy: #0a1f33;
  --navy-deep: #061320;
  --gold: #be8f45;
  --gold-light: #e4d2a8;
  --paper: #f6f4ef;
  --white: #ffffff;
  --ink: #14202e;
  --muted: #55606e;
  --rule: rgba(190, 143, 69, 0.45);

  --slab: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 56px);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--slab);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.lede {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand img { width: 36px; height: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}
.nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  border-radius: 6px;
}
.nav a:hover { background: rgba(190, 143, 69, 0.15); color: var(--navy); }
.nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--gold);
  border-radius: 0;
}
.nav a.nav-cta {
  background: var(--navy);
  color: var(--gold-light);
  margin-left: 8px;
  border-radius: 6px;
  box-shadow: none;
}
.nav a.nav-cta:hover { background: var(--navy-deep); color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: var(--gold-light); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-line { border-color: var(--gold-light); color: var(--paper); }
.btn-line:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.btn-line-dark { border-color: var(--navy); color: var(--navy); }
.btn-line-dark:hover { background: var(--navy); color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 9vw, 112px);
  padding-bottom: clamp(56px, 9vw, 112px);
}
.hero h1 {
  color: var(--paper);
  margin-bottom: 0.45em;
}
.hero h1 span { display: block; }
.hero-rule {
  height: 4px;
  width: 0;
  background: var(--gold);
  margin: 0 0 28px;
  animation: draw 0.9s 0.2s ease-out forwards;
}
@keyframes draw { to { width: min(260px, 60%); } }

.hero .lede { color: #c9d1db; max-width: 48ch; }
.hero-crest img {
  width: 100%;
  max-width: 330px;
  margin-left: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-navy { background: var(--navy); color: var(--paper); }
.section-navy h2, .section-navy h3 { color: var(--paper); }
.section-navy p { color: #c9d1db; }
.section-white { background: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }

/* Service lanes (home + services) — rows, not cards */

.lane {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(20px, 5vw, 64px);
  padding: 36px 0;
  border-top: 3px solid var(--gold);
}
.lane:last-child { border-bottom: 1px solid var(--rule); }
.lane h3, .lane h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.lane p:last-child { margin-bottom: 0; }
.lane .more { font-weight: 700; }

/* Definition list for credentials */

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 32px;
  margin: 0;
}
.facts dt {
  font-family: var(--slab);
  font-weight: 700;
  color: var(--navy);
}
.facts dd { margin: 0; color: var(--muted); }
.section-navy .facts dt { color: var(--gold-light); }
.section-navy .facts dd { color: #c9d1db; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

/* ---------- Interior page heading ---------- */

.page-head {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(48px, 7vw, 88px) 0;
}
.page-head h1 { color: var(--paper); font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 0.3em; }
.page-head .lede { color: #c9d1db; margin: 0; }
.page-head .wrap::after {
  content: "";
  display: block;
  height: 4px;
  width: min(260px, 60%);
  background: var(--gold);
  margin-top: clamp(24px, 4vw, 40px);
}

/* Services detail */

.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; max-width: var(--measure); }
.checklist li {
  position: relative;
  padding: 6px 0 6px 26px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 12px;
  height: 3px;
  background: var(--gold);
}
.sub { font-family: var(--slab); font-weight: 700; color: var(--navy); margin: 1.4em 0 0.3em; font-size: 1.1rem; }

.pull {
  font-family: var(--slab);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  font-weight: 600;
  color: var(--navy);
  border-left: 5px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 8px 0 24px;
  max-width: 28ch;
}

/* ---------- Book page ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: 1px solid var(--rule); }
.contact-list strong { display: block; font-family: var(--slab); color: var(--navy); }
.contact-list a { font-size: 1.1rem; font-weight: 600; }

.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #b9c0ca;
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--navy);
}
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.95rem; color: var(--muted); margin: 0; }

.scheduler {
  width: 100%;
  min-height: 720px;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
}

[hidden] { display: none !important; }

/* ---------- CTA band + footer ---------- */

.cta-band { background: var(--gold); color: var(--navy-deep); padding: clamp(44px, 6vw, 72px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; color: var(--navy-deep); font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 22ch; }

.site-footer { background: var(--navy-deep); color: #b6c0cc; padding: 48px 0 32px; font-size: 0.98rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.site-footer img { width: 64px; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }
.site-footer p { margin: 0 0 6px; max-width: none; }
.footer-tag { font-family: var(--slab); font-weight: 600; color: var(--paper); font-size: 1.1rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.88rem; color: #8995a4; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  body { font-size: 17px; }

  .brand { font-size: 1rem; gap: 10px; }
  .brand img { width: 30px; }
  .nav-toggle { display: inline-block; }
  .nav { width: 100%; order: 3; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav[data-open="false"] ul { display: none; }
  .nav a { padding: 14px 6px; border-top: 1px solid var(--rule); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 14px; }
  .nav a.nav-cta { margin: 12px 0 8px; text-align: center; border-top: none; }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-crest { order: -1; }
  .hero-crest img { max-width: 150px; margin-left: 0; }

  .lane, .split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 14px; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-rule { animation: none; width: min(260px, 60%); }
}
