/* ============================
   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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F8FAFB;
  color: #175042;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  border: 0;
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #D1B35C;
  outline-offset: 2px;
}

/* ============================
   BRAND & PASTEL VARIABLE COLORS
   ============================ */
:root {
  --brand-primary: #175042;
  --brand-secondary: #F5F5F5;
  --brand-accent: #D1B35C;
  --pastel-mint: #DCF5E8;
  --pastel-blush: #FFECEF;
  --pastel-sun: #FFF7E3;
  --pastel-lavender: #F3F1FE;
  --pastel-azure: #E6F3FB;
  --text-dark: #222B28;
  --text-light: #fff;
  --border-light: #E8EEF0;
  --shadow: 0 2px 16px 0 rgba(30,60,60,0.08);
}

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

body, input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-dark);
}

h1, .hero-section h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--brand-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 24px;
  line-height: 1.15;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 8px;
}
p, ul, ol, li, blockquote, cite {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--brand-primary);
}
strong {
  color: var(--brand-primary);
  font-weight: 700;
}

blockquote {
  font-style: italic;
  color: var(--brand-primary);
  margin: 0 0 8px 0;
}
cite {
  display: block;
  font-size: 1rem;
  color: #7ca492;
}

/* ============================
   CONTAINER & BASE SPACING
   ============================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section,
.hero-section,
.features-section,
.services-overview-section,
.services-section,
.testimonials-preview-section,
.cta-section,
.about-section,
.team-section,
.why-us-section,
.project-overview-section,
.testimonial-snippets-section,
.testimonials-section,
.trust-elements-section,
.contact-section,
.map-section,
.privacy-section,
.gdpr-section,
.cookie-policy-section,
.terms-section,
.confirmation-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 30px;
  background: var(--pastel-azure);
  box-shadow: var(--shadow);
}

/* Dreamy section backgrounds */
.hero-section { background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-blush)); }
.features-section { background: var(--pastel-sun); }
.services-overview-section,
.services-section { background: var(--pastel-lavender); }
.cta-section { background: var(--pastel-blush); }
.about-section, .team-section, .why-us-section { background: var(--pastel-mint); }
.project-overview-section, .testimonial-snippets-section { background: var(--pastel-azure); }
.testimonials-section { background: var(--pastel-blush); }
.trust-elements-section { background: var(--pastel-mint); }
.contact-section, .map-section { background: var(--pastel-sun); }
.privacy-section, .gdpr-section, .cookie-policy-section, .terms-section, .confirmation-section { background: var(--pastel-azure); }

@media (max-width: 992px) {
  .section,
  .hero-section,
  .features-section,
  .services-overview-section,
  .services-section,
  .testimonials-preview-section,
  .cta-section, .about-section,
  .team-section, .why-us-section,
  .project-overview-section, .testimonial-snippets-section,
  .testimonials-section, .trust-elements-section,
  .contact-section, .map-section,
  .privacy-section, .gdpr-section,
  .cookie-policy-section, .terms-section,
  .confirmation-section {
    padding: 32px 8px;
    margin-bottom: 40px;
    border-radius: 18px;
  }
}
@media (max-width: 600px) {
  .section,
  .hero-section,
  .features-section,
  .services-overview-section,
  .services-section,
  .testimonials-preview-section,
  .cta-section, .about-section,
  .team-section, .why-us-section,
  .project-overview-section, .testimonial-snippets-section,
  .testimonials-section, .trust-elements-section,
  .contact-section, .map-section,
  .privacy-section, .gdpr-section,
  .cookie-policy-section, .terms-section,
  .confirmation-section {
    padding: 20px 4px;
    margin-bottom: 24px;
    border-radius: 10px;
  }
}

/* ============================
   FLEX LAYOUT PATTERNS
   ============================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  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;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

/* Feature grid for cards and features */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > li {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px 22px 22px 22px;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.feature-grid > li img {
  height: 40px;
  margin-bottom: 10px;
}
.feature-grid > li:hover { 
  box-shadow: 0 5px 32px 0 rgba(30,100,100,0.13);
}

/* Testimonial card typography and decorations */
.testimonial-card blockquote {
  font-size: 1.15rem;
  color: var(--brand-primary);
  margin-bottom: 0;
  line-height: 1.6;
}
.testimonial-card cite {
  font-size: .98rem;
  color: #75aa90;
}

.rating-summary p {
  font-size: 1.1rem;
  color: var(--brand-accent);
  font-weight: 700;
}

/* Awards/trust icons row */
.awards-list, .partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}
.awards-list > li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
  color: var(--brand-primary);
}
.partner-logos img {
  height: 44px;
}

/* ============================
   NAVIGATION (MAIN + MOBILE)
   ============================ */
header {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 1px 12px 0 rgba(32,72,64,0.05);
  z-index: 90;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.main-nav > a img {
  height: 42px;
  margin-right: 14px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--pastel-mint);
  color: #175042;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: 32px;
  padding: 13px 30px;
  border: none;
  cursor: pointer;
  background: var(--brand-primary);
  color: var(--text-light);
  box-shadow: 0 2px 10px 0 rgba(23,80,66,.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  margin-left: 12px;
  margin-top: 0;
  margin-bottom: 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: #1d6d58;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 32px 0 rgba(65,140,120,0.12);
}
.btn-secondary {
  background: var(--brand-accent);
  color: #333;
  margin-left: 0;
  margin-top: 20px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #e9ca7a;
  color: #175042;
}

/* ============================
   MOBILE MENU
   ============================ */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 100;
  font-size: 2rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #1d6d58;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: 0;
  right: 0;
  width: 95vw;
  max-width: 390px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 1px 42px 0 rgba(23,80,66,0.18);
  z-index: 130;
  transform: translateX(104%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 2.2rem;
  cursor: pointer;
  margin: 19px 16px 0 0;
  padding: 0 12px;
  align-self: flex-end;
  transition: color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 24px 36px 12px 36px;
  gap: 10px;
}
.mobile-nav a {
  width: 100%;
  display: block;
  color: var(--brand-primary);
  background: var(--pastel-mint);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  transition: background 0.18s, color 0.16s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-lavender, #f3f1fe);
  color: #175042;
}

@media (max-width: 1100px) {
  .main-nav ul {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  .main-nav ul {
    gap: 6px;
    font-size: .95rem;
  }
  .main-nav {
    padding-right: 8px;
  }
}
@media (max-width: 820px) {
  .main-nav ul {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .main-nav {
    justify-content: flex-start;
  }
}

/* Overlay for when mobile menu is open */
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  z-index: 125;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,80,66,0.17);
  pointer-events: auto;
  transition: background 0.25s;
}
body.mobile-menu-open {
  overflow: hidden;
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: #fff;
  box-shadow: 0 -2px 23px 0 rgba(30,120,90,0.06);
  padding: 40px 0 30px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer-nav a {
  color: #8fa589;
  font-size: .98rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.14s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--pastel-mint);
  color: var(--brand-primary);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  height: 36px;
  margin-bottom: 6px;
}
.footer-brand p {
  color: #6db495;
  font-size: .97rem;
  text-align: center;
}

/* ============================
   HERO & CTA SECTIONS
   ============================ */
.hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
  justify-content: center;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero-section p {
  color: #1b6752;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 24px;
}
.cta-section h2 {
  margin-bottom: 16px;
}

/* ============================
   SERVICES
   ============================ */
.services-overview-section ul.services-list {
  margin-bottom: 30px;
  margin-top: 10px;
}
.services-overview-section ul.services-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 16px 23px;
  margin-bottom: 13px;
  gap: 14px;
}
.services-overview-section ul.services-list li span {
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 1.04rem;
  margin-left: 18px;
}

.services-section .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.services-section .service-block {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 24px 18px 24px;
  flex: 1 1 280px;
  min-width: 210px;
  max-width: 360px;
  margin-bottom: 20px;
}
.services-section .service-block h2 {
  font-size: 1.22rem;
  margin-bottom: 8px;
  color: var(--brand-primary);
}
.services-section .service-block p {
  font-size: 1.03rem;
}

/* ============================
   ABOUT & TEXT SECTIONS
   ============================ */
.text-section {
  margin-bottom: 30px;
}
.text-section ul {
  margin: 10px 0 0 16px;
}
.text-section ul li {
  margin-bottom: 10px;
  font-size: 1.04rem;
  color: var(--brand-primary);
  position: relative;
}
.text-section ul li::before {
  content: '\2022';
  margin-right: 8px;
  color: var(--brand-accent);
  font-size: 1.2rem;
  top: 2px;
  position: relative;
}

.contact-section .contact-details {
  margin-bottom: 12px;
}
.contact-details li {
  margin-bottom: 10px;
  color: var(--brand-primary);
}
.contact-details a {
  color: var(--brand-primary);
  word-break: break-all;
  text-decoration: underline;
  font-weight: 700;
}
.contact-details a:hover {
  color: var(--brand-accent);
}

/* ============================
   RESPONSIVE FLEX/STACKING
   ============================ */
@media (max-width: 900px) {
  .card-container, .feature-grid, .awards-list, .services-section .services-list, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    padding: 10px 6px;
  }
  .container {
    padding: 0 4px;
  }
  .text-image-section,
  .content-grid,
  .services-section .services-list,
  .feature-grid,
  .awards-list,
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > li {
    max-width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
  }
}

/* ============================
   MICRO-INTERACTIONS
   ============================ */
.card, .feature-grid > li, .testimonial-card, .service-block {
  transition: box-shadow .15s, transform .13s;
}
.card:hover, .feature-grid > li:hover,
.service-block:hover, .testimonial-card:hover {
  box-shadow: 0 5px 34px 0 rgba(80,120,100,0.13);
  transform: translateY(-3px) scale(1.03);
}

/* ============================
   FORMS (Placeholders for future use)
   ============================ */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  padding: 12px;
  font-size: 1rem;
  background: #fff;
  color: var(--brand-primary);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand-accent);
  background: var(--pastel-sun);
}

/* ============================
   COOKIE CONSENT BANNER
   ============================ */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  background: #fff;
  box-shadow: 0 -3px 24px 0 rgba(30,100,70,0.14);
  padding: 32px 18px 22px 18px;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--brand-primary);
  animation: cookieBannerIn 0.36s cubic-bezier(0.44,0.13,0.36,1);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(60px); opacity: 0; }
  95% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-consent-banner p {
  max-width: 100%;
  margin-bottom: 6px;
  text-align: center;
}
.cookie-consent-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: var(--brand-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 21px;
  padding: 10px 18px;
  font-size: 1rem;
  box-shadow: 0 1px 7px 0 rgba(30,60,50,0.08);
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.13s, transform .08s;
}
.cookie-btn.cookie-settings {
  background: var(--brand-accent);
  color: #175042;
}
.cookie-btn.cookie-accept:hover {
  background: #20896E;
}
.cookie-btn.cookie-reject {
  background: #e2e5ee;
  color: #333;
}
.cookie-btn.cookie-reject:hover,
.cookie-btn.cookie-reject:focus {
  background: #c2c3d1;
  color: var(--brand-primary);
}
.cookie-btn.cookie-settings:hover {
  background: #eed38a;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 200;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,80,66,0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalBgIn 0.23s linear;
}
@keyframes cookieModalBgIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 32px 18px 26px 18px;
  border-radius: 20px;
  max-width: 430px;
  box-shadow: 0 8px 40px 0 rgba(30,80,60,0.11);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cookieModalIn .37s cubic-bezier(.38,0,0,1);
}
@keyframes cookieModalIn {
  0% { transform: scale(.98); opacity: 0.3; }
  95% { opacity: 1; }
  100% { transform: scale(1); }
}
.cookie-modal h2 {
  margin-bottom: 7px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 7px 0;
}
.cookie-modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  accent-color: var(--brand-primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}
.cookie-modal .close-modal {
  background: none;
  border: none;
  color: var(--brand-primary);
  font-size: 1.7rem;
  position: absolute;
  top: 13px;
  right: 23px;
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: var(--brand-accent);
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 15px 4px 13px 4px;
    font-size: .97rem;
    border-radius: 18px 18px 0 0;
  }
  .cookie-modal {
    padding: 15px 6px 10px 6px;
    font-size: .96rem;
    border-radius: 12px;
  }
}

/* ============================
   GENERAL UTILITIES
   ============================ */
.mb-16 { margin-bottom: 16px !important; }
.mt-16 { margin-top: 16px !important; }
.text-center { text-align: center; }
.rounded { border-radius: 18px !important; }
.box-shadow {
  box-shadow: var(--shadow);
}

/* ============================
   ACCESSIBILITY & FOCUS STATE
   ============================ */
:focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

/* ============================
   SCROLLBAR FOR SOFT STYLE
   ============================ */
::-webkit-scrollbar {
  width: 8px;
  background: var(--pastel-azure);
}
::-webkit-scrollbar-thumb {
  background: #C2E6D5;
  border-radius: 8px;
}

/* ============================
   PRINT STYLES
   ============================ */
@media print {
  header, .main-nav, .mobile-menu-toggle, .mobile-menu, .cookie-consent-banner {
    display: none !important;
  }
  footer {
    display: none !important;
  }
  .section, .container {
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 0 !important;
  }
}
