/* -----------------------------
   CSS RESET & BASE STYLES
----------------------------- */
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,
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;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #FFFDFB;
  color: #233044;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
ul, ol {
  list-style: none;
}
a {
  color: #20426E;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #BB5716;
  outline: none;
}
strong, b {
  font-weight: 700;
  color: #20426E;
}

/* -----------------------------
   FONT IMPORTS
----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20426E;
  font-weight: 700;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.25;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 1.2em;
}

/* -----------------------------
   COLORS & THEME
----------------------------- */
:root {
  --primary: #20426E;
  --primary-dark: #19355c;
  --secondary: #89C4E1;
  --secondary-dark: #66adcf;
  --warm-bg: #FFF6ED;
  --accent: #EFEFEF;
  --highlight: #F9BBB2;
  --brand-orange: #FFC6A5;
  --brand-brown: #BB5716;
  --brand-yellow: #FFF5C2;
  --shadow: rgba(32,66,110,0.09);
  --shadow-dark: rgba(32,66,110,0.16);
  --white: #fff;
  --focus: #20426E;
}

/* -----------------------------
   LAYOUT HELPERS
----------------------------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 3px 10px var(--shadow);
  padding: 32px 20px 28px 20px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 24px var(--shadow-dark);
  transform: translateY(-2px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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: 24px 26px 24px 28px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: var(--warm-bg);
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--accent);
  min-width: 0;
  max-width: 540px;
}

.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 12px;
}
.stars-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-list, .services-list, .values-list, .repair-list, .benefits-list, .usps-list, .projects-list, .project-types-list, .office-info, .certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.features-list li,
.services-list li,
.usps-list li,
.values-list li,
.repair-list li,
.projects-list li,
.project-types-list li {
  flex: 1 1 260px;
  min-width: 240px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 24px 18px 22px 18px;
  margin-bottom: 8px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.features-list li:hover,
.services-list li:hover,
.usps-list li:hover,
.values-list li:hover,
.repair-list li:hover,
.projects-list li:hover,
.project-types-list li:hover {
  box-shadow: 0 5px 18px var(--shadow-dark);
  transform: translateY(-1px);
}
.values-list li {
  background: var(--accent);
}
.certifications {
  display: flex;
  gap: 20px;
}
.certifications li {
  background: var(--warm-bg);
  border-radius: 14px;
  box-shadow: 0 1px 4px var(--shadow);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}

.steps-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.steps-overview li {
  flex: 1 1 220px;
  min-width: 180px;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 1px 5px var(--shadow);
}
.steps-overview img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}

.benefits-list li,
.project-types-list li,
.office-info li {
  background: var(--warm-bg);
  border-radius: 13px;
  padding: 13px 18px 12px 18px;
  margin-bottom: 0;
  box-shadow: 0 1px 3px var(--shadow);
  font-size: 1rem;
}
.office-info li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-details > div, .contact-info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.map-location {
  background: var(--accent);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: 0 1px 4px var(--shadow);
  margin-bottom: 16px;
}

/****************************
HEADER & NAVIGATION
*****************************/
header {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 18px -8px var(--shadow-dark);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 22px;
}
.logo img {
  max-height: 48px;
  min-width: 120px;
  border-radius: 10px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-right: auto;
}
.main-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1rem;
  padding: 7px 13px;
  border-radius: 8px;
  transition: background 0.16s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  outline: none;
}

.btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 22px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px var(--shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.14s, transform 0.14s, box-shadow 0.18s;
  margin-left: 18px;
  margin-right: 6px;
  text-align: center;
  outline: none;
  display: inline-block;
  z-index: 5;
}
.btn:hover, .btn:focus {
  background: var(--brand-orange);
  color: var(--brand-brown);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px var(--shadow-dark);
}
.btn.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 3px 14px var(--shadow-dark);
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: var(--white);
  padding: 8px 10px;
  cursor: pointer;
  z-index: 120;
  margin-left: 18px;
  border-radius: 9px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary-dark);
  color: var(--primary);
}

/*****************************************
MOBILE NAVIGATION OVERLAY
******************************************/
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  z-index: 1111;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.48,.43,.19,1.17);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  padding: 10px 14px 6px 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.17s, background 0.14s;
  border-radius: 9px;
  margin: 8px 8px 14px 0;
  z-index: 1114;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
  background: var(--highlight);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 8px 0 0 32px;
  gap: 10px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 14px 8px 12px 0;
  border-radius: 10px;
  transition: background 0.13s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--primary);
  background: var(--brand-orange);
  outline: none;
}

/* Show mobile menu toggle and hide nav on mobile < 950px */
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .btn.btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}

/****************************
HERO SECTIONS
*****************************/
.hero {
  background: linear-gradient(90deg, var(--warm-bg) 80%, var(--secondary) 110%);
  padding: 52px 0 42px 0;
  border-radius: 0 0 34px 34px;
  margin-bottom: 52px;
  box-shadow: 0 2px 10px var(--shadow-dark);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 10px;
  max-width: 640px;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
  color: var(--primary);
 }
.hero p {
  font-size: 1.18rem;
  margin-bottom: 22px;
}
.hero .btn {
  margin-top: 6px;
  font-size: 1.17rem;
}

/****************************
BUTTONS & CTAs
*****************************/

.btn[disabled] {
  opacity: 0.64;
  pointer-events: none;
}

/******************************
FOOTER
*******************************/
footer {
  background: var(--primary);
  color: var(--white);
  padding: 38px 0 18px 0;
  margin-top: 60px;
  border-radius: 32px 32px 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 20px;
  justify-content: space-between;
  min-height: 96px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.footer-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 4px 0px;
  opacity: 0.94;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 7px;
  transition: background 0.12s, color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-yellow);
  background: var(--secondary);
}
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 330px;
  font-size: 1rem;
}
footer .logo img {
  max-width: 52px;
  min-width: 42px;
}
@media (max-width: 760px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: row;
    gap: 12px;
  }
}

/******************************
TYPOGRAPHY & CONTENT
*******************************/
.text-section {
  margin-bottom: 24px;
}
.text-section ul, .text-section ol {
  margin: 14px 0 10px 16px;
  list-style: disc inside;
}

.text-section li {
  margin-bottom: 7px;
}

/* spacing for benefit/project types */
.benefits-list, .project-types-list {
  gap: 15px;
  flex-wrap: wrap;
}

/*****************************************
SPECIAL CARD AND GRID STYLES
******************************************/
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.services-grid li {
  flex: 1 1 270px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.services-grid li:hover {
  box-shadow: 0 8px 32px var(--shadow-dark);
  transform: translateY(-2px);
}

/*****************************************
RESPONSIVE DESIGN - MOBILE FIRST
******************************************/
@media (max-width: 960px) {
  .container {
    max-width: 96vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .features-list, .services-list, .values-list, .repair-list, .usps-list, .services-grid, .projects-list, .project-types-list, .office-info, .certifications {
    flex-direction: column;
    gap: 16px;
  }
  .features-list li,
  .services-list li,
  .usps-list li,
  .values-list li,
  .repair-list li,
  .projects-list li,
  .project-types-list li,
  .services-grid li {
    min-width: 0 !important;
    width: 100%;
    flex-basis: 100%;
    padding: 18px 12px;
  }
  .hero .content-wrapper {
    max-width: 98vw;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 26px 6px;
    margin-bottom: 34px;
  }
  .hero {
    padding: 34px 0 26px 0;
  }
  .card,
  .testimonial-card {
    padding: 18px 10px;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 16px !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .header .container {
    gap: 12px;
  }
}
@media (max-width: 540px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .btn {
    font-size: 0.99rem;
    padding: 8px 18px;
  }
}

/*********************
COOKIE CONSENT BANNER
*********************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--warm-bg);
  color: #20426E;
  z-index: 1500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 20px 16px;
  box-shadow: 0px -3px 18px var(--shadow-dark);
  font-size: 1rem;
  border-radius: 18px 18px 0 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.19s, transform 0.23s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner strong {
  font-weight: 700;
  color: var(--brand-brown);
}
.cookie-banner .btn,
.cookie-banner button {
  margin-left: 0;
  margin-right: 8px;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 14px;
  background: var(--secondary);
  border: none;
  color: var(--primary);
  box-shadow: 0 1px 4px var(--shadow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.12s, color 0.12s, transform 0.14s;
  cursor: pointer;
}
.cookie-banner .btn.accept {
  background: var(--brand-orange);
  color: var(--brand-brown);
}
.cookie-banner .btn.reject {
  background: var(--accent);
  color: #b32828;
  border: 1px solid #de8980;
}
.cookie-banner .btn.settings {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .btn:hover, .cookie-banner .btn:focus,
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--secondary-dark);
  color: var(--primary-dark);
  outline: none;
}

/*********************************
COOKIE PREFERENCES MODAL
*********************************/
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,66,110,0.42);
  align-items: center;
  justify-content: center;
  transition: opacity 0.19s;
}
.cookie-modal-overlay.show {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  border-radius: 18px;
  max-width: 420px;
  width: 98vw;
  box-shadow: 0 14px 44px 0 var(--shadow-dark);
  padding: 32px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  animation: modalSlideIn 0.36s cubic-bezier(.18,.86,.56,1.24);
  position: relative;
}
@keyframes modalSlideIn {
  from {transform: translateY(70px) scale(.97); opacity: 0.42;}
  to {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal .modal-close-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  border-radius: 12px;
  padding: 4px 9px;
  transition: background 0.14s, color 0.1s;
  cursor: pointer;
}
.cookie-modal .modal-close-btn:hover, .cookie-modal .modal-close-btn:focus {
  background: var(--brand-orange);
  color: var(--brand-brown);
  outline: none;
}
.cookie-modal h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.cookie-modal p {
  font-size: 1rem;
  margin-bottom: 9px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 12px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--warm-bg);
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 1rem;
}
.cookie-category label {
  font-weight: 600;
}
.cookie-category input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  border-radius: 7px;
  vertical-align: middle;
  outline: 1px solid var(--secondary-dark);
  margin: 0 0 0 7px;
  cursor: pointer;
}
.cookie-category input[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .btn {
  box-shadow: 0 1px 5px var(--shadow);
}

/********************************************
UTILITY & MICRO INTERACTIONS
********************************************/
::-webkit-input-placeholder { color: #9aa7c8; opacity:1; }
::-moz-placeholder { color: #9aa7c8; opacity:1; }
:-ms-input-placeholder { color: #9aa7c8; opacity:1; }
::placeholder { color: #9aa7c8; opacity:1; }

input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 9px;
  border: 1px solid var(--accent);
  padding: 10px 16px;
  margin-bottom: 18px;
  transition: border 0.14s, box-shadow 0.14s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--secondary);
  outline: none;
  box-shadow: 0 1px 7px var(--shadow);
}

/********************************************
ACCESSIBILITY
********************************************/
:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .cookie-modal {
    padding: 12px 5vw 12px 5vw;
  }
}

/* Hide decorative image scrollbars */
::-webkit-scrollbar {
  width: 7px;
  background: var(--accent);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

/* ===============
MINIMUM SPACING FOR ALL FLEX CARDS AND ELEMENTS
================== */
section, .section {
  margin-bottom: 60px;
}
section:last-child, .section:last-child {
  margin-bottom: 0;
}
.card, .testimonial-card,
.features-list li, .values-list li, .services-list li, .repair-list li, .usps-list li, .projects-list li, .project-types-list li, .services-grid li {
  margin-bottom: 20px;
}
/* Prevent overlap: ensure minimum spacing between all adjacent sections */
section + section, .section + .section {
  margin-top: 20px;
}

/* Ensure all flex containers use flexbox only */
/* ========== END ========== */
