/* ===========================================================
   Aaron Rains Agency — shared styles
   Palette: navy (trust) + aged bronze accent (warmth) + off-white
   =========================================================== */

:root {
  --navy-900: #0b2545;
  --navy-800: #123a68;
  --navy-700: #1a4d8f;
  --accent-500: #a97d3f;
  --accent-600: #8f6830;
  --ink: #1c2530;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --paper-soft: #f6f7fb;
  --border: #e2e6ee;
  --success: #1d7a4c;
  --success-bg: #e9f7f0;
  --error: #b3261e;
  --error-bg: #fdecea;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --max-width: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--accent-600); }

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 0.5em;
}

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #dbe6f4;
  font-size: 0.8rem;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.topbar a { color: var(--accent-500); font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .sep { margin: 0 8px; color: #4f6a8c; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 20px;
}

.header-right { display: flex; align-items: center; gap: 22px; }
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  text-decoration: none;
}
.header-phone .label { font-size: 0.72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.header-phone .number { font-weight: 800; color: var(--navy-900); font-size: 1rem; }
@media (max-width: 780px) { .header-phone { display: none; } }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  text-decoration: none;
}

.brand .brand-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: block;
}

.brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand .brand-text .name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}
.brand .brand-text .tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-600);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a[aria-current="page"] { color: var(--navy-800); }

.nav-cta {
  background: var(--navy-900);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--navy-800); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-cta { width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(11,37,69,0.94) 0%, rgba(11,37,69,0.88) 55%, rgba(11,37,69,0.97) 100%),
    radial-gradient(ellipse at 20% 100%, rgba(169,125,63,0.18), transparent 55%),
    var(--navy-900);
  color: #fff;
  padding: 56px 0 96px;
  overflow: hidden;
}

/* Mount Shasta silhouette — a regional touch standing in for a real office photo */
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 210 L180 90 L260 150 L340 40 L420 130 L520 20 L620 140 L700 70 L800 180 L900 100 L1000 190 L1080 120 L1200 210 L1200 300 Z' fill='%23123a68' fill-opacity='0.55'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero h1 { color: #fff; }
.hero p.lead { color: #cfe0f5; font-size: 1.1rem; max-width: 46ch; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(169,125,63,0.4);
  color: var(--accent-500);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.trust-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 30px;
}
.trust-row .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: #cfe0f5;
}
.trust-row .trust-item::before {
  content: "✓";
  color: var(--accent-500);
  font-weight: 800;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-buttons .btn { width: auto; padding: 15px 26px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 15px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.06); }

/* ---------- Lead form card ---------- */
.lead-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border-top: 4px solid var(--accent-500);
}
.lead-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.lead-card .sub { font-size: 0.9rem; margin-bottom: 20px; }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.trust-badges span::before { content: "🔒"; font-size: 0.85rem; }
.trust-badges span.tb-private::before { content: "🤝"; }
.trust-badges span.tb-licensed::before { content: "✔️"; }

.form-row { margin-bottom: 16px; }
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy-900);
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--paper-soft);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy-700);
  outline-offset: 1px;
}
textarea { min-height: 80px; resize: vertical; }

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.checkbox-row .fine-print {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.checkbox-row .fine-print a { color: var(--navy-700); }

.btn {
  display: inline-block;
  background: var(--accent-500);
  color: var(--navy-900);
  font-weight: 800;
  border: none;
  padding: 13px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent-600); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: var(--success-bg); color: var(--success); }
.form-status.err { background: var(--error-bg); color: var(--error); }

.required-note { font-size: 0.75rem; color: var(--ink-soft); margin-top: -8px; margin-bottom: 14px; }

/* ---------- Spotlight card (specialty coverage callouts) ---------- */
*[id] { scroll-margin-top: 110px; }

.spotlight-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
}
.spotlight-card .icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.spotlight-card .content h3 { margin-top: 0; margin-bottom: 6px; }
.spotlight-card .content p { margin: 0; }
.spotlight-card .content a { font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  .spotlight-card { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--paper-soft); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin: 0 auto; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* ---------- Agent photo components ---------- */
.agent-mini-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 24px 10px 10px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
  margin: -20px auto 56px;
  position: relative;
}
.agent-mini-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-500);
  flex-shrink: 0;
}
.agent-mini-card .info strong { display: block; color: var(--navy-900); font-size: 0.95rem; }
.agent-mini-card .info span { font-size: 0.8rem; color: var(--ink-soft); }

.about-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 56px;
}
@media (max-width: 780px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero .about-photo { max-width: 320px; margin: 0 auto; }
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent-500);
}
.about-photo img { width: 100%; display: block; }

.casual-aside {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.casual-aside img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}
.casual-aside p { margin: 0; font-size: 0.92rem; }

/* ---------- California risk section ---------- */
.risk-section {
  background: var(--navy-900);
  color: #fff;
}
.risk-section .section-head .eyebrow { color: var(--accent-500); }
.risk-section .section-head h2 { color: #fff; }
.risk-section .section-head p { color: #cfe0f5; }
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .risk-grid { grid-template-columns: 1fr; } }
.risk-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px;
}
.risk-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-500);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.risk-card h3 { color: #fff; }
.risk-card p { color: #cfe0f5; margin: 0; }

/* ---------- Why us ---------- */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 780px) { .why-us-grid { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 16px; }
.why-item .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--accent-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.why-item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.why-item p { margin: 0; }

/* ---------- Reviews (template — populate with real client reviews) ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review-card .stars { color: var(--accent-500); letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { font-style: italic; }
.review-card .who { font-weight: 700; color: var(--navy-900); font-style: normal; font-size: 0.9rem; margin: 0; }
.reviews-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--paper-soft);
}

.cta-band {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #cfe0f5; margin: 0; }
.cta-band .btn { width: auto; padding: 14px 26px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info .item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.contact-info .item .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Legal pages ---------- */
.legal main {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h2 { margin-top: 2em; }
.legal ul { color: var(--ink-soft); }
.legal .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 2em; }
.callout {
  background: var(--paper-soft);
  border-left: 4px solid var(--accent-500);
  padding: 16px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin: 1.5em 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #cfe0f5;
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer a { color: #cfe0f5; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent-500); }
.site-footer .footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.8rem;
  color: #9db3cf;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
