/* ============================================
   Hypotheek Berekenen Noord-Holland
   Shared Stylesheet
   ============================================ */

:root {
  --teal: #3A868F;
  --teal-dark: #2D6D75;
  --teal-light: #4DA3AC;
  --teal-pale: #E8F4F6;
  --teal-bg: #F0F8F9;
  --white: #FFFFFF;
  --off-white: #F7FAFA;
  --dark: #1E2A2D;
  --text: #2C3E42;
  --text-muted: #6B8A90;
  --text-light: #94B3B9;
  --border: #D4E5E8;
  --green: #27AE60;
  --orange: #E67E22;
  --red: #E74C3C;
  --gold: #F1C40F;
  --shadow-sm: 0 2px 8px rgba(58,134,143,0.08);
  --shadow: 0 4px 20px rgba(58,134,143,0.10);
  --shadow-lg: 0 12px 40px rgba(58,134,143,0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  background: var(--white);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.2;
}
.logo-text span { color: var(--teal); }

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
  text-decoration: none;
}

.nav-links .nav-cta {
  background: var(--teal);
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
}

.nav-links .nav-cta:hover {
  background: var(--teal-dark);
  color: white;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > a::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: var(--text-muted);
  margin-top: 2px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 220px;
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.84rem;
  color: var(--text);
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav.active { display: block; }

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
  padding: 8px;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.mobile-nav-links a:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}

.mobile-nav-links .nav-cta {
  background: var(--teal);
  color: white;
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
  border-radius: 100px;
}

.mobile-nav-sub {
  padding-left: 20px;
}

.mobile-nav-sub a {
  font-size: 0.9rem;
  padding: 10px 16px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  nav { padding: 14px 18px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 60%, #235B62 100%);
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}

.hero-sm {
  padding: 40px 24px 50px;
}

.hero-sm h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--teal);
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; color: var(--border); }

/* ============================================
   CONTENT LAYOUTS
   ============================================ */
.main {
  max-width: 1080px;
  margin: -40px auto 0;
  padding: 0 20px 60px;
  position: relative;
  z-index: 10;
}

.content-page {
  margin-top: 0;
  padding-top: 20px;
}

.page-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px;
  margin-bottom: 24px;
}

.page-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
}

.page-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  margin-top: 20px;
}

.page-section p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}

.page-section ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.page-section li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .page-section { padding: 24px 20px; }
}

/* ============================================
   CARDS GRID (gemeente overview, project cards)
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card-link {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 28px;
  text-decoration: none;
  transition: all 0.25s;
}

.card-link:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
  transform: translateY(-3px);
  text-decoration: none;
}

.card-link h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.card-link p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-link .card-arrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
}

/* Project count badge */
.card-badge {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ============================================
   PROJECT PAGE SPECIFICS
   ============================================ */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.project-highlight {
  background: linear-gradient(135deg, var(--teal-pale), rgba(58,134,143,0.05));
  border: 1px solid rgba(58,134,143,0.15);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

.project-highlight h3 {
  color: var(--teal-dark);
  margin-top: 0;
}

/* CTA inline */
.cta-inline {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 24px 0;
}

.cta-inline h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  margin-top: 0;
}

.cta-inline p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.cta-inline .btn {
  display: inline-block;
  background: white;
  color: var(--teal-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-inline .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  text-decoration: none;
}

.cta-inline .cta-sub {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--teal);
  color: white;
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: white;
}

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

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1fb855;
  color: white;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ============================================
   INTERNAL LINKS SECTION
   ============================================ */
.internal-links {
  background: var(--teal-bg);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
}

.internal-links h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  margin-top: 0;
}

.internal-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.internal-links li a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.internal-links li a:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  text-decoration: none;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  margin-top: 40px;
}

.faq-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item[open] {
  box-shadow: var(--shadow);
  border-color: var(--teal);
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item summary:hover { color: var(--teal); }

.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-answer a { color: var(--teal); font-weight: 600; }

/* ============================================
   CTA BANNER (Bob section)
   ============================================ */
.cta-banner {
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--teal);
  overflow: hidden;
}

.cta-banner-content {
  padding: 40px 36px;
  display: flex;
  align-items: center;
  gap: 36px;
}

@media (max-width: 720px) {
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }
}

.cta-banner-personal {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

@media (max-width: 720px) {
  .cta-banner-personal {
    flex-direction: column;
    align-items: center;
  }
}

.bob-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: 0 4px 14px rgba(58,134,143,0.2);
  flex-shrink: 0;
}

.cta-banner-text { flex: 1; }

.cta-banner-text h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.cta-banner-text .bob-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
}

.cta-banner-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cta-banner-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.cta-banner-features span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-dark);
}

@media (max-width: 720px) {
  .cta-banner-features { justify-content: center; }
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cta-btn-lg {
  display: inline-block;
  padding: 16px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--teal);
  color: white;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(58,134,143,0.3);
}

.cta-btn-lg:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
}

.cta-btn-secondary:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  text-decoration: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 0 20px 28px;
  max-width: 720px;
  margin: 0 auto;
}

.seo-text {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
}

.seo-text h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.seo-text p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 8px;
}

.seo-text a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.seo-text a:hover { color: var(--teal); }

.footer-nav {
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.footer-nav h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 6px;
}

.footer-nav a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal); }

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--teal); text-decoration: underline; }

.footer-sep { color: var(--border); }

/* ============================================
   DISCLAIMER
   ============================================ */
.disclaimer {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.disclaimer strong { color: var(--text); }
.disclaimer a { color: var(--teal); text-decoration: none; font-weight: 600; }
.disclaimer a:hover { text-decoration: underline; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
