/* ===== CSS RESET & BASE ===== */
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%;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #123256;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after { box-sizing: inherit; }

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

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #123256;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  line-height: 1.15;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.20rem; }

p, ul, ol, li, input, button, a, label, small, span {
  font-family: 'Roboto', Arial, sans-serif;
}

ul, ol {
  margin-left: 1.2em;
  padding-left: 0.5em;
  margin-bottom: 16px;
}
li { margin-bottom: 12px; }

strong, b { font-weight: 600; }
a { color: #18A7B5; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus {
  color: #123256;
  text-decoration: underline;
}

small { color: #888; font-size: 0.95em; }

img { max-width: 100%; height: auto; display: inline-block; border: none; }

/* ===== CONTAINER & GLOBAL LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
main { padding: 0; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(18,50,86,0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}
header a img {
  height: 38px;
  width: auto;
  margin-right: 12px;
}
.main-nav {
  display: none;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #123256;
  cursor: pointer;
  z-index: 1001;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(24,167,181,0.08);
}

@media (min-width: 1060px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .main-nav a {
    color: #123256;
    font-weight: 500;
    font-size: 1rem;
    margin: 0 5px;
    border-radius: 6px;
    padding: 7px 13px;
    transition: background 0.16s, color 0.18s;
  }
  .main-nav a:hover, .main-nav a:focus {
    background: #F9F9F9;
    color: #18A7B5;
  }
  .main-nav .btn-primary {
    margin-left: 24px;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(18,50,86,0.88);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.7,.2,.1,1), opacity 0.33s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(249,249,249,0.15);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding: 48px 36px 24px 36px;
}
.mobile-nav a {
  color: #F9F9F9;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.2px;
  padding: 10px 0;
  border-radius: 5px;
  transition: background 0.17s, color 0.16s;
  width: 100%;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #18A7B5;
  color: #fff;
}
@media (min-width: 1060px) {
  .mobile-menu { display: none !important; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  appearance: none;
  display: inline-block;
  border: none;
  background: #18A7B5;
  color: #fff !important;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  padding: 12px 28px;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24,167,181,0.05);
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  margin-top: 20px;
  text-align: center;
  text-decoration: none;
}
.btn-primary:focus, .btn-primary:hover {
  background: #123256;
  color: #fff;
  box-shadow: 0 4px 16px rgba(18,50,86,0.10);
  transform: translateY(-2px) scale(1.01);
}

/* ===== HERO SECTION ===== */
.hero {
  background: #F9F9F9;
  min-height: 320px;
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero .content-wrapper {
  max-width: 680px;
  gap: 16px;
}
.hero h1 { color: #123256; }
.hero p {
  color: #444;
  font-size: 1.14rem;
  margin-bottom: 4px;
}

/* ===== FEATURES, SECTION SPACING, FLEX PATTERNS ===== */
.section,
.features,
.category-listing,
.newsletter,
.cta,
.thanks,
.legal,
.about,
.contact,
.latest-reviews,
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features .container,
.category-listing .container,
.latest-reviews .container,
.newsletter .container,
.cta .container,
.testimonials .container,
.about .container,
.contact .container,
.legal .container,
.thanks .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features .content-wrapper,
.category-listing .content-wrapper,
.latest-reviews .content-wrapper,
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.features ul,
.features .feature-item,
.category-listing .content-wrapper,
.latest-reviews .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.features ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.08rem;
  color: #123256;
  padding: 14px 0;
}
.features ul li img {
  height: 28px;
  width: 28px;
  filter: grayscale(0.7) brightness(1);
}
@media (min-width: 660px) {
  .features .content-wrapper ul,
  .category-listing .content-wrapper,
  .latest-reviews .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
  }
  .features ul li,
  .category-listing .review-card,
  .latest-reviews .review-card {
    min-width: 230px;
    max-width: 310px;
    flex: 1 1 0;
  }
}

/* ===== CARDS, REVIEW CARDS, TESTIMONIALS ===== */
.review-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(18,50,86,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.review-card h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.review-card p {
  color: #444;
  font-size: 1.02rem;
  margin-bottom: 10px;
}
.review-card a {
  color: #18A7B5;
  font-weight: 500;
  font-size: 1rem;
  margin-top: 6px;
  transition: color 0.16s;
}
.review-card a:hover, .review-card a:focus {
  color: #123256;
  text-decoration: underline;
}
.review-card:hover, .review-card:focus-within {
  box-shadow: 0 6px 32px rgba(18,50,86,0.13);
  transform: translateY(-2px) scale(1.012);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F9F9F9;
  border-radius: 14px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(18,50,86,0.07);
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 440px;
}
.testimonial-card p {
  color: #123256;
  font-size: 1.07rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #18A7B5;
  font-size: 1rem;
  font-style: italic;
}
@media (min-width: 840px) {
  .testimonials .content-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px 24px;
  }
  .testimonial-card { flex: 1 1 0; }
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  padding: 24px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(18,50,86,0.04);
}
.newsletter label {
  font-weight: 500;
  color: #123256;
}
.newsletter input[type="email"] {
  height: 44px;
  border: 1px solid #E2E7F0;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 1.07rem;
  background: #F9F9F9;
  color: #123256;
  margin-bottom: 10px;
  transition: border-color 0.18s;
}
.newsletter input[type="email"]:focus {
  border-color: #18A7B5;
  outline: none;
}
.newsletter button {
  width: 100%;
  margin-top: 6px;
}
.newsletter small {
  margin-top: 14px;
  display: block;
}

/* ===== CTA SECTION ===== */
.cta .content-wrapper {
  background: #F9F9F9;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(18,50,86,0.03);
  padding: 36px 22px;
  align-items: flex-start;
  gap: 14px;
}

/* ===== LEGAL, ABOUT, THANKS, CONTACT SECTIONS ===== */
.legal .content-wrapper,
.about .content-wrapper,
.contact .content-wrapper,
.thanks .content-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(18,50,86,0.08);
  padding: 38px 26px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #333;
  margin-bottom: 10px;
}
.contact-info img {
  height: 22px;
  width: 22px;
  vertical-align: middle;
  margin-right: 8px;
  opacity: 0.82;
}
.text-section h2 {
  margin-bottom: 8px;
}

@media (min-width: 800px) {

  .contact-info, .text-section {
    flex: 1 1 0;
    min-width: 300px;
  }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== FOOTER ===== */
footer {
  background: #fff;
  border-top: 1px solid #E6EFF7;
  padding: 32px 0 0 0;
  color: #123256;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #123256;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #18A7B5;
  text-decoration: underline;
}
.social-icons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.social-icons a img {
  width: 28px;
  height: 28px;
  opacity: 0.82;
  transition: opacity 0.16s, filter 0.16s;
}
.social-icons a:hover img, .social-icons a:focus img {
  opacity: 1;
  filter: drop-shadow(0 4px 10px #18A7B522);
}
@media (min-width: 900px) {
  footer .content-wrapper {
    flex-direction: row;
    justify-content: space-between;
    gap: 44px;
    align-items: flex-start;
  }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #123256;
  border-top: 1px solid #E2E7F0;
  box-shadow: 0 -2px 30px rgba(18,50,86,0.10);
  z-index: 5000;
  padding: 18px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  opacity: 1;
  transition: transform 0.25s, opacity 0.23s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}
.cookie-banner p { font-size: 1rem; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cookie-btn {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  border-radius: 22px;
  font-size: 1rem;
  padding: 8px 22px;
  border: none;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: background 0.16s, color 0.15s;
}
.cookie-btn.accept {
  background: #18A7B5;
  color: #fff;
}
.cookie-btn.reject {
  background: #F3F7FA;
  color: #123256;
}
.cookie-btn.settings {
  background: #fff;
  color: #18A7B5;
  border: 1px solid #18A7B5;
}
.cookie-btn:focus, .cookie-btn:hover {
  filter: brightness(0.93) drop-shadow(0 2px 8px #18A7B522);
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  z-index: 6000;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(18,50,86, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(18,50,86,0.15);
  padding: 36px 24px;
  min-width: 320px;
  max-width: 96vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookie-fadein 0.33s cubic-bezier(.8,.2,.2,1);
}
@keyframes cookie-fadein {
  from { opacity: 0; transform: scale(0.98) translateY(32px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.17s;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  background: #F6F6F9;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0;
}
.category-row label {
  font-weight: 500;
  color: #123256;
  font-size: 1.06rem;
}
.cookie-toggle {
  min-width: 38px;
  min-height: 24px;
  position: relative;
  display: flex;
  align-items: center;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 38px;
  height: 24px;
  background: #E2E7F0;
  border-radius: 14px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  margin-right: 0;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: #18A7B5;
}
.cookie-toggle input[type="checkbox"]:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.22s;
  box-shadow: 0 2px 6px rgba(18,50,86,0.05);
}
.cookie-toggle input[type="checkbox"]:checked:before {
  left: 18px;
}
.category-row input[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ====== FLEX PATTERNS ====== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }


/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .features .content-wrapper, .category-listing .content-wrapper, .latest-reviews .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .about .content-wrapper, .contact .content-wrapper, .legal .content-wrapper, .thanks .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 660px) {
  .features .content-wrapper, .category-listing .content-wrapper, .latest-reviews .content-wrapper {
    flex-direction: column !important;
    gap: 14px;
  }
}
.text-image-section {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
@media (min-width: 900px) {
  .text-image-section { flex-direction: row; align-items: center; gap: 30px; }
}

/* ===== FORM ELEMENTS ===== */
input, button, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}
input, textarea {
  background: #F9F9F9;
  border: 1px solid #E2E7F0;
  border-radius: 8px;
  padding: 10px 14px;
  transition: border 0.17s;
  margin-bottom: 8px;
}
input:focus, textarea:focus {
  border: 1.5px solid #18A7B5;
  outline: none;
}

/* ===== MISC SPACING RULES ===== */
[role="alert"] {
  background: #FFEBDD;
  color: #C25C39;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ===== SCROLLBAR / SELECTIONS (FOR MODERN BROWSERS) ===== */
::-webkit-scrollbar { width: 8px; background: #F9F9F9; }
::-webkit-scrollbar-thumb { background: #E2E7F0; border-radius: 6px; }
::selection { background: #18A7B5; color: #fff; }

/* ===== ANIMATIONS ===== */
.btn-primary, .review-card, .testimonial-card, .cookie-btn { transition: box-shadow 0.18s, background 0.19s, color 0.19s, transform 0.10s; }

/* ===== ACCESSIBILITY: HIGH CONTRAST ON DARK BGs ===== */
.testimonial-card, .review-card { color: #123256; background: #fff; }

/* ===== HIDE VISUALLY BUT ACCESSIBLE ===== */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* ===== PRINT ===== */
@media print {
  header, nav, .main-nav, .mobile-menu, .cookie-banner, footer, .btn-primary, button { display: none !important; }
  body { color: #111; background: #fff; }
  .container { max-width: 650px !important; margin: 0; padding: 0; }
}
