/* ============================================================
   AstroStrand Systeme - Warm Friendly CSS Design
   Brand Colors: #243A5E (primary), #B7CDAA (secondary), #FFD966 (accent)
   Fonts: Montserrat (display), Roboto (body)
   Warm, approachable, modern, flexbox-first, mobile-first
=============================================================== */

/* ====================
   CSS RESET & NORMALIZE
   ==================== */
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, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FAF7F0;
  color: #3B2D13;
  line-height: 1.7;
  font-size: 16px;
}

*, *::before, *::after {
  box-sizing: inherit;
}

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

a {
  color: #243A5E;
  text-decoration: none;
  transition: color 0.2s;
}

a:focus, a:hover {
  color: #B87B13;
  outline: none;
}

ul, ol {
  margin: 16px 0 16px 24px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 24px;
  box-shadow: 0 4px 24px 0 rgba(36,58,94,0.08);
  position: relative;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}


/* ====================
   TYPOGRAPHY
   ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #243A5E;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

p, li, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #463A1D;
}

strong, b {
  font-weight: 700;
  color: #243A5E;
}

/* Lists inside sections */
.content-wrapper ul,
.content-wrapper ol {
  margin-left: 20px;
}

/* ====================
   BUTTONS & LINKS
   ==================== */
.btn-primary,
.btn-link {
  display: inline-block;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  min-width: 160px;
  text-align: center;
  text-decoration: none;
  margin: 10px 0 0 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn-primary {
  background: #FFD966;
  color: #243A5E;
  box-shadow: 0 2px 8px rgba(255,217,102,0.16);
}
.btn-primary:hover, .btn-primary:focus {
  background: #FFCA2A;
  color: #243A5E;
  box-shadow: 0 4px 16px rgba(255,217,102,0.20);
  transform: translateY(-3px) scale(1.04);
}

.btn-link {
  background: none;
  color: #243A5E;
  padding: 0 8px;
  border-radius: 12px;
  border: 2px solid #FFD966;
  margin-left: 0;
}
.btn-link:hover, .btn-link:focus {
  background: #FFF7DF;
  color: #B87B13;
}

/* ====================
   HEADER & NAVIGATION
   ==================== */
header {
  width: 100%;
  background: #FFFDF9;
  padding: 0 0 0 0;
  box-shadow: 0 2px 8px rgba(36,58,94,0.06);
  position: sticky;
  top: 0;
  z-index: 40;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 18px 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 18px;
  transition: background 0.2s, color 0.2s;
  color: #243A5E;
  font-weight: 600;
}

.main-nav a:hover, .main-nav a:focus {
  background: #FFD966;
  color: #243A5E;
}

.main-nav .btn-primary {
  margin: 0 0 0 14px;
}

.main-nav img {
  width: 40px;
  height: 40px;
  margin-right: 6px;
  border-radius: 50%;
  background: #FAF7F0;
  box-shadow: 0 2px 8px rgba(36,58,94,0.08);
}

/* ===========================
   MOBILE MENU HAMBURGER BUTTON
   ========================== */
.mobile-menu-toggle {
  display: none;
  background: #FFD966;
  border: none;
  font-size: 2rem;
  color: #243A5E;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  top: 12px;
  z-index: 99;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,217,102,0.12);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #FFCA2A;
  color: #243A5E;
}

/* =====================
   MOBILE SLIDE-IN MENU
   ===================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(254,245,215,0.98);
  transform: translateX(-100vw);
  transition: transform 0.34s cubic-bezier(0.5,0,0.5,1);
  z-index: 200;
  box-shadow: 2px 0 24px 0 rgba(36,58,94,0.16);
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  background: #FFD966;
  color: #243A5E;
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(255,217,102,0.10);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFCA2A;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 32px;
  margin-top: 24px;
}
.mobile-nav a {
  color: #243A5E;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  padding: 14px 0;
  width: 100%;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD966;
  color: #3B2D13;
}

/* ====================
   HERO & CTA SECTIONS
   ==================== */
section:first-of-type {
  background: #F5ECCB;
  box-shadow: 0 4px 24px 0 rgba(255,217,102,0.07);
}
section:last-of-type {
  background: linear-gradient(90deg, #FFFDF9 0%, #F5ECCB 100%);
}

/* ====================
   FEATURE GRID & CARDS
   ==================== */
.feature-grid, .usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.feature-grid > div, .usp-grid > div, .service-card {
  background: #FFF;
  box-shadow: 0 2px 8px rgba(36,58,94,0.08);
  border-radius: 20px;
  padding: 28px 22px 24px 22px;
  flex: 1 1 200px;
  min-width: 220px;
  max-width: 295px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}

.feature-grid > div:hover, .service-card:hover, .usp-grid > div:hover {
  box-shadow: 0 6px 32px 0 rgba(255,217,102,0.13);
  transform: translateY(-4px) scale(1.025);
}

.feature-grid img, .usp-grid img, .service-card img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFF7DF;
  box-shadow: 0 2px 8px rgba(255,217,102,0.13);
  margin-bottom: 8px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #F8F6EC;
  box-shadow: 0 2px 8px rgba(183,205,170,0.15);
  border-radius: 20px;
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.icon-grid {
  display: flex;
  gap: 20px;
  margin: 20px 0 0 0;
  align-items: center;
  flex-wrap: wrap;
}

.icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 0 0;
  align-items: center;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5ECCB;
  border-radius: 16px;
  padding: 8px 14px;
  font-size: 1rem;
}
.icon-list img {
  width: 24px;
  height: 24px;
}

/*********************
   TEXT-IMAGE SECTION
**********************/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/*********************
      TESTIMONIALS
**********************/
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px;
  margin-bottom: 20px;
  background: #FFFDF9;
  border-radius: 22px;
  box-shadow: 0 2px 12px 0 rgba(36,58,94,0.08);
  border: 1px solid #FFD966;
  color: #3B2D13;
  font-size: 1.08rem;
  max-width: 660px;
  width: 100%;
  position: relative;
  transition: transform 0.14s, box-shadow 0.14s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px 0 rgba(255,217,102,0.11);
  transform: scale(1.02);
}
.testimonial-card p {
  color: #3B2D13;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-card div {
  color: #243A5E;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
}

/**********************
       FORMS (if any)
***********************/
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid #B7CDAA;
  border-radius: 12px;
  margin-top: 4px;
  background: #FFF;
  color: #3B2D13;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid #FFD966;
  border-color: #FFD966;
}

/********************
   FOOTER
*********************/
footer {
  background: #243A5E;
  color: #FFF;
  padding: 0 0 0 0;
  margin-top: 60px;
}
footer .container {
  padding-top: 30px;
  padding-bottom: 32px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: flex-start;
}
footer a {
  color: #FFD966;
  font-size: 1rem;
  font-family: 'Montserrat',Arial,Helvetica,sans-serif;
  transition: color 0.18s;
}
footer a:hover, footer a:focus {
  color: #B7CDAA;
}
footer img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FFF;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(255,217,102,0.08);
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
footer .legal {
  font-size: 0.98rem;
  opacity: 0.65;
  margin-top: 6px;
}

.contact-data {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
}
.contact-data div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3B2D13;
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.contact-data img {
  width: 22px;
  height: 22px;
  margin-right: 3px;
}

/*******************
  FAQ, BENEFITS, ETC
*******************/
.faq-preview {
  background: #FFFBE9;
  border-radius: 16px;
  padding: 18px 18px 10px 18px;
  box-shadow: 0 2px 8px rgba(255,217,102,0.08);
  margin-top: 8px;
}
.faq-preview h4 {
  color: #243A5E;
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit-list li {
  padding-left: 6px;
}

/******************************
     CARD, FEATURE, SECTION FLEX
******************************/
.card-container, .content-grid, .feature-item {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/****************************
   COOKIE CONSENT BANNER
****************************/
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF7DF;
  color: #463A1D;
  box-shadow: 0 -4px 18px 0 rgba(36,58,94,0.07);
  padding: 26px 22px 26px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  z-index: 300;
  font-size: 1rem;
  gap: 16px;
  transition: transform 0.28s cubic-bezier(.42,0,.58,1);
}
.cookie-consent-banner.hide {
  transform: translateY(120%);
}

.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.09s;
  margin-right: 0;
  box-shadow: 0 2px 6px rgba(255,217,102,0.13);
}
.cookie-accept {
  background: #FFD966;
  color: #243A5E;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #FFCA2A;
}
.cookie-reject {
  background: #B7CDAA;
  color: #243A5E;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #A1B591;
}
.cookie-settings {
  background: #FFF;
  color: #243A5E;
  border: 1.5px solid #B7CDAA;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #F5ECCB;
}

/********************************
   COOKIE PREFERENCE MODAL POPUP
********************************/
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,58,94,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #FFF;
  padding: 38px 32px 28px 32px;
  border-radius: 22px;
  box-shadow: 0 6px 36px 0 rgba(36,58,94,0.19);
  min-width: 320px;
  max-width: 95vw;
  position: relative;
  color: #3B2D13;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInPop 0.36s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInPop {
  0% {opacity:0; transform:scale(0.97) translateY(24px);}
  90% {opacity:1;}
  100% {opacity:1; transform:scale(1) translateY(0);}
}
.cookie-modal h2 {
  margin-bottom: 8px;
}
.cookie-settings-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 0 0;
}
.cookie-toggle-label {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-toggle-switch {
  width: 42px;
  height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #FFD966;
  border-radius: 24px;
  transition: background 0.19s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  background: #B7CDAA;
}
.cookie-toggle-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #FFF;
  border-radius: 50%;
  transition: transform 0.20s;
  box-shadow: 0 1px 3px rgba(36,58,94,0.10);
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #243A5E;
  cursor: pointer;
  opacity: 0.8;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  opacity: 1;
}

/*********************************
   RESPONSIVE DESIGN (mobile first)
**********************************/
@media (max-width: 1150px) {
  .container {
    padding: 0 16px;
    max-width: 100vw;
  }
  .main-nav {
    gap: 10px;
  }
  .feature-grid > div, .service-card {
     min-width: 180px; max-width: 245px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.99rem;
  }
  .feature-grid, .usp-grid, .icon-list {
    gap: 14px;
  }
  .content-wrapper {
    gap: 18px;
  }
  section {
    padding: 32px 8px;
    margin-bottom: 40px;
    border-radius: 18px;
  }
}

@media (max-width: 768px) {

  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  .main-nav > *, .main-nav .btn-primary {
    display: none; /* hide full header menu items */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .section, section { padding: 28px 6px; margin-bottom: 32px; border-radius: 14px; }
  .container { max-width: 100vw; padding: 0 4vw; }

  .feature-grid, .usp-grid {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-grid > div, .service-card {
     min-width: 0; max-width: none; width: 100%;
     padding: 22px 14px 18px 14px;
  }
  .testimonial-card {
    padding: 18px 12px;
    border-radius: 14px;
    max-width: 100%;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .icon-list, .icon-grid {
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }
  .icon-list li, .icon-grid {
    font-size: 0.97rem;
    border-radius: 10px;
    padding: 6px 8px;
  }
  .footer-nav { gap: 10px; flex-wrap: wrap; }
  footer .content-wrapper { gap: 10px; }
  footer .container { padding-top: 22px; padding-bottom: 22px; }
  .contact-data { padding: 6px 0; gap: 10px; }
  .mobile-menu {
    padding-top: 12px;
  }
  .mobile-nav {
    padding: 30px 12px;
    margin-top: 12px;
    gap: 13px;
  }
  .mobile-menu-close {
    margin-top: 10px; margin-right: 12px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 8px 18px 8px;
    font-size: 0.98rem;
  }
  .cookie-btn {
    min-width: 0;
    width: 100%;
  }
  .cookie-modal {
    padding: 20px 6vw 16px 6vw;
    min-width: 0;
  }
}

/****************************
   MICRO-INTERACTIONS/ANIMS
 ***************************/
.btn-primary, .btn-link, .cookie-btn, .main-nav a, .mobile-nav a {
  transition: background 0.19s, color 0.18s, box-shadow 0.19s, transform 0.09s;
}

section, .feature-grid > div, .testimonial-card, .card {
  transition: box-shadow 0.21s, background 0.15s, border 0.13s, transform 0.18s;
}

/****************************
   HELPER UTILITY CLASSES
 ****************************/
.rounded {
  border-radius: 22px;
}
.shadow {
  box-shadow: 0 4px 24px 0 rgba(36,58,94,0.08);
}
.text-center {
  text-align: center;
}
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }
.mt-20 { margin-top: 20px; }

/* ====================
   PRINT
   ==================== */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  section { box-shadow: none !important; background: #FFF !important; }
}

/**********************************************
    END - AstroStrand Systeme Warm_Friendly CSS
***********************************************/
