/* Carol Leahy Mortgages - Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  /* Henderson Moore inspired professional blue palette */
  --navy: #1e3a5f;
  --navy-dark: #152a47;
  --navy-light: #2d4a6f;
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --blue-light: #3b82f6;
  --gold: #d4af37;
  --gold-light: #f4e4bc;
  --gold-dark: #b8941f;
  --accent: #0ea5e9;
  /* Mid-section: warm, readable neutrals */
  --text: #374151;
  --text-muted: #4b5563;
  --text-soft: #6b7280;
  --bg-warm: #faf9f8;
  --bg-card: #f8f9fa;
  --border-soft: #e8e6e3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Open Sans', system-ui, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
}

/* Container */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-custom { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container-custom { padding: 0 2rem; }
}

/* Section Padding */
.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 0;
  }
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--gold);
  color: white;
}

.btn-primary:hover {
  background-color: var(--gold-dark);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--navy);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--navy-dark);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Header */
header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

nav {
  padding: 0 1rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.75rem;
  color: #4b5563;
  font-weight: 500;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-link:hover {
  color: var(--gold);
}

/* Current page: filing tab style */
.nav-link.active {
  background: #e2e8f0;
  color: var(--navy-dark);
  font-weight: 600;
  padding: 0.6rem 1rem;
  margin: 0 -0.25rem;
  border: 1px solid #cbd5e1;
  border-bottom: 2px solid white;
  border-radius: 6px 6px 0 0;
  margin-bottom: -2px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}

.nav-link.active:hover {
  color: var(--navy-dark);
  background: #cbd5e1;
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--gold);
}

.mobile-menu a.active {
  font-weight: 600;
  color: var(--navy-dark);
  border-left: 3px solid var(--gold);
  padding-left: calc(0.5rem - 3px);
  background: #f8fafc;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom right, var(--navy), var(--navy-dark), var(--navy));
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text .gold-text {
  color: var(--gold);
}

.hero-text p {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-text p {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-image {
  position: relative;
  height: 500px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  .hero-image {
    height: 600px;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards – professional, approachable (kind nature, extra mile) */
.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
  border: 1px solid var(--border-soft);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.1);
  border-color: rgba(212, 175, 55, 0.25);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* Callout / accent card (e.g. important info) */
.card--accent {
  background: var(--bg-card);
  border-left: 4px solid var(--gold);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}

/* Mid-section structure */
.section-head {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.5rem;
}

.content-wrap {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

/* Long-form content: tidy headings and spacing */
.content-prose {
  color: var(--text);
}

.content-prose p {
  margin-bottom: 1.25rem;
  line-height: 1.65;
  color: var(--text);
}

.content-prose .lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.content-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  color: var(--navy);
  font-weight: 600;
}

.content-prose h2:first-child {
  margin-top: 0;
}

.content-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-weight: 600;
}

.content-prose h3 + p,
.content-prose h2 + p {
  margin-top: 0;
}

/* Feature list (mortgage types, protection types, etc.) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 1rem;
}

.feature-list-item {
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-list-item:hover {
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.08);
  border-color: rgba(212, 175, 55, 0.2);
}

.feature-list-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.feature-list-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Areas grid – tidy pill links */
.areas-grid {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.area-link {
  display: block;
  text-align: center;
  text-decoration: none;
  color: white;
  background: var(--navy);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.15);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.area-link:hover {
  background: var(--navy-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

/* In-page CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 2.5rem 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.2);
}

.cta-block h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-block p {
  font-size: 1.125rem;
  color: #e5e7eb;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.cta-block .hero-buttons {
  justify-content: center;
}

/* Hero intro (sub-pages) */
.hero-intro {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-intro p {
  font-size: 1.25rem;
  color: #e5e7eb;
  margin-top: 1rem;
  line-height: 1.5;
}

/* Alternating section background – subtle warmth */
.section-mid--warm {
  background: var(--bg-warm);
}

/* Footer */
footer,
.footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: white;
}

footer h3, footer h4,
.footer-title, .footer-subtitle {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-title { font-size: 1.125rem; }
.footer-subtitle { font-size: 0.9375rem; margin-top: 0; }

footer a,
.footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover,
.footer a:hover {
  color: var(--gold);
}

footer address,
.footer address {
  font-style: normal;
}

/* Footer layout */
.footer-inner {
  padding: 3rem 1rem 2rem;
}

@media (min-width: 768px) {
  .footer-inner { padding: 4rem 1.5rem 2.5rem; }
}

@media (min-width: 1024px) {
  .footer-inner { padding: 4.5rem 2rem 3rem; }
}

.grid-footer {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-footer {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Carol section – single consolidated block */
.footer-about {
  max-width: 28rem;
}

.footer-role {
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.footer-bio {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #e5e7eb;
}

.footer-contact-icon {
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--gold-light);
}

.footer-contact-item:hover .footer-contact-icon {
  color: var(--gold);
}

/* Quick links */
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.4rem;
}

.footer-nav a {
  font-size: 0.9375rem;
}

/* Firm block */
.footer-address {
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.5;
}

.footer-address-tel {
  margin-top: 0.5rem;
}

/* Dividers */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.4;
  margin: 2rem 0;
}

.footer-divider--thin {
  background: #374151;
  opacity: 1;
  margin: 1.5rem 0 0;
}

/* Legal / regulatory */
.footer-legal {
  margin-top: 0;
}

.footer-small {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0.5rem 0 0.75rem;
}

.footer-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.footer-link-group a {
  font-size: 0.8125rem;
}

.footer-legal-links {
  margin-top: 0.5rem;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  font-size: 0.75rem;
  color: #6b7280;
  padding-top: 1rem;
}

.footer-copyright p {
  margin: 0;
}

/* Mobile Call Button */
.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gold);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  z-index: 50;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-call-btn {
    display: none !important;
  }
}

.mobile-call-btn:hover {
  background: var(--gold-dark);
  transform: scale(1.05);
}

.mobile-call-btn svg {
  width: 24px;
  height: 24px;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.bg-gray {
  background: var(--bg-warm);
}

.mb-12 { margin-bottom: 3rem; }

.bg-navy {
  background: var(--navy);
}

.text-white {
  color: white;
}

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Links */
a {
  color: var(--gold);
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-dark);
}
