/* ===== CSS RESET & NORMALIZE ===== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
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: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F9F9F6;
  color: #20304A;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* ===== VARIABLES (with fallbacks) ===== */
:root {
  --primary: #20304A;
  --secondary: #6EC1A3;
  --accent: #F9F9F6;
  --gradient1: #6EC1A3;
  --gradient2: #20304A;
  --danger: #EA5455;
  --light: #F9F9F6;
  --mid: #eeeeee;
  --shadow: 0 4px 32px 0 rgba(32,48,74,0.12);
  --radius: 18px;
  --transition: all 0.27s cubic-bezier(.36,.66,.04,1);
}

/* ===== GLOBAL TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 12px;
  color: #20304A;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.09;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.12;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.18;
}
p, li, span, label {
  font-size: 1rem;
  color: #20304A;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.6;
}
.subtitle {
  font-size: 1.13rem;
  color: #264774;
  font-weight: 500;
  margin-bottom: 24px;
}

/* ===== BODY & CONTAINERS ===== */
body {
  background: var(--accent, #F9F9F6);
}
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===== HEADER & NAV ===== */
header {
  width: 100%;
  background: linear-gradient(90deg, var(--gradient1, #6EC1A3) 0%, var(--gradient2, #20304A) 100%);
  box-shadow: 0 1px 12px rgba(32,48,74,0.09);
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 28px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 18px;
}
header nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
}
header nav ul li {
  margin-bottom: 0;
}
header nav ul li a {
  color: #fff;
  opacity: 0.88;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 12px;
  position: relative;
  transition: background 0.22s, color 0.22s, opacity 0.22s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: rgba(32,48,74,0.19);
  color: #fff;
  opacity: 1;
}
header nav a.cta {
  background: #fff;
  color: var(--gradient1, #6EC1A3);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 25px;
  margin-left: 14px;
  box-shadow: 0 2px 18px 0 rgba(32,48,74,0.11);
  transition: var(--transition);
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--gradient1, #6EC1A3);
  color: #fff;
  box-shadow: 0 4px 24px rgba(32,48,74,0.16);
}
header nav > a > img {
  height: 38px;
}

/* Hamburger Button (mobile only) */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: #fff;
  margin-right: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: var(--secondary, #6EC1A3);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(132deg, #20304A 73%, #6EC1A3 100%);
  box-shadow: 0 2px 40px 0 rgba(32,48,74,0.24);
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.82,.03,.41,.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  margin: 18px 0 10px 18px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.2s;
  z-index: 10101;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary, #6EC1A3);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 11px 25px 18px 30px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.18s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary, #6EC1A3);
}

/* ===== HERO SECTION & CTA BUTTONS ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:nth-child(odd) {
  background: linear-gradient(90deg, #F9F9F6 70%, #EAF7F2 100%);
}
.cta {
  background: linear-gradient(90deg, var(--gradient1, #6EC1A3), var(--gradient2, #20304A));
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 14px 36px;
  font-size: 1.08rem;
  border: none;
  border-radius: 28px;
  box-shadow: 0 2px 18px 0 rgba(32,48,74,0.12);
  transition: var(--transition);
  cursor: pointer;
  margin-top: 18px;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, var(--gradient2, #20304A), var(--gradient1, #6EC1A3));
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(32,48,74,0.20);
}

/* ===== FLEX SPACING PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  padding: 26px 22px 26px 22px;
  transition: box-shadow 0.23s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 30px 0 rgba(32,48,74,0.17);
}
.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: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: box-shadow 0.22s;
  min-width: 0;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 32px 0 rgba(32,48,74,0.19);
  background: #EFF6F1;
}
.testimonial-card p {
  color: #20304A;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 3px;
}
.testimonial-card span {
  color: #6EC1A3;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-bottom: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== LISTS & FEATURES ===== */
.features-list,
.services-list,
.tips-list,
.story-list,
.team-list,
.finance-list,
.checklist,
.service-details,
.steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.features-list li,
.services-list li,
.tips-list li,
.story-list li,
.team-list li,
.finance-list li,
.steps-list li,
.checklist li,
.service-details li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  padding: 22px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  gap: 8px;
  min-width: 200px;
  flex: 1 1 230px;
  font-size: 1rem;
  margin-bottom: 0;
  transition: box-shadow 0.2s;
}
.features-list li:hover,
.services-list li:hover,
.tips-list li:hover,
.story-list li:hover,
.steps-list li:hover,
.checklist li:hover,
.finance-list li:hover {
  box-shadow: 0 4px 25px 0 rgba(32,48,74,0.14);
  background: #F9F9F6;
}
.features-list img,
.tips-list img {
  width: 36px;
  height: 36px;
  margin-bottom: 3px;
}

.steps-list li h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  transition: box-shadow 0.19s;
}
.faq-item:hover {
  box-shadow: 0 6px 30px 0 rgba(32,48,74,0.13);
  background: #EFF6F1;
}
.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--primary);
}
.faq-item p {
  font-size: 1rem;
  color: #345;
}

.badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.badges img {
  width: 32px;
  height: 32px;
}
.badges span {
  color: #6EC1A3;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.contact-info p, .contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.contact-info img {
  width: 22px; height: 22px;
}
.contact-info a {
  color: #6EC1A3;
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, #20304A 80%, #6EC1A3 100%);
  color: #fff;
  width: 100%;
  margin-top: 60px;
  padding: 0 0 10px 0;
}
footer .container {
  padding-top: 28px;
  padding-bottom: 8px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
footer nav ul li a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: color 0.2s;
}
footer nav ul li a:hover, footer nav ul li a:focus {
  color: #6EC1A3;
  text-decoration: underline;
}
footer .branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
footer .branding img {
  height: 34px;
}
footer .branding span {
  font-size: 0.98rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===== COOKIE BANNER & PREFERENCES MODAL ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #20304A;
  color: #fff;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 19px 15px;
  font-size: 1rem;
  box-shadow: 0 -2px 24px rgba(32,48,74,0.12);
  transition: transform 0.2s, opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  max-width: 500px;
  font-size: 1rem;
  color: #fff;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 19px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.cookie-btn.accept {
  background: #6EC1A3;
  color: #fff;
  font-weight: 700;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #20304A;
  color: #6EC1A3;
}
.cookie-btn.reject {
  background: #fff;
  color: #DB5759;
  font-weight: 700;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #DB5759;
  color: #fff;
}
.cookie-btn.settings {
  background: #20304A;
  color: #6EC1A3;
  border: 2px solid #6EC1A3;
  font-weight: 500;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #6EC1A3;
  color: #20304A;
  border: 2px solid #20304A;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0; /* top, right, bottom, left: 0 */
  background: rgba(32,48,74,0.60);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  padding: 34px 30px 24px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(32,48,74,0.21);
  max-width: 410px;
  width: 92vw;
  color: #20304A;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookieModalAppear 0.3s cubic-bezier(.66,.01,.5,1.04);
}
@keyframes cookieModalAppear {
  from { transform: scale(0.98) translateY(48px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  font-weight: 700;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0 8px 0;
  border-bottom: 1px solid #EFF6F1;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: 0;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: #264774;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EAF7F2;
  border-radius: 14px;
  transition: background 0.2s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: #6EC1A3;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px #ccc;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 19px;
}
.cookie-modal .cookie-btn {
  min-width: 90px;
}

/* ===== ANIMATION AND TRANSITIONS ===== */
.section, .card, .testimonial-card, .faq-item, .features-list li, .services-list li, .content-wrapper {
  transition: box-shadow 0.21s, background 0.19s;
}

/* ===== MEDIA QUERIES: MOBILE-FIRST BREAKPOINTS ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100%;
  }
  .features-list li,
  .services-list li,
  .tips-list li,
  .team-list li,
  .finance-list li,
  .story-list li,
  .steps-list li,
  .checklist li,
  .service-details li {
    min-width: 180px;
    flex: 1 1 190px;
  }
  .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header nav ul, header nav a.cta {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block !important;
  }
  header nav {
    gap: 12px;
    padding: 0 8px;
    height: 62px;
  }
  section {
    padding: 34px 6px;
    margin-bottom: 38px;
  }
  .container {
    padding: 0 5px;
  }
  .content-wrapper {
    padding: 0;
    gap: 14px;
  }
  .features-list, .services-list, .tips-list, .story-list, .team-list, .finance-list, .steps-list, .checklist, .service-details {
    gap: 13px;
    flex-direction: column;
  }
  .features-list li,
  .services-list li,
  .tips-list li,
  .story-list li,
  .team-list li,
  .finance-list li,
  .steps-list li,
  .checklist li,
  .service-details li {
    padding: 14px 9px;
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .testimonial-card, .faq-item {
    padding: 15px 9px;
  }
  .badges {
    flex-direction: column;
    gap: 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 12px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.01rem; }
  .section { padding: 22px 2px; }
}

/* ===== ACCESSIBILITY ===== */
:focus {
  outline: 2px solid #6EC1A3;
  outline-offset: 2px;
}

/* ===== MISC & UTILITIES ===== */
strong {
  color: #20304A;
  font-weight: bold;
}

/* ===== PRINT (OPTIONAL) ===== */
@media print {
  header, footer, .cookie-banner {
    display: none !important;
  }
  section, .container {
    padding: 0 !important;
    margin: 0 !important;
  }
}
