/* CSS RESET AND NORMALIZATION */
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F6F8FA;
  color: #22416B;
  font-size: 16px;
  line-height: 1.7;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}
ul, ol {
  margin: 0 0 16px 20px;
}
a {
  color: #22416B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #3CBBA3;
  text-decoration: underline;
  outline: none;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #22416B;
}
h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 500; }
p, li, blockquote {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #22416B;
}
strong { font-weight: 700; }

/* LAYOUT & CONTAINER */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SECTION SPACING & BACKGROUNDS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(60,60,60,0.08);
}
main > section:not(:last-child) {
  margin-bottom: 60px;
}
.text-section {
  background: #F6F8FA;
  border-radius: 16px;
  box-shadow: none;
  padding: 32px 20px;
}

/* FEATURE GRID AND FLEX LAYOUTS (MANDATORY PATTERNS) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(60,60,60,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(34,65,107,0.14);
}
.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: #FFF9F4;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(34,65,107,0.08);
  margin-bottom: 20px;
  font-size: 1.08rem;
  color: #3B2F24;
  border-left: 8px solid #FFB55E;
}
.testimonial-card blockquote {
  color: #3B2F24;
  font-style: italic;
  margin-right: 12px;
}
.testimonial-card span {
  color: #83705D;
  font-size: 0.97em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(220,178,120,0.07);
  padding: 24px 20px;
  min-width: 230px;
  max-width: 285px;
  min-height: 180px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
  box-shadow: 0 6px 18px 0 rgba(60,187,163,0.16);
  transform: translateY(-3px) scale(1.03);
}
.feature-item img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FDECDC;
  box-shadow: 0 2px 6px #ffe2be27;
  padding: 7px;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(60,60,60,0.05);
  padding: 0;
  width: 100%;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 10px 20px;
  gap: 18px;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: #22416B;
  border-radius: 10px;
  padding: 8px 14px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: #FCE6C4;
  color: #3CBBA3;
}
header .button.primary {
  margin-left: 20px;
}

/* BUTTONS */
.button, button, input[type="submit"] {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: none;
  outline: none;
  background: #FFB55E;
  color: #22416B;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(60,60,60,0.07);
  transition: background 0.2s, color 0.16s, box-shadow 0.2s, transform 0.18s;
}
.button.primary, a.button.primary {
  background: linear-gradient(90deg, #FFB55E 60%, #FFD6A3 100%);
  color: #22416B;
}
.button.primary:hover, a.button.primary:hover, .button.primary:focus {
  background: linear-gradient(90deg, #FAD29D 60%, #FFB55E 100%);
  color: #3CBBA3;
  transform: translateY(-2px) scale(1.04);
}
.button:active {
  box-shadow: 0 1px 2px rgba(34,65,107,0.08);
}

/* Hamburger (mobile-menu-toggle) */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #3CBBA3;
  cursor: pointer;
  margin-left: 16px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.15s;
  z-index: 1202;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #fff4e4;
}

/* MOBILE MENU (SLIDE-IN) */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
  box-shadow: 0 0 60px 0 rgba(0,0,0,0.13);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #22416B;
  padding: 18px 24px 10px 16px;
  align-self: flex-end;
  cursor: pointer;
  border-radius: 8px;
  top: 6px;
  right: 10px;
  z-index: 1203;
  transition: background 0.14s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FCE6C4;
  color: #3CBBA3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 30px 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  color: #22416B;
  border-radius: 12px;
  padding: 16px 8px 12px 12px;
  background: transparent;
  transition: background 0.14s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFF6E7;
  color: #EA7B32;
}

/* MAIN & GENERAL SPACING */
main {
  display: flex;
  flex-direction: column;
  width: 100%;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
}
ul, ol {
  margin-bottom: 18px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}

/* Cards & Attribution */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08em;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* FOOTER */
footer {
  background: #22416B;
  padding: 40px 0 22px 0;
  color: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: 62px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  margin-bottom: 14px;
}
footer nav a {
  color: #F8ECE2;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1em;
  transition: color 0.18s;
  padding: 6px 10px;
}
footer nav a:hover, footer nav a:focus {
  color: #FFB55E;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.01rem;
  color: #EBD1AA;
}
.footer-contact img {
  height: 22px;
  margin-right: 8px;
}
.tagline {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  color: #FFB55E;
  margin-top: 9px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #22416B;
  z-index: 2020;
  box-shadow: 0 -2px 16px rgba(60,60,60,0.16);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px 26px 32px;
  gap: 30px;
  border-radius: 20px 20px 0 0;
  transition: transform 0.3s cubic-bezier(0.54,0.02,0.35,1);
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner .cookie-text {
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-right: 18px;
  color: #22416B;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .button {
  border-radius: 26px;
  padding: 11px 24px;
  font-size: 1rem;
}
.cookie-banner .button.settings {
  background: #EDEDF5;
  color: #22416B;
  font-weight: 500;
  border: 1px solid #D1D5DE;
  transition: background 0.16s, color 0.14s;
}
.cookie-banner .button.settings:hover, .cookie-banner .button.settings:focus {
  background: #FFB55E;
  color: #fff;
}
.cookie-banner .button.reject {
  background: #F4DEE6;
  color: #BE3C5A;
  font-weight: 500;
}
.cookie-banner .button.reject:hover {
  background: #EA7B32;
  color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: rgba(34,65,107,0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.31s cubic-bezier(0.23, 0.04, 0.41, 1.14);
}
.cookie-modal.hide {
  pointer-events: none;
  opacity: 0;
}
.cookie-modal-content {
  background: #fff;
  color: #22416B;
  padding: 34px 32px 28px 32px;
  border-radius: 26px;
  min-width: 340px;
  max-width: 92vw;
  box-shadow: 0 8px 40px 0 rgba(34,65,107,0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: fadeInUp 0.44s cubic-bezier(0.6, 0.04, 0.45, 1.07);
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal-content h2 {
  font-size: 1.42rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 16px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04em;
}
.cookie-category label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #22416B;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  border: 2px solid #3CBBA3;
  accent-color: #3CBBA3;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: #22416B;
  position: absolute;
  top: 18px; right: 20px;
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 10px;
  padding: 2px 6px;
  transition: background 0.14s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #f6f6f6;
  color: #3CBBA3;
}

/* Animations (micro-interactions) */
.button, a.button, .feature-item, .card {
  transition: background 0.2s, color 0.19s, box-shadow 0.22s, transform 0.18s;
}
.testimonial-card, .feature-item, .card {
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card:hover, .feature-item:hover, .card:hover {
  box-shadow: 0 7px 24px 0 rgba(255,181,94,0.23);
  transform: translateY(-2px) scale(1.03);
}

/* Responsive Design (Mobile First) */
@media (max-width: 980px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
  footer .container { padding-left: 6vw; padding-right: 6vw; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    padding: 16px 9px 8px 9px;
  }
  section, .section {
    padding: 22px 0;
    margin-bottom: 34px;
    border-radius: 16px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature-item, .card, .testimonial-card {
    min-width: unset;
    max-width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .card {
    padding: 16px 12px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 10px 20px 10px;
    gap: 16px;
    border-radius: 16px 16px 0 0;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-modal-content {
    padding: 20px 8px 16px 12px;
    border-radius: 17px;
    min-width: 95vw;
    font-size: 1em;
  }
}
@media (max-width: 560px) {
  html { font-size: 14px; }
  header .container {
    flex-direction: row;
    gap: 2px;
    padding: 6px 4px 2px 4px;
  }
  .feature-item, .testimonial-card, .card, .section {
    padding: 12px 5px;
    border-radius: 10px;
  }
  .footer-contact, footer nav {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .cookie-modal-content {
    padding: 10px 5px 10px 7px;
    min-width: 99vw;
  }
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1023px) {
  header nav { display: none; }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
  header nav { display: flex !important; }
}

/* Accessibility & Focus State Enhancements */
a:focus, .button:focus, button:focus, input:focus {
  outline: 3px solid #FFB55E !important;
  outline-offset: 2px;
  z-index: 40;
}

/* Misc enhancements */
::-webkit-input-placeholder { color: #b9b8b6; opacity: 1; }
::-moz-placeholder { color: #b9b8b6; opacity: 1; }
:-ms-input-placeholder { color: #b9b8b6; opacity: 1; }
::placeholder { color: #b9b8b6; opacity: 1; }

/* Utility classes for spacing */
.mb-20 { margin-bottom:20px !important; }
.mb-32 { margin-bottom:32px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-40 { margin-top: 40px !important; }

/* For visually hidden elements (accessibility) */
.visually-hidden {
  position: absolute;
  border: 0;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
}
