/* ============================================================
   EVERLIFE GROUP — SHARED DESIGN SYSTEM
   style.css — All pages reference this file
   ============================================================ */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── TOKENS ── */
:root {
  /* Palette */
  --navy:        #0D1E35;
  --navy-mid:    #152844;
  --navy-light:  #1E3A5F;
  --gold:        #B8963E;
  --gold-light:  #D4AE62;
  --gold-pale:   #F0E4C4;
  --white:       #FFFFFF;
  --off-white:   #F8F6F2;
  --warm-gray:   #EDEAE4;
  --border:      #DDD9D2;
  --charcoal:    #222222;
  --gray-dark:   #444444;
  --gray-mid:    #6B6B6B;
  --gray-light:  #9A9A9A;

  /* Type */
  --serif: 'Cormorant', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  /* Spacing */
  --page-x: 6vw;
  --max-w:  1240px;
  --section-y: 100px;

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;

  /* Shadow */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg: 0 20px 56px rgba(0,0,0,0.12);
}

/* ── BASE ── */
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-x); }
section { padding: var(--section-y) var(--page-x); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
p { line-height: 1.85; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); flex-shrink: 0; }

.section-title {
  font-family: var(--serif); font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400; color: var(--navy); margin-bottom: 16px;
  line-height: 1.1;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title.light { color: var(--white); }

.section-lead {
  font-size: 16px; font-weight: 300; line-height: 1.9;
  color: var (--grey mid); max-width: 600px;
}
.section-lead.light { color: rgba(255,255,255,0.6); }

.section-header { margin-bottom: 56px; }
.section-header .eyebrow { margin-bottom: 16px; display: flex; }
.section-header.center { text-align: center; }
.section-header.center .eyebrow { justify-content: center; }
.section-header.center .eyebrow::before { display: none; }
.section-header.center .section-lead { margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 12px;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--r-sm);
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--white); border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  transition: gap 0.2s;
}
.btn-text::after { content: '→'; }
.btn-text:hover { gap: 14px; }
.btn-text.light { color: rgba(255,255,255,0.8); }
.btn-text.light:hover { color: var(--white); }

/* ── NAVIGATION ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  transition: background 0.3s, box-shadow 0.3s;
}
#site-nav.scrolled {
  background: rgba(13,30,53,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-x);
  height: 76px;
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--white); letter-spacing: 0.04em;
}
.nav-logo-mark {
  width: 38px; height: 38px; background: var(--gold);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 600;
  color: var(--navy); font-family: var(--serif); flex-shrink: 0;
}
.nav-logo-text small {
  display: block; font-family: var(--sans); font-size: 9px;
  font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  transition: color 0.2s; padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}
.nav-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy);
  background: var(--gold); padding: 10px 20px;
  border-radius: var(--r-sm); transition: background 0.2s, transform 0.15s;
  white-space: nowrap; display: inline-flex; align-items: center;
  justify-content: center; line-height: 1.4; flex-shrink: 0; margin-left: 16px;
  text-align: center;
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); border-radius: 1px; transition: all 0.3s;
}
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--navy); padding: 20px var(--page-x) 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--gold-light); }

/* ── HERO ── */
.hero-base {
  min-height: 100vh; display: flex; align-items: center;
  padding: 76px var(--page-x) 0;
  background: var(--navy); position: relative; overflow: hidden;
}
.hero-base::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(30,58,95,0.6) 0%, transparent 70%);
  pointer-events: none;
}
#hero-h1 {
  color: #FFFFFF;
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  padding: 80px 0 100px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 28px;
}
.hero-tag::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300; color: var(--white);
  line-height: 1.05; margin-bottom: 28px;
  max-width: 800px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero h1 strong { font-weight: 600; }
.hero-sub {
  font-size: 17px; font-weight: 300; line-height: 1.85;
  color: var(--white); max-width: 560px; margin-bottom: 48px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-rule { width: 60px; height: 1px; background: var(--gold); margin: 40px 0; }

/* Inner page hero (shorter) */
.hero-page {
  min-height: 40vh; display: flex; align-items: flex-end;
  padding: 76px var(--page-x) 0;
  background: var(--navy); position: relative; overflow: hidden;
}
.hero-page::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(30,58,95,0.5) 0%, transparent 70%);
}
.hero-page .hero-grid-overlay { opacity: 0.7; }
.hero-page-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  padding: 60px 0 64px;
}
.hero-page-content h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300; color: var(--white); margin-bottom: 14px;
}
.hero-page-content .lead {
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.55);
  max-width: 540px; line-height: 1.8;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  background: var(--off-white); border-bottom: 1px solid var(--border);
  padding: 0 var(--page-x);
}
.breadcrumbs-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 44px; font-size: 12px; color: var(--gray-mid);
}
.breadcrumbs a { color: var(--gray-mid); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--gray-light); }
.bc-sep { color: var(--border); font-size: 14px; }

/* ── STAT CARDS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--warm-gray); border-radius: var(--r-md); overflow: hidden;
}
.stat-card {
  background: var(--white); padding: 36px 28px;
  transition: background 0.2s;
}
.stat-card:hover { background: var(--off-white); }
.stat-num {
  font-family: var(--serif); font-size: 52px; font-weight: 300;
  color: var(--navy); line-height: 1; margin-bottom: 8px;
}
.stat-num sup { font-size: 24px; vertical-align: super; }
.stat-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-mid); line-height: 1.5;
}

/* Dark stat cards */
.stats-grid.dark { background: rgba(255,255,255,0.06); }
.stats-grid.dark .stat-card { background: rgba(255,255,255,0.03); }
.stats-grid.dark .stat-card:hover { background: rgba(184,150,62,0.07); }
.stats-grid.dark .stat-num { color: var(--gold-light); }
.stats-grid.dark .stat-label { color: rgba(255,255,255,0.4); }

/* ── DIVISION CARDS ── */
.divisions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.division-card {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: all 0.25s ease; background: var(--white);
  display: flex; flex-direction: column;
}
.division-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(184,150,62,0.4);
}
.division-card-accent { height: 3px; background: var(--gold); }
.division-card-body { padding: 28px 24px; flex: 1; display: flex; flex-direction: column; }
.division-icon { font-size: 28px; margin-bottom: 16px; }
.division-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.division-name {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: var(--navy); margin-bottom: 10px; line-height: 1.2;
}
.division-desc {
  font-size: 13px; color: var(--gray-mid); line-height: 1.75;
  margin-bottom: 20px; flex: 1;
}
.division-companies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.co-tag {
  font-size: 10px; padding: 4px 10px;
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--charcoal);
}

/* ── NEWS CARDS ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: all 0.25s ease; background: var(--white);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card-img {
  height: 200px; background: var(--warm-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; overflow: hidden; position: relative;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-card-body { padding: 24px; }
.news-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
  display: block;
}
.news-title {
  font-family: var(--serif); font-size: 18px; color: var(--navy);
  margin-bottom: 10px; line-height: 1.3;
  transition: color 0.2s;
}
.news-card:hover .news-title { color: var(--gold); }
.news-meta { font-size: 12px; color: var(--gray-light); margin-bottom: 14px; }
.news-excerpt { font-size: 13px; color: var(--gray-mid); line-height: 1.75; }

/* ── CTA BAND ── */
.cta-band {
  background: var(--navy); padding: 80px var(--page-x);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0;
  width: 50%; background: rgba(184,150,62,0.05);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}
.cta-band-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; position: relative; z-index: 1;
}
.cta-band h2 {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 44px);
  font-weight: 400; color: var(--white); max-width: 560px;
  line-height: 1.2;
}
.cta-band p { font-size: 15px; color: rgba(255,255,255,0.5); margin-top: 12px; max-width: 440px; }
.cta-band-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 80px var(--page-x) 36px; }
.footer-main {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 64px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 36px;
}
.footer-brand-logo {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--white); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.footer-mark {
  width: 34px; height: 34px; background: var(--gold);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; font-size: 15px; color: var(--navy);
  font-family: var(--serif); font-weight: 700; flex-shrink: 0;
}
.footer-desc {
  font-size: 13px; color: rgba(255,255,255,0.38);
  line-height: 1.8; max-width: 280px; margin-bottom: 28px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.45);
  transition: all 0.2s;
}
.footer-social:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.footer-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 13px; color: rgba(255,255,255,0.42); transition: color 0.2s;
  line-height: 1.4;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold-light); }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-mid); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  font-family: var(--sans); font-size: 14px; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm); outline: none;
  transition: border-color 0.2s; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 128px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── UTILITY ── */
.bg-off { background: var(--off-white); }
.bg-navy { background: var(--navy); }
.bg-warm { background: var(--warm-gray); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-light { color: rgba(255,255,255,0.6); }
.divider { width: 48px; height: 2px; background: var(--gold); margin: 20px 0; }
.divider.center { margin: 20px auto; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-hero { animation: fadeUp 1s ease both; }
.animate-hero-2 { animation: fadeUp 1s 0.15s ease both; }
.animate-hero-3 { animation: fadeUp 1s 0.3s ease both; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }


  .reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: fadeUp 0.7s ease forwards;
    transition: none;
  }
  .reveal.visible { animation: none; opacity: 1; transform: none; }
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .divisions-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --section-y: 72px; --page-x: 5vw; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .divisions-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --section-y: 60px; --page-x: 4vw; }
  .divisions-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ── SVG ICON WRAPPERS ── */
.division-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(184,150,62,0.1);
  border: 1px solid rgba(184,150,62,0.2);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.division-icon-wrap svg { display: block; }

.icon-circle {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.addr-icon {
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--navy); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.addr-icon svg { display: block; }

/* ESG icon wrap on dark bg */
.pillar-icon-wrap {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Nav links spacing fix to prevent CTA overlap */
.nav-links { gap: 24px; }
@media (max-width: 1100px) { .nav-links { gap: 16px; } }
@media (max-width: 960px)  { .nav-links { display: none; } .nav-cta { display: none; } }

/* ── LOGO IMAGE ── */
/* When a logo image is set in content.js, these rules apply */
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Hide the text logo when image logo is present */
.nav-logo:has(img) .nav-logo-mark,
.nav-logo:has(img) .nav-logo-text {
  display: none;
}
/* Hide footer text mark when image is present */
.footer-brand-logo:has(img) .footer-mark,
.footer-brand-logo:has(img) span {
  display: none;
}
