/*
 * css/styles.css
 * Main stylesheet for the "Grenzen & Gedoe" sales page.
 * Defines the color palette, typography, and base layout styles.
 * Related files: index.html
 */

/* ==========================================================================
   1. CSS Custom Properties (Color Palette)
   ========================================================================== */

:root {
  /* Background colors */
  --color-white: #FFFFFF;
  --color-background-light: #F8F9FA;

  /* Text colors - blue tints for calm, trustworthy feel */
  --color-text-primary: #1A3A5A;
  --color-text-secondary: #4A6A8A;

  /* Action color - emerald green for CTA buttons */
  --color-action: #009B77;
  --color-action-hover: #007F61;
}

/* ==========================================================================
   2. Base / Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   3. Typography (Inter font)
   ========================================================================== */

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-white);
}

/* Headings - bold weight, tighter line-height */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Body text - regular weight, good readability */
p {
  font-weight: 400;
  margin-bottom: 1rem;
}

ul, ol {
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

/* Alternating section backgrounds */
section {
  padding: 3rem 1.5rem;
}

section:nth-child(odd) {
  background-color: var(--color-white);
}

section:nth-child(even) {
  background-color: var(--color-background-light);
}

/* Container to center content and limit width */
.container {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   5. CTA Buttons
   ========================================================================== */

.cta-button {
  display: inline-block;
  background-color: var(--color-action);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: var(--color-action-hover);
}

/* Secondary CTA - outlined style */
.cta-secondary {
  display: inline-block;
  color: var(--color-action);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--color-action);
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-secondary:hover {
  background-color: var(--color-action);
  color: var(--color-white);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */

.hero {
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero .course-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-action);
  margin-bottom: 0.75rem;
}

.hero .cta-button {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   7. Trustbar
   ========================================================================== */

.trustbar {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--color-background-light);
}

.trustbar-items {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.trustbar-items li {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   8. Checkmark List (for "Snelle Winst", "Voor Wie", etc.)
   ========================================================================== */

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 1.75rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-action);
  font-weight: 700;
}

/* Cross list for "niet voor jou" items */
.cross-list {
  list-style: none;
  padding-left: 0;
}

.cross-list li {
  padding-left: 1.75rem;
  position: relative;
}

.cross-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #C0392B;
  font-weight: 700;
}

/* ==========================================================================
   9. Two-Column Layout (for "Voor Wie" section)
   ========================================================================== */

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   10. CTA Section (centered)
   ========================================================================== */

.cta-section {
  text-align: center;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   11. Module List (for "Inhoud" section)
   ========================================================================== */

.module-list {
  list-style: none;
  padding-left: 0;
  counter-reset: module;
}

.module-list li {
  counter-increment: module;
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
  border-bottom: 1px solid #E0E0E0;
}

.module-list li::before {
  content: counter(module);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-action);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   12. Pricing Block
   ========================================================================== */

.pricing-block {
  background-color: var(--color-white);
  border: 2px solid var(--color-action);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.pricing-block .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-action);
  margin-bottom: 0.5rem;
}

.pricing-block .price-note {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   13. FAQ Accordion
   ========================================================================== */

.faq-item {
  border-bottom: 1px solid #E0E0E0;
  padding: 1rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  padding: 0.5rem 0;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-action);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  padding-top: 0.5rem;
  color: var(--color-text-secondary);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   14. Guarantee Box
   ========================================================================== */

.guarantee-box {
  background-color: var(--color-background-light);
  border-left: 4px solid var(--color-action);
  padding: 1.5rem;
  border-radius: 4px;
}

/* ==========================================================================
   15. Disclaimer
   ========================================================================== */

.disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--color-text-secondary);
}

.legal a,
.faq-answer a {
  color: var(--color-action);
}

/* ==========================================================================
   16. Images
   ========================================================================== */

.section-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

/* Hero image: full-width banner with rounded corners */
.hero-image {
  width: 100%;
  max-width: 800px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem auto 0;
  display: block;
}

/* Inline image next to text */
.image-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.image-text-row img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .image-text-row {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 200px;
  }
}

/* ==========================================================================
   17. Order Form (bestellen.html)
   ========================================================================== */

.order-box {
  background-color: var(--color-white);
  border: 2px solid var(--color-action);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.order-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-action);
  margin-bottom: 1.5rem;
}

.order-price-note {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  border: 1px solid #D0D5DD;
  border-radius: 6px;
  color: var(--color-text-primary);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgba(0, 155, 119, 0.15);
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--color-action);
}

.checkbox-group a {
  color: var(--color-action);
  text-decoration: underline;
}

.checkbox-toelichting {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.order-button {
  width: 100%;
  margin-top: 0.5rem;
}

.order-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
}

/* ==========================================================================
   18. Thank You Page (bedankt.html)
   ========================================================================== */

.thankyou-box {
  max-width: 600px;
  margin: 0 auto;
}

.thankyou-box h2 {
  margin-top: 1.5rem;
}

.thankyou-box .cta-secondary {
  margin-top: 2rem;
}

/* ==========================================================================
   19. Site footer
   ========================================================================== */

.site-footer {
  padding: 1.5rem;
  text-align: center;
  background-color: var(--color-background-light);
  border-top: 1px solid #E0E0E0;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--color-action);
}

/* ==========================================================================
   20. Responsive Adjustments
   ========================================================================== */

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .hero {
    padding: 2.5rem 1rem;
  }

  .hero .cta-button {
    display: block;
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .hero .cta-secondary {
    display: block;
  }

  .pricing-block .price {
    font-size: 2rem;
  }
}
