/* RESET & ROOTS */
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, 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 {
  box-sizing: border-box;
  font-size: 16px;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F9F9F7;
  color: #222;
  min-height: 100vh;
  line-height: 1.52;
  font-size: 1rem;
}
*, *:before, *:after { box-sizing: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a {
  text-decoration: none;
  color: inherit;
  transition: color .18s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

:root {
  --color-primary: #254474;
  --color-secondary: #3CBFBE;
  --color-accent: #F9F9F7;
  --color-dark: #1b2535;
  --color-light: #ffffff;
  --color-gray: #e7ecef;
  --color-border: #cad3de;
  --color-shadow: rgba(37,68,116,0.06);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  margin-bottom: 20px;
}
h1 { font-size: 2.75rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.25; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.175rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p, ul, ol, dl, dd, dt, li { font-family: var(--font-body); font-size: 1rem; margin-bottom: 14px; }
strong, b { font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: 28px;
  box-shadow: 0 8px 32px var(--color-shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-accent);
  border-radius: 22px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 32px 24px;
  min-width: 240px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  max-width: 470px;
  min-width: 260px;
  transition: transform .18s, box-shadow .18s;
  border: 2px solid var(--color-gray);
}
.testimonial-card span {
  color: var(--color-secondary);
  font-weight: bold;
  letter-spacing: 1.5px;
  font-size: 1.3rem;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0;
}
.testimonial-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px var(--color-shadow);
  border-color: var(--color-secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER/NAV */
header {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0; z-index: 25;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}
nav > a img {
  height: 38px;
  margin-right: 22px;
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
nav ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  padding: 8px 6px;
  border-radius: 4px;
  transition: background .15s, color .15s;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cta-button {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 13px 32px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  outline: none;
  transition: background .18s, color .18s, transform .16s, box-shadow .18s;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-left: 18px;
  display: inline-block;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px var(--color-shadow);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 14px; right: 20px;
  cursor: pointer;
  z-index: 200;
  transition: background .17s, color .17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
  color: #fff;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(37,68,116,0.96);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .33s cubic-bezier(.77,0,.18,1), opacity .2s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 2.5rem;
  border: none;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  margin: 24px 28px 10px 0;
  cursor: pointer;
  transition: background .17s, color .17s;
  display: flex;
  z-index: 2;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 54px 48px 20px 0;
  width: 100%;
  max-width: 400px;
  align-items: flex-end;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .01em;
  padding: 14px 28px;
  border-radius: 8px;
  background: none;
  display: block;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 1080px) {
  nav ul { gap: 16px; }
  .cta-button { margin-left: 10px; font-size: 1rem; }
}
@media (max-width: 900px) {
  .container { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 768px) {
  nav ul { display:none; }
  .mobile-menu-toggle { display: flex; }
  .cta-button { padding: 12px 22px; font-size: 1rem; }
  .container { padding-left: 3vw; padding-right: 3vw; }
  .section { padding: 24px 6vw; margin-bottom: 34px; }
}

/* MAIN SPACING */
main section + section {
  margin-top: 20px;
}
/* Flexbox gap safety margin */
main > section, .section {
  margin-bottom: 60px;
}

/* CARDS + FEATURE LISTS */
ul, ol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
dt {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}
dd {
  margin-bottom: 12px;
  color: #2b2f31;
}
li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

/* ICONS IN LIST */
li img {
  width: 26px; height: 26px; margin-right: 8px;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 24px 0 0 0;
  box-shadow: 0 -2px 12px var(--color-shadow);
  border-radius: 32px 32px 0 0;
  margin-top: 80px;
}
footer .container {
  padding-bottom: 10px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
footer img {
  height: 42px;
  margin-bottom: 12px;
}
footer ul {
  gap: 14px;
}
footer ul li a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
footer ul li a:hover, footer ul li a:focus { color: var(--color-secondary); border-bottom: 2px solid var(--color-secondary); }
footer address {
  color: #cce5e7;
  font-style: normal;
  font-size: 0.97rem;
  margin-top: 26px;
}
@media (max-width: 900px) {
  footer .content-wrapper { flex-direction: column; gap: 20px; align-items: flex-start; }
}

/* BUTTONS & INTERACTIONS */
button {
  cursor: pointer;
  outline: none;
  transition: background .15s, color .15s, box-shadow .15s, transform .12s;
}

/* Newsletter/CTA sections */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 24px;
  box-shadow: 0 4px 14px var(--color-shadow);
  padding: 40px 18px;
}

/* Animations */
.cta-button, .testimonial-card, .mobile-menu,.mobile-menu.open, .cookie-banner, .cookie-modal, .cookie-modal.open {
  will-change: transform, opacity; 
}

/* Icon & SVG style */
img[src$='.svg'] {
  filter: none;
  vertical-align: middle;
}

/* Responsive correction for text-image sections */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Responsive content grid */
@media (max-width: 800px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* Responsive testimonial cards */
@media (max-width: 600px) {
  .testimonial-card { min-width: unset; }
}

/* Newsletter/CTA section on mobile */
@media (max-width: 600px) {
  .cta-section { padding: 16px 5vw; }
}

/* Micro-interactions */
a, .cta-button, .mobile-nav a, .mobile-menu-close, .mobile-menu-toggle {
  transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
}

/* Geometric divider accent (optional) */
hr {
  border: none;
  border-top: 3px solid var(--color-secondary);
  border-radius: 3px;
  width: 78px;
  margin: 32px 0 28px 0;
}

/* COOKIE BANNER & CONSENT MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #222;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 -2px 32px var(--color-shadow);
  z-index: 9800;
  padding: 30px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(64px);
  pointer-events: none;
  transition: transform .33s cubic-bezier(.77,0,.18,1), opacity .22s;
  font-size: 1rem;
}
.cookie-banner.visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.cookie-banner p {
  max-width: 540px; text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  border-radius: 22px;
  border: none;
  outline: none;
  box-shadow: 0 1.5px 6px var(--color-shadow);
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .reject {
  background: #f8657b;
  color: #fff;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ad223d;
}
.cookie-banner .settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9900;
  background: rgba(37,68,116,0.74);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: #fff;
  color: var(--color-primary);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--color-shadow);
  padding: 44px 34px 32px 34px;
  max-width: 430px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  text-align: left;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: var(--color-gray);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
}
.cookie-modal .modal-close:hover { background: var(--color-secondary); color: var(--color-primary); }
.cookie-modal .cookie-category {
  display: flex; align-items: center; gap: 14px;
  margin: 14px 0 0 0;
  font-size: 1.07rem;
}
.cookie-modal .category-name {
  font-weight: bold;
  min-width: 120px;
  color: var(--color-primary);
}
.cookie-modal .cookie-toggle {
  width: 46px;
  height: 26px;
  background: var(--color-accent);
  border-radius: 99px;
  position: relative;
  margin-left: 0.8em;
}
.cookie-modal .cookie-toggle input[type="checkbox"] {
  width: 100%; height: 100%;
  opacity: 0;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-modal .cookie-toggle .toggle-slider {
  background: var(--color-secondary);
  border-radius: 99px;
  width: 46px;
  height: 26px;
  position: absolute;
  top: 0; left: 0;
  transition: background .14s;
}
.cookie-modal .cookie-toggle .toggle-slider:before {
  content: '';
  display: block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute; left: 2px; top: 2px;
  transition: left .16s, background .14s;
}
.cookie-modal .cookie-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: var(--color-primary);
}
.cookie-modal .cookie-toggle input[type="checkbox"]:checked + .toggle-slider:before {
  left: 22px;
  background: var(--color-secondary);
}
.cookie-modal .cookie-toggle input[type="checkbox"]:disabled + .toggle-slider {
  background: #ccd8ea;
}
.cookie-modal .desc {
  font-size: 0.99rem;
  color: #1a2a2d;
  margin-bottom: 9px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  padding: 10px 24px;
  font-family: var(--font-display);
  border-radius: 19px;
  font-size: 1.03rem;
  font-weight: 600;
  border: none;
}

/* Hide modal below 430px screens */
@media (max-width: 500px) {
  .cookie-modal .modal-content {
    padding: 26px 7vw 16px 7vw;
  }
}

/* FORM ELEMENTS */
input, textarea, select {
  background: #fff;
  border: 2px solid var(--color-gray);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  width: 100%;
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}
label { font-weight: 600; color: var(--color-primary); display: block; margin-bottom: 8px; }

/* Accessibility (focus outlines) */
:focus-visible, button:focus-visible, .cta-button:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* GEOMETRIC DECORATIVE - Optional accents on sections */
.section:before {
  content: '';
  display: block;
  width: 48px; height: 6px;
  background: var(--color-secondary);
  border-radius: 8px;
  margin-bottom: 22px;
}
.section:first-child:before { display: none; }

/* High contrast for testimonial/review sections */
.section:has(.testimonial-card), .section.testimonials {
  background: var(--color-accent);
  box-shadow: 0 2px 8px var(--color-shadow);
}
@media (max-width: 700px) {
  .section { border-radius: 17px; }
  .testimonial-card { border-radius: 12px; }
}

/* Misc helpers */
.hide { display: none !important; }

/* CARD GRIDS - used in product lists etc (for future extensibility)*/
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  justify-content: flex-start;
}

/* Links in text-section */
.text-section a {
  color: var(--color-secondary); font-weight: 600; border-bottom: 1.5px solid var(--color-secondary); transition: color .15s, border-color .15s;
}
.text-section a:hover, .text-section a:focus { color: var(--color-primary); border-color: var(--color-primary); }

/* Blog categories */
.text-section ul li {
  font-size: 1rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: 8px;
  background: var(--color-gray);
  padding: 6px 14px;
  margin-right: 8px;
  display: inline-flex;
}

/* Adjust geometric decorative on smallest sections */
@media (max-width: 500px) {
  .section:before { width: 30px; height: 4px; }
}
