/* =========================
   Public Stylesheet (styles.css)
   Scope: Public-facing pages only (index.html, services.html, etc.)
========================= */

/* Color vars */
:root {
  --brand-indigo-50: #eef2ff;
  --brand-indigo-600: #4f46e5;
  --brand-indigo-700: #4338ca;
  --brand-amber-400: #f59e0b;
  --stone-50: #f8fafc;
  --stone-100: #f1f5f9;
  --stone-200: #e2e8f0;
  --stone-300: #cbd5e1;
  --stone-600: #475569;
  --stone-700: #334155;
  --white: #ffffff;
  --black: #000000;
}

/* Base */
html,
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Navigation (public)
========================= */
.nav-enhanced {
  backdrop-filter: saturate(150%) blur(8px);
  /* Lighten the nav bar: softer color and lower opacity */
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.60) 0%, rgba(15, 23, 42, 0.50) 60%, rgba(15, 23, 42, 0.30) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-enhanced a {
  text-decoration: none;
  transition: color 180ms ease;
}

/* Mobile menu panel (if you render one dynamically) */
.nav-panel {
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================
   Hero
========================= */

.hero-index {
  background-image: url('../images/hero_section_img.png');
}

.hero-services {
  background-image: url('../images/hero_section_img.png');
}

.hero-bg {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Lighten overlays over hero images for a brighter look */
  background: radial-gradient(1200px 600px at 50% -10%, rgba(79, 70, 229, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.25) 0%, rgba(2, 6, 23, 0.40) 60%, rgba(2, 6, 23, 0.50) 100%);
  pointer-events: none;
}

.text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* =========================
   Cards & sections
========================= */
.card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}

.card:hover {
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}

.section-light {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 1rem;
}

/* =========================
   Buttons (optional helpers for public pages)
========================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.25rem;
  border-radius: .75rem;
  background: var(--brand-amber-400);
  color: var(--white);
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245, 158, 11, .35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* =========================
   FAQ Accordion (index.html)
========================= */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: .75rem;
  border: 1px solid var(--stone-200);
  background: var(--white);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.accordion-header:hover {
  background: var(--stone-50);
  border-color: var(--stone-300);
}

.accordion-icon {
  transition: transform 200ms ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  transition: grid-template-rows 250ms ease, opacity 250ms ease, margin-top 200ms ease;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
}

.accordion-content[data-open="true"] {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: .5rem;
}

.accordion-content>* {
  min-height: 0;
  /* allow the content to collapse regardless of element type */
}

/* =========================
   Footer
========================= */
.site-footer {
  border-top: 1px solid var(--stone-200);
  background: var(--white);
}

/* Images */
.img-rounded {
  border-radius: 1rem;
}

.img-ring {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 6px rgba(79, 70, 229, .35);
}

/* Utilities for spacing/containers if you prefer classnames over Tailwind for a few places */
.container-narrow {
  max-width: 56rem;
  margin: 0 auto;
  padding-inline: 1rem;
}

.container-wide {
  max-width: 80rem;
  margin: 0 auto;
  padding-inline: 1rem;
}

/* Hide elements (non-Tailwind usage) */
.is-hidden {
  display: none !important;
}

/* ================================
   RESPONSIVE 3-STEP PORTAL (MODAL)
   Goal: never exceed viewport; scroll inside the modal body.
   Used by: seattle.html (#portal-overlay)
================================ */

.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.60);
}

/* controlled via JS by toggling .hidden */
.portal-overlay.hidden {
  display: none;
}

.portal-container {
  width: min(980px, 100%);
  max-height: min(92vh, 900px);
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.35);
  display: flex;
  flex-direction: column;
}

.portal-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.10);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #f8fafc 100%);
}

.portal-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-size: 0.72rem;
  color: rgba(79, 70, 229, 0.95);
  margin: 0;
}

.portal-title {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.portal-subtitle {
  margin: 0.25rem 0 0;
  color: #475569;
  font-size: 0.95rem;
}

.portal-close {
  border: 0;
  background: transparent;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #334155;
}

.portal-close:hover {
  background: rgba(15, 23, 42, 0.06);
}

.portal-stepper {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.portal-step {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  color: #64748b;
  user-select: none;
}

.portal-step.is-active {
  color: #0f172a;
  border-color: rgba(79, 70, 229, 0.28);
  background: rgba(79, 70, 229, 0.06);
}

.portal-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(79, 70, 229, 0.12);
  color: #4338ca;
  font-size: 0.8rem;
}

.portal-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem;
}

.portal-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.90);
  background: #fff;
  padding: 0.75rem 1.25rem;
}

.portal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Small screens: maximize usable space */
@media (max-width: 640px) {
  .portal-overlay {
    padding: 8px;
  }

  .portal-container {
    max-height: 94vh;
    border-radius: 18px;
  }

  .portal-header {
    padding: 14px 14px 10px;
  }

  .portal-body {
    padding: 14px;
  }

  .portal-footer {
    padding: 10px 14px;
  }

  .portal-step {
    font-size: 0.82rem;
    padding: 0.6rem 0.6rem;
  }
}