/* ═══════════════════════════════════════════════
   POOLE MORTGAGES — Shared Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --navy:      #0d1f3c;
  --navy-md:   #162d55;
  --navy-lt:   #1e3a6e;
  --gold:      #c9a84c;
  --gold-lt:   #e2c97e;
  --gold-pale: #f5edda;
  --cream:     #f9f5ef;
  --white:     #ffffff;
  --text:      #1a1a2e;
  --text-md:   #374151;
  --muted:     #6b7280;
  --border:    #e5ddd0;
  --radius:    10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 12px rgba(13,31,60,.08);
  --shadow:    0 8px 40px rgba(13,31,60,.12);
  --shadow-lg: 0 20px 60px rgba(13,31,60,.18);
  --nav-h:     72px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { line-height: 1.75; color: var(--text-md); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.gold-line {
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(13,31,60,.2);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(13,31,60,.3); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,.3);
}
.btn-gold:hover { box-shadow: 0 8px 30px rgba(201,168,76,.4); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13,31,60,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-right: auto;
}

.nav-brand strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .01em;
}

.nav-brand span {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }

.nav-cta {
  margin-left: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--navy) !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 8px;
}
.nav-cta:hover { background: rgba(255,255,255,.08) !important; opacity: .9; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* ── PAGE WRAPPER ── */
.page { padding-top: var(--nav-h); }

/* ── SECTION ── */
.section { padding: 96px 40px; }
.section-sm { padding: 64px 40px; }
.container { max-width: 1120px; margin: 0 auto; }
.container-sm { max-width: 780px; margin: 0 auto; }

.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .gold-line { margin: 0 auto 18px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 100%);
  padding: 80px 40px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 110% 20%, rgba(201,168,76,.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.5);
  padding: 48px 40px 32px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
}
.footer-brand strong {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13.5px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { max-width: 1120px; margin: 0 auto; font-size: 12px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 24px 24px 32px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .section, .section-sm { padding: 64px 24px; }
  .page-hero { padding: 56px 24px 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .section, .section-sm { padding: 48px 20px; }
  .footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { padding: 0 20px; }
}
