/* ---- 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;
}
html {
  box-sizing: border-box;
  height: 100%;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F6F7F8;
  color: #233D4D;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.3s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ---- FLUID CONTAINER & FLEX UTILS ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 0 0;
}
.flex-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0 24px 0;
  flex-wrap: wrap;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---- TYPOGRAPHY ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #233D4D;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.375rem; /* 38px */
  line-height: 1.16;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  line-height: 1.2;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  line-height: 1.2;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;  
  margin-bottom: 8px;
}
p, li, td, th {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #233D4D;
  font-weight: 400;
}
strong { font-weight: 700; }
a { font-weight: 600; color: #233D4D; }
a:hover, .footer-nav a:hover { color: #FFC857; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* ---- HEADER & NAVIGATION ---- */
header {
  background: #ffffff;
  box-shadow: 0 2px 8px 0 rgba(35,61,77,0.06);
  position: relative;
  z-index: 100;
}
.logo img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: 6px 12px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  border-radius: 6px;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F6F7F8;
  color: #FFC857;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #233D4D;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #F6F7F8;
  color: #FFC857;
}

/* ---- CTA BUTTONS ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.04em;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 16px 0 rgba(35,61,77,0.04);
  min-width: 160px;
  outline: none;
  text-align: center;
  text-decoration: none;
}
.cta.primary {
  background: #233D4D;
  color: #ffffff;
}
.cta.primary:hover,
.cta.primary:focus {
  background: #FFC857;
  color: #233D4D;
}
.cta.secondary {
  background: #FFC857;
  color: #233D4D;
}
.cta.secondary:hover,
.cta.secondary:focus {
  background: #233D4D;
  color: #FFC857;
}

/* ---- HERO SECTION ---- */
.hero-section {
  background: #F6F7F8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 56px 0 40px 0;
  box-shadow: 0 4px 20px rgba(35,61,77,0.04);
}
.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.hero-section p {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

/* ---- FEATURES GRID ---- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 16px;
}
.features-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(35,61,77,0.07);
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.features-grid > div:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 8px 20px rgba(35,61,77,0.10);
}
.features-grid img {
  height: 48px;
  width: auto;
  margin-bottom: 12px;
}

/* ---- SECTION SPACINGS ---- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* ---- CARD CONTAINERS ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(35,61,77,0.08);
  padding: 28px 24px;
}

/* ---- CONTENT GRIDS (NON-CARD, NON-FEATURE) ---- */
.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;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(35,61,77,0.11);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px 20px 28px;
  min-width: 290px;
  flex: 1 1 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.19s;
  border-left: 6px solid #FFC857;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-weight: 400;
  color: #233D4D;
  line-height: 1.7;
  margin-bottom: 8px;
}
.testimonial-card .client-name {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #233D4D;
  opacity: 0.70;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(35,61,77,0.15);
  transform: translateY(-4px) scale(1.01);
}

/* ---- SECTIONS & GENERAL UTILITY ---- */
.about-section, .services-section, .contact-section, .features-section {
  margin-bottom: 60px;
  background: none;
}
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}
.services-list > div {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(35,61,77,0.07);
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.19s;
  position: relative;
}
.services-list > div:hover {
  box-shadow: 0 6px 20px 0 rgba(35,61,77,0.12);
  transform: translateY(-2px) scale(1.01);
}
.services-list .price {
  margin-top: 12px;
  font-size: 1.05rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FFC857;
  font-weight: 700;
}

/* ---- TABLES (PRICING) ---- */
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0 12px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(35,61,77,0.09);
}
.price-table th, .price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #F6F7F8;
}
.price-table th {
  background: #F6F7F8;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: .01em;
  color: #233D4D;
  font-size: 1.025rem;
  font-weight: 700;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td { font-size: 0.98rem; }

.service-inclusions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

/* ---- BLOG ELEMENTS ---- */
.latest-posts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 32px;
}
.blog-post {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(35,61,77,0.07);
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.19s, transform 0.19s;
  margin-bottom: 20px;
}
.blog-post:hover {
  box-shadow: 0 6px 20px 0 rgba(35,61,77,0.13);
  transform: translateY(-2px) scale(1.01);
}
.blog-category-grid {
  display: flex;
  gap: 26px;
  margin-top: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.blog-category-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(35,61,77,0.05);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #233D4D;
}

/* ---- MAP SECTION ---- */
.map-section, .map-excerpt {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0 14px 0;
  background: #F6F7F8;
  border-radius: 10px;
}
.map-section img, .map-excerpt img {
  width: 44px;
  height: 44px;
}

/* ---- FOOTER ---- */
footer {
  background: #233D4D;
  color: #fff;
  font-size: 1rem;
  position: relative;
}
.flex-footer {
  color: #fff;
  font-size: 1rem;
  border-top: 4px solid #FFC857;
  padding: 40px 0 24px 0;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  opacity: 0.8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFC857;
  opacity: 1;
}

/* ---- LISTS ---- */
.about-section ul,
.features-section ul,
.section ul,
ul.features-list {
  margin-left: 1em;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}
ul.features-list li, .about-section ul li {
  position: relative;
  padding-left: 18px;
}
ul.features-list li:before, .about-section ul li:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #FFC857;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  position: absolute;
  left: 0;
  top: 7px;
}

/* ---- TEXT BLOCKS ---- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

/* ---- MODALS & COOKIE BANNERS ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  color: #233D4D;
  box-shadow: 0 -2px 16px rgba(35,61,77,0.10);
  z-index: 9999;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 32px 24px 32px;
  border-top: 4px solid #FFC857;
  font-size: 1rem;
  animation: bannerEnter 0.4s cubic-bezier(.7,.05,.75,.99);
}
@keyframes bannerEnter { 
  from { transform: translateY(80px); opacity: 0; } 
  to { transform: translateY(0); opacity: 1; } 
}
.cookie-banner button {
  font-size: 1rem;
  border-radius: 7px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 12px;
  margin-top: 5px;
  min-width: 120px;
}
.cookie-banner .accept { background: #233D4D; color: #fff; }
.cookie-banner .accept:hover { background: #FFC857; color: #233D4D; }
.cookie-banner .reject { background: #F6F7F8; color: #233D4D; border: 1px solid #233D4D; }
.cookie-banner .reject:hover { background: #FFC857; color: #233D4D; }
.cookie-banner .settings {
  background: #FFC857; color: #233D4D;
}
.cookie-banner .settings:hover { background: #233D4D; color: #FFC857; }

.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10000;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(35,61,77,0.19);
  width: 90vw;
  max-width: 420px;
  padding: 32px 30px 22px 30px;
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
  animation: modalPopIn 0.25s cubic-bezier(.7,.05,.75,.99);
}
@keyframes modalPopIn { from { opacity: 0; transform: scale(0.89) translate(-50%,-60%);} to { opacity: 1; transform: scale(1) translate(-50%,-50%);} }
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.cookie-modal .modal-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-modal .modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-modal .modal-category input[type='checkbox'] {
  accent-color: #233D4D;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.cookie-modal button {
  min-width: 120px;
  border-radius: 7px;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 12px;
}
.cookie-modal .accept { background: #233D4D; color: #fff; }
.cookie-modal .accept:hover { background: #FFC857; color: #233D4D; }
.cookie-modal .reject { background: #F6F7F8; color: #233D4D; border: 1px solid #233D4D; }
.cookie-modal .reject:hover { background: #FFC857; color: #233D4D; }

.cookie-modal .close-modal {
  background: none;
  border: none;
  color: #233D4D;
  font-size: 1.5rem;
  float: right;
  position: absolute;
  top: 18px;
  right: 22px;
  cursor: pointer;
  opacity: 0.7;
}
.cookie-modal .close-modal:hover { color: #FFC857; opacity: 1; }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed;
  z-index: 3000;
  top: 0; left: 0; height: 100%; width: 100vw;
  background-color: #233D4D;
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1), opacity 0.2s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0%);
  opacity: 1;
  visibility: visible;
  box-shadow: -2px 0 34px 0 rgba(35,61,77,0.18);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2rem;
  margin: 14px 0 18px 22px;
  align-self: flex-start;
  border: none;
  border-radius: 50%;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover { background: #FFC857; color: #233D4D; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 36px;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 14px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.19rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
  padding: 7px 0;
  transition: color 0.2s, background 0.2s;
  border-radius: 7px;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FFC857;
  background: #2A4861;
}

/* ---- RESPONSIVE DESIGN (MOBILE-FIRST) ---- */
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
    padding: 0 12px;
  }
  .features-grid { gap: 16px; }
  .testimonials-grid { gap: 16px; }
  .services-list { gap: 16px; }
}
@media (max-width: 992px) {
  .container { max-width: 768px; }
  .features-grid > div,
  .services-list > div,
  .card,
  .testimonial-card {
    min-width: 210px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .content-wrapper { gap: 16px; }
  .section { padding: 28px 8px; }
}
@media (max-width: 768px) {
  .flex-header {
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 10px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    z-index: 2000;
    margin-right: 0;
  }
  .cta.primary {
    min-width: 120px;
    font-size: 1rem;
    padding: 8px 18px;
  }
  .hero-section {
    min-height: 140px;
    padding: 32px 0 24px 0;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonials-grid {
    flex-direction: column;
    gap: 18px;
  }
  .services-list {
    flex-direction: column;
    gap: 18px;
  }
  .latest-posts-list {
    flex-direction: column;
    gap: 18px;
  }
  .blog-category-grid {
    flex-direction: column;
    gap: 15px;
  }
  .flex-footer {
    flex-direction: column;
    gap: 16px;
    padding: 28px 0 16px 0;
    font-size: .98rem;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 14px;
    flex-wrap: wrap;
  }
  .map-section,
  .map-excerpt {
    gap: 10px;
    flex-direction: column;
    padding: 10px 0 10px 0;
    align-items: flex-start;
  }
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .section { margin-bottom: 38px; padding: 22px 2px; }
  .price-table th, .price-table td { padding: 8px 8px; }
  .cookie-banner { flex-direction: column; gap: 14px; padding: 16px 4vw 16px 4vw; font-size: 0.98rem; }
  .cookie-banner button { font-size: 0.98rem; padding: 8px 12px; }
}
@media (max-width: 520px) {
  .container { padding: 0 2vw; }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.13rem; margin-bottom: 4px; }
  h3 { font-size: 1rem; }
  .testimonials-grid > *, .features-grid > *, .services-list > *, .latest-posts-list > *, .blog-post { min-width: 0; width: 100%; max-width: 100%; }
}

/* ---- GEOMETRIC STRUCTURED EFFECTS ---- */
.features-grid > div, .services-list > div, .testimonial-card, .card, .blog-post {
  border-radius: 0 14px 14px 0;
  border-left: 6px solid #FFC857;
  box-shadow: 0 2px 8px rgba(35,61,77,0.09);
}
.features-grid > div::before,
.services-list > div::before,
.testimonial-card::before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent #FFC857 transparent transparent;
  z-index: 1;
}

/* ---- MICROANIMATIONS ---- */
.cta, .footer-nav a, .main-nav a, .mobile-nav a, .cookie-banner button, .mobile-menu-close {
  transition: background 0.15s, color 0.15s, box-shadow 0.19s, transform 0.15s;
}
.footer-nav a, .main-nav a, .mobile-nav a {
  outline: 0;
}
.footer-nav a:focus, .main-nav a:focus, .mobile-nav a:focus {
  box-shadow: 0 0 0 2px #FFC857;
  background: #F6F7F8;
  color: #233D4D;
}

/* ---- ACCESSIBILITY FOCUS ---- */
.cta:focus, .cookie-banner button:focus, .mobile-menu-close:focus {
  outline: 2px solid #FFC857;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #FFC85760;
}

/* ---- GEOMETRIC/STRUCTURED FONT TWEAKS ---- */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ---- OVERRIDE HTML5 FORM DEFAULT FOR BUTTONS ---- */
button:active, .cta:active {
  transform: scale(0.98);
}

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar { width: 12px; background: #F6F7F8; }
::-webkit-scrollbar-thumb { background: #233D4D; border-radius: 8px; }

/* ---- UTILITY (FOR SPACING, FLEX, ETC.) ---- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ---- END ---- */