:root{
  --eo-bg:#ffffff;
  --eo-alt:#f6f7fb;
  --eo-text:#0f172a;
  --eo-muted:#475569;
  --eo-line:#e5e7eb;
  --eo-accent:#1e3a8a;
  --eo-accent-2:#0b2b6f;
  --eo-radius:18px;
  --eo-shadow:0 10px 30px rgba(2,6,23,.08);
  --eo-max:1120px;
}

.eo-wrap{ background:var(--eo-bg); color:var(--eo-text); }
.eo-container{ max-width:var(--eo-max); margin:0 auto; padding:0 20px; }
.eo-section{ padding:72px 0; border-top:1px solid var(--eo-line); }
.eo-section--alt{ background:var(--eo-alt); }
.eo-grid-2{ display:grid; grid-template-columns: 1.15fr .85fr; gap:28px; align-items:start; }
@media (max-width: 900px){ .eo-grid-2{ grid-template-columns:1fr; } }

.eo-hero{ padding:72px 0; background:linear-gradient(180deg, #0b1220 0%, #0b1220 70%, #ffffff 70%); }
.eo-hero__inner{ max-width:var(--eo-max); margin:0 auto; padding:0 20px; display:grid; grid-template-columns: 1.2fr .8fr; gap:28px; align-items:center; }
@media (max-width: 900px){ .eo-hero__inner{ grid-template-columns:1fr; } }

.eo-hero__copy{ color:#fff; }
.eo-eyebrow{ letter-spacing:.14em; text-transform:uppercase; font-size:12px; color: rgba(255,255,255,0.75); margin:0 0 12px; }
.eo-h1{font-size:42px;
  line-height:1.05;
  margin:0 0 10px;
  color:#ffffff;
  font-weight:700; }
@media (max-width: 900px){ .eo-h1{ font-size:34px; } }

.eo-subhead{
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  font-weight:500;
}

.eo-lead{ font-size:16px; line-height:1.6; opacity:.9; margin:0 0 18px; max-width: 58ch; }
.eo-cta{ display:flex; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
.eo-meta{ display:flex; gap:10px; flex-wrap:wrap; font-size:14px; opacity:.85; }
.eo-meta a{ color:#fff; text-decoration:underline; }
.eo-dot{ opacity:.6; }

.eo-hero__media{
  background: linear-gradient(180deg, #0f172a, #0b1220);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--eo-radius);
  overflow:hidden;
  box-shadow: var(--eo-shadow);
  opacity:0.95;
  max-width: 480px;
  margin-left: auto;
}

.eo-hero__media img{
  width:100%;
  height:100%;
  display:block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}


.eo-h2{ font-size:28px; margin:0 0 12px; }
.eo-h3{ font-size:18px; margin:0 0 8px; }
.eo-body{ color:var(--eo-text); line-height:1.7; margin:0 0 14px; }
.eo-muted{ color:var(--eo-muted); }

.eo-card{
  background:#fff;
  border:1px solid var(--eo-line);
  border-radius: var(--eo-radius);
  padding:18px;
  box-shadow: 0 6px 18px rgba(2,6,23,.05);
}
.eo-card .eo-body{
  margin-bottom: 0;
}

.eo-card--soft{ background: #fff; }
.eo-card ul.eo-list{
  margin-top: 10px;
}

.eo-list{ margin:0 0 18px; padding-left:18px; color:var(--eo-text); }
.eo-list{
  margin: 10px 0 0;
}
.eo-list li{ margin:8px 0; }


.eo-badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.eo-badge{
  border:1px solid var(--eo-line);
  padding:8px 10px;
  border-radius: 999px;
  font-size:13px;
  color:var(--eo-muted);
  background:#fff;
}

.eo-cards{ display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; margin-top:14px; }
@media (max-width: 1100px){ .eo-cards{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .eo-cards{ grid-template-columns: 1fr; } }

.eo-headline-row{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; }

.eo-projects{ display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top:16px; }
@media (max-width: 900px){ .eo-projects{ grid-template-columns:1fr; } }

.eo-link{ color:var(--eo-accent); text-decoration:none; font-weight:600; }
.eo-link:hover{ text-decoration:underline; }

.eo-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
}
.eo-btn--primary{
  background:var(--eo-accent);
  color:#fff;
}
.eo-btn--primary:hover{ background:var(--eo-accent-2); }
.eo-btn--ghost{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,.35);
  color:#ffffff;
}
.eo-btn--ghost:hover{ border-color: rgba(255,255,255,.35); }

.eo-code{
  display:block;
  background:#0b1220;
  color:#fff;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.08);
  overflow:auto;
}

/* Force ghost button to be visible in normal state (overrides theme styles) */
.eo-hero .eo-btn.eo-btn--ghost,
.eo-hero .eo-btn.eo-btn--ghost:visited{
  color: #ffffff !important;
  background: rgba(255,255,255,0.10) !important;
  border-color: rgba(255,255,255,0.35) !important;
}

/* Keep hover slightly stronger */
.eo-hero .eo-btn.eo-btn--ghost:hover{
  background: rgba(255,255,255,0.16) !important;
  border-color: rgba(255,255,255,0.45) !important;
  color: #ffffff !important;
}

.eo-hero a.eo-btn.eo-btn--ghost{
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure hero copy + buttons sit above the hero media card and any overlays */
.eo-hero__inner { position: relative; }

.eo-hero__copy { 
  position: relative; 
  z-index: 20; 
}

.eo-cta { 
  position: relative; 
  z-index: 30; 
}

.eo-hero__media { 
  position: relative; 
  z-index: 5; 
}

/* ===== HERO CTA (clean, definitive) ===== */
.eo-hero .eo-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin: 0 0 14px;
  overflow: visible;
}

.eo-hero .eo-cta__item{
  display:inline-flex;
}

/* Force ALL hero CTA links to render as buttons, regardless of theme rules */
.eo-hero .eo-cta .eo-cta__item > a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:12px 16px !important;
  border-radius:12px !important;

  background: var(--eo-accent) !important;
  color:#fff !important;

  border:1px solid transparent !important;
  text-decoration:none !important;

  font-weight:700 !important;
  font-size:14px !important;

  opacity:1 !important;
  visibility:visible !important;
  height:auto !important;
  max-height:none !important;
}

.eo-hero .eo-cta .eo-cta__item > a:hover{
  background: var(--eo-accent-2) !important;
  color:#fff !important;
}

/* =========================
   Contact section polish
   ========================= */

/* Tighten vertical rhythm */
#contact .eo-body{
  max-width: 56ch;
}

/* CTA buttons layout */
#contact .eo-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* Ensure buttons align nicely on small screens */
#contact .eo-btn{
  min-width: 160px;
}

/* Right-hand card balance */
#contact .eo-card{
  padding: 22px;
}

/* Mobile adjustments */
@media (max-width: 768px){
  #contact .eo-body{
    max-width: 100%;
  }

  #contact .eo-btn{
    width: 100%;
  }

  #contact .eo-cta{
    gap: 10px;
  }
}
