/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #E3E7EF;
  color: #222A33;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #B13A13;
  text-decoration: none;
  transition: color .2s;
}
a:focus, a:hover {
  color: #E95828;
  outline: none;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

button {
  cursor: pointer;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #2B3540;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p {
  font-size: 1rem;
  color: #e95828;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 28px 0 rgba(43,53,64,.06), 0 1.5px 7px 0 rgba(43,53,64,.07);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(43,53,64,.09);
  min-width: 260px;
  max-width: 350px;
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(43,53,64,.15);
  transform: translateY(-2px) scale(1.018);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.cta-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 1.5em;
  margin-bottom: 1em;
}
* + .cta-center {
  margin-top: 28px;
}

/* HERO SECTION */
.hero {
  background: #2B3540;
  color: #fff;
  padding: 70px 0 50px 0;
  position: relative;
}
.hero .container {
  align-items: center;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 620px;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  line-height: 1.14;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.hero p {
  color: #fff;
}
.hero .cta {
  background: #E95828;
  color: #fff;
}

@media (max-width: 768px) {
  .hero {
    padding: 45px 0 30px 0;
  }
  .hero .container {
    padding: 0 10px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero .content-wrapper {
    max-width: 100%;
    padding: 0;
  }
}

/* FLEX PATTERNS */
.feature-grid,
.service-list,
.project-list,
.testimonials,
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.service-list > div,
.feature-grid > div,
.project-list > .project-summary {
  min-width: 260px;
  flex: 1 1 0px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px 0 rgba(43,53,64,.07);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .20s;
}
.service-list > div:hover,
.feature-grid > div:hover,
.project-list > .project-summary:hover {
  box-shadow: 0 12px 28px 0 rgba(43,53,64,.19);
  transform: translateY(-3px) scale(1.015);
}

@media (max-width: 900px) {
  .feature-grid,
  .service-list {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-grid > div,
  .service-list > div {
    min-width: unset;
    width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 600px) {
  .feature-grid,
  .service-list,
  .project-list,
  .testimonials,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(43,53,64,.09);
  position: relative;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #2B3540;
  padding: 9px 15px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  transition: background .16s, color .16s;
}
header nav a:hover,
header nav a:focus {
  background: #E3E7EF;
  color: #E95828;
}
header .cta {
  margin-left: 18px;
}
header img {
  height: 32px;
  width: auto;
  margin-right: 24px;
}

/* HEADER: Responsive */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 0;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    color: #2B3540;
    font-size: 2rem;
    padding: 7px 14px;
    border-radius: 7px;
    border: 2px solid #E3E7EF;
    margin-left: 13px;
    transition: background .18s;
    z-index: 111;
  }
  .mobile-menu-toggle:focus,
  .mobile-menu-toggle:hover {
    background: #E95828;
    color: #fff;
    border-color: #E95828;
  }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #2B3540;
  box-shadow: 0 0 50px 15px rgba(43,53,64,0.10);
  transform: translateX(-100%);
  transition: transform .33s cubic-bezier(.67,0,.33,1);
  display: flex;
  flex-direction: column;
  z-index: 2000;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  position: absolute;
  right: 24px;
  top: 26px;
  z-index: 999;
  padding: 6px 13px;
  border-radius: 5px;
  transition: background .18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #E95828;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 110px 36px 36px 36px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.2rem;
  transition: color .15s, background .15s;
  border-radius: 7px;
  padding: 10px 8px;
  width: 100%;
  text-align: left;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E95828;
  color: #fff;
}

@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* BUTTONS & CTA */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #E95828;
  color: #fff;
  padding: 12px 32px;
  border-radius: 35px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  border: none;
  outline: none;
  text-align: center;
  margin: 0;
  min-width: 150px;
  box-shadow: 0 3px 13px 0 rgba(185,58,19,0.10);
  transition: background .21s, transform .20s, box-shadow .21s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.cta:focus,
.cta:hover {
  background: #B13A13;
  color: #fff;
  transform: translateY(-1.5px) scale(1.022);
  box-shadow: 0 7px 18px 0 rgba(185,58,19,0.18);
}

/* LIST & ICONS */
li {
  font-size: 1rem;
  color: #222A33;
  margin-bottom: 7px;
  line-height: 1.55;
}
li img {
  vertical-align: sub;
  margin-right: 6px;
  width: 22px;
  height: 22px;
  display: inline-block;
}

/* TESTIMONIALS */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card p {
  color: #2B3540;
  font-size: 1.07rem;
  font-weight: 400;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #222A33;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: .90;
  text-align: center;
}
.star-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
  align-items: center;
  justify-content: center;
}
.star-rating img {
  width: 22px; height: 22px;
}

/* PROJECT SUMMARY SPECIFIC */
.project-summary h3 {
  color: #B13A13;
  font-size: 1.22rem;
  margin-bottom: 7px;
}
.project-summary ul li {
  color: #2B3540;
}

/* FOOTER */
footer {
  background: #222A33;
  color: #fff;
  padding: 36px 0 12px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 44px;
  justify-content: space-between;
}
footer a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-right: 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .12s, background .12s;
  border-radius: 7px;
  padding: 7px 9px;
}
footer a:hover, footer a:focus {
  color: #E95828;
  background: #fff2;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer .text-section {
  font-size: 0.97rem;
  color: #E3E7EF;
  opacity: 1;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
footer .text-section img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
footer img {
  width: 45px; height: 45px;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 3px 13px rgba(43,53,64,0.06);
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #2B3540;
  color: #fff;
  padding: 22px 14px 20px 14px;
  z-index: 3070;
  box-shadow: 0 -1px 15px rgba(43,53,64,.21);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: transform .33s, opacity .25s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner p {
  margin: 0;
  color: #fff;
  flex: 1 1 auto;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 18px;
  border-radius: 19px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background .14s, color .14s;
  background: #E95828;
  color: #fff;
  border: none;
  margin-left: 0;
  min-width: 115px;
  box-shadow: 0 1px 6px rgba(185,58,19,0.14);
}
.cookie-banner button.cookie-reject {
  background: #B13A13;
}
.cookie-banner button.cookie-settings {
  background: #fff;
  color: #B13A13;
  border: 1.5px solid #E95828;
}
.cookie-banner button:focus,
.cookie-banner button:hover {
  filter: brightness(1.08);
}
@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    font-size: 0.99rem;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* COOKIE MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(43,53,64,.39);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  transition: opacity .21s;
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 9px 34px rgba(43,53,64,0.26);
  max-width: 430px;
  width: 90vw;
  padding: 38px 28px 26px 28px;
  color: #2B3540;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.32rem;
  margin-bottom: 12px;
  color: #B13A13;
}
.cookie-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  color: #2B3540;
  font-size: 1.8rem;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: background .14s;
}
.cookie-close:focus, .cookie-close:hover {
  background: #E95828;
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 17px 0 13px 0;
}
.cookie-cat-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.cookie-cat-row label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2B3540;
  font-size: 1rem;
}
.cookie-toggle {
  appearance: none;
  outline: none;
  width: 38px;
  height: 20px;
  background: #E3E7EF;
  border-radius: 12px;
  position: relative;
  transition: background .19s;
}
.cookie-toggle:checked {
  background: #B13A13;
}
.cookie-toggle:after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .19s;
}
.cookie-toggle:checked:after {
  left: 21px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal-actions button {
  background: #E95828;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 13px;
  padding: 7px 16px;
  font-size: 0.98rem;
  font-weight: 600;
  min-width: 90px;
  transition: background .13s;
}
.cookie-modal-actions button:focus,
.cookie-modal-actions button:hover {
  background: #B13A13;
}

.cookie-cat-row input[disabled], .cookie-cat-row input[aria-disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* TEXT SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 3px 22px 0 rgba(43,53,64,.09);
  padding: 36px 24px 26px 24px;
}
.confirmation a.cta {
  margin-top: 14px;
}

/* SECTION DEFAULT MARGINS */
main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

@media (max-width: 700px) {
  main > section {
    padding: 22px 6px;
    margin-bottom: 32px;
  }
  .card, .card-content, .confirmation {
    padding: 19px 11px 16px 11px;
  }
}

/* LISTS INSIDE CONTENT */
.content-wrapper ul,
.content-wrapper ol {
  margin-top: 5px;
  margin-bottom: 13px;
}

.content-wrapper ul li,
.content-wrapper ol li {
  color: #222A33;
  margin-bottom: 7px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* MICRO ANIMATIONS */
.card, .feature-grid > div, .service-list > div, .testimonial-card {
  transition: box-shadow .18s, transform .16s;
}
.card:hover, .feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 12px 28px 0 rgba(185,58,19,0.13);
  transform: translateY(-2px) scale(1.018);
}
.cta:active {
  transform: scale(0.98);
}

/* GEOMETRIC STRUCTURED: SHAPES */
.card, .feature-grid > div, .service-list > div, .project-summary, .testimonial-card {
  border-radius: 12px;
  border: 1.6px solid #E3E7EF;
}
hr {
  border: none;
  border-top: 2.7px solid #E95828;
  margin: 26px 0;
  border-radius: 1px;
}

/* DECORATIVE ANGULAR HEADERS */
h1, h2, h3, h4 {
  text-transform: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* RESPONSIVE FLEX DIRECTION */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

/* SPACING & VISUAL HIERARCHY */
main > section + section {
  margin-top: 0px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ENSURE NO OVERLAPS */
.card, .testimonial-card, .feature-item, .service-list > div, .project-summary {
  margin-bottom: 20px;
}

/* Brand font fallback */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), local('Montserrat-Regular');
  font-style: normal; font-weight: 400;
}
@font-face {
  font-family: 'Open Sans';
  src: local('Open Sans'), local('OpenSans-Regular');
  font-style: normal; font-weight: 400;
}
