/* ==========================================================================
   eSIM.org — custom theme on top of Bootstrap 5
   ========================================================================== */

:root {
  --brand: #2563eb;          /* electric blue      */
  --brand-dark: #1e3a8a;     /* deep navy          */
  --brand-darker: #0f2557;
  --accent: #10b981;         /* connectivity green */
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #f8fafc;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
}

/* Offset anchored sections so the sticky navbar doesn't cover them */
:target { scroll-margin-top: 80px; }

/* ---- Utilities -------------------------------------------------------- */
.text-brand   { color: var(--brand) !important; }
.text-accent  { color: var(--accent) !important; }
.bg-brand     { background-color: var(--brand) !important; }
.bg-ink       { background-color: var(--ink) !important; }
.bg-surface   { background-color: var(--surface) !important; }

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-darker);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 37, 99, 235;
  font-weight: 600;
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  font-weight: 600;
}

/* ---- Navbar ----------------------------------------------------------- */
.navbar-brand img { height: 40px; width: auto; }
.navbar-brand span { font-weight: 800; letter-spacing: -0.02em; }
.navbar .nav-link { font-weight: 500; }
.navbar .nav-link.active { color: var(--brand) !important; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(16,185,129,0.18), transparent 60%),
              linear-gradient(160deg, var(--brand-darker) 0%, var(--brand-dark) 55%, var(--brand) 100%);
  color: #fff;
  overflow: hidden;
}
.hero h1 { font-weight: 800; letter-spacing: -0.03em; }
.hero .lead { color: rgba(255,255,255,0.85); }
.hero-logo {
  max-width: 260px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

/* ---- Feature cards ---------------------------------------------------- */
.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
}
.feature-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(37,99,235,0.10);
  color: var(--brand);
  font-size: 1.4rem;
}

/* ---- Vision band ------------------------------------------------------ */
.vision {
  background: linear-gradient(160deg, var(--ink) 0%, #16233f 100%);
  color: #fff;
}

/* ---- Legal / long-form pages ----------------------------------------- */
.legal h2 { font-weight: 700; margin-top: 2rem; scroll-margin-top: 90px; }
.legal h1 { font-weight: 800; letter-spacing: -0.02em; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.page-header {
  background: var(--surface);
  border-bottom: 1px solid #e2e8f0;
}

/* ---- FAQ -------------------------------------------------------------- */
.accordion-button:not(.collapsed) {
  color: var(--brand);
  background-color: rgba(37,99,235,0.06);
}
.accordion-button:focus {
  box-shadow: 0 0 0 .25rem rgba(37,99,235,0.20);
}

/* ---- Footer ----------------------------------------------------------- */
footer.site-footer { background: var(--ink); color: #cbd5e1; }
footer.site-footer a { color: #cbd5e1; text-decoration: none; }
footer.site-footer a:hover { color: #fff; text-decoration: underline; }
footer.site-footer .footer-logo { height: 36px; }

/* ---- Get the App / store badges -------------------------------------- */
.get-app { background: var(--surface); border-top: 1px solid #e2e8f0; }
.app-store-links a {
  display: inline-flex;
  transition: transform .15s ease, opacity .15s ease;
}
.app-store-links a:hover { transform: translateY(-2px); opacity: .9; }
.app-store-links img {
  height: 54px;
  width: auto;
  display: block;
}

/* ---- Cookie consent banner ------------------------------------------- */
#cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 1080;
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(15,23,42,0.25);
  padding: 1.25rem 1.5rem;
  display: none;
}
#cookie-banner.show { display: block; }

/* ---- Misc ------------------------------------------------------------- */
.response-note {
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.30);
  border-radius: .75rem;
}
