/* ================= CSS RESET & NORMALIZATION ================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; background: #F6F6F4; color: #28415A; font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 22px; }
a { color: #28415A; text-decoration: none; cursor: pointer; transition: color 0.2s; }
a:hover, a:focus { color: #869E9F; outline: none; }
button { font-family: inherit; font-size: 16px; border: none; background: none; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-weight: 600; color: #1b2c3e; line-height: 1.15; margin-bottom: 18px; }
h1 { font-size: 2.25rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.18rem; }
strong { font-weight: 700; }

/* ===================== LAYOUT CONTAINERS ======================= */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
main section:last-child,
main > section:last-child { margin-bottom: 20px; }

@media (max-width: 768px) {
  .section { padding: 30px 0 30px 0; margin-bottom: 38px; }
}

/* ================== SPACING UTILITIES & FLEXBOX RULES ============= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(40, 65, 90, 0.07);
  display: flex;
  flex-direction: column;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 260px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 13px;
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(40, 65, 90, 0.08);
  border-left: 6px solid #869E9F;
  max-width: 620px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .content-grid, .card-container, .feature-grid, .project-list {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 20px; }
}

/* =================== HEADER & NAVIGATION ==================== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(40,65,90,0.06);
  padding: 0;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  gap: 0;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #28415A;
  padding: 9px 0;
  position: relative;
  transition: color .2s;
}
header nav a:hover, header nav a:focus {
  color: #869E9F;
}
.cta-primary {
  background: #28415A;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 26px;
  padding: 11px 28px;
  margin-left: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(40,65,90,0.11);
  display: inline-block;
  transition: background 0.22s, box-shadow 0.18s, color 0.17s;
  border: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: #869E9F;
  color: #fff;
  box-shadow: 0 6px 30px rgba(40,65,90,0.13);
}
.cta-secondary {
  background: transparent;
  color: #28415A;
  border: 2px solid #28415A;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 25px;
  margin-left: 0;
  font-weight: 600;
  transition: background 0.22s, color 0.2s, border 0.18s;
  margin-top: 14px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #28415A;
  color: #fff;
  border-color: #28415A;
}
/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #28415A;
  margin-left: 22px;
  border-radius: 7px;
  padding: 5px 12px;
  z-index: 54;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #f1f1ef;
}
@media (max-width: 1020px) {
  header .container { flex-direction: row; gap: 8px; }
  header nav { gap: 18px; }
  .cta-primary { margin-left: 10px; }
}
@media (max-width: 900px) {
  header nav { gap: 10px; }
}
@media (max-width: 768px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ================== MOBILE MENU =================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  background: rgba(40,65,90,0.92);
  z-index: 99;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.55,.2,.2,1), opacity 0.25s cubic-bezier(.33,0,.67,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 30px;
  font-size: 2.4rem;
  background: none;
  color: #fff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  z-index: 111;
  transition: color 0.17s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #f1f1f1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin-top: 96px;
  padding: 30px 34px 30px 34px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.26rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 6px 2px;
  font-weight: 500;
  min-width: 160px;
  transition: color .18s, background .17s;
  border-radius: 5px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #869E9F;
  color: #28415A;
}
@media (max-width: 480px) {
  .mobile-nav { padding: 30px 17px; gap: 22px; }
  .mobile-menu-close { right: 12px; }
}

/* ============= HERO & FEATURE GRIDS ETC. ========== */
.hero {
  display: flex;
  background: #E9eceb;
  border-radius: 0 0 35px 35px;
  padding: 70px 0 68px 0;
  margin-bottom: 48px;
}
.hero .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 22px;
}
.hero h1 {
  font-size: 2.7rem;
  color: #28415A;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.15;
}
.hero p {
  font-size: 1.12rem;
  color: #405368;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .hero { padding: 46px 0 38px 0; }
}
@media (max-width: 768px) {
  .hero { padding: 30px 0 30px 0; margin-bottom: 24px; }
  .hero .container { padding: 0 5px; }
  .hero h1 { font-size: 2.0rem; }
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 14px;
  padding: 28px 16px 22px 16px;
  box-shadow: 0 2px 11px rgba(40,65,90,0.07);
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-grid img { width: 46px; height: 46px; margin-bottom: 12px; }
.feature-grid h3 { font-size: 1.13rem; margin-bottom: 10px; color: #28415A; }
.feature-grid p { color: #3d4e5e; font-size: 1rem; }

@media (max-width: 900px) {
  .feature-grid { flex-direction: column; }
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.project-list > div {
  flex: 1 1 250px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 7px rgba(40,65,90,0.08);
  padding: 22px 20px;
  margin-bottom: 20px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
}
.project-list h3 { font-size: 1.10rem; margin-bottom: 10px; color: #28415A; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.faq-list > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(40,65,90,0.06);
  padding: 22px 18px;
  margin-bottom: 0;
}
.faq-list h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #28415A;
  font-size: 1.13rem;
  margin-bottom: 7px;
}

.overall-rating {
  font-size: 1.13rem;
  color: #234;
  background: #e2e8e5;
  border-radius: 9px;
  padding: 12px 19px;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.overall-rating span { font-weight: 600; color: #28415A; }

/* ======================= TESTIMONIALS ============================== */
blockquote {
  color: #28415A;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.55;
}
.testimonial-card strong {
  color: #28415A;
  font-weight: 700;
}
.testimonial-card div {
  color: #405368;
  font-size: 1rem;
}

/* ====================== CONTACT & INFO BOXES ========================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 14px 0 0 0;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #28415A;
  font-size: 1rem;
  line-height: 1.4;
}
.contact-info img { width: 22px; height: 22px; opacity: 0.88; }
.contact-info a { color: #28415A; }
.contact-info a:hover, .contact-info a:focus { color: #869E9F; text-decoration: underline; }

.contact-methods {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .contact-methods { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.map-placeholder {
  background: #e9eceb;
  border-radius: 13px;
  padding: 20px 17px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

/* ======================= FOOTER ========================== */
footer {
  background: #fff;
  margin-top: 60px;
  padding: 0;
  box-shadow: 0 -2px 17px rgba(40,65,90,0.04);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  justify-content: space-between;
  padding: 35px 0 18px 0;
  border-top: 1px solid #e6e6e0;
}
.footer-content nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-right: 15px;
}
.footer-content nav a {
  color: #869E9F;
  font-size: 1.03rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color .18s;
}
.footer-content nav a:hover, .footer-content nav a:focus {
  color: #28415A;
}
.footer-content .contact-info {
  margin-top: 0;
  font-size: 0.98rem;
  color: #405368;
}
.footer-legal {
  font-size: 0.93rem;
  color: #9dadb6;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .footer-content { flex-direction: column; gap: 22px; }
  .footer-content nav { flex-direction: row; gap: 18px; }
}
@media (max-width: 600px) {
  .footer-content { gap: 14px; padding: 24px 0 6px 0; }
}

/* ===== COOKIE CONSENT BANNER & MODAL ====== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #28415A;
  color: #fff;
  z-index: 200;
  padding: 22px 14px;
  box-shadow: 0 -8px 30px rgba(40,65,90,.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transition: transform 0.37s cubic-bezier(.44,.19,.32,1), opacity 0.21s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  font-size: 1rem;
  color: #fff;
  margin-right: 12px;
  max-width: 480px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  border-radius: 21px;
  padding: 9px 22px;
  border: none;
  font-weight: 500;
  transition: background .17s, color .16s;
}
.cookie-accept {
  background: #fff;
  color: #28415A;
  margin-right: 4px;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #869E9F;
  color: #fff;
}
.cookie-reject {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #fff;
  color: #28415A;
}
.cookie-settings {
  background: #869E9F;
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #fff;
  color: #869E9F;
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 13px; padding: 17px 8px; }
  .cookie-banner p { margin-bottom: 4px; margin-right: 0; }
}

/* Cookie Consent Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 30, 40, 0.38);
  z-index: 220;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #28415A;
  position: fixed;
  left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.97);
  min-width: 335px; max-width: 95vw;
  width: 395px;
  border-radius: 19px;
  box-shadow: 0 10px 40px rgba(40,65,90,0.29);
  z-index: 222;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.28s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 4px 24px;
}
.cookie-modal-header h2 {
  font-size: 1.14rem;
  margin-bottom: 0;
  color: #28415A;
}
.cookie-modal-close {
  background: none;
  font-size: 1.7rem;
  color: #869E9F;
  border: none;
  padding: 6px 13px;
  border-radius: 8px;
  transition: color 0.15s, background 0.13s;
  cursor: pointer;
}
.cookie-modal-close:focus, .cookie-modal-close:hover {
  color: #28415A;
  background: #f2f2f1;
}
.cookie-modal-body {
  padding: 7px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
}
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: #28415A;
  user-select: none;
}
.cookie-toggle {
  width: 32px; height: 18px;
  border-radius: 20px;
  background: #e9eceb;
  position: relative;
  margin-left: auto;
  margin-right: 0;
  transition: background 0.22s;
  display: inline-block;
}
.cookie-toggle input { display: none; }
.cookie-toggle span {
  display: block;
  width: 16px; height: 16px;
  background: #869E9F;
  border-radius: 50%;
  position: absolute; left: 1px; top: 1px;
  transition: left 0.21s, background 0.22s;
}
.cookie-toggle input:checked + span {
  left: 15px;
  background: #28415A;
}
.cookie-category.essential label {
  color: #234;
}
.cookie-category.essential .cookie-toggle { opacity: .54; pointer-events: none; }
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 13px;
  padding: 13px 24px 20px 24px;
}
.cookie-modal-footer button {
  min-width: 105px;
  padding: 9px 0px;
}
@media (max-width: 430px) {
  .cookie-modal { min-width: 98vw; padding: 0 0 32px 0; }
  .cookie-modal-header, .cookie-modal-body, .cookie-modal-footer { padding-left: 13px; padding-right: 13px; }
}

/* =============== TYPOGRAPHY =============== */
body, p, li, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #28415A;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.13rem; }
@media (max-width: 600px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.08rem; }
}

/* === LISTS === */
ul, ol { color: #405368; margin: 0 0 12px 0; }
li { margin-bottom: 8px; }

/* === BUTTONS REFINED === */
button, .cta-primary, .cta-secondary {
  cursor: pointer;
  outline: none;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.98);
}
button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible { outline: 2px solid #869E9F; outline-offset: 2px; }

/* === MICRO ANIMATIONS === */
.cta-primary, .cta-secondary, button {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
}

/* === MISC ELEMENTS === */
::-webkit-scrollbar { width: 12px; background: #F6F6F4; }
::-webkit-scrollbar-thumb { background: #e9eceb; border-radius: 12px; }

hr {
  border: none; border-top: 1px solid #dae2e3; margin: 30px 0; height: 1px;
}

/* == THANK-YOU PAGE == */
.thank-you h1 { color: #28415A; }

/* == SUPPORT CTA == */
.support-cta { background: #e9eceb; border-radius: 12px; padding: 24px 18px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.support-cta h2 { color: #28415A; margin-bottom: 7px; }
.support-cta p { font-size: 1rem; color: #405368; }

/* ========== ACCESSIBILITY & DARK TEXT ON LIGHT BG's IN TESTIMONIALS =============== */
.testimonial-card, .faq-list > div, .feature-grid > div, .card, .project-list > div {
  color: #28415A;
  background: #fff;
}

/* ========== Z-INDEX LAYERING (for header, menu, banner, modal) =========== */
header { z-index: 20; }
.mobile-menu { z-index: 99; }
.cookie-banner { z-index: 200; }
.cookie-modal, .cookie-modal-overlay { z-index: 220; }

/* ========== Prevent Overlaps ========== */
.card, .testimonial-card, .feature-grid > div, .project-list > div, .faq-list > div {
  margin-bottom: 20px;
}

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