/* SenaPBX — hand-coded site styles */
:root {
  --navy: #0e2a47;
  --navy-2: #123a5f;
  --blue: #2f80ed;
  --blue-dark: #1a5fc4;
  --cyan: #38b6ff;
  --bg: #f5f8fc;
  --ink: #1a2b3d;
  --muted: #5b6b7c;
  --line: #e3eaf2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 16px 40px rgba(14, 42, 71, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.brand svg { flex-shrink: 0; }
.brand .dot { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a { color: var(--navy); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-cta { display: inline-block; background: var(--blue); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-weight: 600; }
.nav-cta:hover { background: var(--blue-dark); }

/* Dropdown nav */
.nav-links li { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; }
.has-dropdown > a::after { content: "\25BE"; margin-left: 6px; font-size: 0.6em; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  z-index: 200;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li { display: block !important; margin: 0; }
.dropdown a { display: block; padding: 9px 16px; font-size: 0.9rem; color: var(--navy); white-space: nowrap; }
.dropdown a:hover { background: #eef6ff; color: var(--blue); }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #1a4a7d 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,182,255,0.35), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--cyan); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 14px; }
.hero h1 { font-size: 2.9rem; line-height: 1.12; max-width: 720px; margin-bottom: 20px; font-weight: 800; }
.hero p.lead { font-size: 1.18rem; color: #c9d9ec; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 9px; font-weight: 600; font-size: 1rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--blue); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 10px; }
.section-head h2 { font-size: 2rem; color: var(--navy); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: #eaf3ff; color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Alternating band */
.band { background: var(--bg); }

/* ---------- Pricing ---------- */
.pricing-card { text-align: center; position: relative; }
.pricing-card .price { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin: 14px 0 4px; }
.pricing-card .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pricing-card .per { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.pricing-card ul { list-style: none; text-align: left; margin: 0 0 24px; }
.pricing-card ul li { padding: 7px 0; color: var(--ink); font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.pricing-card ul li:last-child { border-bottom: 0; }
.pricing-card.highlight { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.pricing-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; }

/* ---------- Contact ---------- */
.contact-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--font); font-size: 0.95rem; color: var(--ink); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,128,237,0.15); }
.contact-form .field { margin-bottom: 18px; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.optin-box { background: #eef6ff; border: 1px solid #cfe4ff; border-radius: 10px; padding: 14px 16px; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.optin-box label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.85rem; color: var(--ink); }
.optin-box input[type="checkbox"] { width: auto; margin-top: 3px; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { color: var(--navy); font-size: 1.6rem; margin: 34px 0 12px; }
.legal h3 { color: var(--navy); font-size: 1.15rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.legal .highlight { background: #eef6ff; border-left: 3px solid var(--blue); padding: 12px 16px; border-radius: 0 8px 8px 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 56px 0 64px;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { color: #c9d9ec; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c9d9ec; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #c9d9ec; font-size: 0.9rem; }
.site-footer a:hover { color: var(--cyan); }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; color: #a9bdd4; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
.footer-bottom a { color: #c9d9ec; }

/* ---------- Photos / imagery ---------- */
.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Two-column hero */
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 48px; align-items: center; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.22); z-index: 0;
}
.hero-media .img-frame { position: relative; z-index: 1; aspect-ratio: 4/3; }

/* Inline photo with caption */
.photo { margin: 30px 0; }
.photo .img-frame { aspect-ratio: 16/9; }
.photo figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Split: image + text side by side */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .img-frame { aspect-ratio: 4/3; }
.split .eyebrow { color: var(--blue); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 10px; }
.split h2 { font-size: 1.9rem; color: var(--navy); margin-bottom: 14px; }
.split p { color: var(--muted); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-block; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; }
.chip-stop { background: #fdeaea; color: #c0392b; border: 1px solid #f3c1c1; }
.chip-help { background: #eaf3ff; color: #1a5fc4; border: 1px solid #cfe4ff; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.card .icon.chip-icon { margin-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 24px 20px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { display: block !important; margin: 0; }
  .nav-links > li > a { display: block; padding: 13px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-cta-li > .nav-cta { display: block; text-align: center; margin-top: 14px; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; min-width: 0;
    padding: 0 0 4px 18px; margin-top: 0;
  }
  .dropdown a { padding: 10px 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .dropdown li:last-child a { border-bottom: 0; }
}
