/* === CSS RESET & BASELINE === */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F2F6F9;
  color: #1C2430;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174277;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus { color: #7EBB50; outline: none; }
ul, ol {
  padding-left: 1.2em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #174277;
  letter-spacing: -0.5px;
}

h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  color: #174277;
  margin-bottom: 10px;
}

@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
}

p {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 16px;
  color: #263347;
}
strong {
  font-weight: 700;
}

/* === LAYOUT UTILITIES === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 18px 0 rgba(35,56,120,.07);
}

@media (max-width: 768px) {
  .section { padding: 28px 6px; margin-bottom: 40px; }
}

/* === NAVIGATION === */
header {
  background: #F2F6F9;
  border-bottom: 3px solid #7EBB50;
  position: sticky;
  top: 0;
  z-index: 1001;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 16px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.main-nav a {
  font-size: 1rem;
  color: #174277;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #7EBB50;
  color: #fff;
}
.btn-primary {
  background: #174277;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  padding: 10px 26px;
  border-radius: 32px;
  font-size: 1rem;
  margin-left: 12px;
  box-shadow: 0 4px 12px 0 rgba(35,56,120,.12);
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  letter-spacing: 0.5px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #7EBB50;
  color: #174277 !important;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(126,187,80,.16);
}

/* Hide mobile menu toggle by default on desktop */
.mobile-menu-toggle {
  display: none;
}

/* === MOBILE NAVIGATION === */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    font-size: 2rem;
    color: #174277;
    background: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 1040;
    box-shadow: 0 2px 8px 0 rgba(23,66,119,.06);
    transition: background .15s;
  }
  .mobile-menu-toggle:active,
  .mobile-menu-toggle:focus {
    background: #7EBB50;
    color: #fff;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #174277;
  color: #fff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.7,.2,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 24px 8px 0;
  font-size: 2.3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { color: #7EBB50; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 14px 32px 22px 24px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 12px;
  padding: 13px 18px;
  background: transparent;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7EBB50;
  color: #174277;
}

@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(90deg,#F2F6F9 60%,#7EBB50 100%);
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 320px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero .content-wrapper {
  max-width: 670px;
}
.hero h1 {
  color: #174277;
  font-size: 2.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.hero p {
  font-size: 1.15rem;
  color: #234079;
}
@media (min-width: 600px) {
  .hero h1 { font-size: 2.5rem; }
}
@media (min-width: 900px) {
  .hero { padding-top: 0; padding-bottom: 0; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .hero .content-wrapper { max-width: 820px; }
}

/* === FEATURE/ CARD GRIDS (MANDATORY FLEX ONLY) === */
.features-grid, .guides-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .features-grid, .guides-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

.features {
  margin-bottom: 60px;
}
.features .feature {
  background: #fff;
  border-radius: 18px;
  padding: 30px 22px;
  flex: 1 0 240px;
  box-shadow: 0 4px 18px 0 rgba(23,66,119,.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .17s, box-shadow .18s;
  min-width: 210px;
  max-width: 360px;
}
.features .feature img {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
}
.features .feature h3 {
  font-size: 1.15rem;
  margin-top: 5px;
  margin-bottom: 8px;
}
.features .feature p {
  margin-bottom: 0;
}
.features .feature:hover, .features .feature:focus {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(126,187,80,.13);
}

/* === GUIDES GRID === */
.guides-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.guides-grid li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(35,56,120,.07);
  padding: 24px 18px;
  flex: 1 1 240px;
  min-width: 180px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: box-shadow .15s, transform .13s;
}
.guides-grid li:hover, .guides-grid li:focus {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 22px 0 rgba(126,187,80,.14);
}

/* === CARDS (UNIVERSAL) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(23,66,119,.08);
  padding: 22px 16px;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 360px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .12s, transform .13s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px 0 rgba(126,187,80,.13);
  transform: translateY(-2px) scale(1.02);
}

/* === TESTIMONIALS === */
.testimonials, .testimonials-list {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 16px 0 rgba(23,66,119,.08);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(126,187,80,.04);
  padding: 22px 22px;
  border-left: 7px solid #7EBB50;
  color: #174277;
  min-width: 0;
  transition: box-shadow .14s, border-color .14s;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 7px 28px 0 rgba(126,187,80,.10);
  border-left-color: #174277;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #263347;
  margin-bottom: 0;
}
.testimonial-info {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #174277;
  margin-top: 6px;
}
@media (max-width: 700px) {
  .testimonial-card { padding: 16px 10px; }
}

/* === CTA (Call to Action) === */
.cta {
  background: #174277;
  color: #fff;
  border-radius: 20px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 10px 0 rgba(35,56,120,.10);
}
.cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}
.cta p {
  color: #D1E8C9;
  font-size: 1.1rem;
}
.cta .btn-primary {
  background: #7EBB50;
  color: #174277;
  font-weight: 800;
  margin-top: 18px;
}
.cta .btn-primary:hover { background: #fff; color: #7EBB50; }

/* === ABOUT PAGE TEAM/VALUES === */
.about-team,
.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section h3 {
  margin: 10px 0 8px 0;
  color: #174277;
  font-weight: 700;
  font-size: 1.16rem;
}
.text-section ul {
  margin-top: 0;
  margin-bottom: 12px;
  padding-left: 1.1em;
}
.text-section ul li {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #263347;
}

/* === FEATURES/ITEMS/FAQ === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}
.faq-accordion {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(35,56,120,.07);
  margin-bottom: 60px;
  padding: 38px 18px;
}
.faq-item {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E6EEF6;
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-item h3 {
  color: #174277;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.faq-item p {
  color: #263347;
  font-size: 1rem;
}

/* === CONTACT PAGE STYLES === */
.contact-details .text-section {
  gap: 7px;
  margin-bottom: 18px;
}
.contact-details .text-section p {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #174277;
}
.contact-details .text-section img {
  width: 28px !important;
  height: 28px !important;
  margin: 0;
}
.contact-details h3 {
  font-size: 1.16rem;
  color: #7EBB50;
  margin-top: 18px;
  margin-bottom: 18px;
}
.map-placeholder {
  background: #EAF4E1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  height: 180px;
  margin-top: 15px;
}
.map-placeholder img {
  width: 50px;
  height: 50px;
}

/* === LEGAL/PRIVACY/TERMS === */
.legal {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 4px 16px 0 rgba(35,56,120,.06);
}
.legal .text-section ul {
  margin-bottom: 10px;
}
.legal .text-section ul li {
  margin-bottom: 7px;
  color: #263347;
  font-size: 1rem;
}

/* === THANK YOU PAGE === */
.thank-you-message {
  background: #7EBB50;
  color: #fff;
  border-radius: 18px;
  padding: 54px 16px;
  margin-bottom: 60px;
  box-shadow: 0 4px 14px 0 rgba(23,66,119,.08);
  text-align: center;
}
.thank-you-message h1 {
  color: #174277;
  margin-bottom: 12px;
}
.thank-you-message p {
  color: #15532d;
  margin-bottom: 28px;
}

/* === FOOTER === */
footer {
  background: #174277;
  color: #fff;
  padding: 32px 0 20px 0;
  text-align: center;
  border-top: 4px solid #7EBB50;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #7EBB50;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
footer address {
  font-style: normal;
  color: #DFE6EC;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === GEOMETRIC DECORATIVE SHAPES === */
.section, .hero, .cta {
  position: relative;
  overflow: hidden;
}
.section:after, .cta:after {
  content: '';
  display: block;
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #E9FFD2;
  right: -60px; top: -45px;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
}
.section:before, .cta:before {
  content: '';
  display: block;
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 46% 54% 70% 30%/45% 55% 55% 45%;
  background: #F2F6F9;
  left: -40px;
  bottom: -18px;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}

/* === SPACING AND FLEX LAYOUTS (MANDATORY CLASSES) === */
.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 Flex Adjustments --- */
@media (max-width: 768px) {
  .content-grid, .features-grid, .guides-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav { gap: 16px; }
  .section, .cta, .testimonials, .testimonials-list, .legal {
    padding: 18px 5px;
  }
}

/* === TRANSITIONS AND MICRO-INTERACTIONS === */
.btn-primary, .feature, .card, .guides-grid li, .testimonial-card, .mobile-menu, .mobile-menu-toggle {
  transition: background .21s, color .17s, box-shadow .16s, transform .16s;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #174277;
  color: #fff;
  padding: 22px 8px 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  box-shadow: 0 -4px 32px 0 rgba(23,66,119,.17);
  animation: cookieBannerEnter .43s cubic-bezier(.6,.4,.3,1);
}
@keyframes cookieBannerEnter {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 9px 0;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 8px 20px;
  background: #7EBB50;
  color: #174277;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .16s, color .14s;
}
.cookie-btn.settings {
  background: #fff;
  color: #174277;
  border: 1.7px solid #7EBB50;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #174277;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #7EBB50;
  color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(18, 36, 62, .76);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  animation: fadeIn .23s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  min-width: 295px;
  max-width: 95vw;
  padding: 36px 25px 26px 25px;
  box-shadow: 0 12px 48px 0 rgba(23,66,119,0.22);
  color: #174277;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1310;
  position: relative;
  animation: scaleIn .32s cubic-bezier(.52,1.5,.7,1.02);
}
@keyframes scaleIn {
  0% { opacity: 0; transform: scale(.8); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 13px;
  color: #174277;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal p {
  font-size: 1rem;
  color: #1C2430;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-weight: 700;
  color: #174277;
}
.cookie-category input[type=checkbox] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #174277;
  border-radius: 7px;
  background: #F2F6F9;
  margin-right: 4px;
  position: relative;
  transition: border .12s;
  cursor: pointer;
}
.cookie-category input[type=checkbox]:checked {
  border-color: #7EBB50;
  background: #7EBB50;
}
.cookie-category input[type=checkbox]:checked:after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 7px;
  left: 7px;
}
.cookie-category input[type=checkbox][disabled] {
  opacity: .53;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .cookie-btn {
  font-size: 1rem;
  border-radius: 22px;
  font-weight: 700;
  min-width: 98px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.85rem;
  color: #7EBB50;
  background: none;
  border: none;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #174277; }

@media (max-width:600px) {
  .cookie-modal {
    min-width: 90vw;
    padding: 18px 7vw 15px 7vw;
  }
}

/* === A11Y FOCUS STYLES === */
a:focus, button:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2px solid #7EBB50;
  outline-offset: 2px;
}

/* === GENERAL RESPONSIVE FIXES === */
@media (max-width:480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.1rem; }
  .section, .cta, .testimonials, .testimonials-list, .legal {
    padding: 8px 1px;
    margin-bottom: 32px;
  }
  .footer-nav { gap: 8px; }
  .map-placeholder { height: 85px; }
}

/* === PRINT STYLES === */
@media print {
  header, nav, .cookie-banner, .cookie-modal-backdrop, .mobile-menu {
    display: none !important;
  }
  .container {
    padding: 0;
    max-width: 100%;
  }
}
