/* ============================================================
   Benker Consulting — Redesigned Stylesheet v2
   Palette: Sky-blue #2A6496 | Soft teal #3B8EA5 | Sand #F5F0E8
            Off-white #FAFAF7 | Warm gold #C9A84C | Ink #1A1A2E
   Font: DM Serif Display (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --blue:      #2A6496;
  --teal:      #3B8EA5;
  --teal-light:#5AAFCA;
  --sand:      #F5F0E8;
  --offwhite:  #FAFAF7;
  --paper:     #F7F4EF;
  --gold:      #C9A84C;
  --ink:       #1A1A2E;
  --muted:     #5A6475;
  --line:      #E2DDD6;
  --white:     #FFFFFF;
  --max:       1140px;
  --radius:    3px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--offwhite);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
}

/* Single heading size system — one size, one weight */
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

/* Single body text size */
p, li { font-size: 1rem; color: var(--muted); line-height: 1.75; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 16px;
}

/* ── LAYOUT ── */
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

section { padding: 96px 0; }

/* ── TRANSPARENT SCROLLING NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s, box-shadow .35s;
  background: transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -.01em;
  transition: color .35s;
}
.nav.scrolled .nav-logo { color: var(--ink); }
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: #dbbe6a !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: background .35s;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* ── HERO — full-bleed with text overlay ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* gradient: dark at bottom-left where text sits, clear at top-right */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,46,0.82) 0%,
    rgba(26,26,46,0.55) 45%,
    rgba(26,26,46,0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 640px;
}
.hero-content .eyebrow { color: var(--gold); }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-quote {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin: 0 0 24px;
  line-height: 1.5;
}
.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 12px;
  line-height: 1.7;
}
.hero-tag {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 32px;
  display: block;
}
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: all .2s;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #dbbe6a; color: var(--ink); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }

/* ── DIVIDER ── */
.divider {
  width: 44px; height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* ── METRICS BAR ── */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 72px;
}
.metric {
  background: rgba(26,26,46,0.85);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
}
.metric b {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.metric span { font-size: .82rem; color: rgba(255,255,255,.6); }

/* ── GAP SECTION ── */
.gap-section {
  background: var(--ink);
  padding: 88px 0;
}
.gap-section .eyebrow { color: var(--teal-light); }
.gap-section h2 { color: var(--white); margin-bottom: 20px; }
.gap-section p { color: rgba(255,255,255,.65); max-width: 700px; }
.gap-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin-top: 32px;
}

/* ── SERVICES CARDS (NexonAI-style) ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.card {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 32px 28px;
  min-height: 260px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 32px rgba(42,100,150,.1); transform: translateY(-3px); }
.card-num {
  font-size: .75rem;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 48px;
  display: block;
}
.card h3 { color: var(--ink); margin-bottom: 12px; }
.card p { font-size: .93rem; }
.card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
}
.card-link:hover { color: var(--blue); }

/* ── LOGOS ── */
.logos-section {
  background: var(--paper);
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logos-label {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
}
.logo-pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── TESTIMONIAL ── */
.testimonial-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.testimonial-card {
  border-left: 4px solid var(--gold);
  padding: 36px 40px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.testimonial-card blockquote {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 20px;
}
.testimonial-attr { font-size: .85rem; color: var(--muted); font-weight: 600; }
.testimonial-attr strong { color: var(--ink); }

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  align-items: start;
}
.about-photo-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  object-fit: cover;
  max-height: 600px;
}
.about-photo-caption {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.philosophy-item {
  border-top: 2px solid var(--gold);
  padding-top: 16px;
}
.philosophy-item h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.credentials-strip {
  background: var(--ink);
  padding: 56px 0;
}
.credentials-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
}
.credential-item {
  background: var(--ink);
  padding: 32px 24px;
  text-align: center;
}
.credential-item b {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.credential-item p { font-size: .82rem; color: rgba(255,255,255,.55); margin: 0; }

/* ── FIELD SECTION ── */
.field-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.field-grid img {
  width: 100%;
  object-fit: cover;
  max-height: 560px;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}

/* ── SERVICES PAGE — chess motif ── */
.chess-hero {
  background: var(--ink);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}
.chess-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.chess-hero h1 { color: var(--white); position: relative; }
.chess-hero p  { color: rgba(255,255,255,.65); position: relative; max-width: 600px; }

.service-blocks { padding: 0; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
/* chess alternating: odd = white bg, even = sand bg */
.service-block:nth-child(odd)  { background: var(--white); }
.service-block:nth-child(even) { background: var(--sand); }

.service-block-num {
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--line);
}
.service-block-num .big-num {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  color: var(--line);
  line-height: 1;
  font-weight: 400;
}
.service-block-num .chess-piece {
  font-size: 2.4rem;
  margin-top: 12px;
  opacity: .35;
}
.service-block-body { padding: 56px 48px; }
.service-block-body h3 { color: var(--ink); margin-bottom: 8px; }
.service-block-body .service-sub {
  font-style: italic;
  color: var(--teal);
  font-family: 'DM Serif Display', serif;
  margin-bottom: 16px;
  font-size: 1rem;
}
.service-block-body ul {
  margin: 16px 0 0 0;
  padding-left: 18px;
}
.service-block-body li { font-size: .93rem; margin-bottom: 7px; }

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.who-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 3px solid var(--gold);
  padding: 28px 24px;
}
.who-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.who-card p  { color: rgba(255,255,255,.6); font-size: .9rem; }

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-icon { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.contact-photo {
  width: 100%;
  object-fit: cover;
  max-height: 440px;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  margin-top: 32px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input, .form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
  align-self: flex-start;
}
.btn-submit:hover { background: var(--teal); transform: translateY(-2px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--ink);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p  { color: rgba(255,255,255,.6); max-width: 580px; margin-top: 14px; position: relative; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--teal);
  padding: 72px 0;
  text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 14px; }
.cta-strip p  { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 32px; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  padding: 52px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.45); max-width: 300px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.55); font-size: .9rem; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); }
.footer-bottom a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .metrics-bar { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .credentials-inner { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid img { order: -1; }
  .service-block { grid-template-columns: 1fr; }
  .service-block-num { border-right: none; border-bottom: 1px solid var(--line); padding: 32px 28px 20px; }
  .service-block-body { padding: 28px; }
  .who-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(26,26,46,.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
  }
  .nav.scrolled .nav-links.open { background: rgba(250,250,247,.97); }
  .nav.scrolled .nav-links.open a { color: var(--ink); }
  .metrics-bar { grid-template-columns: 1fr 1fr; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testimonial-card { padding: 24px 20px; }
  .hero-content { padding: 100px 0 60px; }
}
