/* ---------------- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  box-sizing: border-box;
}

/* ---------------- FONT IMPORTS ---------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #163447;
  --secondary: #28A370;
  --accent: #F6F7FB;
  --soft-pink: #FFDCEA;
  --soft-cyan: #D6F6FF;
  --soft-yellow: #FFF8CE;
  --soft-purple: #EEE5FF;
  --soft-green: #D8F6EC;
  --soft-gray: #EFF1F3;
  --dark-text: #1a2433;
  --light-bg: #FFFFFF;
  --shadow: 0 2px 16px 0 rgba(80,100,132,0.12);
  --radius: 18px;
  --gap: 20px;
  --section-padding: 40px 20px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

body {
  background: var(--accent);
  color: var(--dark-text);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 24px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 12px;
  font-weight: 700;
}
.subheadline {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

p, ul li, ol li, .text-section, .usp-list li {
  color: var(--dark-text);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}
.text-section h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.text-section ul, .usp-list {
  padding-left: 20px;
  margin-bottom: 20px;
}
.usp-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
}
.usp-list li:before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--soft-green);
  border-radius: 100%;
  position: absolute;
  left: 0;
  top: 6px;
}

ol {
  counter-reset: ordered;
}
ol li {
  counter-increment: ordered;
  margin-bottom: 16px;
  position: relative;
  padding-left: 30px;
}
ol li:before {
  content: counter(ordered) '.';
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.section {
  margin-bottom: 60px;
  padding: var(--section-padding);
  background: var(--light-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 20px 0 0 0;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--soft-cyan);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  flex: 1 1 230px;
  max-width: 260px;
  transition: var(--transition);
}
.feature-grid > div:hover {
  background: var(--soft-pink);
  box-shadow: 0 6px 32px 0 rgba(22,52,71,0.12);
  transform: translateY(-4px) scale(1.025);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.feature-list {
  margin-bottom: 18px;
  padding-left: 18px;
}
.feature-list li {
  margin-bottom: 11px;
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}
.feature-list li:before {
  content: '\2022';
  color: var(--secondary);
  font-size: 1.1rem;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.guide-list, .contact-list {
  margin-bottom: 16px;
  padding-left: 0;
}
.guide-list li, .contact-list li {
  background: var(--soft-yellow);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 20px 22px;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.guide-list li h3 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.topic-tags {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
.contact-list li img {
  margin-right: 12px;
  vertical-align: middle;
  width: 22px;
  height: 22px;
}

.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(--soft-purple);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.testimonial-card blockquote {
  color: #2b3344;
  font-size: 1.05rem;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}
.testimonial-card span {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  color: var(--secondary);
  margin-left: 10px;
  font-weight: 500;
}

/* ---------------- BUTTONS & LINKS ---------------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #AAF4DF 5%, var(--secondary) 85%);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px 0 rgba(40,163,112,.13);
  letter-spacing: 0.02em;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #FED1E0 10%, #53ced2 90%);
  color: var(--primary);
  box-shadow: 0 8px 32px 0 rgba(40,163,112,.20);
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.02rem;
  padding: 6px 18px;
  border-radius: 6px;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--soft-pink);
  color: var(--secondary);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1rem;
  padding: 3px 10px;
  border-radius: 5px;
  transition: background 0.18s;
}
.footer-nav a:hover {
  background: var(--soft-green);
}

.footer-contact, .footer-contact p {
  font-size: 0.98rem;
  color: var(--dark-text);
}
.footer-social {
  display: flex;
  gap: 18px;
  margin: 14px 0;
}
.footer-social a img {
  width: 28px;
  height: 28px;
}

footer p {
  font-size: 0.9rem;
  color: #7f8a98;
  margin: 8px 0 0 0;
}

/* ---------------- HEADER & LOGO ---------------- */
header {
  background: var(--soft-cyan);
  box-shadow: var(--shadow);
  padding: 0;
  margin-bottom: 34px;
  width: 100%;
  z-index: 1010;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px 20px;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 18px;
}
.logo img {
  height: 42px;
  width: auto;
}

/* ---------------- MOBILE NAVIGATION ---------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--soft-pink);
  border-radius: 11px;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  color: var(--primary);
  transition: var(--transition);
  z-index: 1020;
  box-shadow: var(--shadow);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,247,255, 0.97);
  box-shadow: 0 4px 40px 0 rgba(40,163,112,0.09);
  z-index: 1100;
  transform: translateX(120%);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.38s cubic-bezier(.51,.13,.18,.99), opacity 0.3s, visibility 0.3s;
}
.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 28px 18px 0;
  background: var(--soft-pink);
  border-radius: 11px;
  width: 46px;
  height: 46px;
  font-size: 2.2rem;
  color: var(--secondary);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(131,93,202,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--soft-purple);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 44px 0 0 44px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.32rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 10px;
  padding: 11px 18px;
  font-weight: 600;
  background: var(--soft-yellow);
  margin-right: 18px;
  transition: var(--transition);
}
.mobile-nav a:hover {
  color: var(--secondary);
  background: var(--soft-cyan);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width:1000px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* Hide mobile nav on desktop */
@media (min-width:1001px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ---------------- GENERAL CARDS & FLEX PATTERNS ---------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--soft-pink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}
.card:hover {
  background: var(--soft-cyan);
  box-shadow: 0 6px 32px 0 rgba(22,52,71,0.16);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Spacing between main content sections */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

.section {
  margin-bottom: 60px;
  padding: var(--section-padding);
}

/* List checkboxes styling in checklists */
input[type='checkbox'] {
  accent-color: var(--secondary);
  margin-right: 10px;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

/* ---------------- COOKIE CONSENT BANNER ---------------- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1400;
  background: var(--soft-pink);
  color: var(--primary);
  box-shadow: 0 -2px 24px rgba(22,52,71,0.19);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 18px 16px;
  gap: 16px;
  animation: slideup 0.7s cubic-bezier(.47,.33,.15,.98);
}
@keyframes slideup {
  from { transform: translateY(140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  max-width: 730px;
  font-size: 1rem;
  margin-bottom: 5px;
  text-align: center;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.cookie-btn {
  padding: 9px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: var(--soft-green);
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px 1px rgba(40,163,112,0.06);
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--light-bg);
}
.cookie-btn.reject {
  background: var(--soft-pink);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--soft-cyan);
  color: var(--secondary);
}
.cookie-btn:hover {
  box-shadow: 0 4px 24px 1px rgba(40,163,112,0.11);
  background: var(--soft-yellow);
  color: var(--secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(55,60,72, 0.32);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--accent);
  border-radius: 22px;
  box-shadow: 0 12px 38px 2px rgba(40,163,112,0.16);
  padding: 32px 26px;
  min-width: 320px;
  max-width: 94vw;
  width: 415px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  animation: popin .34s cubic-bezier(.72,.12,.22,.98);
}
@keyframes popin {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 500;
  margin-left: 5px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.cookie-category.category-essential label {
  font-style: italic;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------------- RESPONSIVENESS ---------------- */
@media (max-width: 1050px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    min-width: 47vw;
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.1rem; }
  .section, section {
    padding: 20px 7px 12px 7px;
    margin-bottom: 38px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 96vw;
    padding: 24px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    min-width: 92vw;
    padding: 16px 10px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .footer-social {
    margin-top: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  header .container {
    flex-direction: row;
    gap: 16px;
    padding: 8px 7px;
  }
}

@media (max-width:600px) {
  .logo img {
    height: 30px;
  }
  .btn-primary {
    padding: 10px 16px;
    font-size: 1rem;
  }
  .cookie-modal {
    min-width: 95vw;
    padding: 18px 4px;
  }
  .testimonial-card {
    font-size: 0.95rem;
  }
}

/* ---------------- MISC ---------------- */
a, .btn-primary {
  outline: none;
  transition: var(--transition);
}
a:focus, .btn-primary:focus, .cookie-btn:focus {
  box-shadow: 0 0 0 2px var(--soft-pink) !important;
  outline: 2px solid var(--secondary);
}

::-webkit-scrollbar {
  width: 7px;
  background: var(--soft-gray);
}
::-webkit-scrollbar-thumb {
  background: var(--soft-purple);
  border-radius: 5px;
}

/* Carefully space all cards and sections */
.card, .testimonial-card, .feature-grid > div, .guide-list li {
  margin-bottom: 20px;
}
/* Ensure NO overlap and consistent margin */
section + section {
  margin-top: 24px;
}

/* Soft shadow on focus/active state for buttons */
.btn-primary:active, .cookie-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 8px rgba(22,52,71,0.13);
}

/* Transitions for interactive elements */
.card, .feature-grid > div, .btn-primary, .cookie-btn, .mobile-menu, .mobile-nav a {
  transition: var(--transition);
}

/* Always make text in testimonials dark and readable */
.testimonial-card blockquote, .testimonial-card span {
  color: #202338;
}

/* Distinctive visual hierarchy using spacing and gentle pastel backgrounds */
.section {
  background: linear-gradient(120deg, var(--soft-yellow) 0%, var(--soft-pink) 100%);
}

/* Extra gentle pastel touch for headings */
h1, h2 {
  background: linear-gradient(90deg, var(--primary) 40%, var(--secondary) 90%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Subtle animation for focus states */
.btn-primary:focus {
  animation: btnFocus 0.27s cubic-bezier(.41,.23,.15,.96);
}
@keyframes btnFocus {
  0% { outline-offset: 0; }
  100% { outline-offset: 4px; }
}

/* Decorative effect for logo hover */
.logo:hover img {
  filter: drop-shadow(0 2px 8px var(--soft-pink));
  transform: scale(1.07);
  transition: var(--transition);
}

/* Prevent all overlaps by adding space below header on mobile */
@media (max-width: 768px) {
  body { padding-top: 15px; }
}
