/* ===============================
   WortMelodie Akademie – style.css
   Professional Corporate Theme (blue/gray palette, gold accents)
   Mobile-first, Flexbox-only layout
   =============================== */

/* ===============================
   RESET & BASELINE
   =============================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ===============================
   THEME TOKENS
   =============================== */
:root {
  --primary: #0B2545;       /* deep corporate blue */
  --secondary: #A67C00;     /* warm gold */
  --accent: #F7F4EF;        /* subtle paper-like */
  --bg: #FFFFFF;
  --text: #1F2937;          /* slate-800 */
  --muted: #6B7280;         /* slate-500 */
  --line: #D1D5DB;          /* gray-300 */
  --line-strong: #9CA3AF;   /* gray-400 */
  --shadow: 0 6px 18px rgba(11, 37, 69, 0.08);
}

/* Font stacks: display -> Georgia, body -> Verdana */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', Times, serif; color: var(--primary); line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 6px; }
h3 { font-size: 18px; }

p { margin: 0 0 12px; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
strong { font-weight: 700; }
em { font-style: italic; }

/* Links */
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: #123760; }
a:focus-visible { outline: 3px solid rgba(166, 124, 0, 0.35); outline-offset: 2px; border-radius: 4px; }

/* Utility spacing for mandated classes */
.section { margin-bottom: 60px; padding: 40px 20px; background: transparent; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.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; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); color: var(--primary); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Global section rhythm for semantic <section> */
section { padding: 40px 0; margin-bottom: 60px; }

/* ===============================
   LAYOUT CONTAINERS (FLEX ONLY)
   =============================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;               /* flex container as required */
  flex-direction: column;      /* mobile-first */
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;      /* stack on mobile */
  gap: 20px;                   /* minimum 20px between elements */
  align-items: flex-start;
}

.text-section { display: flex; flex-direction: column; gap: 10px; }

/* ===============================
   HEADER & NAVIGATION
   =============================== */
header { position: sticky; top: 0; background: var(--bg); z-index: 900; box-shadow: 0 2px 10px rgba(11, 37, 69, 0.06); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 0; }

.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { padding: 8px 10px; border-radius: 8px; color: var(--primary); font-weight: 600; }
.main-nav a:hover { background: var(--accent); }

.header-ctas { display: none; align-items: center; gap: 10px; }

/* Mobile burger */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: var(--bg); color: var(--primary);
  border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mobile-menu-toggle:hover { background: var(--accent); }
.mobile-menu-toggle:focus-visible { outline: 3px solid rgba(166,124,0,0.35); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  transform: translateX(100%); transition: transform 0.35s ease; z-index: 1100;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--primary); border-radius: 10px; cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.mobile-nav a:hover { background: var(--accent); }

/* ===============================
   HERO SECTION
   =============================== */
.hero { background: var(--accent); border-bottom: 1px solid var(--line); }
.hero .content-wrapper { align-items: flex-start; }
.hero p { color: var(--text); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; letter-spacing: 0.3px; }
.supporting-points ul { margin-left: 18px; }

/* ===============================
   BUTTONS
   =============================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-decoration: none; font-weight: 700; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.1s ease; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.btn-primary:hover { background: #133B72; border-color: #133B72; }

.btn-secondary { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-secondary:hover { background: rgba(166,124,0,0.08); }

.btn-link { background: transparent; color: var(--primary); border: none; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn-link:hover { opacity: 0.85; }

/* Focus states */
.btn:focus-visible { outline: 3px solid rgba(166,124,0,0.35); outline-offset: 2px; }

/* ===============================
   FEATURES & SERVICES (CARDS)
   =============================== */
.feature-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.feature-grid .text-section {
  flex: 1 1 260px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; box-shadow: var(--shadow);
}

.service-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.service-cards .text-section {
  flex: 1 1 260px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; box-shadow: var(--shadow);
}

/* Values list (About page) */
.values-list { display: flex; flex-wrap: wrap; gap: 24px; }
.values-list .text-section { flex: 1 1 260px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }

/* Outcomes & Highlights */
.outcome-highlights ul { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-left: 0; list-style: none; padding-left: 0; }
.outcome-highlights li { background: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }

/* Steps timeline (ordered lists) */
.steps-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.steps-timeline li { border-left: 3px solid var(--primary); padding-left: 12px; }

/* ===============================
   TESTIMONIALS (light background, dark text)
   =============================== */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 24px; }
.testimonial-card { background: #FFFFFF; color: var(--primary); border: 1px solid var(--line); border-left: 4px solid var(--secondary); }
.rating-summary { color: var(--muted); font-weight: 600; }

/* ===============================
   CONTACT BLOCKS & SOCIAL LINKS
   =============================== */
.social-links { display: flex; align-items: center; gap: 12px; }
.social-links a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; }
footer .social-links a { border-color: rgba(255,255,255,0.25); }

/* ===============================
   FOOTER
   =============================== */
footer { background: var(--primary); color: #FFFFFF; padding: 40px 0 30px; }
footer a { color: #E6EDF5; }
footer a:hover { color: #FFFFFF; }
footer .content-wrapper { flex-direction: column; gap: 24px; }
.footer-nav, .legal-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h3, .legal-nav h3 { font-size: 16px; color: #FFFFFF; margin-bottom: 6px; }
footer .text-section p { color: #E6EDF5; }
footer .logo img { filter: brightness(0) invert(1); height: 42px; }

/* ===============================
   FORMS (generic)
   =============================== */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(166,124,0,0.35); }

/* ===============================
   COOKIE CONSENT – Banner & Modal
   =============================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: #0E2038; color: #FFFFFF; border-top: 3px solid var(--secondary);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px;
  transform: translateY(100%); transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { flex: 1 1 220px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-primary { background: var(--secondary); border-color: var(--secondary); color: #0B2545; }
.cookie-banner .btn-secondary { color: #FFFFFF; border-color: #FFFFFF; }

.cookie-modal { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(11,37,69,0.6); }
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content {
  display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 640px;
  background: #FFFFFF; color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 20px;
}
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Optional cookie toggles */
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #E5E7EB; border: 1px solid var(--line); display: inline-flex; align-items: center; padding: 2px; transition: background 0.2s ease; }
.switch .knob { width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line); transition: transform 0.2s ease; }
.switch.active { background: rgba(166,124,0,0.35); border-color: var(--secondary); }
.switch.active .knob { transform: translateX(20px); }

/* ===============================
   RESPONSIVE (Mobile-first)
   =============================== */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }

  /* Align text-image sections horizontally */
  .text-image-section { flex-direction: row; }

  /* Footer in two rows without grid */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; }
  footer .text-section { flex: 1 1 300px; }
  .footer-nav, .legal-nav { flex: 1 1 200px; }
}

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

  /* Hero alignment */
  .hero .content-wrapper { flex-direction: column; max-width: 860px; }

  /* Multi-column flex layouts */
  .content-wrapper.row { flex-direction: row; }
}

/* ===============================
   PAGE-SPECIFIC FINESSE
   =============================== */
/* Contact detail rows */
.text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* Lists inside cards tighter */
.feature-grid .text-section ul, .service-cards .text-section ul { margin-left: 16px; }

/* Tighten hero paragraph width for readability */
.hero .text-section, .hero .content-wrapper.text-section { max-width: 860px; }

/* ===============================
   ACCESSIBILITY & MICRO-INTERACTIONS
   =============================== */
::selection { background: rgba(166,124,0,0.25); }

/* Hover elevation for cards */
.feature-grid .text-section:hover, .service-cards .text-section:hover, .values-list .text-section:hover, .testimonial-card:hover {
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.12);
  transform: translateY(-1px);
  transition: box-shadow 0.25s ease, transform 0.1s ease;
}

/* ===============================
   GENERIC HELPERS
   =============================== */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.space-between { display: flex; justify-content: space-between; }

/* ===============================
   PRINT (basic)
   =============================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  section { margin: 0 0 24px; padding: 0; }
}
