/* --- CSS RESET & BASE STYLES (Normalize, mobile-first) --- */
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, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Georgia, Times, serif;
  background: #F7F7FA;
  color: #1B365D;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1B365D;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #22B573;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- TYPOGRAPHY / ELEGANT CLASSIC HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, Times, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1B365D;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, .text-section p {
  font-size: 1rem;
  color: #253150;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: #1B365D;
}

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(32,41,58, 0.07);
}

/* --- FLEXBOX LAYOUTS (MANDATORY) --- */
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(32,41,58,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}
.card:hover {
  box-shadow: 0 4px 24px rgba(32,41,58,0.10);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F0F3FA;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(32,41,58,0.08);
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #1B365D;
  font-style: italic;
  margin: 0;
}
.testimonial-card span {
  font-size: 1rem;
  color: #44628D;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
.text-section {
  margin-bottom: 24px;
}

/* --- HERO SECTIONS --- */
.hero {
  background: #F0F3FA;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 2px 12px 0 rgba(27,54,93,0.06);
  margin-bottom: 48px;
}
.hero .container {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: #1B365D;
  margin-bottom: 12px;
}
.hero p {
  color: #253150;
  margin-bottom: 20px;
}

/* --- CTA BUTTONS --- */
.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 34px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  background: #22B573;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(32,41,58,0.09);
  text-shadow: none;
  outline: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.13s, box-shadow 0.16s;
  margin-top: 8px;
}
.cta-primary:focus, .cta-primary:hover {
  background: #1B365D;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 20px 0 rgba(32,41,58,0.13);
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eaedf2;
  box-shadow: 0 2px 6px 0 rgba(32,41,58,0.03);
  padding: 0;
  z-index: 10;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', serif;
  color: #1B365D;
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 2px 2px 0;
  position: relative;
  transition: color 0.16s;
}
header nav a:hover, header nav a:focus {
  color: #22B573;
  border-bottom: 2px solid #22B573;
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  font-size: 2rem;
  background: none;
  border: none;
  color: #1B365D;
  cursor: pointer;
  margin-left: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.19s, color 0.15s;
  z-index: 120;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F0F3FA;
  color: #22B573;
}

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

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,54,93,0.96);
  transform: translateX(-120vw);
  transition: transform 0.37s cubic-bezier(.8,0,.18,1);
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  outline: none;
  margin: 30px 0 10px 24px;
  align-self: flex-start;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 160;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #22B573;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  padding: 20px 28px 30px 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #22B573;
  background: none;
  outline: none;
}

/* --- FOOTER --- */
footer {
  background: #F0F3FA;
  border-top: 1px solid #e5e9f5;
  padding-top: 32px;
  padding-bottom: 18px;
  margin-top: 48px;
  color: #586890;
  font-size: 1rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.footer-top nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
}
.footer-top nav a {
  color: #4B5671;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-top nav a:hover, .footer-top nav a:focus {
  color: #22B573;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #253150;
}
.footer-bottom div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 24px;
}
.footer-copy {
  margin-top: 10px;
  color: #92a0be;
  font-size: 0.92em;
}

/* --- LISTS AND ICONIC SECTIONS --- */
ul {
  list-style: disc;
  padding-left: 24px;
}
ol {
  list-style: decimal;
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 9px;
  line-height: 1.7;
}
l i {
  margin-right: 8px;
}
.text-section ul li,
.text-section ol li {
  margin-bottom: 8px;
}

/* --- SPACING UTILITIES --- */
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }

/* --- SHADOWS & EFFECTS --- */
.box-shadow-sm {
  box-shadow: 0 2px 10px 0 rgba(32,41,58,0.06);
}

/* --- RESPONSIVE: MOBILE FIRST, THEN WIDER --- */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 32px 8px;
    margin-bottom: 40px;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .hero .container {
    padding-top: 32px;
    padding-bottom: 32px;
    min-height: unset;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 420px) {
  .cta-primary {
    width: 100%;
    justify-content: center;
  }
}

/* --- COOKIES CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: #1B365D;
  box-shadow: 0 -2px 16px 0 rgba(32,41,58,0.09);
  padding: 20px 16px 20px 16px;
  border-top: 1px solid #e5e9f5;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: slideUp 0.6s cubic-bezier(.71,1.7,.7,1) 1;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', serif;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 1rem;
  cursor: pointer;
  background: #F0F3FA;
  color: #1B365D;
  margin: 0;
  transition: background 0.17s, color 0.17s, box-shadow 0.16s;
}
.cookie-banner button.accept {
  background: #22B573;
  color: #fff;
  font-weight: 600;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: #1B365D;
  color: #fff;
}
.cookie-banner button.settings {
  background: #fff;
  color: #1B365D;
  border: 1px solid #22B573;
}
.cookie-banner button.settings:hover, .cookie-banner button.settings:focus {
  background: #F0F3FA;
}
.cookie-modal {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  margin: 0 auto;
  max-width: 390px;
  background: #fff;
  z-index: 1200;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 24px 0 rgba(32,41,58,0.13);
  padding: 28px 20px 24px 20px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: fadeInModal 0.45s cubic-bezier(.61,1.46,.57,1.03) 1;
}
.cookie-modal.active {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(100px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
}
.cookie-modal fieldset {
  border: 0;
  margin-bottom: 14px;
  padding: 0;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1em;
  margin-bottom: 9px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #22B573;
}
.cookie-modal .essential {
  color: #666;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal button {
  font-family: 'Montserrat', serif;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 1em;
  cursor: pointer;
  background: #F0F3FA;
  color: #1B365D;
  margin: 0;
}
.cookie-modal button.save {
  background: #22B573;
  color: #fff;
  font-weight: 600;
}
.cookie-modal button.save:hover, .cookie-modal button.save:focus {
  background: #1B365D;
}
.cookie-modal button.cancel:hover, .cookie-modal button.cancel:focus {
  background: #F0F3FA;
  color: #22B573;
}

/* --- FORM ELEMENTS (for future extensibility) --- */
input, select, textarea {
  font-family: 'Roboto', Georgia, Times, serif;
  font-size: 1rem;
  border: 1px solid #b8bdd5;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 11px;
  transition: border-color 0.17s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: #22B573;
  box-shadow: 0 2px 7px rgba(34,181,115,0.07);
  outline: none;
}

/* --- MISC/ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #22B573;
  outline-offset: 1px;
}

/* --- BRAND COLOR CLASSES (for future utilities) --- */
.bg-primary { background: #1B365D; color: #fff; }
.bg-secondary { background: #22B573; color: #fff; }
.bg-accent { background: #F0F3FA; color: #1B365D; }

/* --- ENSURE NO OVERLAP, PROPER SPACING --- */
section, .section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* --- ENSURE Z-INDEX CORRECTNESS --- */
header { z-index: 10; }
.mobile-menu { z-index: 130; }
.cookie-banner { z-index: 900; }
.cookie-modal { z-index: 1200; }

/* --- HIDE SCROLLBAR ON MOBILE MENU --- */
.mobile-menu {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* --- DARK TEXT FOR READABILITY ON LIGHT BG (TESTIMONIALS, ETC.) --- */
.testimonial-card,
.bg-accent,
footer {
  color: #1B365D;
}

/* --- ANIMATIONS/MICROINTERACTIONS --- */
.card, .section, .testimonial-card {
  transition: box-shadow 0.13s, background 0.13s, transform 0.11s;
}
.card:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.012);
  background: #F5FAF8;
  box-shadow: 0 6px 20px 0 rgba(32,41,58,0.10);
}

/* --- HIDE UNNEEDED ELEMENTS WHILE PRINTING --- */
@media print {
  .cookie-banner, .cookie-modal, .mobile-menu, header, footer {
    display: none !important;
  }
}

/* --- END OF STYLE.CSS --- */
