/* ==== 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; }
*, *:before, *:after { box-sizing: inherit; }
body {
  background: #F2F2F2;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #163047;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: #163047; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #69B658; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 24px; }

/* ==== TYPOGRAPHY & FONT SCALE ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 700;
  color: #163047;
  line-height: 1.2;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p, li { font-size: 1rem; margin-bottom: 12px; }
strong { font-weight: 700; }
em { font-style: italic; }

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
}

/* ==== LAYOUT & CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(22,48,71,0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
    border-radius: 10px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #163047;
  width: 100%;
  box-shadow: 0 2px 6px rgba(22,48,71,0.07);
  position: relative;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  font-size: 1rem;
}
header nav a:hover, header nav a.active {
  background: #69B658;
  color: #163047;
}
header img {
  height: 40px;
  margin-right: 32px;
}
.cta-btn {
  background: #69B658;
  color: #fff;
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  padding: 10px 26px;
  margin-left: 18px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(105,182,88,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.22s;
  outline: none;
  display: inline-block;
  letter-spacing: 0.01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #447E34;
  color: #fff;
  box-shadow: 0 4px 16px rgba(105,182,88,0.15);
}

/* Mobile burger menu toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  display: none;
  padding: 9px 18px 9px 9px;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 140;
}
.mobile-menu-toggle:focus {
  background: #69B658;
}
@media (max-width: 1024px) {
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 10px;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #163047;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.23,1.05,.45,1.02);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #69B658;
  font-size: 2.2rem;
  margin: 18px 25px 8px 0;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 210;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 28px;
  align-items: flex-start;
  gap: 0;
}
.mobile-nav a {
  color: #fff;
  display: block;
  width: 100%;
  padding: 22px 28px;
  font-size: 1.13rem;
  font-family: 'Roboto Slab', 'Georgia', serif;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: none;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #69B658;
  color: #163047;
}

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

/* ==== HERO SECTION ==== */
.hero {
  background: #163047;
  color: #fff;
  padding: 56px 0 40px 0;
  text-align: left;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { color: #ecf0f4; font-size: 1.18rem; margin-bottom: 22px; }
.hero .cta-btn {
  background: #69B658;
  color: #fff;
}
.hero .cta-btn:hover, .hero .cta-btn:focus {
  background: #447E34;
}

@media (max-width: 900px) {
  .hero {
    padding: 38px 0 24px 0;
    text-align: left;
  }
  .hero .container {
    padding: 0 8px;
  }
  .hero .content-wrapper {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 18px 0;
  }
  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }
  .hero .cta-btn {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* ==== SECTION, FEATURES, CARDS, CTA ==== */
.features, .services, .about, .cta, .testimonials, .services-list, .blog-list, .contact-info, .footer-section, .find-us, .contact-form-section, .thank-you-section, .features.tips, .features.guide, .features.categories {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(22,48,71,0.06);
}
.features .content-wrapper,
.services .content-wrapper,
.about .content-wrapper,
.cta .content-wrapper,
.testimonials .content-wrapper,
.services-list .content-wrapper,
.blog-list .content-wrapper,
.contact-info .content-wrapper,
.find-us .content-wrapper,
.contact-form-section .content-wrapper,
.footer-section .content-wrapper,
.thank-you-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(22,48,71,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 40px -8px rgba(22, 48, 71, 0.13);
  transform: translateY(-4px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}
@media (max-width: 768px) {
  .features, .services, .about, .cta, .testimonials, .services-list, .blog-list, .contact-info, .find-us, .contact-form-section, .footer-section, .thank-you-section, .features.tips, .features.guide, .features.categories {
    padding: 24px 8px;
    margin-bottom: 30px;
    border-radius: 8px;
  }
  .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

ul, ol {
  margin-bottom: 12px;
  font-size: 1.04rem;
  color: #1f2b3b;
}
ul li, ol li {
  margin-bottom: 10px;
  line-height: 1.55;
}
ul li strong, ol li strong {
  color: #163047;
}

/* ==== TESTIMONIALS ==== */
.testimonials {
  background: #F6F9FA;
  box-shadow: none;
  padding-top: 36px;
  padding-bottom: 36px;
}
.testimonials .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 22px -8px rgba(22,48,71,0.10);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 260px;
  max-width: 370px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  color: #163047;
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 40px -6px rgba(22, 48, 71, 0.14);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  margin-bottom: 6px;
  color: #1f2b3b;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #69B658;
  font-family: 'Roboto Slab', serif;
  letter-spacing: 0.01em;
}
@media (max-width: 900px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    max-width: 100%;
    margin-bottom: 10px;
  }
}

/* ==== CTA SECTION ==== */
.cta {
  background: #163047;
  color: #fff;
  box-shadow: 0 2px 7px rgba(22,48,71,0.10);
  border-radius: 14px;
}
.cta .content-wrapper {
  align-items: flex-start;
}
.cta h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta .cta-btn {
  background: #69B658;
  color: #fff;
}
.cta .cta-btn:hover, .cta .cta-btn:focus {
  background: #447E34;
}

/* ==== BLOG LIST ==== */
.blog-list .content-wrapper ul {
  margin-bottom: 12px;
}

/* ==== CONTACT INFO & FORMS ==== */
.contact-info, .contact-form-section, .find-us {
  background: #fff;
  box-shadow: 0 2px 14px rgba(22,48,71,0.05);
  border-radius: 10px;
}
.contact-info ul, .find-us ul {
  margin-top: 10px;
}
.contact-info a { color: #69B658; font-weight: 600; }
.contact-info a:hover { color: #447E34; }

/* ==== FOOTER ==== */
footer {
  background: #163047;
  color: #fff;
  padding: 36px 0 18px 0;
  width: 100%;
  margin-top: 36px;
  box-shadow: 0 -1px 8px rgba(22,48,71,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer nav a {
  color: #fff;
  opacity: 0.75;
  font-size: 0.98rem;
  transition: opacity 0.18s;
}
footer nav a:hover, footer nav a:focus {
  opacity: 1;
  color: #69B658;
}
footer p {
  font-size: 0.98rem;
  opacity: 0.7;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
  }
  footer nav {
    flex-direction: column;
    gap: 6px;
  }
}

/* ==== THANK-YOU SECTION ==== */
.thank-you-section {
  background: #fff;
  box-shadow: 0 2px 16px rgba(22,48,71,0.06);
  border-radius: 14px;
  padding: 56px 24px;
  margin-bottom: 42px;
  text-align: center;
}
.thank-you-section h1 {
  color: #163047;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .thank-you-section {
    padding: 24px 6px;
  }
}

/* ==== COOKIE CONSENT BANNER ==== */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #163047;
  color: #fff;
  box-shadow: 0 -2px 24px rgba(22,48,71,0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 38px 18px 24px;
  z-index: 9999;
  font-size: 1rem;
  gap: 18px;
  transition: transform 0.32s;
}
#cookie-consent-banner.hide {
  transform: translateY(100%);
}
#cookie-consent-banner-text {
  flex: 2;
  margin-right: 12px;
}
#cookie-consent-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
#cookie-consent-banner button {
  background: #69B658;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.17s;
  margin-left: 0;
}
#cookie-consent-banner button:hover, #cookie-consent-banner button:focus {
  background: #447E34;
}
#cookie-consent-banner button.cookie-settings-btn {
  background: #F2F2F2;
  color: #163047;
  border: 1.5px solid #69B658;
}
#cookie-consent-banner button.cookie-settings-btn:hover {
  background: #E3E8EC;
  color: #69B658;
}
@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px 11px 10px;
    font-size: 0.97rem;
    gap: 14px;
  }
  #cookie-consent-buttons {
    gap: 11px;
  }
}

/* ==== COOKIE SETTINGS MODAL ==== */
#cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,48,71,0.32);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal-overlay.open {
  display: flex;
}
#cookie-modal {
  background: #fff;
  color: #163047;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(22,48,71,0.23);
  padding: 34px 28px 24px 28px;
  min-width: 330px;
  max-width: 95vw;
  position: relative;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: fadeInModal 0.38s cubic-bezier(.45,1.3,.51,1.06);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}
#cookie-modal h2 {
  font-size: 1.25rem;
  font-family: 'Roboto Slab', serif;
  margin-bottom: 12px;
}
#cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
}
#cookie-modal input[type="checkbox"][disabled] ~ span {
  color: #B0B8C1;
}
#cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 10px;
}
#cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: none;
  border: none;
  color: #69B658;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 11000;
  transition: color 0.13s;
}
#cookie-modal .modal-close:hover, #cookie-modal .modal-close:focus {
  color: #163047;
}
@media (max-width: 480px) {
  #cookie-modal {
    padding: 14px 6px 14px 8px;
    min-width: 90vw;
  }
  #cookie-modal .modal-close {
    right: 8px;
    top: 7px;
  }
}

/* ==== MICRO-INTERACTIONS ==== */
button, .cta-btn, a {
  transition: background 0.17s, color 0.17s, box-shadow 0.18s, border 0.12s;
}

/* ==== RESPONSIVE RULES ==== */
@media (max-width: 900px) {
  .container, .features .container, .services .container, .about .container, .cta .container, .testimonials .container, .services-list .container, .blog-list .container, .contact-info .container, .find-us .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ==== VISUAL HIERARCHY GAPS/MARGINS ==== */
.features, .services, .about, .cta, .testimonials, .services-list, .blog-list, .contact-info, .find-us, .contact-form-section, .footer-section, .thank-you-section, .features.tips, .features.guide, .features.categories {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px !important;
}
.card-container, .content-grid, .text-image-section, .testimonials .content-wrapper {
  gap: 20px !important;
}

/* Ensure flex-wrap and direction per guidelines */
.card-container, .content-grid, .text-image-section, .features .content-wrapper, .testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .card-container, .content-grid, .text-image-section, .features .content-wrapper, .testimonials .content-wrapper {
    flex-direction: column;
  }
}

/* ==== VISUALLY HIDDEN (ACCESSIBILITY) ==== */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==== SCROLLBAR DESIGN ==== */
::-webkit-scrollbar {
  width: 8px; background: #E3E8EC;
}
::-webkit-scrollbar-thumb {
  background: #A5B6C8; border-radius: 5px;
}

/* ==== END ==== */
