/* ============================================
   THE HAMELIN GROUP — Website Stylesheet
   Clean, confident, no-nonsense.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1A2332;
  --navy-light: #243044;
  --steel: #4A6B8A;
  --text: #333333;
  --text-light: #5A6A7A;
  --bg: #FAFAF8;
  --bg-alt: #F0EFEC;
  --white: #FFFFFF;
  --border: #D8D6D0;
  --accent: #8B7355;
  --max-width: 820px;
  --nav-height: 72px;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--steel);
  text-decoration: none;
}

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

strong {
  font-weight: 600;
}

/* --- Navigation --- */
.nav {
  background: var(--navy);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--accent);
}

.nav-inner {
  width: 100%;
  max-width: 1000px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 50px;
  display: block;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Page Sections --- */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

/* --- Hero Section --- */
.hero {
  padding: 5rem 1.5rem 4rem;
  background: var(--bg);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero p {
  font-size: 1.15rem;
}

.hero .lead {
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.6;
}

.positioning-statement {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--accent);
}

/* --- Guarantee Box --- */
.guarantee-box {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.guarantee-box h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.guarantee-box p {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.guarantee-box .guarantee-tagline {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* --- Quote Block (prospect voice) --- */
.prospect-quote {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* --- Process Steps --- */
.process-step {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.process-step h3 {
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.process-step h3 .step-number {
  color: var(--steel);
  margin-right: 0.3rem;
}

/* --- Four Questions --- */
.question-item {
  margin-bottom: 1.5rem;
}

.question-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.question-item p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* --- Results --- */
.result-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-number {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.result-context {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Terms Table --- */
.terms-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.terms-grid dt {
  padding: 0.8rem 1rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.terms-grid dd {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.terms-grid dt:last-of-type,
.terms-grid dd:last-of-type {
  border-bottom: none;
}

/* --- Pedigree / Background --- */
.pedigree {
  line-height: 1.8;
}

.pedigree p {
  margin-bottom: 1rem;
}

.toc-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-style: italic;
}

/* --- About Page: Team --- */
.about-framing {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.founder-line {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.founder-line strong {
  color: var(--text);
}

.team-member {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.team-member:nth-child(even) {
  flex-direction: row-reverse;
}

.team-photo {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.team-bio h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.team-bio p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--navy);
}

.cta-section h2 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.cta-section .cta-email {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.cta-section .cta-email:hover {
  text-decoration: underline;
}

.cta-button {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.8rem 2rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- Contact Page --- */
.contact-page {
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-page h1 {
  margin-bottom: 1rem;
}

.contact-page .contact-email {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-page .contact-location {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 1.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
}

/* --- Link as button on home page --- */
.link-arrow {
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  margin-top: 0.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: var(--steel);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .team-member,
  .team-member:nth-child(even) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-photo {
    width: 180px;
    height: 180px;
  }

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

  .terms-grid dt {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }

  .terms-grid dd {
    padding-top: 0.2rem;
  }

  .positioning-statement {
    font-size: 1.1rem;
  }

  .guarantee-box {
    padding: 2rem 1.5rem;
  }
}

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
