/* 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 {
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F6F8;
  color: #204160;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
  margin: 0 0 24px 0;
}
a {
  color: #204160;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E1553C;
  outline: none;
}
img {
  border: none;
  display: block;
  max-width: 100%;
}
button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 16px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #204160;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 { font-size: 32px; line-height: 1.15; }
h2 { font-size: 24px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
h4 { font-size: 18px; }
p, li, blockquote {
  font-size: 16px;
  color: #294C69;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  margin-bottom: 16px;
}
.subheadline {
  font-size: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #7D8FA5;
  margin-bottom: 18px;
}

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

/* THEME COLORS (SOFT PASTEL VARIATION) */
:root {
  --primary: #204160; /* Navy Blue */
  --secondary: #EAD2B7; /* Pastel Cream Sand */
  --accent: #E1553C; /* Pastel Tomato Red */
  --mint: #E4F6F1; /* Soft Pastel Green */
  --lilac: #F0E6FB; /* Pastel Lilac */
  --rose: #FDECF2; /* Pastel Rose */
  --yellow: #FFF6E0; /* Pastel Yellow */
  --white: #ffffff;
  --gray: #F6F7FA;
  --shadow: rgba(32,65,96,0.07);
}

body {
  background: linear-gradient(160deg, var(--lilac) 0%, var(--mint) 70%, var(--yellow) 100%);
}

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 var(--shadow);
  padding: 40px 30px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

/* Flexbox for Content Layouts */
.card-container, .feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--gray);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 3px 18px 0 var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(32,65,96,0.12);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--lilac);
  margin-bottom: 20px;
  padding: 20px 26px;
  border-radius: 16px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #293345;
  font-size: 18px;
  font-style: italic;
}
.testimonial-card span {
  color: #204160;
  font-weight: 700;
  font-size: 16px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(32,65,96,0.14);
}

.feature-item, .feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--mint);
  border-radius: 15px;
  box-shadow: 0 1px 10px 0 var(--shadow);
  padding: 28px 22px;
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 240px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 5px 28px 0 rgba(32,65,96,0.11);
  transform: translateY(-2px) scale(1.01);
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  background: var(--rose);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 2px 8px 0 var(--shadow);
}
.feature h3 {
  font-size: 18px;
  color: #2C4262;
}
.feature p {
  font-size: 16px;
  color: #204160;
}

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

/* Buttons CTAs */
.cta-button, .mobile-nav a.button {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), var(--mint));
  color: #204160;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
  padding: 13px 34px;
  border-radius: 29px;
  border: 2px solid #EAD2B7;
  box-shadow: 0 2px 12px 0 var(--shadow);
  transition: background 0.25s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
}
.cta-button:hover, .cta-button:focus,
.mobile-nav a.button:hover, .mobile-nav a.button:focus {
  background: linear-gradient(90deg, var(--accent) 40%, var(--rose) 100%);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 8px 28px 0 rgba(255, 117, 117,0.10);
  outline: none;
}

/* HEADER NAVIGATION */
header {
  background: rgba(255,255,255,0.93);
  box-shadow: 0 2px 16px 0 var(--shadow);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}
.logo img {
  width: 150px;
  height: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #294C69;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--mint);
  color: var(--accent);
}
header .cta-button {
  margin: 0 0 0 18px;
  font-size: 16px;
  padding: 11px 26px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #204160;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 26px;
  margin-left: 12px;
  box-shadow: 0 1px 8px 0 var(--shadow);
  transition: background 0.19s, color 0.19s;
  z-index: 150;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--white);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(248,246,248,0.99);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.57,.23,.15,1.32);
  z-index: 2500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 40px 0;
  box-shadow: 6px 0 24px 0 var(--shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--white);
  font-size: 32px;
  padding: 10px 18px;
  border-radius: 50%;
  align-self: flex-end;
  margin: 20px 20px 6px 0;
  box-shadow: 0 2px 8px 0 var(--shadow);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  gap: 18px;
  padding: 14px 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #204160;
  font-size: 22px;
  font-weight: 600;
  padding: 11px 0;
  border-radius: 9px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--mint);
  color: var(--accent);
}
.mobile-nav a.button {
  background: var(--mint);
  color: var(--primary);
  text-align: center;
}
.mobile-menu.open {
  box-shadow: 9px 4px 36px 0 var(--shadow); 
}

/* HERO & PROMO SECTIONS */
main section:first-of-type .content-wrapper {
  box-shadow: none;
  background: none;
  padding-top: 36px;
  padding-bottom: 18px;
  text-align: left;
  align-items: flex-start;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, var(--lilac), var(--mint));
  border-top: 5px solid var(--mint);
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 20px 20px 20px;
  gap: 32px;
}
footer .footer-nav {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer .footer-nav a {
  color: #204160;
  font-weight: 500;
  font-size: 16px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 4px 10px;
  border-radius: 7px;
  transition: background 0.17s, color 0.18s;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  background: var(--mint);
  color: var(--accent);
}
footer img {
  width: 62px;
  height: auto;
  margin-bottom: 14px;
}
.footer-info {
  font-size: 14px;
  color: #788795;
  margin-top: 7px;
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--white), var(--mint) 90%);
  color: #204160;
  box-shadow: 0 -2px 18px 0 var(--shadow);
  z-index: 5000;
  padding: 22px 16px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  width: 100%;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: #204160;
  font-size: 16px;
  margin-bottom: 8px;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin: 0;
}
.cookie-btn {
  padding: 10px 22px;
  background: var(--mint);
  color: #204160;
  border: none;
  border-radius: 19px;
  font-family: 'Montserrat', Arial;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 1px 6px 0 var(--shadow);
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #B23F28;
}
.cookie-btn.reject {
  background: var(--secondary);
  color: #204160;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FDECF2;
}
.cookie-btn.settings {
  background: var(--lilac);
  color: #204160;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--rose);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,65,96,0.13);
  z-index: 5100;
  display: none;
  justify-content: center;
  align-items: center;
  transition: background 0.24s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--white);
  border-radius: 18px;
  padding: 38px 30px 20px 30px;
  box-shadow: 0 10px 38px 0 rgba(32,65,96,0.19);
  width: 96%;
  max-width: 420px;
  animation: modalIn 0.44s cubic-bezier(.19,1.3,.48,1.08);
}
@keyframes modalIn {
  from { transform: translateY(44px) scale(0.98); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-content h3 {
  margin-top: 0;
  font-size: 20px;
  color: #204160;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.cookie-category label {
  font-weight: 500;
  color: #294C69;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--accent);
  width: 22px; height: 22px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

/* Responsive (MOBILE-FIRST) */
@media (max-width: 900px) {
  .feature-grid, .card-container, .content-grid, .footer-nav {
    gap: 18px;
  }
  .feature,
  .feature-item {
    min-width: 140px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    padding: 24px 7px;
    gap: 14px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 36px;
  }
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature, .feature-item, .card {
    max-width: 100%;
    min-width: auto;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  header .container,
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .cta-button {
    margin: 8px 0 0 0;
  }
  .testimonial-card {
    padding: 17px 14px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  .cookie-modal-content {
    padding: 25px 12px 14px 12px;
    font-size: 15px;
  }
}

/* Form Minimal */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  border: 1.5px solid var(--mint);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 15px;
  background: var(--lilac);
  margin-bottom: 13px;
  box-shadow: 0 1.5px 7px 0 var(--shadow);
  outline: none;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* Micro-interactions & Subtle Animations */
.card:hover, .feature:hover,
.cta-button:hover, .mobile-menu-toggle:hover,
.mobile-nav a:hover { 
  transition: box-shadow 0.18s, color 0.19s, background 0.19s, transform 0.22s;
}

/* Accessibility/contrast tweaks for testimonials & review sections */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #183041;
  background: var(--lilac);
}

/* Spacing improvements for ALL content cards/sections */
.card, .feature, .feature-item, .testimonial-card {
  margin-bottom: 24px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 16px;
}

/* Z-index management for overlays */
.mobile-menu,
.cookie-modal {
  z-index: 5010;
}

/* Hide/Show cookie banner animation */
@media (max-width: 600px) {
  .cookie-banner { font-size: 14px; padding: 14px 6px 15px 6px; }
  .cookie-btn { font-size: 15px; padding: 9px 8px; }
}

/* Table Responsive Styles (if ever used) */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 26px;
}
th, td {
  text-align: left;
  padding: 10px 9px;
  border-bottom: 1px solid #E9ECF2;
  font-size: 16px;
}
tr:last-child td {
  border-bottom: none;
}

/* Misc minor tweaks */
::-webkit-input-placeholder { color: #8598B6; }
::-moz-placeholder { color: #8598B6; }
:-ms-input-placeholder { color: #8598B6; }
::placeholder { color: #8598B6; }

abbr, acronym {
  text-decoration: none;
  border-bottom: 1px dotted #9BC6DD;
}

/* Utility styles for vertical breathing room */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mt-18 { margin-top: 18px; }
.mb-18 { margin-bottom: 18px; }

/* Loud error/alert for cookie modal if needed */
.cookie-alert {
  background: #FDECF2;
  color: #B23F28;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 7px 0 var(--shadow);
}

/* Hide grid, columns or forbidden properties (safety) */
[class*="grid"], [class*="column"] {
  /* enforce flex if overwritten elsewhere */
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px;
}

/* Visually hide (accessibility compliance) */
.visually-hidden {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}
