/* ==========================================================================
   Editorial Theme — Vanguard Platform Advisory
   Serif-driven, content-first, generous whitespace. HBR / Stripe docs.
   ========================================================================== */

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

:root {
  --c-bg: #fafaf8;
  --c-white: #ffffff;
  --c-text: #1a1a1a;
  --c-text-light: #555;
  --c-accent: #2d5a3d;
  --c-accent-hover: #3d7a53;
  --c-border: #d5d0c8;
  --c-border-light: #e8e4dc;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --content-width: 720px;
  --wide-width: 960px;
}

html { scroll-behavior: smooth; }

body.site {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--c-accent-hover); }

/* --- Navigation (minimal, scrolls away) --- */
.site__nav {
  position: relative;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  z-index: 100;
}

.nav__inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text) !important;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav__link {
  font-size: 0.85rem;
  color: var(--c-text-light) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link--active {
  color: var(--c-accent) !important;
}

/* --- Mobile toggle --- */
.nav__toggle-input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav__toggle-label {
  display: none;
  cursor: pointer;
  width: 24px; height: 20px;
  position: relative;
  z-index: 101;
}

.nav__toggle-icon,
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  display: block;
  width: 100%; height: 2px;
  background: var(--c-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle-icon { position: relative; top: 9px; }
.nav__toggle-icon::before,
.nav__toggle-icon::after { content: ''; position: absolute; }
.nav__toggle-icon::before { top: -7px; }
.nav__toggle-icon::after { top: 7px; }

.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon { background: transparent; }
.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav__toggle-input:checked ~ .nav__toggle-label .nav__toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* --- Main --- */
.site__main {
  padding-top: 2rem;
}

/* --- Sections --- */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section + .section {
  border-top: 1px solid var(--c-border);
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--c-text);
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--c-text);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.section p {
  margin-bottom: 1.5rem;
}

.section ul {
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
}

.section li {
  margin-bottom: 0.6rem;
}

.section strong {
  font-weight: 600;
}

/* --- Hero (text-only, striking typography) --- */
.section--hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  border-top: none;
}

.section--hero h1 {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: 1.25rem;
}

.section--hero p {
  font-size: 1.2rem;
  color: var(--c-text-light);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTAs — primary / secondary */
.section--hero p:last-child a {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0.4rem;
  text-decoration: none;
  transition: all 0.2s;
}

.section--hero p:last-child a:first-child {
  background: var(--c-accent);
  color: var(--c-white) !important;
}

.section--hero p:last-child a:first-child:hover {
  background: var(--c-accent-hover);
}

.section--hero p:last-child a:last-child {
  background: transparent;
  color: var(--c-accent) !important;
  border: 1px solid var(--c-border);
}

.section--hero p:last-child a:last-child:hover {
  border-color: var(--c-accent);
}

/* --- Cards (report-style, not boxy) --- */
.card {
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 3px solid var(--c-accent);
}

.card p:first-child {
  margin-bottom: 0.5rem;
}

.card p:first-child strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--c-text-light);
  font-size: 1rem;
}

/* --- Track Record cards — blockquote style, visually distinct --- */
.section--track-record .card {
  background: var(--c-white);
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--c-border);
  border-radius: 2px;
  margin: 2.5rem 0;
}

.section--track-record .card p:first-child strong {
  color: var(--c-accent);
  font-style: italic;
}

/* --- Drop cap on first paragraph of key sections --- */
.section--problem > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3rem;
  float: left;
  line-height: 0.85;
  padding-right: 0.12rem;
  margin-top: 0.15rem;
  color: var(--c-accent);
  font-weight: 700;
}

/* --- About section values — accent color on lead-in --- */
.section--about > p > strong:first-child {
  color: var(--c-accent);
}

/* --- Contact Form --- */
.form {
  max-width: 540px;
  margin: 2.5rem 0 0;
}

.form__field {
  margin-bottom: 1.75rem;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-white);
  color: var(--c-text);
  transition: border-color 0.2s;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--c-accent);
}

.form__submit {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.form__submit:hover {
  background: var(--c-accent-hover);
}

/* --- Footer --- */
.site__footer {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-text-light);
}

.footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer__address {
  margin-top: 0.25rem;
  color: var(--c-border);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav__toggle-label { display: block; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 2rem 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav__toggle-input:checked ~ .nav__links { display: flex; }

  .nav__link {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-border);
  }

  .section--hero h1 { font-size: 2.5rem; }
  .section { padding: 3rem 1.5rem; }
}
