/* =========================================================================
 * pbx-template.css
 * -------------------------------------------------------------------------
 * Verbatim copy of `web-template/assets/styles.css` — imported by portal
 * pages that need to render in the new marketing/template look (currently
 * public/login.html). Keeps its own CSS custom properties (--orange,
 * --navy, …) so it does not collide with the app's existing brand tokens
 * defined in pbx-brand.css (--pbx-orange, --pbx-teal, …).
 * ========================================================================= */

/* PBX Guru — shared styles */
:root {
  --orange: #F37021;
  --orange-600: #E25A0F;
  --orange-50: #FFF3EA;
  --blue: #1B9CD8;
  --blue-600: #0F7FB5;
  --blue-50: #EAF6FC;
  --navy: #0B1B2C;
  --navy-700: #122B45;
  --navy-500: #2E4866;
  --ink: #14202E;
  --muted: #5C6B7D;
  --line: #E6E9EE;
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --soft: #F4F1EC;
  --green: #1E9E6A;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,27,44,.06), 0 1px 1px rgba(11,27,44,.04);
  --shadow-md: 0 8px 24px -8px rgba(11,27,44,.18), 0 2px 6px rgba(11,27,44,.06);
  --shadow-lg: 0 24px 60px -20px rgba(11,27,44,.25), 0 4px 16px rgba(11,27,44,.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--orange); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

h1, h2, h3, h4 { font-family: var(--font); color: var(--navy); margin: 0 0 .4em; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 600; }
p { color: var(--muted); margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
  padding: 6px 12px; background: var(--orange-50); border-radius: 999px;
}
.eyebrow.blue { color: var(--blue-600); background: var(--blue-50); }

.lead { font-size: 19px; color: var(--navy-500); max-width: 640px; line-height: 1.55; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy); letter-spacing: -.02em; font-size: 20px; }
.brand-text span { color: var(--orange); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  color: var(--navy-500); font-weight: 600; font-size: 14px;
  padding: 10px 14px; border-radius: 10px; transition: .15s;
}
.nav-link:hover { background: var(--soft); color: var(--navy); }
.nav-link.active { color: var(--navy); background: var(--soft); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 18px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: white;
  box-shadow: 0 6px 18px -6px rgba(243,112,33,.55);
}
.btn-primary:hover { background: var(--orange-600); color: white; transform: translateY(-1px); }
.btn-secondary {
  background: var(--navy); color: white;
}
.btn-secondary:hover { background: var(--navy-700); color: white; }
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--line);
}
.btn-ghost:hover { background: white; border-color: var(--navy); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-600); color: white; }
.btn-lg { padding: 16px 24px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #D5DAE2; }

/* Footer */
.site-footer {
  background: var(--navy); color: #B7C2D1;
  padding: 80px 0 32px; margin-top: 80px;
}
.site-footer h4 { color: white; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: #B7C2D1; display: block; padding: 6px 0; font-size: 14px; }
.site-footer a:hover { color: var(--orange); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: #7A899B;
}
.footer-brand { color: white; font-weight: 800; font-size: 20px; }
.footer-brand img { height: 44px; margin-bottom: 12px; filter: brightness(1.05); }

/* Hero common */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 120px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* Decorative blobs */
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .25;
  pointer-events: none;
}

/* Pill / badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--soft); color: var(--navy-500);
}
.pill.green { background: #E4F5EE; color: var(--green); }
.pill.orange { background: var(--orange-50); color: var(--orange-600); }
.pill.blue { background: var(--blue-50); color: var(--blue-600); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: white;
  color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-50);
}

/* Section header */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 17px; color: var(--navy-500); }

/* Subtle dot grid */
.dotgrid {
  background-image: radial-gradient(circle, rgba(11,27,44,.07) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Utility */
.flex { display: flex; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.center { display: flex; align-items: center; justify-content: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }

/* Animation */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes pulse-ring { 0%{transform:scale(.85);opacity:.6} 100%{transform:scale(1.6);opacity:0} }
@keyframes spin-slow { to{ transform: rotate(360deg) } }
.float { animation: float 6s ease-in-out infinite; }
