/* ============================================
   VIGNJOJI — German Road Tolls Guide
   Trust-Blue Editorial Theme
   ============================================ */

:root {
  --primary: #005E8C;
  --primary-dark: #004A6F;
  --accent: #20B6EF;
  --secondary: #052839;
  --teal: #00A89D;
  --bg: #FFFFFF;
  --bg-alt: #F7FAFB;
  --bg-dark: #052839;
  --text: #1C2329;
  --text-light: #5A6673;
  --text-muted: #8896A4;
  --border: #DEE2E7;
  --border-light: #EEF1F4;
  --white: #FFFFFF;
  --shadow: rgba(5, 40, 57, 0.08);
  --shadow-md: rgba(5, 40, 57, 0.14);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; height: auto; }

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === SCROLL REVEAL — Progressive Enhancement === */
/* Default: content is visible. Only hidden when JS explicitly opts in. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-reveal .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Safety net: reveal anything the observer missed after 1.4s */
.js-reveal .reveal:not(.visible) { transition-delay: 0s; }


/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 16px var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.header-nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}
.nav-list a:hover { color: var(--primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow-md);
  z-index: 99;
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }

.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-list a {
  display: block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.mobile-nav-list li:last-child a { border-bottom: none; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--secondary);
  background-image: var(--img-hero);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,40,57,0.82) 0%, rgba(5,40,57,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--white);
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(32,182,239,0.2);
  color: var(--accent);
  border: 1px solid rgba(32,182,239,0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 700;
  line-height: 1.12;
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background: #4fc8f5;
  color: var(--secondary);
  transform: translateY(-2px);
}

/* === INTRO === */
.intro-section { padding: 96px 0; background: var(--bg); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px var(--shadow-md);
}
.intro-img { width: 100%; height: 400px; object-fit: cover; }

.intro-text { display: flex; flex-direction: column; gap: 16px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.section-title.centered { text-align: center; }

.section-sub {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 12px auto 0;
  line-height: 1.65;
}

.section-header { margin-bottom: 56px; }


/* === STATS BAR === */
.stats-bar {
  background: var(--secondary);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { display: flex; flex-direction: column; gap: 8px; }

.stat-number {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === ARTICLES === */
.articles-section { padding: 96px 0; background: var(--bg-alt); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--shadow-md);
}

.article-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
}
.article-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.article-card:hover .article-img { transform: scale(1.04); }

.article-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.article-toggle {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0;
  border-bottom: 2px solid var(--accent);
  transition: color var(--transition);
}
.article-toggle:hover { color: var(--accent); }

/* Expanded article content */
.article-content {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.article-content.open { display: block; }

.article-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.article-content p:last-child { margin-bottom: 0; }
.article-content strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  margin-top: 12px;
}
.article-content strong:first-child { margin-top: 0; }

/* === TIPS === */
.tips-section { padding: 96px 0; background: var(--white); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.tip-card {
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tip-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--shadow);
}

.tip-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tip-icon svg { width: 22px; height: 22px; stroke: var(--white); }

.tip-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.tip-body {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

/* === NEWSLETTER === */
.newsletter-section {
  padding: 80px 0;
  background: var(--bg-alt);
}

.newsletter-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.newsletter-text { flex: 1; min-width: 280px; }

.newsletter-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.newsletter-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.newsletter-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-input::placeholder { color: rgba(255,255,255,0.55); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.newsletter-btn {
  padding: 13px 28px;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  transition: background var(--transition), transform var(--transition);
}
.newsletter-btn:hover {
  background: #4fc8f5;
  transform: translateY(-1px);
}

/* === FAQ === */
.faq-section { padding: 96px 0; background: var(--white); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--accent); }
.faq-item.open { border-color: var(--primary); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color var(--transition);
  background: var(--white);
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--text-light);
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(180deg); stroke: var(--primary); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
}
.faq-answer.open { display: block; }

.faq-answer p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  padding-top: 4px;
}

/* === FOOTER === */
.site-footer {
  background: var(--secondary);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-list a:hover { color: var(--accent); }

.footer-contact-text {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.footer-contact-link {
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* === MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,40,57,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(5,40,57,0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-close svg { width: 18px; height: 18px; stroke: var(--text-light); }

.modal-icon {
  width: 56px;
  height: 56px;
  background: #E8F8F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.modal-icon svg { width: 28px; height: 28px; stroke: var(--teal); }

.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-btn {
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.modal-btn:hover { background: var(--primary-dark); }

/* === LEGAL PAGES === */
.legal-main { padding: 80px 0 96px; background: var(--bg); }
.legal-wrapper { max-width: 760px; margin: 0 auto; }
.legal-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 2px solid var(--border-light); }
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.legal-sub {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.legal-date {
  font-size: 13px;
  color: var(--text-muted);
}
.legal-body { display: flex; flex-direction: column; gap: 24px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}
.legal-body p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
}
.legal-body p:first-child { margin-top: 0; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.legal-list li { font-size: 15px; color: var(--text-light); line-height: 1.65; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 80vh; }
  .hero-stats { gap: 28px; }

  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-img { height: 280px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .articles-grid { grid-template-columns: 1fr; }

  .newsletter-box { padding: 40px 28px; flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .section-header { margin-bottom: 40px; }
  .articles-section, .tips-section, .faq-section, .intro-section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat-num { font-size: 26px; }
}