/* ===================================================
   EJM Darien - Strategic Advisory Website
   Colors: Wine (#722f37) + Cream (#f7f2eb) + Navy (#0a1628) + Gold (#b5965c)
   =================================================== */

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

:root {
  --wine: #722f37;
  --wine-dark: #5a1e25;
  --wine-light: #8a4550;
  --gold: #b5965c;
  --gold-light: #d4b87a;
  --gold-soft: #efe3c8;
  --navy: #0a1628;
  --navy-soft: #14243e;
  --cream: #f7f2eb;
  --cream-light: #fcf9f5;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-light: #5a4a3a;
  --text-muted: #8a7a6a;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(114, 47, 55, 0.1);
  --shadow-lg: 0 8px 40px rgba(114, 47, 55, 0.15);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient: linear-gradient(135deg, #722f37, #8a4550);
  --gradient-gold: linear-gradient(135deg, #b5965c, #d4b87a);
}

html { scroll-behavior: smooth; }
body {
  font-family: Georgia, 'Times New Roman', Palatino, 'Palatino Linotype', serif;
  color: var(--text);
  background: var(--cream-light);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--wine); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(181, 150, 92, 0.1);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}

.logo-mark {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.logo-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 10px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list a {
  padding: 8px 16px;
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--gold);
  background: rgba(181, 150, 92, 0.1);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(114,47,55,0.25), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(181,150,92,0.08), transparent 50%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-title .highlight {
  color: var(--gold);
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 540px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
}

.hero-desc strong { color: var(--gold-light); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(114, 47, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 47, 55, 0.4);
  color: var(--white);
}

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

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

.btn-light {
  background: var(--cream-light);
  color: var(--wine);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-light:hover {
  transform: translateY(-2px);
  color: var(--wine);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-full { width: 100%; }

/* Hero Visual - Animated Bars */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 280px;
}

.bar {
  width: 32px;
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  animation: barGrow 1.5s ease-out forwards;
  transform-origin: bottom;
  opacity: 0;
}

.bar-1 { height: 40%; animation-delay: 0.1s; }
.bar-2 { height: 65%; animation-delay: 0.2s; }
.bar-3 { height: 90%; animation-delay: 0.3s; }
.bar-4 { height: 75%; animation-delay: 0.4s; }
.bar-5 { height: 50%; animation-delay: 0.5s; }

@keyframes barGrow {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 0.8; }
}

.hero-divider {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}

.hero-divider svg {
  width: 100%;
  height: 70px;
}

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expert-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(114, 47, 55, 0.05);
  transition: var(--transition);
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(114, 47, 55, 0.12);
}

.expert-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--wine);
}

.expert-icon svg {
  width: 100%;
  height: 100%;
}

.expert-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 500;
}

.expert-card p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Stats */
.stats {
  background: var(--navy);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { padding: 20px; }

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.approach-content h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.approach-content p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.approach-list {
  list-style: none;
}

.approach-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.approach-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-width: 36px;
}

.approach-list li strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.approach-list li p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.approach-visual {
  display: flex;
  justify-content: center;
}

.approach-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 360px;
}

.approach-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
}

.approach-card-icon {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.approach-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.approach-stat-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.approach-stat-line span:first-child {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 3px;
  transition: width 1s ease;
}

/* CTA */
.cta-box {
  background: var(--gradient);
  padding: 60px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
}

.cta-box h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 400;
}

.cta-box p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  margin-bottom: 24px;
  opacity: 0.9;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo-mark {
  font-size: 1.3rem;
}

.footer-brand .logo-text {
  font-size: 0.85rem;
  margin-left: 10px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
}

.page-banner {
  padding: 140px 0 60px;
  background: var(--navy);
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 400;
}

.page-banner p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Detail */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-block {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(114, 47, 55, 0.05);
}

.service-block-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.service-block-content h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 500;
}

.service-block-content p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.service-block-content ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.service-block-content li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  padding-left: 18px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.service-block-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.about-text p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.highlight-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.highlight-card-header {
  padding: 28px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.highlight-initials {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  letter-spacing: 4px;
}

.highlight-sub {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.highlight-card-body {
  padding: 24px 28px;
}

.highlight-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.highlight-row:last-child { border-bottom: none; }

.highlight-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.highlight-value {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  color: var(--white);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  padding: 28px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(114, 47, 55, 0.04);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  color: var(--wine);
}

.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 500;
}

.value-card p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 28px;
  font-weight: 500;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-detail p,
.contact-detail a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.92rem;
  color: var(--text-light);
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 24px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream-light);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 150, 92, 0.12);
}

/* Legal */
.legal-text {
  max-width: 800px;
  margin: 0 auto;
}

.legal-text h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 32px 0 12px;
  font-weight: 500;
}

.legal-text p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-text ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-text li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  margin-bottom: 6px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .approac-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list a { display: block; text-align: center; padding: 12px; }

  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }

  .expertise-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .service-block { grid-template-columns: 1fr; text-align: center; }
  .service-block-content ul { grid-template-columns: 1fr; }
  .service-block-content li::before { display: none; }
  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: 1.5rem; }
  .approach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}
