/* ─────────────────────────────────────────────
   PUBLIC LAYOUT — nav, footer, section containers, CTA banner
   Loaded on every public-facing page (welcome, pricing, about, etc.)
   Requires: base.css
───────────────────────────────────────────── */

html { scroll-behavior: smooth; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img  { width: 36px; height: 36px; border-radius: 8px; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; flex-wrap: nowrap; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-register {
  padding: 8px 16px;
  border-radius: 8px;
  border: 2px solid var(--primary);
  font-weight: 600;
  white-space: nowrap;
  color: var(--primary) !important;
  transition: background .2s;
}
.nav-register:hover { background: var(--primary-light); color: var(--primary) !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  position: absolute;
  left: 4px;
  transition: .3s;
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border: none; }
.mobile-lang { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-lang a, .mobile-lang button {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0;
  border: none;
}
.mobile-lang a.active, .mobile-lang button.active { color: var(--primary); font-weight: 700; }
.mobile-lang form   { display: inline; margin: 0; padding: 0; }
.mobile-lang button { background: none; cursor: pointer; font-family: inherit; }

/* ─── SECTION LAYOUT ─── */
.section { padding: 80px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .tag { margin-bottom: 14px; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p  { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  padding: 80px 20px;
  text-align: center;
}
.cta-banner h2 { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 500px;
  margin: 0 auto 28px;
}

/* ─── FOOTER ─── */
.footer { background: var(--darker); color: #94a3b8; padding: 50px 20px 30px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p  { font-size: .9rem; line-height: 1.6; }
.footer-col h5 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.footer-col a { display: block; font-size: .9rem; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: .825rem; }
}
@media (max-width: 1100px) {
  .nav-links  { display: none; }
  .hamburger  { display: block; }
}
@media (max-width: 768px) {
  .section    { padding: 60px 16px; }
  .section-header h2 { font-size: 1.6rem; }
  .cta-banner h2     { font-size: 1.7rem; }
  .footer-inner      { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom     { flex-direction: column; gap: 8px; text-align: center; }
}

/* ─── Shared static-page hero (legal, trust, resources, etc.) ── */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 60%, #0d9488 100%);
    padding: 110px 20px 56px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(6,182,212,.15) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}
.page-hero-eyebrow {
    display: inline-block;
    background: rgba(13,148,136,.35);
    color: #5eead4;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.2;
}
.page-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,.72);
    margin: 0 auto;
    line-height: 1.65;
    max-width: 520px;
}
@media (max-width: 640px) {
    .page-hero { padding: 90px 20px 44px; }
    .page-hero h1 { font-size: 1.7rem; }
}
