/* ============================================================
   POLARIS FINANCIAL — shared styles
   Palette drawn from the logo: deep midnight navy + brushed gold
   ============================================================ */

:root {
  --ink:        #060C1E;   /* page background — matches logo */
  --panel:      #0C152E;   /* raised surfaces */
  --panel-2:    #111D3D;   /* hover / deeper surfaces */
  --line:       rgba(201, 166, 90, 0.22);
  --gold:       #C9A65A;
  --gold-bright:#E9CF8D;
  --ivory:      #F2EDE0;
  --muted:      #9AA6BD;
  --max:        1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Marcellus", "Georgia", serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ivory);
}

img { max-width: 100%; display: block; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow + star divider (signature motif) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before, .eyebrow.centered::after {
  content: "";
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.centered::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.star-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 8px 0 22px;
}
.star-divider::before, .star-divider::after {
  content: ""; height: 1px; width: min(160px, 22vw);
  background: linear-gradient(90deg, transparent, var(--line));
}
.star-divider::after {
  background: linear-gradient(90deg, var(--line), transparent);
}
.star-divider svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 12, 30, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--max); margin: 0 auto;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 52px; height: 52px;
}
.brand-name {
  font-family: "Marcellus", serif;
  font-size: 20px; letter-spacing: 0.22em;
  color: var(--ivory); text-transform: uppercase;
}
.brand-name span { color: var(--gold); font-size: 12px; letter-spacing: 0.4em; display: block; }

.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: 1px solid var(--gold);
}
.btn-gold {
  background: linear-gradient(135deg, #D8B76B, var(--gold) 55%, #A9863F);
  color: #10182E;
}
.btn-gold:hover { background: var(--gold-bright); color: #10182E; }
.btn-ghost { background: transparent; color: var(--gold-bright); }
.btn-ghost:hover { background: rgba(201, 166, 90, 0.12); color: var(--gold-bright); }
.btn-sm { padding: 10px 22px; font-size: 12.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 96px 24px 110px;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(201, 166, 90, 0.14), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(17, 29, 61, 0.9), transparent 70%),
    var(--ink);
}
.hero-compass {
  position: absolute; inset: 0; margin: auto;
  width: 760px; height: 760px;
  opacity: 0.09; pointer-events: none;
  animation: slow-spin 240s linear infinite;
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .hero-compass { animation: none; }
  html { scroll-behavior: auto; }
}
.hero .logo-lg {
  width: 168px; height: 168px; margin: 0 auto 30px;
  filter: drop-shadow(0 0 42px rgba(201, 166, 90, 0.28));
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.15;
  max-width: 820px; margin: 0 auto 18px;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p.lede {
  max-width: 640px; margin: 0 auto 38px;
  color: var(--muted); font-size: 19px;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.alt { background: linear-gradient(180deg, var(--panel) 0%, var(--ink) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 6px; }
.section-head p { color: var(--muted); }

/* ---------- Mission / bio ---------- */
.mission-grid {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center;
}
.mission-grid img {
  width: min(340px, 80%); margin: 0 auto;
}
.mission-copy h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 10px 0 18px; }
.mission-copy p { color: var(--muted); margin-bottom: 16px; }
.mission-statement {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 22px;
  margin: 26px 0;
  font-family: "Marcellus", serif;
  font-size: 20px; line-height: 1.6;
  color: var(--ivory);
}
.mission-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.mission-stats div strong {
  display: block; font-family: "Marcellus", serif;
  font-size: 30px; color: var(--gold-bright); letter-spacing: 0.02em;
}
.mission-stats div span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px 30px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.product-card:hover {
  border-color: rgba(201, 166, 90, 0.55);
  background: var(--panel-2);
  transform: translateY(-3px);
}
.product-card .p-icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--gold-bright);
}
.product-card h3 { font-size: 21px; margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.product-card ul { list-style: none; }
.product-card li {
  color: var(--ivory); font-size: 14.5px;
  padding: 5px 0 5px 20px; position: relative;
}
.product-card li::before {
  content: "✦"; position: absolute; left: 0;
  color: var(--gold); font-size: 11px; top: 8px;
}

/* ---------- Carriers ---------- */
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.carrier-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 16px;
  text-align: center;
  font-family: "Marcellus", serif;
  font-size: 16.5px; letter-spacing: 0.06em;
  color: var(--ivory);
  transition: border-color 0.25s, color 0.25s;
}
.carrier-tile:hover { border-color: rgba(201, 166, 90, 0.55); color: var(--gold-bright); }
.carrier-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(201, 166, 90, 0.12), transparent 70%),
    var(--panel);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; }

/* ---------- Forms (quote + contact pages) ---------- */
.form-page {
  padding: 70px 24px 100px;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(201, 166, 90, 0.1), transparent 60%),
    var(--ink);
}
.form-shell {
  max-width: 760px; margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px 46px 54px;
}
.form-shell .section-head { margin-bottom: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid rgba(154, 166, 189, 0.28);
  border-radius: 3px;
  color: var(--ivory);
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  padding: 13px 14px;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
}
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23C9A65A' stroke-width='1.6' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
textarea { resize: vertical; min-height: 130px; }
.form-actions { margin-top: 30px; text-align: center; }
.form-footnote { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 54px 24px 40px;
  background: var(--ink);
}
.foot-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.foot-grid h4 {
  font-family: "Marcellus", serif; font-size: 15px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.foot-grid p, .foot-grid a { color: var(--muted); font-size: 15px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.foot-brand img { width: 46px; height: 46px; }
.legal {
  max-width: var(--max); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(154, 166, 189, 0.12);
  color: rgba(154, 166, 189, 0.65); font-size: 12.5px; text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { margin-left: 0; gap: 16px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .form-shell { padding: 34px 22px 42px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 20px 80px; }
}
