/* ===== EFG Counsel - Modern Consulting ===== */
:root {
  --white: #ffffff;
  --off-white: #f8f7f5;
  --warm-50: #faf8f4;
  --warm-100: #f0ede5;
  --warm-200: #e0d9cb;
  --teal: #0f766e;
  --teal-dark: #0d5e58;
  --teal-light: #14b8a6;
  --orange: #c2410c;
  --orange-light: #ea580c;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--stone-600);
  line-height: 1.7;
}

/* ===== Header ===== */
header {
  position: fixed; top: 0; width: 100%;
  padding: 0 40px;
  height: 72px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: transparent;
  transition: all 0.3s ease;
}
header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-100);
}
header .inner { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
header .logo {
  font-size: 1.3rem; font-weight: 700;
  color: var(--stone-800); text-decoration: none;
  letter-spacing: -0.3px;
}
header .logo span { color: var(--teal); }
header nav { display: flex; gap: 28px; align-items: center; }
header nav a {
  color: var(--stone-500); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
header nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.25s ease;
  border-radius: 1px;
}
header nav a:hover { color: var(--stone-800); }
header nav a:hover::after { width: 100%; }
header nav a.active { color: var(--teal); }
header nav a.active::after { width: 100%; }

/* ===== Hero ===== */
.hero {
  padding: 140px 40px 80px;
  background: var(--warm-50);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(15,118,110,0.03) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(194,65,12,0.02) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero .badge {
  display: inline-block;
  background: var(--teal); color: var(--white);
  padding: 6px 20px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3rem; font-weight: 800;
  color: var(--stone-800);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--teal); }
.hero p {
  font-size: 1.05rem; color: var(--stone-400);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.8;
}
.hero .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
  transition: all 0.25s ease; font-size: 0.92rem;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--stone-600); border: 1.5px solid var(--stone-300); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* ===== Section shared ===== */
section { padding: 80px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title { margin-bottom: 48px; max-width: 600px; }
.section-title .label {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--teal); margin-bottom: 8px;
}
.section-title h2 {
  font-size: 2.2rem; font-weight: 700;
  color: var(--stone-800); margin-bottom: 10px;
}
.section-title p { color: var(--stone-400); font-size: 1rem; }
.section-title.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== Services - Numbered mega cards ===== */
.svc-stack { display: flex; flex-direction: column; gap: 0; }
.svc-block {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 36px 40px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.svc-block:nth-child(odd) { background: var(--warm-50); }
.svc-block:hover { transform: translateX(6px); }
.svc-block .num {
  font-size: 2.6rem; font-weight: 800;
  color: var(--teal); opacity: 0.15;
  line-height: 1;
  font-feature-settings: "tnum";
}
.svc-block h3 { font-size: 1.15rem; font-weight: 600; color: var(--stone-800); margin-bottom: 6px; }
.svc-block p { color: var(--stone-400); font-size: 0.92rem; line-height: 1.7; }

/* ===== Stats ===== */
.stat-banner {
  background: var(--teal);
  padding: 0;
}
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center; padding: 40px 24px;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-item .n { font-size: 2.6rem; font-weight: 800; display: block; line-height: 1.1; }
.stat-item .l { font-size: 0.88rem; display: block; margin-top: 6px; opacity: 0.75; }

/* ===== Approach - Tab container ===== */
.tab-container { background: var(--warm-50); border-radius: 12px; overflow: hidden; }
.tab-headers { display: flex; border-bottom: 1px solid var(--warm-200); }
.tab-btn {
  flex: 1; padding: 16px 24px;
  background: none; border: none;
  font-size: 0.92rem; font-weight: 600;
  color: var(--stone-400); cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.tab-btn:hover { color: var(--stone-600); }
.tab-btn.active { color: var(--teal); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -1px; left: 20%; width: 60%;
  height: 2px; background: var(--teal); border-radius: 1px;
}
.tab-content { padding: 36px 40px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h4 { font-size: 1.1rem; font-weight: 600; color: var(--stone-800); margin-bottom: 10px; }
.tab-pane p { color: var(--stone-400); line-height: 1.8; margin-bottom: 8px; }
.tab-pane ul { list-style: none; padding: 0; margin-top: 12px; }
.tab-pane ul li { padding: 8px 0; color: var(--stone-500); font-size: 0.9rem; display: flex; gap: 10px; align-items: flex-start; }
.tab-pane ul li::before { content: '→'; color: var(--teal); font-weight: 600; }

/* ===== About ===== */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about-text p { color: var(--stone-400); margin-bottom: 14px; line-height: 1.8; font-size: 0.95rem; }
.about-info { background: var(--warm-50); border: 1px solid var(--warm-100); border-radius: 12px; padding: 32px; }
.about-info h4 { color: var(--teal); font-size: 0.9rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.ai-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--warm-100); font-size: 0.88rem; }
.ai-row:last-child { border-bottom: none; }
.ai-row .k { color: var(--stone-400); }
.ai-row .v { color: var(--stone-700); text-align: right; font-weight: 500; }

/* ===== Testimonials ===== */
.testi-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testi-card { background: var(--warm-50); border: 1px solid var(--warm-100); border-radius: 12px; padding: 32px; }
.testi-card .tcontent { color: var(--stone-500); font-size: 0.92rem; line-height: 1.75; margin-bottom: 16px; }
.testi-card .tname { font-weight: 600; color: var(--stone-800); font-size: 0.9rem; }
.testi-card .trole { color: var(--stone-400); font-size: 0.82rem; }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta-section h2 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.cta-section p { opacity: 0.8; max-width: 500px; margin: 0 auto 24px; }
.cta-section .btn-primary { background: var(--white); color: var(--teal); }
.cta-section .btn-primary:hover { background: var(--warm-50); transform: translateY(-2px); }

/* ===== Footer ===== */
footer { padding: 50px 40px 28px; border-top: 1px solid var(--warm-100); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-col h4 { color: var(--stone-800); font-size: 0.9rem; margin-bottom: 12px; }
.footer-col p { color: var(--stone-400); font-size: 0.85rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--stone-400); text-decoration: none; font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bot { padding-top: 20px; border-top: 1px solid var(--warm-100); display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--stone-400); flex-wrap: wrap; gap: 10px; }
.footer-bot a { color: var(--stone-400); text-decoration: none; }
.footer-bot a:hover { color: var(--teal); }

/* ===== Sub-pages ===== */
.pagehd { padding: 120px 40px 50px; background: var(--warm-50); text-align: center; }
.pagehd h1 { font-size: 2.4rem; color: var(--stone-800); margin-bottom: 8px; }
.pagehd p { color: var(--stone-400); max-width: 520px; margin: 0 auto; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.cform input, .cform textarea {
  width: 100%; padding: 13px 16px;
  background: var(--white); border: 1.5px solid var(--warm-200);
  border-radius: 8px; color: var(--stone-700); font-size: 0.95rem;
  margin-bottom: 14px; font-family: inherit;
  transition: border-color 0.2s;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,0.06); }
.cform textarea { min-height: 130px; resize: vertical; }
.ci-card { background: var(--warm-50); border-radius: 12px; padding: 32px; border: 1px solid var(--warm-100); }
.ci-card h4 { color: var(--teal); font-size: 0.9rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.ci-row { display: flex; gap: 14px; margin-bottom: 16px; }
.ci-row .ci-icon { width: 40px; height: 40px; background: var(--white); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-row .ci-l { color: var(--stone-400); font-size: 0.8rem; }
.ci-row .ci-v { color: var(--stone-700); font-size: 0.9rem; }

.privacy-content { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.privacy-content h3 { color: var(--stone-800); font-size: 1.2rem; margin: 30px 0 10px; }
.privacy-content p { color: var(--stone-400); line-height: 1.8; margin-bottom: 10px; font-size: 0.95rem; }

@media (max-width: 1024px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .about-split { grid-template-columns: 1fr; }
  .tab-headers { flex-direction: column; }
  .tab-content { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  header { padding: 0 20px; }
  header nav { gap: 16px; }
  header nav a { font-size: 0.82rem; }
  .hero { padding: 110px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  section { padding: 60px 20px; }
  .section-title h2 { font-size: 1.6rem; }
  .svc-block { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .svc-block .num { font-size: 2rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .testi-2col { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pagehd { padding: 100px 20px 30px; }
  .pagehd h1 { font-size: 1.8rem; }
}
