/* ============================================================
   GRACE SOLUTIONS SERVICES — SHARED STYLES
   Core design system: colors, typography, header, footer
   ============================================================ */

:root {
  /* Brand canonical (locked May 2026, biz card spec) */
  --navy:        #0E1A35;       /* Deep Navy - card bg, primary dark */
  --navy-mid:    #1A2F5A;       /* Midnight Navy - gradient highlight */
  --navy-soft:   #2C3E5C;
  --gold:        #C9A84C;       /* Champagne Gold - borders, accents */
  --gold-soft:   #E0BD5E;
  --gold-pale:   #FDF8EE;
  --crimson:     #CC0000;       /* Heart-cross logo only */
  --bone:        #F5F0E8;       /* Off-white cream - primary text/bg */
  --paper:       #FAFAF9;
  --cream:       #FEFCE8;
  --white:       #FFFFFF;
  --dark:        #1A1A1A;       /* Cross + heart outline */
  --text:        #374151;
  --text-soft:   #6B7280;
  --border:      #E5E7EB;

  --display: 'Bricolage Grotesque', Georgia, serif;
  --sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-md: 0 8px 24px -8px rgba(14, 26, 53, 0.12);
  --shadow-lg: 0 20px 50px -15px rgba(14, 26, 53, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bone);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede { font-size: 1.15rem; line-height: 1.7; color: var(--navy-mid); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; position: relative; }
@media (max-width: 768px) { section { padding: 3rem 0; } }

/* ===== SCRIPTURE BAR ===== */
.scripture-bar {
  background: var(--bone);
  color: var(--navy);
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  border-bottom: 1px solid rgba(200, 146, 42, 0.25);
}
.scripture-bar::before {
  content: '•';
  color: var(--gold);
  margin-right: 0.6rem;
  font-style: normal;
}
.scripture-bar .ref {
  color: var(--gold);
  font-style: normal;
  margin-left: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ===== HEADER (cream by default for inner pages) ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(14, 26, 53, 0.08);
  padding: 1rem 0;
  transition: padding 0.3s, background 0.4s;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--navy); }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark .logo-img,
.logo-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.brand-name span { white-space: nowrap; }
.brand-name span:last-child {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; list-style: none; }
.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--navy);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }

/* Dropdown menu (mirrors index.html inline CSS) */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex !important; align-items: center; gap: 0.3rem; cursor: pointer; }
.has-dropdown .caret { font-size: 0.7rem; transition: transform 0.2s; opacity: 0.7; }
.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(14, 26, 53, 0.15);
  border-radius: var(--radius-sm);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.18);
  z-index: 100;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { display: block; }
.dropdown a {
  display: block !important;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  color: var(--navy);
  white-space: nowrap;
}
.dropdown a:hover {
  background: rgba(200, 146, 42, 0.12);
  color: var(--navy);
}
.nav-cta {
  background: var(--navy) !important;
  color: var(--bone) !important;
  padding: 0.7rem 1.25rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center; gap: 0.4rem;
}
.nav-cta::after { content: '↗'; font-size: 0.85rem; }
.nav-cta:hover { background: var(--navy-mid) !important; transform: translateY(-1px); }
.nav-portal {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--navy) !important;
  border: 1px solid rgba(14, 26, 53, 0.25);
  padding: 0.55rem 1rem !important;
  border-radius: var(--radius-sm);
  display: inline-flex !important;
  align-items: center; gap: 0.3rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.nav-portal:hover {
  background: rgba(14, 26, 53, 0.06);
  border-color: var(--navy);
}

/* Calculator nav link with FREE badge — visually distinct */
.nav-calc {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--navy) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.nav-calc:hover {
  color: var(--gold) !important;
}
.nav-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: var(--gold);
  color: var(--navy);
  line-height: 1;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--bone);
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--navy); }
.btn-ghost-light {
  background: transparent;
  color: var(--bone);
  border: 1.5px solid rgba(245, 240, 232, 0.3);
}
.btn-ghost-light:hover { background: rgba(245, 240, 232, 0.08); border-color: var(--bone); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; }

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.back-link:hover { color: var(--navy); }
.back-link::before { content: '←'; }

/* ===== PAGE INTRO ===== */
.page-intro { padding: 4rem 0 2rem; }
.page-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin: 0.75rem 0 1.5rem;
  max-width: 18ch;
  line-height: 1.04;
}
.page-intro .lede { max-width: 65ch; }
.page-intro p + p { margin-top: 1rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(245, 240, 232, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}
footer .container > * { position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand .brand-name span { color: var(--bone); }
.footer-brand .brand-name span:last-child { color: var(--gold); }
.footer-tag {
  font-family: var(--display);
  font-style: italic;
  color: var(--bone);
  margin: 0.5rem 0 0.75rem;
}
.footer-blurb { font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-scripture {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  border-left: 2px solid var(--gold);
  padding-left: 0.85rem;
  color: rgba(245, 240, 232, 0.7);
}
.footer-scripture .ref {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.3rem;
}
.footer-motto {
  margin-top: 1rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-soft);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
  font-family: var(--sans);
}
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a:hover { color: var(--gold); }
.footer-address {
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 0.85rem;
  color: rgba(245, 240, 232, 0.7);
}
.footer-domain { font-size: 0.85rem; margin-top: 0.6rem; }
.footer-domain a { color: var(--gold); }
.footer-social {
  display: flex; gap: 0.85rem; margin-top: 1.25rem;
}
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245, 240, 232, 0.08);
  border-radius: 50%;
  color: rgba(245, 240, 232, 0.7);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.55);
}
.footer-bottom a { color: rgba(245, 240, 232, 0.7); }
.footer-bottom a:hover { color: var(--gold); }
.footer-legal-links { display: flex; gap: 1.5rem; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; }
}
