/* ===================================================================
   Windsor Growth Partners — Stylesheet
   =================================================================== */

:root {
  --ivory: #F7F5F0;
  --ink: #1A1B1E;
  --navy: #0B1F3B;
  --navy-light: #142c52;
  --gold: #B8934C;
  --oxblood: #7A1F2B;
  --card: #EFEBE2;
  --white: #FFFFFF;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --section-pad: clamp(64px, 10vw, 120px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* ---------- Layout helpers ---------- */

.section {
  padding: var(--section-pad) 24px;
  scroll-margin-top: 84px;
}

.section--panel {
  background: var(--card);
}

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

.section-inner.narrow {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.eyebrow--light {
  color: var(--gold);
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: #a9803c;
}

.btn-cta {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
  font-size: 0.85rem;
  padding: 10px 18px;
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-form {
  width: 100%;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy);
  color: var(--white);
}

.nav-inner {
  padding: 10px 24px 10px 12px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  position: relative;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
  min-width: 0;
}

.nav-logo {
  height: clamp(40px, 10vw, 72px);
  width: auto;
  display: block;
  flex-shrink: 0;
  transition: height 0.2s ease;
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 2.8vw, 1.1rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Above the mobile breakpoint, let the logo break past the nav bar's own
   edge instead of being capped to fit inside it — but ONLY while the page
   is at the very top. The nav is sticky, so once the visitor scrolls, this
   same overflow would sit on top of whatever section has scrolled underneath
   it and cover the copy. script.js adds .nav--scrolled after a few pixels of
   scroll, which this rule excludes, dropping the logo back to the compact,
   fully-contained size above so it can never overlap content again. */
@media (min-width: 761px) {
  .nav:not(.nav--scrolled) .nav-mark {
    position: relative;
    padding-left: 250px;
  }

  .nav:not(.nav--scrolled) .nav-logo {
    position: absolute;
    left: 0;
    top: 0;
    height: 150px;
    z-index: 2;
  }
}

/* Footer crest badge — the crest artwork ships on a flat white background, so it
   sits on a small ivory medallion rather than showing a stray white box
   against the navy footer. */
.crest-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ivory);
  border: 1px solid var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}

.crest-badge img {
  display: block;
}

.crest-badge--footer {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.6em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px 20px;
}
.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.mobile-menu .btn {
  margin-top: 12px;
  text-align: center;
  border-top: none;
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.is-open .mobile-menu {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: clamp(80px, 16vw, 160px) 24px;
  text-align: center;
  scroll-margin-top: 0;
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-headline {
  color: var(--white);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 0.4em;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1.5em;
}

.hero-lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2em;
}

/* ---------- Narrative ---------- */

.lead-text {
  font-size: 1.15rem;
  color: var(--navy);
}

/* ---------- Tag grid (inflection) ---------- */

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5em;
}

.tag {
  background: var(--white);
  border: 1px solid rgba(11,31,59,0.12);
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 2px;
}

/* ---------- Phases ---------- */

.phases {
  list-style: none;
  margin: 2.5em 0 0;
  padding: 0;
  position: relative;
}

.phase {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 48px;
}

.phase:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(184,147,76,0.2));
}

.phase-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phase-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3em;
}

.phase-purpose {
  color: var(--ink);
  font-style: italic;
  opacity: 0.85;
}

.phase-scope {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0;
  margin: 0.8em 0;
}

.phase-scope li {
  font-size: 0.85rem;
  color: var(--navy);
  background: var(--card);
  padding: 5px 12px;
  border-radius: 2px;
}

.phase-output {
  margin-top: 0.9em;
  font-size: 0.95rem;
  color: var(--oxblood);
}

.phase-output--plain {
  color: var(--ink);
  opacity: 0.75;
  font-style: italic;
}

.strapline {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--navy);
  margin-top: 2em;
  letter-spacing: 0.01em;
}

.scope-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  margin-top: 0.75em;
  margin-bottom: 0;
}

/* ---------- Outcomes ---------- */

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 2em;
}

.outcome h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35em;
}

.outcome p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ---------- Who this is for ---------- */

.who-list {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 500;
}

.who-caveat {
  opacity: 0.85;
}

/* ---------- Why Windsor ---------- */

.origin-line {
  border-top: 1px solid rgba(11,31,59,0.15);
  padding-top: 1.5em;
  margin-top: 1.5em;
  font-style: italic;
  color: var(--navy);
}

/* ---------- Principals ---------- */

.principals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  margin-top: 2em;
}

.portrait-frame {
  width: 140px;
  height: 176px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
  border-radius: 2px;
  overflow: hidden;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.principal p:not(.principal-role) {
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */

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

.cta-heading {
  color: var(--white);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
}

.selectivity-note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2em;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
}

.optional {
  opacity: 0.55;
  font-weight: 400;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.form-row select option {
  color: var(--ink);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--gold);
}

.cta-email {
  margin-top: 1.8em;
  font-size: 0.9rem;
  opacity: 0.75;
}

.cta-email a {
  color: var(--gold);
  text-decoration: none;
}
.cta-email a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 56px 24px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner > * {
  margin: 0 0 0.6em;
}

.footer-name {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.1rem;
}

.footer-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1.2em;
}

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

@media (max-width: 640px) {
  .phase {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
  .phase-num {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
  .phase:not(:last-child)::before {
    left: 23px;
    top: 44px;
  }
  .principals {
    gap: 36px;
  }
}
