/* CSS RESET & NORMALIZATION (Mobile-first) */
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, font, 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 {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #F4F6F5;
  color: #256066;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

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

ul, ol {
  list-style: none;
  padding-left: 0;
}

a {
  color: #256066;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4, 0, .2, 1);
}
a:hover, a:focus {
  color: #007175;
  outline: none;
}

/* -- GEOMETRIC STRUCTURED THEME -- */
:root {
  --color-primary: #256066;
  --color-secondary: #B3D9C4;
  --color-accent: #F4F6F5;
  --color-dark: #18393C;
  --color-text: #18393C;
  --color-light: #fff;
}

/* ------ TYPOGRAPHY ------ */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #18393C;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.4rem; /* 38px */
  margin-bottom: 24px;
}
h2 {
  font-size: 1.8rem; /* 29px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.3rem; /* 21px */
  margin-bottom: 14px;
}
h4,h5,h6 {
  font-size: 1rem;
}

p, li, small {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #256066;
}

.subheadline {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 400;
  margin-bottom: 32px;
  color: #256066;
}

strong {
  font-weight: 700;
}

small {
  font-size: 0.88rem;
  color: #18393C;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(37,96,102,0.07);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--color-secondary);
  flex: 1 1 260px;
  min-width: 260px;
  transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), border-color 0.25s;
}
.card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(37,96,102,0.15);
  z-index: 2;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}

.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: var(--color-light);
  border-radius: 16px;
  border: 2px solid var(--color-secondary);
  box-shadow: 0 1px 10px rgba(37,96,102,0.12);
  margin-bottom: 20px;
  transition: border-color 0.22s, box-shadow 0.19s;
  max-width: 460px;
}
.testimonial-details {
  color: #18393C;
  font-size: 1rem;
  text-align: center;
}
.testimonial-card .star-rating {
  color: #EBB93B;
  display: inline-block;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-light);
  border-radius: 12px;
  border: 2px solid var(--color-secondary);
  box-shadow: 0 1px 6px rgba(37,96,102,0.09);
  padding: 20px 18px;
  max-width: 310px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.feature-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 3px 14px rgba(37,96,102,0.12);
}

/* --- Responsive Flex Direction Switchers --- */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* ------ HEADER & NAVIGATION ------ */
header {
  background: #fff;
  box-shadow: 0 1px 8px rgba(37,96,102,0.09);
  z-index: 1000;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  min-height: 60px;
}
.logo img {
  height: 46px;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 6px;
  letter-spacing: 0.035em;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:not(.cta-primary):hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.cta-primary {
  background: var(--color-primary);
  color: var(--color-light);
  border-radius: 10px;
  padding: 10px 26px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(37,96,102,0.09);
  border: none;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #18393C;
  color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(37,96,102,0.16);
}

/* --- Hamburger (Mobile burger menu) --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2.15rem;
  cursor: pointer;
  display: none;
  padding: 4px 10px;
  transition: background 0.15s, color 0.2s;
  border-radius: 7px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,96,102, 0.96);
  color: #fff;
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.7,0,.4,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-light);
  cursor: pointer;
  margin: 20px 22px 4px 0;
  transition: color 0.2s;
  border-radius: 6px;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--color-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: 45px 0 0 0;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.22rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 44px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

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

/* --- HEADER + Burger shadow effect when open --- */
.mobile-menu.open {
  box-shadow: 0 0 26px 0 rgba(24,57,60,0.18);
}

/* ------ HERO SECTION ------ */
.hero {
  background-color: var(--color-accent);
  background-image: none;
  padding: 44px 0 28px 0;
  display: flex;
  align-items: center;
  position: relative;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 270px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 24px 0 10px 0;
  }
  .hero h1 {font-size: 1.6rem;}
}

/* ------ FEATURE GRID ------ */
.features {
  background: var(--color-light);
  padding: 32px 0;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* ------ CTA SECTION ------ */
.cta {
  background: var(--color-secondary);
  padding: 38px 0;
}
.cta .cta-primary {
  margin-top: 20px;
}

/* ------ TESTIMONIALS ------ */
.testimonials {
  background: var(--color-accent);
  padding: 36px 0;
}
.testimonials h2 {
  color: var(--color-primary);
}

.testimonials .content-wrapper {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.testimonial-card {
  min-height: 170px;
  max-width: 380px;
  background: #fff;
  border: 2px solid var(--color-secondary);
  color: #18393C;
  align-items: flex-start;
  box-shadow: 0 2px 14px rgba(37,96,102,0.09);
}
.testimonial-card p {
  color: #18393C;
  font-style: italic;
  font-size: 1.08rem;
}

@media (max-width: 990px) {
  .testimonials .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ------ SERVICE LISTS ------ */
.service-list > li,
.values-section ul > li,
.project-highlights ul > li,
.about-section ul > li,
.faq-list > li {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 11px;
  padding: 18px 18px 8px 18px;
  box-shadow: 0 1px 7px rgba(37,96,102,0.062);
  border-left: 4px solid var(--color-primary);
  font-size: 1.05rem;
  position: relative;
}
@media (max-width: 768px) {
  .service-list > li, .faq-list>li {
    padding: 12px 10px 6px 14px;
    font-size: 0.96rem;
  }
}

.service-list h2 {
  font-size: 1.1rem;
  margin-bottom: 9px;
  color: var(--color-primary);
}
.values-section ul, .faq-list {
  padding-left: 0;
}
.values-section ul>li, .faq-list>li {
  border-radius: 9px;
}

/* ------ PRICING TABLE ------ */
.pricing-table {
  width: 100%;
  background: #fff;
  border-radius: 15px;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(37,96,102,0.09);
  overflow-x: auto;
}
.pricing-table th {
  background: var(--color-secondary);
  color: #18393C;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  text-align: left;
  padding: 16px;
  text-transform: uppercase;
}
.pricing-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--color-secondary);
  font-size: 1rem;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* ------ CONTACT DETAILS ------ */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-bottom: 24px;
  align-items: center;
}
.contact-details > div {
  min-width: 165px;
}
.contact-details img {
  margin-right: 7px;
  margin-bottom: -2px;
  width: 22px;
  display: inline-block;
  vertical-align: middle;
}
.contact-details a {
  color: var(--color-primary);
  font-weight: 600;
  word-break: break-all;
}
.contact-details a:hover {
  color: #18393C;
}

@media (max-width: 800px) {
  .contact-details {
    flex-direction: column;
    gap: 8px;
  }
}

.contact-trust ul li {
  margin-bottom: 10px;
  padding-left: 0;
}

/* ------ FOOTER ------ */
footer {
  background: #256066;
  color: #fff;
  padding: 36px 0 0 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #B3D9C4;
  padding-bottom: 32px;
}
.footer-logo img {
  height: 44px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.02em;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.19s;
}
.footer-nav a:hover {
  color: #B3D9C4;
}
.footer-contact p,
.footer-contact a {
  color: #B3D9C4;
  font-size: 1rem;
}
.footer-contact a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  color: #B3D9C4;
  font-size: 0.98rem;
  margin: 17px 0 0 0;
  letter-spacing: 0.012em;
}

@media (max-width: 880px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* ----- GEOMETRIC/STRUCTURED DESIGN ACCENTS ----- */
h1, h2, h3, .cta-primary, .main-nav a, .mobile-nav a, .footer-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-variation-settings: 'wght' 700;
}

.section, .card, .testimonial-card, .feature-item, .service-list > li, .faq-list > li, .pricing-table {
  box-shadow: 0 1.5px 7px rgba(37,96,102,0.045);
}

.card, .testimonial-card, .feature-item, .service-list > li, .faq-list > li, .pricing-table {
  border-radius: 13px 22px 13px 22px/22px 13px 22px 13px;
}

/* - angular button edge geometric accent - */
.cta-primary {
  border-radius: 13px 23px 13px 7px / 18px 13px 19px 9px;
  border: 2px solid transparent;
}
.cta-primary:active {
  border-color: var(--color-secondary);
}

/* ----- MICRO-INTERACTIONS/TRANSITIONS ----- */
.card, .testimonial-card, .feature-item, .cta-primary {
  transition: box-shadow 0.18s, border-color 0.18s, background 0.18s, color 0.18s;
}

/* ----- TABLET + DESKTOP TYPOGRAPHY UPSIZE ----- */
@media (min-width: 600px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.17rem; }
  h3 { font-size: 1.25rem; }
}
@media (min-width: 960px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
}

/* ----------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  z-index: 99999;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-dark);
  color: #fff;
  padding: 22px 16px 22px 16px;
  box-shadow: 0 -2.5px 12px rgba(24,57,60,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.42s cubic-bezier(.83,0,.25,1);
}
.cookie-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 7px;
  border: none;
  padding: 10px 22px;
  margin: 0;
  min-width: 115px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner .reject {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: var(--color-dark);
}
.cookie-banner button:focus {
  outline: 2px solid #fff;
}
.cookie-banner button:hover {
  filter: brightness(1.075);
}

/* ------- COOKIE MODAL ------- */
.cookie-modal-backdrop {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,57,60, 0.62);
  z-index: 100009;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.32s;
}
.cookie-modal {
  background: #fff;
  color: #18393C;
  padding: 38px 30px 30px 30px;
  border-radius: 16px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 1px 16px rgba(0,40,70,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalSlideIn 0.39s cubic-bezier(.86,0,.45,1);
}
@keyframes modalSlideIn {
  from {transform: translateY(110px) scale(0.93); opacity: 0;}
  to {transform: none; opacity: 1;}
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 1.09rem;
}
.cookie-modal .category-label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-modal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 26px;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #B3D9C4;
  border-radius: 18px;
  transition: background 0.2s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  background: #256066;
}
.cookie-modal .toggle-slider:before {
  content: '';
  position: absolute;
  height: 19px; width: 19px;
  left: 3.5px; bottom: 3.5px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.21s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-note {
  font-size: 0.99rem;
  color: #256066;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 7px;
  border: none;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px;
  right: 12px;
  font-size: 1.9rem;
  color: #256066;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
.cookie-modal .close-modal:focus {
  outline: 2px solid #256066;
}

@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 8px;
    min-width: 0;
  }
  .cookie-modal h2 {font-size: 1.1rem;}
}

/* -------------- THANK YOU PAGE -------------- */
.thank-you-section {
  background: var(--color-accent);
  padding: 72px 0 52px 0;
}
.thank-you-section .content-wrapper {
  align-items: center;
  text-align: center;
}
.thank-you-section h1 {
  color: var(--color-primary);
}

/* ------- ACCESSIBLE FOCUS VISIBLE --------- */
:focus-visible {
  outline: 2px solid #256066;
  outline-offset: 2px;
  z-index: 10;
}

/* ----- SPACING RULES (CRITICAL) ----- */
.section, .card, .testimonial-card, .feature-item, .service-list > li, .faq-list > li {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-grid, .contact-details {
  gap: 20px;
}

/* ------- PREVENT OVERLAPPING ------- */
.card-container > *, .content-grid > *, .feature-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* -------------------- PRINT OPTIMIZATION ------------------- */
@media print {
  * {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  .container {
    max-width: none;
    padding: 0;
  }
}
