/* ============================================================
   Vertex Crown Solutions — shared stylesheet
   Palette:
     Ink navy   #0E1B2C
     Slate blue #23405E
     Crown gold #C79A3B
     Mist       #EEF2F6
     White      #FFFFFF
     Muted text #5A6B7D
   Type: Fraunces (display) / Archivo (body)
   ============================================================ */

:root {
  --ink: #0E1B2C;
  --slate: #23405E;
  --gold: #C79A3B;
  --gold-soft: #E4C87E;
  --mist: #EEF2F6;
  --white: #FFFFFF;
  --muted: #5A6B7D;
  --line: #D7DFE7;
  --radius: 10px;
  --max: 1120px;
  --display: "Fraunces", Georgia, serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.brand-name span { color: var(--gold); }
.brand-tag {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
.main-nav a {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--slate); border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--slate); border-bottom-color: var(--gold); }
.nav-cta {
  background: var(--ink); color: var(--white) !important;
  padding: 10px 20px !important; border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--slate); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--ink); position: relative; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero / page intro ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-inner { padding: 96px 0 110px; position: relative; z-index: 1; }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero p.lede {
  margin-top: 22px; max-width: 56ch;
  font-size: 1.08rem; color: #C3CEDA;
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.vertex-line {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 140px;
  opacity: 0.9; pointer-events: none;
}

/* Page intro (interior pages) */
.page-intro { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.page-intro .intro-inner { padding: 72px 0 84px; position: relative; z-index: 1; }
.page-intro h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15;
}
.page-intro p { margin-top: 16px; max-width: 62ch; color: #C3CEDA; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 0.92rem;
  padding: 13px 28px; border-radius: 999px; letter-spacing: 0.02em;
  transition: transform .15s ease, background .15s ease;
  border: none; cursor: pointer; font-family: var(--body);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--slate); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--gold); }
.section-head h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2;
}
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 14px 34px rgba(14,27,44,0.10); transform: translateY(-3px); }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .peak {
  width: 34px; height: 20px; margin-bottom: 18px;
}

.section.alt .card { border-color: transparent; }

/* Two-pillar practice layout */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { padding: 44px 40px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .eyebrow { color: var(--gold); margin-bottom: 12px; }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-bottom: 14px; }
.pillar ul { list-style: none; margin-top: 18px; }
.pillar li { padding: 9px 0 9px 26px; position: relative; color: var(--muted); font-size: 0.96rem; border-bottom: 1px dashed var(--line); }
.pillar li:last-child { border-bottom: none; }
.pillar li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 12px; height: 8px;
  background: linear-gradient(135deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%),
              linear-gradient(225deg, transparent 46%, var(--gold) 46%, var(--gold) 54%, transparent 54%);
  background-size: 50% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
}

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: left; }
.stat h3 { font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--slate); }
.stat h3 span { color: var(--gold); }
.stat p { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* Steps (process) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 22px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0 34px, var(--line) 34px);
}
.step h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* Checklist */
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li strong { display: block; }
.checklist li span { color: var(--muted); font-size: 0.95rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 10px;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.22; }
.split p { margin-top: 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--slate); color: var(--white); position: relative; overflow: hidden; }
.cta-band .wrap { padding-top: 70px; padding-bottom: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22ch; }
.cta-band p { color: #C3CEDA; margin-top: 8px; max-width: 48ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--body); font-size: 0.95rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.form-note { font-size: 0.83rem; color: var(--muted); margin-top: 14px; }

.contact-info h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.info-block { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.info-block:first-child { padding-top: 0; }
.info-block p { color: var(--muted); font-size: 0.96rem; }
.info-block a { font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 40px 0 12px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: #35485C; font-size: 0.98rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .updated { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #AEBBC8; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.footer-top h4 {
  color: var(--white); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-top ul { list-style: none; }
.footer-top li { margin-bottom: 10px; }
.footer-top a { color: #AEBBC8; font-size: 0.92rem; }
.footer-top a:hover { color: var(--gold-soft); }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.85rem;
}
.footer-bottom a { color: #AEBBC8; margin-left: 22px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Motion & responsiveness ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}

@media (max-width: 960px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none; padding: 12px 24px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 12px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }

  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: none; border-top: 1px solid var(--line); }
  .steps, .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-inner { padding: 68px 0 90px; }
  .section { padding: 60px 0; }
}

/* ============================================================
   Site addendum (not part of the base stylesheet):
   five-column variant of .steps for the recruitment process
   ============================================================ */
.steps.five { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 960px) {
  .steps.five { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .steps.five { grid-template-columns: 1fr; }
}

/* ============================================================
   Mobile-friendliness addendum
   ============================================================ */

/* Long unbroken strings (emails, URLs) must never force
   horizontal scrolling on narrow screens */
.legal p, .legal li, .info-block p, .footer-top li, .contact-form a {
  overflow-wrap: break-word;
}

/* The six-item menu is wider than tablet viewports; switch to the
   hamburger at 900px instead of 720px so the header never overflows */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none; padding: 12px 24px 24px;
    box-shadow: 0 16px 28px rgba(14, 27, 44, 0.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 12px 0; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
}

@media (max-width: 720px) {
  /* iOS Safari zooms into any focused control whose text is under
     16px; 1rem here is 16.5px, so focusing a field no longer zooms */
  .field input, .field select, .field textarea { font-size: 1rem; }

  /* Tighter interior padding on small screens */
  .contact-form { padding: 24px 20px; }
  .pillar { padding: 30px 24px; }

  /* Stack the CTA band so the button doesn't crowd the heading */
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }

  /* Shorter map embed on phones */
  .info-block iframe { height: 200px; }
}

/* Very narrow phones: drop the brand tagline so the logo and
   hamburger never collide */
@media (max-width: 380px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
}
