/* ===============================
   Schuldenslim Academie — style.css
   Design: modern_bold (bold, bright, geometric, high contrast)
   Constraints: FLEX-ONLY layouts, mobile-first, brand guidelines
   =============================== */

/* -------- Reset & Normalize (minimal) -------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #FF5A3C; outline-offset: 2px; }

/* -------- Brand Tokens -------- */
:root {
  --color-primary: #0B3A53; /* deep blue */
  --color-secondary: #2E7D6E; /* teal */
  --color-accent: #F5F7FA; /* light accent */
  --color-bg: #FFFFFF;
  --color-text: #0B3A53;
  --color-muted: #6B8A99;
  --color-ink: #0A1F2A;
  --color-highlight: #FF5A3C; /* energetic accent for modern_bold CTAs */
  --shadow-sm: 0 2px 8px rgba(11, 58, 83, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 58, 83, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --maxw: 1100px;
}

/* -------- Base Typography -------- */
body {
  font-family: Verdana, Geneva, sans-serif; /* body */
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; /* display */
  color: var(--color-text);
  font-weight: 800; /* bold for modern_bold */
  letter-spacing: 0.3px;
}
h1 { font-size: 40px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 20px; line-height: 1.3; margin-top: 16px; margin-bottom: 8px; }
p { font-size: 16px; color: var(--color-ink); }
.subheading { font-size: 18px; color: #093347; opacity: 0.95; }

/* Desktop type scale adjustments */
@media (min-width: 768px) {
  h1 { font-size: 56px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .subheading { font-size: 20px; }
}

/* -------- Layout Helpers -------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex; /* FLEX-ONLY */
  flex-direction: column; /* mobile-first */
  gap: 18px;
  align-items: flex-start;
}

/* Mandatory spacing & alignment patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Global section defaults (applied to all <section>) */
section { margin-bottom: 60px; padding: 40px 0; }

/* -------- Header & Navigation -------- */
header { position: sticky; top: 0; z-index: 1000; background: #ffffff; box-shadow: var(--shadow-sm); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.logo img { height: 40px; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a {
  font-weight: 700; font-size: 14px; color: var(--color-primary); padding: 10px 12px; border-radius: 10px; transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.main-nav a:hover { background: var(--color-accent); color: var(--color-secondary); transform: translateY(-1px); }

.header-ctas { display: none; align-items: center; gap: 10px; }
.header-ctas a { 
  background: var(--color-secondary); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .2s ease, background-color .2s ease; 
}
.header-ctas a:hover { background: #27907f; transform: translateY(-2px); }
.header-ctas a:last-child { background: #E9F3F1; color: var(--color-secondary); }
.header-ctas a:last-child:hover { background: #D4ECE7; }

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); transition: transform .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-2px); background: #0e4868; }

/* Desktop nav */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -------- Mobile Menu Overlay -------- */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(9, 51, 71, 0.96); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s ease; z-index: 1500;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; margin: 16px; width: 44px; height: 44px; border-radius: 12px; background: #FFFFFF; color: var(--color-primary); font-weight: 900; box-shadow: var(--shadow-sm);
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.mobile-nav a {
  background: #fff; color: var(--color-primary); padding: 16px; border-radius: 14px; font-weight: 800; font-size: 16px; box-shadow: var(--shadow-sm); 
}
.mobile-nav a:active { transform: translateY(1px); }

/* -------- Hero -------- */
.hero { position: relative; overflow: hidden; background: var(--color-primary); color: #fff; }
.hero .content-wrapper { padding: 40px 0; }
.hero h1, .hero .subheading { color: #fff; }
.hero .subheading { opacity: 0.95; }

/* Geometric accent shape (decorative only) */
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; background: var(--color-secondary); opacity: 0.18; border-radius: 24px; transform: rotate(12deg);
}
.hero::before {
  content: ""; position: absolute; left: -60px; bottom: -60px; width: 180px; height: 180px; background: var(--color-accent); opacity: 0.65; border-radius: 24px; transform: rotate(8deg);
}

/* CTA Group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-group a {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 18px; border-radius: 14px; font-weight: 900; letter-spacing: .3px; box-shadow: var(--shadow-md); transition: transform .2s ease, background-color .2s ease, color .2s ease; 
}
.cta-group a:first-child { background: var(--color-highlight); color: #fff; }
.cta-group a:first-child:hover { background: #ff6a4f; transform: translateY(-2px); }
.cta-group a:last-child { background: #FFFFFF; color: var(--color-primary); }
.cta-group a:last-child:hover { background: var(--color-accent); transform: translateY(-2px); }

/* Trust Badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-badges li { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.35); color: #fff; padding: 10px 12px; border-radius: 12px; }
.trust-badges img { width: 18px; height: 18px; }

/* -------- Text Sections -------- */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul, .text-section ol { padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.text-section li { position: relative; padding-left: 0; color: var(--color-ink); }
.text-section a { color: var(--color-secondary); font-weight: 800; border-bottom: 2px solid rgba(46,125,110,.25); }
.text-section a:hover { color: #26907f; border-color: #26907f; }

/* -------- Cards & Testimonials -------- */
.card { background: #fff; border: 2px solid var(--color-accent); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }

.testimonial-card {
  background: #FFFFFF; /* light bg for readability */
  border: 2px solid #E6EEF3; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.testimonial-card p { color: var(--color-ink); }
.testimonial-card strong { color: var(--color-primary); }
.stars { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.stars img { width: 18px; height: 18px; }

/* -------- Plans / Pricing emphasis (modern_bold) -------- */
.text-section h3 { color: var(--color-primary); text-transform: none; }
.text-section h3 + ul { background: var(--color-accent); border: 2px solid #E6EEF3; border-radius: var(--radius-md); padding: 14px; }

/* -------- Footer -------- */
footer { background: var(--color-primary); color: #DCE6ED; }
footer .content-wrapper { padding: 30px 0; flex-direction: column; gap: 24px; }
footer a { color: #FFFFFF; font-weight: 700; }
footer a:hover { color: #FFEEEA; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand p, .footer-contact p{ color: white; }
.footer-brand img { width: 44px; height: 44px; }
.footer-contact, .footer-nav { display: flex; flex-direction: column; gap: 8px; }
footer .container:last-child { border-top: 1px solid rgba(255,255,255,.15); }
footer .container:last-child p { padding: 14px 0; color: #BFD0DA; }

/* -------- Responsive Layout Enhancements -------- */
@media (min-width: 768px) {
  .content-wrapper { flex-direction: column; }
  /* text-image default rule requires row on desktop */
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  /* Header height harmony */
  header .content-wrapper { padding: 16px 0; }

  /* Multi-column-like layouts with flex and wrap */
  .content-grid > * { flex: 1 1 calc(33.333% - 20px); min-width: 260px; }
  .card-container > .card { flex: 1 1 calc(33.333% - 24px); min-width: 260px; }
}

/* -------- Buttons & Links (global) -------- */
.button, .btn, .main-nav a, .header-ctas a, .cta-group a { transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.button:active, .btn:active, .header-ctas a:active, .cta-group a:active { transform: translateY(1px); }

/* -------- Forms (generic future-proof) -------- */
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid #E6EEF3; background: #fff; color: var(--color-ink); }
input:focus, select:focus, textarea:focus { border-color: var(--color-secondary); outline: none; box-shadow: 0 0 0 4px rgba(46,125,110,0.15); }
label { font-weight: 800; color: var(--color-primary); display: block; margin-bottom: 6px; }

/* -------- Utility -------- */
.visually-hidden { position: absolute !important; clip: rect(0 0 0 0); clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.center { display: flex; align-items: center; justify-content: center; }
.muted { color: var(--color-muted); }

/* -------- Page-specific tweaks -------- */
/* Hero spacing per page */
.hero .container .content-wrapper { gap: 16px; }

/* Index specific trust badges inside hero already covered */

/* Pricing page: highlight recommended block text via header copy usage */
.text-section p strong { background: #FFF3EF; color: var(--color-highlight); padding: 2px 8px; border-radius: 8px; }

/* Reviews page: stack testimonials neatly */
section .content-wrapper .testimonial-card { width: 100%; }
@media (min-width: 768px) {
  section .content-wrapper { align-items: flex-start; }
  section .content-wrapper .testimonial-card { display: flex; flex-direction: row; justify-content: space-between; }
}

/* -------- Accessibility & Contrast for testimonials -------- */
/* Ensures dark text on light background by default already; reinforce */
.testimonial-card p, .testimonial-card strong { color: #0D2430; }

/* -------- Cookie Consent (banner + modal) -------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: #0E425E; color: #FFFFFF; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 16px; box-shadow: 0 -8px 24px rgba(0,0,0,0.18); transform: translateY(110%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: var(--color-secondary); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 900; }
.cookie-actions .btn-reject { background: #ffffff; color: var(--color-primary); padding: 12px 16px; border-radius: 12px; font-weight: 900; }
.cookie-actions .btn-settings { background: var(--color-highlight); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 900; }
.cookie-actions .btn-accept:hover { background: #27907f; }
.cookie-actions .btn-reject:hover { background: var(--color-accent); }
.cookie-actions .btn-settings:hover { background: #ff6a4f; }

/* Cookie modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(7,27,39,.6); z-index: 2200; display: none; }
.cookie-overlay.show { display: flex; align-items: center; justify-content: center; }
.cookie-modal { background: #fff; width: 92%; max-width: 720px; border-radius: 16px; box-shadow: var(--shadow-md); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-header h3 { margin: 0; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; background: var(--color-accent); border: 2px solid #E6EEF3; border-radius: 12px; padding: 12px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal-actions .btn-save { background: var(--color-secondary); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 900; }
.cookie-modal-actions .btn-cancel { background: #fff; border: 2px solid #E6EEF3; color: var(--color-primary); padding: 12px 16px; border-radius: 12px; font-weight: 900; }

/* Simple toggle pill */
.toggle { display: inline-flex; align-items: center; width: 50px; height: 28px; background: #E6EEF3; border-radius: 999px; position: relative; transition: background-color .2s ease; }
.toggle::after { content: ""; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); position: relative; left: 3px; transition: transform .2s ease; }
.toggle.on { background: var(--color-secondary); }
.toggle.on::after { transform: translateX(22px); }

@media (min-width: 768px) {
  .cookie-banner .container { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* -------- Micro-interactions -------- */
section a:hover { filter: none; }
.card:hover, .testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: box-shadow .25s ease, transform .25s ease; }

/* -------- Prevent Overlaps & Maintain Gaps -------- */
section > .container > .content-wrapper > * { margin: 0; }
section > .container > .content-wrapper { gap: 20px; }

/* -------- Alignment Requirements -------- */
/* Already ensured: .text-image-section align-items:center; mobile column, desktop row via media rules */

/* -------- Print Tweaks (optional) -------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: underline; }
}
