/* ===========================================================
   The Mortgage Dock — Shared Site Styles
   For sub-pages: /florida-keys/, /investors/, /loan-programs/, /blog/, etc.
   =========================================================== */

:root {
  --navy: #0a1628;
  --navy-mid: #122040;
  --teal: #0d8a7e;
  --teal-light: #12b5a6;
  --gold: #c9a227;
  --gold-light: #e4b83a;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-gray: #edf0f5;
  --text: #1a2332;
  --text-light: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); line-height: 1.18; }
h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 18px; }
h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
h3 { font-size: 22px; margin-bottom: 10px; }
p  { margin-bottom: 16px; color: var(--text-light); font-size: 17px; }

/* ===== NAV ===== */
.tmd-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tmd-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
}
.tmd-nav a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 6px; transition: all 0.2s; }
.tmd-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.tmd-nav .nav-brand { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 20px; color: var(--white); }
.tmd-nav .nav-brand span { color: var(--gold); }
.tmd-nav-links { display: flex; gap: 4px; align-items: center; }
.tmd-nav-cta { background: var(--teal); color: var(--white) !important; padding: 10px 18px !important; }
.tmd-nav-cta:hover { background: var(--teal-light); }
@media (max-width: 760px) {
  .tmd-nav-links a:not(.tmd-nav-cta) { display: none; }
}

/* ===== HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2647 50%, #0a4a5e 100%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(13,138,126,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 80%, rgba(201,162,39,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 700px; margin: 0 auto 28px; font-size: 19px; }
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s ease;
  text-align: center;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ===== SECTIONS ===== */
section { padding: 70px 0; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}
.section-header p { font-size: 18px; color: var(--text-light); }

/* ===== GRIDS ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 20px; }

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 70px 24px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 28px; }

/* ===== ARTICLE / PROSE ===== */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
}
.prose h2 { margin-top: 38px; font-size: 30px; }
.prose h3 { margin-top: 26px; font-size: 22px; color: var(--navy); }
.prose p { font-size: 17.5px; line-height: 1.75; margin-bottom: 18px; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li { margin-bottom: 8px; font-size: 17px; line-height: 1.7; }
.prose blockquote {
  border-left: 4px solid var(--teal);
  background: var(--off-white);
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose strong { color: var(--navy); }
.prose a { color: var(--teal); border-bottom: 1px dotted var(--teal); }
.prose a:hover { color: var(--teal-light); }
.prose .lede { font-size: 21px; line-height: 1.5; color: var(--text); margin-bottom: 30px; }
.prose-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ===== BLOG GRID ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card .post-tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 10px;
}
.post-card h3 { font-size: 22px; margin-bottom: 8px; }
.post-card p { color: var(--text-muted); flex: 1; font-size: 15px; margin-bottom: 14px; }
.post-card .read-more { color: var(--teal); font-weight: 600; font-size: 14px; }

/* ===== FOOTER ===== */
.tmd-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 50px 24px 30px;
  font-size: 14px;
}
.tmd-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tmd-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; font-family: 'Inter', sans-serif; font-weight: 600; }
.tmd-footer ul { list-style: none; }
.tmd-footer li { margin-bottom: 8px; }
.tmd-footer a { color: rgba(255,255,255,0.65); transition: color 0.15s; }
.tmd-footer a:hover { color: var(--gold-light); }
.tmd-footer-legal {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.6;
}

/* Logo image in nav */
.nav-brand img { height: 48px; width: auto; display: block; }
.nav-brand { display: flex; align-items: center; }
