/* ============================================================
   EMER PARTNERS — Shared Design System
   emerpartners.com
   ============================================================ */

/* Google Fonts loaded in each HTML head */

/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  --blue:        #00388D;
  --teal:        #1D96AA;
  --teal-light:  #3ab4c9;
  --slate:       #F8FAFC;
  --green:       #27ae60;
  --green-light: #2ecc71;
  --red:         #c0392b;
  --navy:        #011a40;
  --navy-mid:    #012a6b;
  --white:       #ffffff;
  --text-dark:   #0f1923;
  --text-mid:    #3d4f63;
  --text-muted:  #6b7c93;
  --border:      rgba(29, 150, 170, 0.18);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-w:       1200px;
  --section-pad: clamp(72px, 9vw, 120px);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ============================================================
   UTILITY — TYPOGRAPHY
============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow--light { color: var(--teal-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
}
.section-title--light { color: var(--white); }

.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-mid);
  max-width: 640px;
  line-height: 1.75;
}
.section-lead--light { color: rgba(255,255,255,0.78); }

/* ============================================================
   UTILITY — BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(29,150,170,0.32); }
.btn--outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.btn--outline-light:hover { border-color: var(--teal-light); color: var(--teal-light); transform: translateY(-1px); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(0,56,141,0.28); }
.btn--outline-dark { background: transparent; color: var(--navy); border: 1.5px solid rgba(0,56,141,0.25); }
.btn--outline-dark:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.arrow-icon { width: 16px; height: 16px; transition: transform 0.2s ease; flex-shrink: 0; }
.btn:hover .arrow-icon { transform: translateX(3px); }

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(1, 26, 64, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-wordmark__name {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-wordmark__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal-light); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--teal-light) !important; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================================
   PAGE HERO — INNER PAGES
============================================================ */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(29,150,170,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,56,141,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,150,170,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,150,170,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
}
.page-hero .eyebrow--light { margin-bottom: 20px; }
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.page-hero-title em { font-style: italic; color: var(--teal-light); }
.page-hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.8;
  animation: fadeUp 0.7s 0.22s ease both;
}
.page-hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.32s ease both;
}

/* ============================================================
   SECTION DIVIDER
============================================================ */
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--teal), var(--blue));
  border-radius: 2px;
  margin-bottom: 32px;
}

/* ============================================================
   CTA BAND (SHARED)
============================================================ */
.cta-band {
  padding: var(--section-pad) 0;
  background: var(--blue);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(29,150,170,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}
.cta-band-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
}
.cta-band-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-band-headline em { font-style: italic; color: var(--teal-light); }
.cta-band-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 560px;
}
.cta-band-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
}
.cta-band-email {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.cta-band-email:hover { color: var(--teal-light); }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--navy);
  padding: 56px 0 32px;
  border-top: 1px solid rgba(29,150,170,0.12);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
  max-width: 240px;
}
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-linkedin {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.footer-linkedin:hover { color: var(--teal-light); }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@keyframes scrollLine {
  0%  { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100%{ opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-section { padding: var(--section-pad) 0; }
.faq-section:nth-child(odd)  { background: var(--white); }
.faq-section:nth-child(even) { background: var(--slate); }

.faq-header { margin-bottom: 48px; }
.faq-header .eyebrow { margin-bottom: 16px; }
.faq-header .section-title { margin-bottom: 16px; }

.faq-list { display: flex; flex-direction: column; gap: 2px; }

details.faq-item {
  border: 1px solid rgba(0,56,141,0.1);
  border-radius: 4px;
  background: var(--white);
  transition: box-shadow 0.2s;
  overflow: hidden;
}
details.faq-item + details.faq-item { margin-top: 6px; }
details.faq-item[open] {
  box-shadow: 0 4px 20px rgba(0,56,141,0.07);
  border-color: rgba(29,150,170,0.3);
}
details.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  transition: color 0.2s;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { display: none; }
details.faq-item[open] summary { color: var(--teal); }
details.faq-item summary:hover { color: var(--teal); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1.5px solid rgba(0,56,141,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, border-color 0.2s, background 0.2s;
  margin-top: 2px;
}
details.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  border-color: var(--teal);
  background: rgba(29,150,170,0.08);
}
.faq-chevron svg { width: 10px; height: 10px; stroke: var(--teal); stroke-width: 2.5; }
.faq-answer {
  padding: 0 28px 24px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  border-top: 1px solid rgba(0,56,141,0.06);
  padding-top: 20px;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  margin: 12px 0;
}
.faq-answer ul li {
  padding-left: 16px;
  position: relative;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.faq-answer ul li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.faq-answer strong { color: var(--text-dark); font-weight: 600; }

/* Dark FAQ variant (for pages with navy bg) */
.faq-section--dark { background: var(--navy) !important; }
.faq-section--dark details.faq-item { background: rgba(255,255,255,0.04); border-color: rgba(29,150,170,0.18); }
.faq-section--dark details.faq-item[open] { background: rgba(255,255,255,0.06); border-color: rgba(29,150,170,0.35); box-shadow: none; }
.faq-section--dark details.faq-item summary { color: rgba(255,255,255,0.85); }
.faq-section--dark details.faq-item[open] summary { color: var(--teal-light); }
.faq-section--dark details.faq-item summary:hover { color: var(--teal-light); }
.faq-section--dark .faq-chevron { border-color: rgba(255,255,255,0.2); }
.faq-section--dark details.faq-item[open] .faq-chevron { border-color: var(--teal-light); background: rgba(29,150,170,0.15); }
.faq-section--dark .faq-answer { color: rgba(255,255,255,0.6); border-top-color: rgba(255,255,255,0.06); }
.faq-section--dark .faq-answer strong { color: var(--white); }
.faq-section--dark .faq-header .eyebrow--light { }
.faq-section--dark .section-title--light { }

/* ============================================================
   RESPONSIVE — SHARED COMPONENTS
============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 40px; }
  .cta-band-actions { align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}
