/* --- CSS RESET & 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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #F4F7EB;
  color: #22323F;
  font-family: 'Roboto', Georgia, serif;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #17537E;
  text-decoration: none;
  transition: color 0.23s;
}
a:hover, a:focus {
  color: #FFB100;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
}

/* --- TYPOGRAPHY SCALE & UTILITY CLASSES --- */
h1, .h1 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #17537E;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
h2, .h2 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1C2A37;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h3, .h3 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #17537E;
  margin-bottom: 12px;
}
h4, .h4 {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 6px;
}
p {
  font-size: 1rem;
  color: #37424F;
  margin-bottom: 16px;
}
strong { font-weight: 600; }
.text-section {
  max-width: 800px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- LAYOUT SYSTEM --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}
.features-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.card-container { gap: 24px; }
.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(23,83,126,0.06);
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 13px;
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(23,83,126,0.09);
  border: 1px solid #e2e5da;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.faq-item {
  background: #fff;
  border-radius: 11px;
  padding: 18px 24px;
  box-shadow: 0 2px 12px rgba(23,83,126,0.04);
  border: 1px solid #e2e5da;
  transition: box-shadow 0.24s;
}
.faq-item:hover {
  box-shadow: 0 8px 24px rgba(23,83,126,0.12);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(23,83,126,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 25;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  height: 68px;
  padding: 0 28px;
}
.main-nav a {
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #17537E;
  padding: 10px 12px;
  transition: color 0.18s, background 0.18s;
  border-radius: 4px;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4F7EB;
  color: #FFB100;
}
.main-nav a.cta-primary {
  background: #17537E;
  color: #fff;
  font-weight: 600;
  border-radius: 20px;
  padding: 12px 28px;
  margin-left: auto;
  box-shadow: 0 1px 8px rgba(23,83,126,0.08);
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: #154363;
  color: #FFB100;
  box-shadow: 0 5px 20px rgba(23,83,126,0.16);
}

/* Hamburger & Mobile Nav */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  border: none;
  font-size: 2.1rem;
  color: #17537E;
  position: absolute;
  right: 24px;
  top: 14px;
  z-index: 30;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #17537E;
  background: #eef3f7;
}
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 83, 126, 0.96);
  transform: translateX(-100%);
  transition: transform 0.39s cubic-bezier(.85,.02,.79,.84);
  z-index: 110;
  padding: 28px 24px 40px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 28px;
  right: 26px;
  z-index: 120;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 72px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Montserrat', serif;
  padding: 14px 0;
  transition: color 0.16s;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #FFB100;
  background: none;
}

/* --- BUTTONS & CTAS --- */
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: #17537E;
  color: #fff;
  border-radius: 100px;
  border: none;
  padding: 14px 36px;
  margin-top: 22px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(23,83,126,0.08);
  cursor: pointer;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #154363;
  color: #FFB100;
  box-shadow: 0 5px 20px rgba(23,83,126,0.18);
  transform: translateY(-1px) scale(1.03);
}

button, .btn {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  border-radius: 6px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.14s;
}

/* --- HERO & GENERAL SECTION SPACING --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 34px 0;
}
section:last-child {
  margin-bottom: 0;
}

/* --- CARDS, FEATURES, TESTIMONIALS --- */
.features-grid > div, .features-grid > .feature-item {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px rgba(27, 83, 126, 0.07);
  padding: 24px 22px;
  min-width: 210px;
  flex: 1 1 240px;
  border: 1px solid #e2e5da;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.22s, border 0.22s, transform 0.14s;
}
.features-grid > div:hover, .features-grid > .feature-item:hover {
  box-shadow: 0 8px 28px rgba(23,83,126,0.12);
  border-color: #FFB100;
  transform: translateY(-3px) scale(1.015);
}
.features-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 2px;
}

/* --- LISTS, UL, OL STYLES --- */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #284760;
  line-height: 1.7;
}

/* --- FAQ ACCORDION --- */
.faq-item h3 {
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #17537E;
}
.faq-item p {
  font-size: 0.99rem;
  color: #283842;
  margin-bottom: 0;
}

/* --- FOOTER --- */
footer {
  background: #22323F;
  color: #fff;
  padding: 28px 0 16px 0;
  font-size: 0.98rem;
  margin-top: 80px;
}
footer nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 20px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  opacity: 0.87;
  transition: color 0.15s, opacity 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFB100;
  opacity: 1;
}
.footer-contact {
  margin: 0 auto 20px auto;
  max-width: 470px;
  text-align: center;
}
.footer-contact img {
  width: 58px;
  height: auto;
  margin: 0 auto 8px auto;
}
.footer-contact p {
  margin: 8px 0;
  color: #bebbb0;
}
footer p:last-child {
  margin-top: 18px;
  color: #bebbb0;
  font-size: 0.95rem;
  opacity: 0.7;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff9ec;
  border-top: 1px solid #FFB100;
  box-shadow: 0 -2px 14px rgba(31,33,35,0.12);
  z-index: 777;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  gap: 28px;
  font-size: 1rem;
  transition: transform 0.37s cubic-bezier(.42,.22,.44,1.15);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner p {
  color: #22323F;
  margin-bottom: 0;
  max-width: 430px;
}
.cookie-banner .cookie-btn {
  min-width: 134px;
  margin-left: 16px;
  margin-right: 0;
  border-radius: 24px;
  font-weight: 600;
  font-family: 'Montserrat', serif;
  border: none;
  padding: 13px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .cookie-btn.accept {
  background: #17537E;
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover {
  background: #154363;
  color: #FFB100;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  border: 1.5px solid #17537E;
  color: #17537E;
}
.cookie-banner .cookie-btn.reject:hover {
  background: #F4F7EB;
  color: #FFB100;
}
.cookie-banner .cookie-btn.settings {
  background: #FFB100;
  color: #1C2A37;
  margin-left: 10px;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #E8A500;
  color: #fff;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -140%);
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 8px 40px rgba(31,35,38,0.18);
  z-index: 999;
  width: 92vw;
  max-width: 400px;
  padding: 34px 28px 28px 28px;
  display: none;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.43s cubic-bezier(.46,.01,.71,1.09);
}
.cookie-modal.open {
  display: flex;
  transform: translate(-50%, -50%);
}
.cookie-modal h3 {
  font-size: 1.18rem;
  color: #17537E;
  margin-bottom: 9px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1.01rem;
  color: #22323F;
  gap: 9px;
  margin-bottom: 11px;
}
.cookie-modal input[type="checkbox"]:disabled + span {
  color: #bababa;
  text-decoration: line-through;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn.save {
  background: #17537E;
  color: #fff;
}
.cookie-modal .cookie-btn.cancel {
  background: #fff;
  border: 1.4px solid #17537E;
  color: #17537E;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .main-nav {
    padding: 0 8px;
    gap: 10px;
  }
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .features-grid {
    gap: 16px;
  }
}
@media (max-width: 850px) {
  .main-nav a {
    font-size: 0.97rem;
    padding: 9px 4px;
  }
  h1, .h1 { font-size: 2.15rem; }
  h2, .h2 { font-size: 1.7rem; }
  h3, .h3 { font-size: 1.08rem; }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 19px;
  }
  .container {
    max-width: 100vw;
    padding: 0 7px;
  }
  footer nav {
    flex-direction: column;
    gap: 12px;
  }
  .footer-contact {
    max-width: 97vw;
    padding: 0 4px;
  }
}
@media (max-width: 520px) {
  h1,.h1 { font-size: 1.42rem; margin-bottom: 17px; }
  h2,.h2 { font-size: 1.18rem; margin-bottom: 13px; }
  h3,.h3 { font-size: 1.01rem; }
  section, .section {
    padding: 23px 0 20px 0;
  }
  .features-grid > div, .features-grid > .feature-item {
    padding: 17px 10px;
    min-width: 1px;
  }
  .testimonial-card {
    padding: 16px 12px;
  }
  .faq-item {
    padding: 10px 7px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    font-size: 0.99rem;
    padding: 18px 5px;
  }
  .cookie-modal {
    padding: 16px 6px 10px 6px;
  }
}

/* --- MICRO-INTERACTIONS & ACCESSIBILITY HOVER/FOCUS --- */
a, .cta-btn, .cookie-btn, button, .faq-item, .mobile-menu-close {
  outline-offset: 2px;
}
a:focus, .cta-btn:focus, .cookie-btn:focus, button:focus, .faq-item:focus, .mobile-menu-close:focus {
  outline: 2px dashed #FFB100;
}

/* --- ELEGANT CLASSIC EXTRAS --- */
section, .section {
  border-radius: 18px;
  background: #F4F7EB;
  box-shadow: 0 1px 8px rgba(23,83,126,0.02);
}
.features-grid > div, .features-grid > .feature-item, .testimonial-card, .card {
  font-family: 'Montserrat', Georgia, serif;
}

/* --- ADDITIONAL SUPPORT FOR GENERIC HTML --- */
blockquote {
  border-left: 4px solid #FFB100;
  background: #fffbe7;
  padding: 16px 12px 16px 20px;
  margin: 16px 0;
  color: #213042;
  border-radius: 7px;
}
hr {
  border: none;
  border-top: 1px solid #e2e5da;
  margin: 26px 0;
}

/* --- VISUAL HIERARCHY FOR LISTED/NUMERIC CONTENT --- */
.text-section ul, .text-section ol, .content-wrapper ul, .content-wrapper ol {
  margin-bottom: 20px;
}

/* --- END CSS --- */
