/* ============================================================
   Calisgroup site styles
   Neutral navy / light-blue shell. Each brand card carries its
   own palette via inline --card-bg / --card-accent custom props.
   Hand-written, single stylesheet. No build step.
   ============================================================ */

:root {
  /* Calisgroup neutral palette */
  --navy: #0F2942;
  --navy-deep: #0A1E33;
  --blue: #2E6FB0;
  --blue-light: #5B9BD5;
  --ink: #16202B;
  --muted: #5B6B7A;
  --border: #E2E8ED;
  --surface: #FFFFFF;
  --bg: #F6F9FC;
  --bg-tint: #EDF3F9;

  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 41, 66, 0.06), 0 8px 24px rgba(15, 41, 66, 0.08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 0.5em; }
h3 { font-size: 1.2rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.6em;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue-light); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 249, 252, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; }
.nav-brand:hover { text-decoration: none; }
.nav-brand-logo { display: block; height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }
.section-header { max-width: 62ch; margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero .container { max-width: 900px; }
.hero h1 { color: var(--navy); }
.hero-sub { font-size: 1.25rem; color: var(--muted); max-width: 60ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Brand cards ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.brand-card {
  --card-bg: var(--navy);
  --card-accent: var(--blue-light);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 260px;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(15, 41, 66, 0.22); text-decoration: none; }
.brand-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--card-accent);
  opacity: 0.22;
}
.brand-card-name { font-size: 1.7rem; font-weight: 700; color: #fff; margin-bottom: 6px; letter-spacing: -0.02em; }
.brand-card-tagline { font-size: 1.05rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 16px; }
.brand-card-desc { font-size: 0.98rem; color: rgba(255, 255, 255, 0.72); margin-bottom: auto; }
.brand-card-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid var(--card-accent);
  padding-bottom: 3px;
  align-self: flex-start;
}
.brand-card:hover .brand-card-cta { gap: 12px; }
.brand-card-pill {
  position: absolute;
  top: 22px; right: 24px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Content / prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Feature / trust grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.mini-card h3 { font-size: 1.02rem; color: var(--navy); }
.mini-card p { font-size: 0.94rem; color: var(--muted); margin: 0; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.trust-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Brand-scoped page accent ---------- */
.brand-page {
  --accent: var(--blue);
  --accent-bg: var(--navy);
}
.brand-hero {
  background: var(--accent-bg);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 44px;
}
.brand-hero .eyebrow { color: rgba(255, 255, 255, 0.75); }
.brand-hero h1 { color: #fff; }
.brand-hero p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; max-width: 60ch; }
.brand-hero .btn-primary { background: #fff; color: var(--accent-bg); }
.brand-hero .btn-primary:hover { background: rgba(255, 255, 255, 0.88); }

/* Configurator hero: extra breathing room above the card, and trust chips
   restyled as labels (not buttons) so the white CTA pill stays the one action. */
.configurator-page .brand-hero { margin-top: 32px; }
.configurator-page .brand-hero .trust-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.configurator-page .brand-hero .trust-chip::before {
  content: "\2713";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 700;
}

.note {
  background: #FFF8E6;
  border: 1px solid #F0D98A;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.92rem;
  color: #6b5300;
  margin: 20px 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 24px 34px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-name { font-size: 1.2rem; font-weight: 700; }
.footer-tagline { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; max-width: 40ch; margin-top: 8px; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 16px; }
  .nav-links a:first-child { display: none; }
}
