/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #fefce8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
}
a { color: #1e40af; text-decoration: none; transition: color .2s; }
a:hover { color: #eab308; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-yellow { color: #eab308; }
.text-blue { color: #1e40af; }
.bg-yellow { background: #eab308; }
.bg-blue { background: #1e40af; }
.bg-dark { background: #111827; }
.bg-light { background: #fefce8; }
.bg-white { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-size: 2.25rem;
  margin-bottom: .75rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #eab308;
  margin-top: .5rem;
  border-radius: 2px;
}
.section-title.centered::after { margin-left: auto; margin-right: auto; }
.section-subtitle {
  font-size: 1.15rem;
  color: #6b7280;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.lead { font-size: 1.15rem; color: #374151; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .25s;
  font-family: 'Nunito', sans-serif;
}
.btn-primary {
  background: #1e40af;
  color: #fff;
  box-shadow: 0 4px 14px rgba(30,64,175,.3);
}
.btn-primary:hover {
  background: #1e3a8a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,64,175,.4);
}
.btn-yellow {
  background: #eab308;
  color: #111827;
  box-shadow: 0 4px 14px rgba(234,179,8,.3);
}
.btn-yellow:hover {
  background: #ca8a04;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234,179,8,.4);
}
.btn-outline {
  background: transparent;
  color: #1e40af;
  border: 2px solid #1e40af;
}
.btn-outline:hover {
  background: #1e40af;
  color: #fff;
}
.btn-sm { padding: .6rem 1.4rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254,252,232,.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid #eab308;
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}
.logo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #111827;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.logo .sun-icon {
  width: 36px;
  height: 36px;
  background: #eab308;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.logo span { color: #eab308; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-weight: 600;
  color: #374151;
  font-size: .95rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #eab308;
  transition: width .3s;
}
.nav-links a:hover { color: #111827; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  margin-left: .5rem;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #111827;
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(254,252,232,0.85) 0%, rgba(254,243,199,0.85) 40%, rgba(253,230,138,0.85) 100%), url('../images/hero.png') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234,179,8,.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,64,175,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(234,179,8,.15);
  border: 1px solid rgba(234,179,8,.3);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  color: #eab308;
  position: relative;
}
.hero p.lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #4b5563;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(234,179,8,.2);
}
.hero-stat h3 {
  font-size: 1.8rem;
  color: #1e40af;
}
.hero-stat p {
  font-size: .85rem;
  color: #6b7280;
}
.hero-visual {
  position: relative;
}
.hero-visual .sun-graphic {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, #eab308 0%, #fbbf24 30%, #fde68a 60%, transparent 70%);
  border-radius: 50%;
  position: relative;
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-visual .sun-graphic::after {
  content: '';
  position: absolute;
  inset: 15%;
  background: radial-gradient(circle, #fbbf24 0%, #f59e0b 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(8px);
}
.hero-visual .house-icon {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.1));
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: .9; }
}

/* ===== CARDS / GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #fde68a;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(234,179,8,.15);
  border-color: #eab308;
}
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.card p {
  color: #6b7280;
  font-size: .95rem;
}

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.data-table thead {
  background: #1e40af;
  color: #fff;
}
.data-table th {
  padding: .85rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #fef3c7;
}
.data-table tbody tr:hover {
  background: #fefce8;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table .highlight-row {
  background: #fffbeb;
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid #fde68a;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item:hover, .faq-item.active {
  border-color: #eab308;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: #111827;
  gap: 1rem;
}
.faq-question:hover { color: #1e40af; }
.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform .3s, background .3s;
  color: #eab308;
  font-weight: 700;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: #eab308;
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: #4b5563;
  line-height: 1.8;
}

/* ===== BLOG CARDS ===== */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #fde68a;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(234,179,8,.15);
  border-color: #eab308;
}
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: .2rem .7rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.blog-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  line-height: 1.35;
}
.blog-card-body h3 a { color: #111827; }
.blog-card-body h3 a:hover { color: #1e40af; }
.blog-card-body p {
  color: #6b7280;
  font-size: .9rem;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid #fef3c7;
  font-size: .8rem;
  color: #9ca3af;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(234,179,8,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.cta-section p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.cta-section .btn-yellow {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .5rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #eab308;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  color: #9ca3af;
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}
.footer-col ul a:hover { color: #eab308; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #eab308; }

/* ===== FACTS GRID ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.fact-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid #eab308;
  transition: transform .3s;
}
.fact-card:hover { transform: translateY(-3px); }
.fact-card .fact-number {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #1e40af;
  margin-bottom: .25rem;
}
.fact-card p { font-size: .85rem; color: #6b7280; }

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: .85rem;
  color: #9ca3af;
  padding: 1rem 0;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #eab308; }
.breadcrumb .sep { color: #d1d5db; }

/* ===== BLOG INDEX ===== */
.blog-hero {
  padding: 9rem 0 3rem;
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border-bottom: 3px solid #eab308;
}
.blog-hero h1 {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

/* ===== COST TABLE SECTION ===== */
.cost-highlight {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #eab308;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}
.cost-highlight h3 {
  color: #1e40af;
  margin-bottom: .5rem;
}

/* ===== SCROLL-TO-TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #eab308;
  color: #111827;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  box-shadow: 0 4px 12px rgba(234,179,8,.3);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: #ca8a04;
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.4rem; }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fefce8;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 3px solid #eab308;
    transition: right .35s;
    box-shadow: -5px 0 25px rgba(0,0,0,.1);
    z-index: 1001;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; z-index: 1002; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 8rem 0 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero-visual { order: -1; }
  .hero-visual .sun-graphic { max-width: 280px; }
  .hero-stats { gap: 1.5rem; }
  .section-title { font-size: 1.75rem; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
  .section-pad { padding: 3.5rem 0; }
}

/* ===== MOBILE OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1000;
}
.nav-overlay.active { display: block; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s, transform .6s;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* === Mobile Logo Size === */
@media (max-width: 768px) {
  .logo img, .nav-logo img, .navbar-brand img, .nav-brand img, .navbar__logo img {
    height: 36px !important;
  }
}

/* === Mobile Hero Text === */
@media (max-width: 768px) {
  .hero h1, .hero-content h1, .hero__content h1 { font-size: 2rem; }
}