/* ==== CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1D3557;
  background-color: #F9FBF7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #1D3557;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #A7C957;
  outline: none;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.3em;
}
ul li, ol li {
  margin-bottom: 0.7em;
  font-size: 1rem;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #1D3557;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.75rem; line-height: 1.1; }
h2 { font-size: 2rem; margin-top: 1.8em; line-height: 1.13; }
h3 { font-size: 1.34rem; margin-top: 1.3em; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1.3em;
  font-size: 1.08rem;
}
strong {
  font-weight: bold;
}
hr {
  border: none;
  border-top: 1px solid #E3E7DD;
  margin: 2em 0;
}

/* ==== BRAND COLORS & VARIABLES ==== */
:root {
  --primary: #1D3557;
  --secondary: #A7C957;
  --accent: #F1FAEE;
  --background: #F9FBF7;
  --card-bg: #FFFFFF;
  --border: #E3E7DD;
  --shadow: 0 4px 16px rgba(30, 57, 71, 0.07);
  --shadow-hover: 0 6px 20px rgba(30, 57, 71, 0.11);
  --text-dark: #1D3557;
  --text-medium: #59656E;
  --text-light: #B2BFC8;
}

/* ==== LAYOUT ==== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.01);
}
.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;
  background: var(--accent);
  border-radius: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  color: var(--text-dark);
  font-size: 1.05rem;
  border: 1px solid var(--border);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px 18px;
  min-width: 185px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.service-list > div {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex: 1 1 260px;
  min-width: 260px;
  padding: 26px 22px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s;
}
.service-list > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.01);
}

/******** RESPONSIVE FLEX DIRECTION ******/
@media (max-width: 1020px) {
  .container { padding: 0 12px; }
  .service-list, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 22px 6px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .service-list > div, .card {
    padding: 18px 7vw;
    min-width: 0 !important;
  }
  h1 { font-size: 2.12rem; }
  h2 { font-size: 1.48rem; }
}
@media (max-width: 520px) {
  .container { padding: 0 2vw; }
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.17rem; }
}

/* ==== HEADER, NAV & LOGO ==== */
header {
  background: var(--card-bg);
  box-shadow: 0 2px 12px rgba(30, 57, 71, 0.03);
  padding: 0;
  margin-bottom: 10px;
  z-index: 1030;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 32px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  flex-wrap: wrap;
}
header nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  border-bottom: 2px solid transparent;
  transition: color 0.22s, border-bottom 0.22s;
}
header nav a:hover, header nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  background: none;
}
header a img {
  height: 42px;
  width: auto;
  margin-right: 18px;
}
.cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 32px;
  font-size: 1.13rem;
  font-weight: 600;
  margin-left: 16px;
  box-shadow: var(--shadow);
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.22s, transform 0.2s, box-shadow 0.18s;
  outline: none;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}
.cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  padding: 12px 29px;
  font-size: 1.05rem;
  font-weight: 500;
  margin-left: 0;
  box-shadow: var(--shadow);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.23s, color 0.19s, border 0.13s, box-shadow 0.19s;
  outline: none;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--secondary);
  box-shadow: var(--shadow-hover);
}

/* ==== MOBILE BURGER MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  margin-left: auto;
  z-index: 1200;
  padding: 8px 14px;
  transition: color 0.14s, background 0.14s;
}
.mobile-menu-toggle:focus {
  color: var(--secondary);
  background: #e8efde;
  border-radius: 5px;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(250, 252, 247, 0.92);
  box-shadow: 0 9px 56px rgba(0,0,0,0.18);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.39s cubic-bezier(.68,-0.55,.27,1.55);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.15rem;
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2050;
  cursor: pointer;
  padding: 7px;
  border-radius: 6px;
  transition: color 0.13s, background 0.13s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--secondary);
  background: #e8efde;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 100px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.29rem;
  line-height: 1.6;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1.5px solid transparent;
  transition: border 0.15s, color 0.19s, background 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 1.5px solid var(--secondary);
  background: none;
}
@media (max-width: 1020px) {
  header nav {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  header .container {
    gap: 10px;
    flex-direction: row;
  }
}
@media (max-width: 768px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ==== FOOTER ==== */
footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px 0;
  box-shadow: 0 -2px 10px rgba(30, 57, 71, 0.05);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--text-dark);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border 0.13s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  border-bottom: 1px solid var(--secondary);
}
footer p {
  font-size: 0.98rem;
  color: var(--text-medium);
}

/* ==== FORMS & CONTACT DETAILS ==== */
.contact-details {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.contact-details h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.contact-details p {
  margin-bottom: 8px;
}
.map-snippet {
  margin-top: 8px;
  margin-bottom: 18px;
  background: var(--accent);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 1.08rem;
  color: var(--primary);
  box-shadow: var(--shadow);
}
.text-section {
  margin-bottom: 12px;
}

/* ========= ICON LISTS ========= */
ul li img {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 7px;
  background: #F3F7F1;
  padding: 2.5px;
}

/* ====== TABLES ====== */
table {
  border-collapse: collapse;
  width: 100%;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  border: 1px solid var(--border);
  padding: 12px 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--accent);
}

/* ========= TESTIMONIALS ========= */
.testimonial-card {
  background: var(--accent);
  border: 1.5px solid var(--secondary);
  box-shadow: var(--shadow);
  color: var(--primary);
  font-size: 1.11rem;
  margin-bottom: 22px;
  border-radius: 14px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 700px;
}
.testimonial-card p {
  margin-bottom: 0.7em;
  font-style: italic;
  font-size: 1.13rem;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 500;
  font-size: 1.03rem;
  margin-top: 6px;
}

/* ==== BUTTONS GENERAL ==== */
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
input[type="button"]:hover, input[type="button"]:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* ==== LINKS ==== */
a {
  transition: color 0.2s, border-bottom 0.2s;
}
a:focus {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -2px 16px rgba(30, 57, 71, 0.09);
  z-index: 1999;
  padding: 22px 16px 17px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1.03rem;
  animation: banner-slide-in 0.72s cubic-bezier(.25,1.3,.45,1) forwards;
}
@keyframes banner-slide-in {
  from { transform: translateY(90%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-banner button {
  font-size: 1rem;
  min-width: 120px;
  border-radius: 8px;
  padding: 9px 19px;
  margin-left: 0;
  margin-right: 0;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .reject {
  background: #C7D9C1;
  color: var(--primary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #E6EFDE;
  color: var(--primary);
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.2px solid var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--primary);
  color: #fff;
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2500;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(25,35,20,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 54px rgba(30, 57, 71, 0.13);
  min-width: 330px;
  max-width: 98vw;
  padding: 33px 24px 27px 24px;
  z-index: 2502;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: modal-fade-in 0.38s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
@keyframes modal-fade-in {
  from { transform: translateY(60px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 0.5em;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  background: #f7f9f2;
  padding: 13px 10px;
  border-radius: 9px;
  font-size: 1.06rem;
}
.cookie-category label {
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--secondary);
  margin-right: 4px;
}
.cookie-category .essential {
  font-style: italic;
  color: #9AA6A4;
  font-size: 0.96rem;
}
.cookie-modal .cookie-save {
  background: var(--secondary);
  color: var(--primary);
  margin-top: 8px;
}
.cookie-modal .cookie-save:hover, .cookie-modal .cookie-save:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.7rem;
  cursor: pointer;
  border-radius: 5px;
  transition: color 0.13s, background 0.11s;
  z-index: 2510;
  padding: 3px;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: var(--secondary);
  background: #e8efde;
}

@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
    padding: 19px 2vw 12px 2vw;
  }
  .cookie-modal {
    padding: 22px 6vw 17px 6vw;
    min-width: 0;
    font-size: 1rem;
  }
}

/* ======= SECTION BACKGROUNDS / CARDS ======= */
.section:nth-of-type(even) {
  background: #FAFCF8;
}
.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ======= HIERARCHY & SPACING ======= */
h1, h2, h3, h4 {
  margin-bottom: 0.7em;
  margin-top: 0;
}
ul {
  margin-bottom: 1.2em;
}
li {
  font-size: 1.05rem;
}
/* Intentionally using vertical rhythm with multiples of 8 */
.section, .card-container, .content-grid, .testimonial-card, .service-list, .feature-item {
  margin-bottom: 24px;
}

/* ======= MISC ========= */
::-webkit-input-placeholder { color: #9aafb7; }
::-moz-placeholder { color: #9aafb7; }
:-ms-input-placeholder { color: #9aafb7; }
::placeholder { color: #9aafb7; }

/* ======= ANIMATIONS (micro interactions) ====== */
a, .cta-primary, .cta-secondary, .card, .service-list > div, .feature-item, .testimonial-card, button, .mobile-menu, .cookie-banner {
  transition: box-shadow 0.22s, transform 0.18s, background 0.2s, color 0.19s, border 0.19s;
}

/* ===== UTILITIES ===== */
.mt-3 { margin-top: 24px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-1 { margin-top: 10px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-1 { margin-bottom: 10px !important; }

/* ===== ACCESSIBILITY FOCUS VISUALS ===== */
a:focus-visible, button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2.5px;
  z-index: 4000;
}
section {
  padding: 20px 0;
}
/* ===== END OF CSS ===== */