/* =============================================
   Coventry Enterprises LLC Consulting
   Main Stylesheet
   ============================================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #2c3e50; background: #ffffff; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* --- CSS Variables --- */
:root {
  --dark-blue: #0a1628;
  --secondary-blue: #1a2f4e;
  --accent-silver: #c0c8d4;
  --accent-gold: #b8960c;
  --white: #ffffff;
  --light-gray: #f4f5f7;
  --charcoal: #2c3e50;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
h1 { font-size: 52px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-blue);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-logo span { color: var(--accent-gold); }
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  color: var(--accent-silver);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: rgba(184,150,12,0.15);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO SECTIONS
   ============================================= */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--dark-blue);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p {
  color: var(--accent-silver);
  font-size: 20px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-small { min-height: 360px; }
.hero-small .hero-content h1 { font-size: 42px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--accent-gold);
  color: var(--dark-blue);
  border-color: var(--accent-gold);
}
.btn-primary:hover {
  background: #d4ac10;
  border-color: #d4ac10;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184,150,12,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--accent-silver);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--dark-blue);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark-blue);
  color: var(--white);
  border-color: var(--dark-blue);
}
.btn-dark:hover {
  background: var(--secondary-blue);
  border-color: var(--secondary-blue);
  transform: translateY(-2px);
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-gray { background: var(--light-gray); }
.section-dark { background: var(--dark-blue); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--accent-silver); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--charcoal); margin-bottom: 16px; }
.section-header p { color: #5a6a7a; font-size: 18px; max-width: 680px; margin: 0 auto; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: var(--accent-silver); }

.gold-line {
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 16px auto 0;
}

/* =============================================
   CARDS
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid transparent;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  border-top-color: var(--accent-gold);
}
.card h3 { color: var(--dark-blue); margin-bottom: 12px; }
.card p { color: #5a6a7a; font-size: 15px; }
.card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.card-dark {
  background: var(--secondary-blue);
  border-top: 3px solid var(--accent-gold);
}
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--accent-silver); }

/* =============================================
   SERVICE DETAIL SECTIONS
   ============================================= */
.service-section { padding: 60px 0; border-bottom: 1px solid #e8edf2; }
.service-section:last-child { border-bottom: none; }
.service-section h2 { color: var(--dark-blue); margin-bottom: 20px; }
.service-section ul { margin: 20px 0; padding-left: 0; }
.service-section ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--charcoal);
  border-bottom: 1px solid #f0f3f6;
}
.service-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
}

/* Loan type sections */
.loan-type { padding: 48px 0; border-bottom: 1px solid #e8edf2; }
.loan-type:last-child { border-bottom: none; }
.loan-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.loan-meta-box {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 6px;
}
.loan-meta-box h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.loan-meta-box ul li {
  font-size: 14px;
  color: var(--charcoal);
  padding: 4px 0 4px 16px;
  position: relative;
}
.loan-meta-box ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent-gold);
}

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 20px; color: var(--dark-blue); margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 14px; color: #5a6a7a; margin-bottom: 16px; }
.blog-card .read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-card .read-more::after { content: '→'; }

/* Blog Article Layout */
.blog-article { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.blog-article .article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
  color: #5a6a7a;
  font-size: 14px;
}
.article-category-badge {
  background: var(--accent-gold);
  color: var(--dark-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.blog-article img.cover-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 40px;
}
.blog-article h1 { font-size: 42px; color: var(--dark-blue); margin-bottom: 12px; }
.blog-article h2 { font-size: 28px; color: var(--dark-blue); margin: 36px 0 16px; }
.blog-article h3 { font-size: 22px; color: var(--secondary-blue); margin: 28px 0 12px; }
.blog-article p { color: var(--charcoal); font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.blog-article ul {
  margin: 16px 0 24px 0;
  padding-left: 0;
}
.blog-article ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.7;
}
.blog-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
}
.article-cta {
  background: var(--dark-blue);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
  margin-top: 48px;
  text-align: center;
}
.article-cta h3 { color: var(--white); margin-bottom: 12px; }
.article-cta p { color: var(--accent-silver); margin-bottom: 24px; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.pillar {
  background: var(--light-gray);
  padding: 32px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-gold);
}
.pillar h3 { color: var(--dark-blue); margin-bottom: 12px; }
.pillar p { color: #5a6a7a; margin: 0; }

.bio-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.bio-text h2 { color: var(--dark-blue); margin-bottom: 20px; }
.bio-text p { color: var(--charcoal); }
.bio-image-placeholder {
  background: var(--secondary-blue);
  border-radius: 8px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-silver);
  font-size: 18px;
  text-align: center;
  padding: 40px;
}

/* =============================================
   RESOURCES PAGE
   ============================================= */
.checklist {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 40px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #dce4ed;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-num {
  width: 32px;
  height: 32px;
  background: var(--accent-gold);
  color: var(--dark-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.checklist-item p { margin: 0; color: var(--charcoal); }
.checklist-item strong { color: var(--dark-blue); }

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.glossary-item {
  padding: 20px;
  background: var(--white);
  border-radius: 6px;
  border-left: 3px solid var(--accent-gold);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.glossary-item dt { font-weight: 700; color: var(--dark-blue); margin-bottom: 6px; }
.glossary-item dd { font-size: 14px; color: #5a6a7a; margin: 0; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-form { background: var(--white); }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 6px;
  font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dce4ed;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--charcoal);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.cta-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.cta-box {
  background: var(--light-gray);
  padding: 32px 24px;
  border-radius: 8px;
  text-align: center;
  border-top: 3px solid var(--accent-gold);
}
.cta-box h3 { color: var(--dark-blue); font-size: 20px; margin-bottom: 10px; }
.cta-box p { color: #5a6a7a; font-size: 14px; margin-bottom: 20px; }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--secondary-blue);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: var(--accent-silver); font-size: 18px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-btns { justify-content: center; }

/* =============================================
   INTRO SPLIT
   ============================================= */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.intro-split img {
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}
.intro-text h2 { color: var(--dark-blue); margin-bottom: 20px; }
.intro-text p { color: var(--charcoal); margin-bottom: 16px; }

/* =============================================
   WARNING BOXES
   ============================================= */
.warning-section { padding: 60px 0; border-bottom: 1px solid #e8edf2; }
.warning-section h2 { color: var(--dark-blue); margin-bottom: 20px; }
.warning-signs {
  background: #fff5f5;
  border: 1.5px solid #e8c0c0;
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 24px;
}
.warning-signs h4 {
  color: #c0392b;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.warning-signs ul li {
  padding: 7px 0 7px 24px;
  position: relative;
  color: var(--charcoal);
  border-bottom: 1px solid #f0d0d0;
}
.warning-signs ul li:last-child { border-bottom: none; }
.warning-signs ul li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: #c0392b;
  font-size: 13px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--dark-blue);
  color: var(--accent-silver);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.footer-col .footer-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-col .footer-brand span { color: var(--accent-gold); }
.footer-col p { font-size: 14px; line-height: 1.7; color: #8a9ab0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: #8a9ab0;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent-gold); }
.footer-bottom {
  border-top: 1px solid #1f3558;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #5a6a7a;
}

/* =============================================
   CATEGORY TAGS
   ============================================= */
.category-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.cat-tag {
  padding: 8px 20px;
  border: 1.5px solid #dce4ed;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  transition: var(--transition);
  cursor: pointer;
}
.cat-tag:hover, .cat-tag.active {
  background: var(--dark-blue);
  color: var(--white);
  border-color: var(--dark-blue);
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  background: var(--secondary-blue);
  padding: 12px 0;
}
.breadcrumb nav {
  font-size: 13px;
  color: var(--accent-silver);
}
.breadcrumb a { color: var(--accent-gold); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--dark-blue); padding: 20px 24px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; border-radius: 4px; font-size: 15px; }
  .hamburger { display: flex; }

  .hero { min-height: 420px; }
  .hero-small { min-height: 280px; }

  .card-grid, .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-split { grid-template-columns: 1fr; gap: 36px; }
  .bio-section { grid-template-columns: 1fr; }
  .bio-image-placeholder { aspect-ratio: 3/2; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-boxes { grid-template-columns: 1fr; }
  .loan-meta { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero-content p { font-size: 16px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .loan-meta { grid-template-columns: 1fr; }
  .blog-article h1 { font-size: 30px; }
}
