/* ==========================================================================
   Corporate Theme — Vanguard Platform Advisory
   Navy/teal, structured, authoritative. Bloomberg meets McKinsey.
   ========================================================================== */

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

:root {
  --c-navy: #1a2332;
  --c-navy-light: #243044;
  --c-teal: #0891b2;
  --c-teal-hover: #06b6d4;
  --c-white: #ffffff;
  --c-off-white: #f8f9fa;
  --c-gray-100: #f1f3f5;
  --c-gray-200: #e9ecef;
  --c-gray-600: #6c757d;
  --c-text: #2d3339;
  --c-text-light: #5a6370;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1140px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

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

img { max-width: 100%; }

a { color: var(--c-teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-teal-hover); }

/* --- Navigation --- */
.site__nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--c-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  color: var(--c-white) !important;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav__link {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.nav__link--active {
  border-bottom: 2px solid var(--c-teal);
  padding-bottom: 2px;
}

/* --- 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-white);
  border-radius: 1px;
  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 {
  margin-top: var(--nav-height);
}

/* --- Sections --- */
.section {
  padding: 5rem max(2rem, 50% - var(--max-width) / 2);
}

.section > *:not(.card) {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.section p {
  margin-bottom: 1.25rem;
  max-width: 75ch;
}

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

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

.section strong {
  color: var(--c-navy);
}

/* --- Hero --- */
.section--hero {
  background: var(--c-navy);
  color: var(--c-white);
  text-align: center;
  padding: 8rem max(2rem, 50% - var(--max-width) / 2) 6rem;
}

.section--hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--c-white);
}

.section--hero p {
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
}

.section--hero strong {
  color: var(--c-white);
}

/* Hero CTAs — primary (first link) and secondary (second link) */
.section--hero p:last-child a {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.5rem;
  transition: all 0.2s;
}

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

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

.section--hero p:last-child a:last-child {
  background: transparent;
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.3);
}

.section--hero p:last-child a:last-child:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--c-white) !important;
}

/* --- Alternating section backgrounds --- */
.section--problem,
.section--services-delivery,
.section--ai-approach,
.section--about {
  background: var(--c-off-white);
}

/* --- Cards --- */
.card {
  max-width: var(--max-width);
  margin: 1.25rem auto;
  padding: 1.75rem 2rem;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  border-left: 3px solid var(--c-teal);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.section--problem .card,
.section--services-delivery .card,
.section--ai-approach .card,
.section--about .card {
  background: var(--c-white);
}

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

.card p:first-child strong {
  font-size: 1.05rem;
  color: var(--c-navy);
  letter-spacing: -0.01em;
}

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

/* Track record cards — different accent to distinguish from service cards */
.section--track-record .card {
  border-left-color: var(--c-navy);
}

.section--track-record .card p:first-child strong {
  color: var(--c-teal);
}

/* --- About section values --- */
.section--about > p > strong:first-child {
  color: var(--c-teal);
}

/* --- How We Work numbered steps --- */
.section--how-we-work h3 {
  color: var(--c-teal);
}

/* --- Contact Form --- */
.form {
  max-width: 640px;
  margin: 2rem auto 0;
}

.form__field {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-navy);
  margin-bottom: 0.4rem;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--c-gray-200);
  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-teal);
}

.form__submit {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--c-teal);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

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

/* --- Footer --- */
.site__footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
}

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

.footer__address {
  color: rgba(255,255,255,0.4);
}

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

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--c-navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 2rem 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

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

  .nav__link {
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

@media (max-width: 900px) {
  .section--hero h1 { font-size: 2.2rem; }
  .section { padding: 3.5rem 1.5rem; }
  .footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (min-width: 768px) {
  /* 2-column card grid on wider screens */
  .section--services-advisory,
  .section--services-delivery {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .section--services-advisory > h2,
  .section--services-advisory > h3,
  .section--services-advisory > p,
  .section--services-advisory > ul,
  .section--services-delivery > h3,
  .section--services-delivery > p {
    width: 100%;
    flex: 0 0 100%;
  }
  .section--services-advisory > .card,
  .section--services-delivery > .card {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    margin-left: auto;
    margin-right: auto;
  }
  .section--services-advisory > .card:nth-child(odd),
  .section--services-delivery > .card:nth-child(odd) {
    margin-right: 0.75rem;
  }
  .section--services-advisory > .card:nth-child(even),
  .section--services-delivery > .card:nth-child(even) {
    margin-left: 0.75rem;
  }
}
