/* ------------------------------------------------- */
/* RESET & NORMALIZE (ESSENTIAL FOR ALL BROWSERS)    */
/* ------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.625;
  background: #FFF;
}
ul, ol {
  margin-bottom: 1.25em;
  padding-left: 2em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
}

/* ------------------------------------------- */
/* FONT FACE & TYPOGRAPHY                     */
/* ------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Source+Sans+Pro:wght@300;400;600&display=swap');
:root {
  --primary: #0B396D;
  --secondary: #417D7A;
  --accent: #F6F6F6;
  --text-main: #1B232F;
  --text-soft: #455069;
  --border: #e2e2e2;
  --bg-light: #FBFBFB;

  --font-display: 'Montserrat', Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Source Sans Pro', Georgia, serif;
}
body {
  color: var(--text-main);
  background: var(--bg-light);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 0.6em;
  font-weight: 600;
  line-height: 1.1;
}
h1 { font-size: 2.6rem; letter-spacing: 0.01em; margin-bottom: 0.7em; }
h2 { font-size: 2rem; margin-bottom: 0.7em; }
h3 { font-size: 1.32rem; letter-spacing: 0.01em; margin-bottom: 0.5em; color: var(--secondary); }
h4, h5, h6 { font-size: 1.1rem; }

p, .lead, li, ul {
  color: var(--text-soft);
  font-weight: 400;
  margin-bottom: 1.1em;
}
.lead {
  font-size: 1.22em;
  color: var(--text-main);
  font-weight: 400;
  margin-bottom: 2em; 
  line-height: 1.6;
}
strong { font-weight: 600; color: var(--primary); }

.text-section {
  font-size: 1.08em;
  line-height: 1.8;
  margin-bottom: 0.5em;
  color: var(--text-main);
}

ul, ol {
  margin-bottom: 1.1em;
  padding-left: 1.6em;
}
li { margin-bottom: 0.5em; }

/* ---------------------------------------------*/
/* GENERAL SPACING & FLEX CONTAINERS            */
/* ---------------------------------------------*/
.container {
  max-width: 1060px;
  width: 94%;
  margin: 0 auto;
  padding-left: 0px;
  padding-right: 0px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(11,57,109,0.04);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media (max-width: 900px) {
  .section { padding: 32px 6vw;   }
}
@media (max-width: 600px) {
  .section { padding: 24px 2vw;   }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(11,57,109,0.04);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  max-width: 400px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px 24px;
}

.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;
}
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ------------------------------------------*/
/* HEADER / NAVIGATION / CTA                 */
/* ------------------------------------------*/
header {
  background: #fff;
  box-shadow: 0 4px 18px rgba(11,57,109,0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header img[alt="CharismaSchub"] {
  height: 43px;
  margin-right: 14px;
  min-width: 144px;
}

header nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 500;
  padding: 0 2px 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom-color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 11px 26px;
  background: var(--primary);
  color: #fff;
  font-size: 1.11rem;
  border: none;
  border-radius: 32px;
  box-shadow: 0 0px 6px rgba(11,57,109,0.09);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  margin-left: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(11,57,109,0.16);
}

/* Hide Mobile Menu Toggle on Desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--secondary);
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 57, 109, 0.95);
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.8, .21, .21, .97);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  margin: 32px 22px 0 0;
  cursor: pointer;
  transition: color 0.18s;
  align-self: flex-end;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.38rem;
  font-weight: 600;
  transition: color 0.18s;
  padding: 7px 0;
  border-radius: 8px;
  width: 90%;
  text-align: center;
  background: rgba(255,255,255,0.04);
}
.mobile-nav a:active,
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--accent);
}

@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 4px;
  }
}

@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* ---------------------------------------------*/
/* FEATURE & CARD GRID (MANDATORY LAYOUT)        */
/* ---------------------------------------------*/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.feature-grid > div {
  flex:1 1 190px;
  min-width: 215px;
  background: var(--accent);
  padding: 28px 20px 22px 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(11,57,109,0.05);
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(11,57,109,0.08);
  transform: translateY(-2px) scale(1.016);
}
.feature-grid img {
  height: 48px;
  margin-bottom: 16px;
  filter: grayscale(20%);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 140px;
    margin-bottom: 14px;
  }
}

/* ----------------------------------------*/
/* TESTIMONIALS / SLIDER                   */
/* ----------------------------------------*/
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(11,57,109,0.10);
  flex-basis: 320px;
  min-width: 260px;
  max-width: 420px;
  margin-bottom: 20px;
  border: 1.5px solid var(--border);
}
.testimonial-card p {
  color: #262c35;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.7;
  font-family: var(--font-display);
  margin-bottom: 0.7em;
}
.testimonial-card span {
  color: var(--secondary);
  font-size: 1em;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { width: 100%; max-width: 100%; }
}

/* ----------------------------------*/
/* BUTTONS & FORM ELEMENTS           */
/* ----------------------------------*/
button, .cta-btn {
  font-family: var(--font-display);
  font-size: 1.08rem;
  border: none;
  border-radius: 32px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  cursor: pointer;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--secondary);
}

/* ------------------------------------------*/
/* FOOTER                                    */
/* ------------------------------------------*/
footer {
  background: var(--primary);
  color: #fff;
  padding: 0;
  margin-top: 50px;
}
footer .container {
  padding: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 26px;
  padding: 28px 0 14px 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer nav a {
  font-family: var(--font-display);
  color: #f5f5fc;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: underline;
  margin-bottom: 6px;
  transition: color 0.18s;
}
footer nav a:hover,footer nav a:focus { color: var(--secondary); }
footer .text-section {
  color: #e0ecfa;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 8px;
}
footer .text-section a { color: #f5f5fc; text-decoration: underline; }
footer .social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}
footer .social-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  background: #173a5a;
  justify-content: center;
  transition: background 0.18s;
}
footer .social-links a:hover {
  background: var(--secondary);
}
footer .social-links img {
  filter: brightness(96%);
  height: 20px;
  width: 20px;
}
@media (max-width: 800px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 10px;
    padding: 18px 0 8px 0;
  }
}

/* -------------------------------------------------*/
/* COOKIES CONSENT BANNER & MODAL                    */
/* -------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  border-top: 1.5px solid var(--border);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 38px;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(11,57,109,0.09);
  font-family: var(--font-body);
  transition: transform 0.42s;
  font-size: 1.05rem;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner .cookie-banner-text {
  flex: 1 1 240px;
  min-width: 170px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-btn {
  font-family: var(--font-display);
  border-radius: 29px;
  font-size: 1rem;
  padding: 8px 20px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-weight: 500;
  transition: background 0.15s, color 0.16s;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--secondary);
  border-color: var(--secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.cookie-btn.settings:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 10px 12px 10px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-banner-text { margin-bottom: 10px; }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100000;
  background: rgba(11, 57, 109, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.34s;
}
.cookie-modal {
  background: #fff;
  color: var(--primary);
  border-radius: 19px;
  max-width: 400px;
  width: 92vw;
  box-shadow: 0 10px 40px rgba(11,57,109,0.13);
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUp 0.34s;
}
.cookie-modal h3 {
  margin-bottom: 7px;
  font-size: 1.23rem;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: var(--secondary);
  font-family: var(--font-body);
}
.cookie-modal .cookie-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .close-cookie-modal:hover {
  color: var(--secondary);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 18px 7px;
    font-size: 0.99rem;
  }
}
@keyframes fadeIn {
  from {opacity: 0;} to {opacity: 1;}
}
@keyframes slideUp {
  from {transform: translateY(150px); opacity: 0;} to {transform: translateY(0); opacity: 1;}
}

/* -------------------------------------------------*/
/* MISC: QUOTE, CODE, BLOCK, ETC                     */
/* -------------------------------------------------*/
blockquote {
  border-left: 4px solid var(--secondary);
  background: var(--accent);
  color: var(--secondary);
  font-style: italic;
  font-size: 1.12em;
  padding: 10px 18px 10px 22px;
  margin: 20px 0;
  border-radius: 6px;
}
code {
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--secondary);
  font-family: 'Source Code Pro', monospace;
}

/* -------------------------------------------------*/
/* RESPONSIVENESS                                   */
/* -------------------------------------------------*/
@media (max-width: 650px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.29rem; }
  h3 { font-size: 1rem; }
  .section { padding: 22px 5px; margin-bottom: 33px; }
  .container { width: 98%; max-width: 100vw; }
  .testimonial-card, .card { min-width: unset; }
}

/* Typography scaling for small screens */
@media (max-width: 480px) {
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.09rem; }
  .lead, p, li { font-size: 1rem; }
}

/* -------------------------------------------------*/
/* UTILITY CLASSES                                  */
/* -------------------------------------------------*/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.visible { display: block !important; }
.invisible { display: none !important; }

/* Ensure proper z-index stacking without overlap */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { z-index: 1000; }

/* Hide visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
  padding: 0;
}

/* ------------------------------------------*/
/* ANIMATIONS / TRANSITIONS / MICRO EFFECTS  */
/* ------------------------------------------*/
a, .cta-btn, button, .feature-grid > div, .mobile-menu, .mobile-nav a {
  transition: all 0.18s cubic-bezier(.7, .17, .41, 1);
}
.feature-grid > div:active {
  transform: scale(0.97);
}

/* Subtle content appearance for cards/sections */
.section, .card, .testimonial-card, .feature-grid > div {
  animation: sectionFadeIn 0.8s cubic-bezier(.21,.68,.63,1);
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); }
}

/* For accessibility: focus outline on all interactive elements */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 1.5px;
  z-index: 10;
}

/* ------------------------------------------*/
/* OVERRIDES / PAGE-SPECIFIC ADJUSTMENTS     */
/* ------------------------------------------*/
section ul, section ol {
  margin-bottom: 20px;
  margin-left: 16px;
}
section ul li, section ol li {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 1em;
}

/* Ensure space between each section */
main > section { margin-bottom: 42px; }

/* Specific for logo in contact page (text-image-section) */
.text-image-section > img, .text-image-section > div > img {
  max-width: 230px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------*/
/* PRINT (minimal)                           */
/* ------------------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/*---------------------------------------------------*/
/* END                                              */
/*---------------------------------------------------*/
