/* Hampton-inspired design system — Captain's Academy */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --bg: #f6f4ef;
  --bg-white: #ffffff;
  --bg-dark: #1c1c1c;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-light: #8a8a8a;
  --border: #e5e0d6;
  --border-dark: #d4cfc4;
  --accent: #1a1a1a;
  --accent-hover: #333;
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --max: 1140px;
  --nav-h: 56px;
  --radius: 12px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* —— Header (Hampton: logo left, links, Apply right) —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1.5rem;
  padding-left: 0;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-left: -1.25rem;
}

.logo span {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.header-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-dark);
}

.btn-ghost:hover {
  background: var(--bg-white);
}

.text-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--text-muted);
}

/* —— Hero (centered, serif headline) —— */
.hero-hampton {
  text-align: center;
  padding: 4rem 0 3rem;
  background: var(--bg);
}

.hero-hampton .hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 auto 1rem;
  max-width: 44rem;
}

.hero-hampton h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto 1.25rem;
}

.hero-hampton .hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero-secondary {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* —— Chip marquee (Hampton cities) —— */
.chip-section {
  padding: 1.5rem 0 3rem;
  overflow: hidden;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto;
}

.chip {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* —— Section typography —— */
.section {
  padding: 4.5rem 0;
}

.section-white {
  background: var(--bg-white);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-title-left {
  text-align: left;
}

.section-kicker {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin: 0 0 2rem;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
}

.pain-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* —— Result cards (Member Results) —— */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.result-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.result-card .result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.result-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.result-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— Testimonials —— */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card-h {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.testimonial-card-h .t-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--border);
}

.testimonial-card-h .t-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4cfc4, #ebe6dc);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.testimonial-card-h blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  flex: 1;
  color: var(--text);
}

.testimonial-card-h .t-name {
  font-weight: 700;
  font-size: 0.9375rem;
  margin: 0;
}

.testimonial-card-h .t-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.section-cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* —— People grid (member wall) —— */
.people-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.person-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: block;
}

.person-card h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
  font-weight: 700;
}

.person-card .person-role {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 0.65rem;
}

.person-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.featured-testimonial {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

.featured-testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.featured-testimonial .t-name {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.featured-testimonial .t-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.testimonial-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.testimonial-pair .featured-testimonial {
  max-width: none;
}

.testimonial-pair .featured-testimonial blockquote {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-style: italic;
  text-align: center;
  max-width: 32rem;
  margin: 3rem auto 0;
  line-height: 1.45;
  color: var(--text);
}

/* —— What you get (3 columns) —— */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.benefit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* —— Founder letter —— */
.letter-section {
  background: var(--bg-white);
  border-block: 1px solid var(--border);
}

.letter-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.letter-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.letter-body p:first-of-type {
  color: var(--text);
  font-size: 1.125rem;
}

.letter-signature {
  margin-top: 1.5rem;
}

.letter-signature img {
  width: 120px;
  margin-bottom: 0.75rem;
}

.letter-signature .sig-name {
  font-weight: 700;
  margin: 0;
}

.letter-signature .sig-title {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.letter-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.letter-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* —— Steps (vetting) —— */
.steps-section {
  background: var(--bg);
}

.steps-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.steps-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.step-item {
  position: relative;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.step-item h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* —— How it works detail —— */
.detail-block {
  max-width: 40rem;
  margin: 0 auto;
}

.detail-block h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.detail-block p,
.detail-block ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.detail-block ul {
  padding-left: 1.25rem;
}

/* —— Guarantee / pilot band —— */
.guarantee-band {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 36rem;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

.guarantee-band h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.guarantee-band p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* —— Requirements —— */
.requirements-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  max-width: 32rem;
  margin: 0 auto 2rem;
  box-shadow: var(--card-shadow);
}

.requirements-box h3 {
  font-family: var(--font-serif);
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.requirements-box ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.requirements-box li {
  margin-bottom: 0.5rem;
}

/* —— FAQ accordion —— */
.faq-list {
  max-width: 40rem;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-light);
  flex-shrink: 0;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* —— Final CTA —— */
.final-cta {
  text-align: center;
  padding: 5rem 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.final-cta p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* —— Inner pages —— */
.page-hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
}

.page-hero .subtitle {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
}

.content-section {
  padding: 3rem 0 4rem;
}

.content-section.section-white {
  background: var(--bg-white);
}

.program-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  max-width: 40rem;
}

.program-block h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.program-block p,
.program-block ul {
  color: var(--text-muted);
}

.program-block .program-lead {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
}

.program-block h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tag-list li {
  font-size: 0.8125rem;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

/* Contact form */
.form-panel {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: #edf7ed;
  border-radius: 8px;
  color: #2d6a2d;
  margin-bottom: 1rem;
  text-align: center;
}

/* Legacy / inner-page helpers */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.section-alt {
  background: var(--bg-white);
}

.pilot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.pilot-item {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.cta-band {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.cta-band .btn-primary {
  background: var(--accent);
  color: #fff;
}

.testimonial-placeholder {
  text-align: center;
  padding: 3rem 2rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: var(--bg-white);
}

/* Mobile nav */
.mobile-nav-panel {
  display: none;
}

@media (max-width: 960px) {
  .results-grid,
  .testimonials-grid,
  .testimonial-pair,
  .benefits-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .letter-grid {
    grid-template-columns: 1fr;
  }

  .letter-photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav-panel {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.75rem;
  }

  .mobile-nav-panel.is-open {
    display: flex;
  }

  .mobile-nav-panel a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text);
    padding: 0.35rem 0;
  }

  .site-header {
    position: relative;
  }
}
