/* --- CSS RESET & NORMALIZE --- */
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;
}
body {
  line-height: 1.6;
  background-color: #F7F8FB;
  color: #173759;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
html {
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus {
  outline: 2px solid #79B673;
  outline-offset: 2px;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* --- BRAND COLORS --- */
:root {
  --primary: #173759;
  --secondary: #79B673;
  --accent-bg: #F7F8FB;
  --neutral-white: #fff;
  --gray-100: #f0f2f5;
  --gray-200: #e6e9f0;
  --text-main: #173759;
  --text-muted: #4D627C;
  --shadow-card: 0 6px 32px 0 rgba(23, 55, 89, 0.07);
  --border-radius: 14px;
}

/* --- TYPOGRAPHY --- */
body, button, input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.5rem; }
}
p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1rem;
}
strong {
  font-weight: 600;
  color: var(--primary);
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--neutral-white);
  box-shadow: 0 2px 6px rgba(23,55,89,0.07);
  position: sticky;
  top: 0;
  z-index: 1001;
  transition: box-shadow 0.2s;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: 0;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 500;
  padding: 4px 10px 4px 10px;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background-color: var(--gray-200);
  color: var(--secondary);
}
.cta-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.12rem;
  background: var(--secondary);
  color: var(--neutral-white);
  border-radius: 8px;
  padding: 13px 28px;
  font-weight: 600;
  box-shadow: 0 2px 12px 0 rgba(121,182,115,0.09);
  transition: background 0.2s, box-shadow 0.22s, box-shadow 0.22s;
  border: none;
  margin-left: 16px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
  display: inline-block;
}
.cta-primary:hover,
.cta-primary:focus {
  background: #5ba659;
  color: var(--neutral-white);
  box-shadow: 0 4px 22px 0 rgba(121,182,115,0.16);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: block;
  font-size: 2rem;
  padding: 8px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  z-index: 1101;
  border-radius: 7px;
  transition: background 0.12s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--gray-100);
}
@media (min-width:1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Hide main-nav & button on mobile */
@media (max-width:1023px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
}
@media (min-width:1024px) {
  .main-nav {
    display: flex !important;
  }
  .cta-primary {
    display: inline-block !important;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 55, 89, 0.94);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1), opacity 0.21s;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--secondary);
  align-self: flex-end;
  margin: 18px 22px 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1350;
  border-radius: 6px;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.07);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding-left: 22px;
  padding-right: 22px;
}
.mobile-nav a {
  color: var(--neutral-white);
  font-size: 1.2rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--neutral-white);
}

/* --- MAIN PAGE LAYOUT --- */
main {
  min-height: 280px;
  padding-top: 0;
  background: var(--accent-bg);
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  width: 100%;
}
.content-wrapper {
  background: var(--neutral-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  margin-bottom: 20px;
  margin-top: 0;
}
.text-section {
  background: var(--gray-100);
}

/* --- FLEXBOX UTILS & SPACING --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--neutral-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .content-wrapper {
    padding: 18px 8px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gray-100);
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(23,55,89,0.04);
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.08rem;
}
.testimonial-card p {
  color: var(--primary);
  margin-bottom: 0;
}
.testimonial-card span {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
ol, ul {
  margin-bottom: 18px;
  margin-left: 0;
  padding-left: 0;
}
ol > li, ul > li {
  margin-bottom: 14px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  color: var(--text-main);
}
ul > li img, ol > li img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 4px;
}

@media (max-width:620px) {
  .container { padding-left: 8px; padding-right: 8px; }
  h1, h2, h3 { font-size: 1.15rem; }
}

/* --- MAP PLACEHOLDER --- */
.map-placeholder {
  min-height: 100px;
  background: var(--gray-200);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 26px 8px;
}

/* --- BUTTONS & LINKS --- */
button, .button, .cta-primary {
  transition: background 0.25s, color 0.23s, box-shadow 0.19s, transform 0.09s;
}
a:hover, a:active {
  color: var(--secondary);
}

/* --- FOOTER --- */
footer {
  background: var(--neutral-white);
  border-top: 1px solid var(--gray-200);
  padding-top: 36px;
  padding-bottom: 32px;
  margin-top: 88px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 5px;
  transition: background 0.1s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--primary);
  background: var(--gray-100);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1rem;
}
.footer-contact img {
  width: 26px;
  height: 26px;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 9px; }
  .footer-nav { gap:12px; }
}

/* --- UTILITY/MICROINTERACTIONS --- */
.card, .content-wrapper, .testimonial-card, .map-placeholder {
  transition: box-shadow .20s cubic-bezier(.4,0,.2,1), transform 0.10s;
}
.card:hover, .content-wrapper:hover, .testimonial-card:hover {
  box-shadow: 0 10px 34px 0 rgba(23,55,89,0.13);
  transform: translateY(-2px) scale(1.011);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .container { max-width: 96vw; }
  header .container { gap:7px; }
  .card, .content-wrapper { padding: 16px 8px; }
}
@media (max-width: 600px) {
  .section { padding: 22px 4px; margin-bottom: 32px; }
  .card-container, .content-grid, .feature-item, .testimonial-card {
    gap: 12px;  
  }
  .testimonial-card { padding: 15px; font-size: 0.96rem; }
}
@media (max-width:420px) {
  header .container { flex-direction: column; gap: 4px; }
}
/* Ensure all section spacing is correct with at least 20px margin */
.section, .card, .content-wrapper, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--neutral-white);
  color: var(--primary);
  box-shadow: 0 -4px 18px rgba(23,55,89,0.09);
  z-index: 1501;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 20px;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 100vw;
}
.cookie-consent-message {
  flex: 1 1 280px;
  color: var(--primary);
}
.cookie-consent-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--neutral-white);
  border: none;
  border-radius: 7px;
  font-size: 1rem;
  padding: 7px 20px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 8px rgba(121,182,115,0.10);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.15s;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: #65a366;
}
.cookie-btn.secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--gray-200);
  color: var(--primary);
  border-color: var(--secondary);
}

/* Cookie Categories Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,55,89,0.15);
  z-index: 1555;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  min-width: 300px;
  max-width: 94vw;
  background: var(--neutral-white);
  border-radius: 18px;
  box-shadow: 0 6px 36px 0 rgba(23, 55, 89, 0.15);
  padding: 33px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  animation: modalSlideDown .34s cubic-bezier(.17,.67,.83,.67);
}
@keyframes modalSlideDown {
  from { transform: translateY(-60px) scale(0.95); opacity: 0.01; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-header {
  width: 100%;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.cookie-toggle-switch {
  position: relative;
  width: 38px;
  height: 20px;
  display: inline-block;
}
.cookie-toggle-switch input[type=checkbox] {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: var(--gray-200);
  border-radius: 14px;
  transition: background .15s;
}
.cookie-toggle-switch input:checked + .toggle-slider {
  background: var(--secondary);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 2px;
  width: 16px; height: 16px;
  background: var(--neutral-white);
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 4px rgba(23,55,89,0.07);
}
.cookie-toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 19px;
  font-size: 1.25rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  padding: 4px 5px;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--gray-200);
}
/* Always enabled row label (grayed out) */
.cookie-category-row.essential label {
  color: #8cadbc;
  font-style: italic;
}
.cookie-category-row.essential .cookie-toggle-switch {
  opacity: 0.47;
  pointer-events: none;
}

@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 20px 7px 14px 7px;
  }
  .cookie-consent { flex-direction: column; align-items: flex-start; gap:11px; }
}

/* --- FORMS (if required later) --- */
input, textarea, select {
  background: var(--accent-bg);
  border-radius: 7px;
  border: 1px solid var(--gray-200);
  font-size: 1rem;
  padding: 7px 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px 0 rgba(23,55,89,0.06);
  color: var(--primary);
  font-family: 'Roboto', Arial, sans-serif;
  width: 100%;
  transition: border-color 0.13s, box-shadow 0.09s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 2px #b7e2c2;
}
label {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 3px;
}

/* --- CUSTOM SCROLLBAR --- */
body::-webkit-scrollbar {
  width: 12px;
  background: var(--gray-200);
}
body::-webkit-scrollbar-thumb {
  background: #c4d2cc;
  border-radius: 6px;
}
body {
  scrollbar-color: #c4d2cc var(--gray-200); /* Firefox */
}

/* --- FOCUS VISIBLE (For Accessibility) --- */
*:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 1px;
}

/* --- SELECTION --- */
::selection {
  background: #cbe8d0;
  color: var(--primary);
}

/* --- HIDE ELEMENTS (for scripts, modals, etc.) --- */
[hidden] { display: none !important; }

/* --- END --- */
