/* ── KPMD Research — Global Stylesheet ────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --navy:        #0D1F3C;
  --navy-mid:    #162847;
  --navy-light:  #1E3560;
  --gold:        #B8945A;
  --gold-light:  #D4AF78;
  --off-white:   #F7F5F0;
  --white:       #FFFFFF;
  --text-dark:   #0D1F3C;
  --text-mid:    #4A5568;
  --text-light:  #8A95A3;
  --border:      #E2DDD6;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────────── */

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

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-mid); line-height: 1.8; }

a { color: inherit; text-decoration: none; }

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

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

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

/* ── NAV ────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(13, 31, 60, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 148, 90, 0.2);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

.nav__links a:hover { color: var(--gold-light); }

.nav__cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav__cta:hover { background: var(--gold-light) !important; color: var(--navy) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(184,148,90,0.06) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 80px
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--gold-light);
  font-style: italic;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn--primary:hover { background: var(--gold-light); }

.btn--outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

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

.btn--navy:hover { background: var(--navy-light); }

.hero__photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo-frame {
  width: 380px;
  height: 460px;
  background: var(--navy-light);
  border: 1px solid rgba(184,148,90,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero__photo-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.3);
}

.hero__photo-placeholder .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.hero__photo-placeholder p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.hero__photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

/* ── CREDENTIAL BAR ──────────────────────────────────────────────────────── */

.credential-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.credential-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.credential-item__number {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.credential-item__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.credential-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── SECTION HEADER ─────────────────────────────────────────────────────── */

.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

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

.section-header h2 { margin-bottom: 1rem; }

.section-header p { color: var(--text-mid); max-width: 560px; }

.section-header--center p { margin: 0 auto; }

/* ── SERVICE CARDS ──────────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  position: relative;
}

.service-card:hover { background: var(--off-white); }

.service-card__number {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 600;
  color: rgba(13,31,60,0.06);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card__link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
}

.service-card:hover .service-card__link { gap: 0.7rem; }

/* ── EXPERTISE TAGS ─────────────────────────────────────────────────────── */

.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.expertise-tag {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  transition: all 0.2s;
}

.expertise-tag:hover {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
}

/* ── SPONSOR LOGOS ───────────────────────────────────────────────────────── */

.sponsors {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-top: 3rem;
}

.sponsors__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
}

.sponsors__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

.sponsor-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.sponsor-name:hover { color: var(--navy); }

/* ── ABOUT SPLIT ─────────────────────────────────────────────────────────── */

.about-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 100px;
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-photo-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.about-credentials {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credential-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.credential-line::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1.25rem; }

.license-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.license-item {
  background: var(--white);
  padding: 1rem;
  text-align: center;
}

.license-item__state {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
}

.license-item__label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ── SERVICE DETAIL PAGE ─────────────────────────────────────────────────── */

.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 80px
  );
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 600px; font-size: 1.05rem; }

/* ── SERVICE DETAIL CARDS ────────────────────────────────────────────────── */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.detail-card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.detail-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(184,148,90,0.08);
}

.detail-card__icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.detail-card__icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; }

.detail-card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.detail-card p { font-size: 0.9rem; }

/* ── CONFLICT CHECK BANNER ───────────────────────────────────────────────── */

.conflict-banner {
  background: var(--navy);
  padding: 3rem 0;
  text-align: center;
}

.conflict-banner h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.conflict-banner p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CONTACT FORM ────────────────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail__icon {
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg { width: 16px; height: 16px; stroke: var(--navy); fill: none; }
.contact-detail__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.contact-detail__value { font-size: 0.95rem; color: var(--navy); font-weight: 500; }

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 1rem;
  line-height: 1.6;
}

.form-success {
  display: none;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.form-success h4 { color: var(--navy); margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; }

/* ── CALIX BANNER ────────────────────────────────────────────────────────── */

.calix-banner {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.calix-banner__text h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.calix-banner__text p { font-size: 0.88rem; margin: 0; }

.calix-banner__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}

.calix-banner__link:hover { color: var(--gold); }

/* ── RESOURCE CENTER ─────────────────────────────────────────────────────── */

.resource-card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.resource-card:hover { border-color: var(--gold); }

.resource-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.resource-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.resource-card p { font-size: 0.88rem; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(184,148,90,0.2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand img { height: 30px; width: auto; margin-bottom: 1rem; }

.footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 220px;
}

.footer__col h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer__col ul { list-style: none; }

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

.footer__col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--gold-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer__disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  max-width: 500px;
  text-align: right;
  line-height: 1.5;
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 4rem 2rem; }
  .hero__photo { display: none; }
  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .credential-bar__inner { justify-content: center; gap: 1rem; }
  .credential-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__disclaimer { text-align: center; }
}

/* ── MOBILE NAV OPEN ─────────────────────────────────────────────────────── */

.nav--open .nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(13,31,60,0.98);
  padding: 1.5rem 2rem;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(184,148,90,0.2);
}

/* ── ACTIVE NAV ─────────────────────────────────────────────────────────── */

.nav__links a.active { color: var(--gold-light); }

/* ── SCHEMA / HIDDEN ─────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
