/* ══════════════════════════════════════════════════════
   REVEILLE INSURANCE GROUP — SHARED SITE STYLESHEET
   Linked on every page via: <link rel="stylesheet" href="/css/site.css">
   Contains only TRULY shared rules: color/font variables,
   the fixed header, the footer, and the small set of utility
   classes (.container, .section-eyebrow) used across pages.
   Page-specific layout (hero content, contact form, resource
   cards, etc.) stays inline in each page's own <style> block.
   ══════════════════════════════════════════════════════ */

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

:root {
  --navy:      #005581;
  --navy-d:    #003d5e;
  --accent:    #f3903f;
  --accent-d:  #d97a2e;
  --white:     #ffffff;
  --off-white: #f3eee9;
  --gray-100:  #ede8e2;
  --gray-700:  #4a5568;
  --text:      #1a2535;
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;
  --header-h:  72px;
  --max-w:     1200px;
  --radius:    6px;
  --shadow:    0 4px 24px rgba(0,85,129,.14);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-top: var(--header-h);
}

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

/* ══════════════════════════════════
   UTILITY
══════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-eyebrow { font-size: 1.2rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* ══════════════════════════════════
   HEADER
══════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--off-white);
  height: var(--header-h);
  box-shadow: 0 2px 16px rgba(0,85,129,.12);
  transition: background .3s;
}
.site-header.scrolled {
  background: rgba(243,238,233,.97);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: none;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-text     { display: flex; flex-direction: column; }
.logo-name     { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); line-height: 1.1; font-weight: 700; }
.logo-tagline  { font-size: .68rem; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }

.header-nav { display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.header-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-link:hover,
.nav-link.active { color: var(--navy); background: rgba(0,85,129,.1); }

.header-contact-btn {
  flex-shrink: 0;
  margin-left: auto;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 11px 34px;
  border-radius: 999px;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.header-contact-btn:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243,144,63,.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  width: 36px;
  height: 36px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--navy-d); position: absolute; top: var(--header-h); left: 0; right: 0; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.mobile-nav.open { max-height: 300px; }
.mobile-nav ul   { list-style: none; padding: 12px 0 16px; }
.mobile-nav a    { display: block; color: rgba(255,255,255,.9); text-decoration: none; font-size: 1rem; font-weight: 600; padding: 12px 28px; transition: background .2s; }
.mobile-nav a:hover { background: rgba(255,255,255,.08); }

/* ══════════════════════════════════
   PAGE HERO (inner-page banner strip)
══════════════════════════════════ */
.page-hero {
  background: linear-gradient(105deg, var(--navy-d) 0%, var(--navy) 100%);
  padding: 27px 24px 27px;
  text-align: center;
}
.page-hero .section-eyebrow { color: rgba(255,255,255,.7); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
}
.page-hero p {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.site-footer  { background: var(--navy-d); color: rgba(255,255,255,.75); padding: 32px 0 0; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; align-items: start; }

.footer-logo      { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 10px; }
.footer-logo img  { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-logo-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--white); font-weight: 700; }
.footer-copy      { font-size: .9rem; color: rgba(255,255,255,.5); }

.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.footer-nav a  { color: rgba(255,255,255,.75); text-decoration: none; font-size: 1rem; font-weight: 600; transition: color .2s; }
.footer-nav a:hover { color: var(--white); }
.footer-nav-break { flex-basis: 100%; width: 0; height: 0; margin: 0; padding: 0; }

/* 12pt confirmed intentional for this disclaimer text. */
.footer-disclaimer   { font-size: 12pt; color: rgba(255,255,255,.45); line-height: 1.6; }
.footer-disclaimer a { color: rgba(255,255,255,.6); text-decoration: underline; }
.footer-disclaimer a:hover { color: var(--white); }

.footer-bottom       { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 24px; }
.footer-bottom-inner { max-width: var(--max-w); margin: 0 auto; display: flex; gap: 10px; align-items: center; font-size: .88rem; color: rgba(255,255,255,.4); }
.footer-bottom-inner a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-bottom-inner a:hover { color: var(--white); }

/* ══════════════════════════════════
   SHARED RESPONSIVE (header/footer only —
   page-specific responsive rules stay inline per page)
══════════════════════════════════ */
@media (max-width: 900px) {
  .header-nav         { display: none; }
  .header-contact-btn { display: none; }
  .nav-toggle         { display: flex; }
  .mobile-nav         { display: block; }
  .footer-inner       { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-logo        { justify-content: center; }
  .footer-nav ul      { justify-content: center; }
}

/* ══════════════════════════════════
   POLICY PAGES (Privacy Policy, Terms & Conditions)
══════════════════════════════════ */
.policy-section { padding: 8px 0 80px; background: var(--white); }

.policy-content {
  max-width: 820px;
  margin: 16px auto 0;
}

.policy-updated {
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
}

.policy-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-top: 24px;
  margin-bottom: 10px;
}
.policy-content h2:first-child { margin-top: 0; }

.policy-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 18px;
  margin-bottom: 8px;
}

.policy-content p {
  font-size: 1.02rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 10px;
}

.policy-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.policy-content li {
  font-size: 1.02rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 6px;
}

.policy-content a {
  color: var(--accent-d);
  font-weight: 700;
  text-decoration: none;
}
.policy-content a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .policy-content { margin-top: 28px; }
}
