/* ============================================================
  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, 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;
  min-height: 100vh;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
}

/* ============================================================
  BRAND VARIABLES & BASE
============================================================ */
:root {
  --color-primary: #20403B;
  --color-secondary: #A1CFA2;
  --color-accent: #F6E9D0;
  --color-dark: #1A2522;
  --color-gray-100: #F8F9FA;
  --color-gray-200: #E5ECF0;
  --color-gray-300: #D3DBDE;
  --color-gray-400: #8CA1AF;
  --color-gray-500: #607080;
  --color-white: #fff;
  --color-success: #238366;
  --color-error: #BC3B39;
  --shadow-md: 0 2px 12px 0 rgba(32,64,59,0.09);
  --shadow-xs: 0 1.5px 7px rgba(32,64,59,0.06);
  --radius: 10px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-gray-100);
  color: var(--color-dark);
  min-width: 320px;
}

/* ============================================================
  TYPOGRAPHY
============================================================ */
h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 14px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* Lists with icons */
.features-list li, .usps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  line-height: 1.45;
}
.features-list img, .usps-list img {
  width: 32px;
  height: 32px;
}
.usps-list {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--color-dark);
  padding-left: 0;
}

/* ============================================================
  UTILITIES & CORE LAYOUT
============================================================ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-placeholder {
  background: var(--color-gray-200);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-xs);
  margin-top: 10px;
}
.confirmation-section {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

/* Flexbox Utility Classes */
.header-flex, .footer-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-flex { align-items: flex-start !important; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(32,64,59,0.14);
}
.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;
  margin-bottom: 20px;
  background: var(--color-gray-100);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  color: var(--color-dark);
  position: relative;
  min-width: 280px;
  max-width: 100%;
  transition: box-shadow 0.25s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(32,64,59,0.13);
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card span {
  font-size: 1rem;
  color: var(--color-gray-500);
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ============================================================
  HEADER & NAVIGATION
============================================================ */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px 0 rgba(32,64,59,0.07);
  position: relative;
  z-index: 100;
  padding: 0;
}
.logo img, .logo-footer img {
  display: block;
  width: 146px;
  height: auto;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 10px;
  border-radius: 5px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: 6px;
  box-shadow: var(--shadow-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid var(--color-primary);
  transition: background 0.22s, color 0.18s, box-shadow 0.18s, border 0.16s;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 16px rgba(32,64,59,0.17);
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  padding: 10px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-xs);
  letter-spacing: 0.02em;
  transition: background 0.22s, color 0.18s, box-shadow 0.18s, border 0.16s;
  display: inline-block;
  text-align: center;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(32,64,59,0.16);
}

/* Hamburger / Mobile menu button */
.mobile-menu-toggle {
  position: absolute;
  top: 22px;
  right: 32px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-gray-300);
}
/* Hide hamburger on desktop */
@media (min-width: 980px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ============================================================
  MOBILE NAVIGATION MENU
============================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 330px;
  max-width: 86vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -3px 0 18px rgba(32,64,59,0.13);
  z-index: 2000;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(.63,.01,.47,1.3);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin-right: 18px;
  margin-top: 6px;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border-radius: 6px;
  width: 46px;
  height: 46px;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-gray-200);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 34px 0 0 0;
  padding: 0 24px;
  flex: 1 1 auto;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.10rem;
  padding: 11px 0 11px 0;
  border-bottom: 1px solid var(--color-gray-200);
  transition: color 0.16s, background 0.16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* Hide main desktop nav on mobile */
@media (max-width: 979px) {
  .main-nav {
    display: none;
  }
}
@media (min-width: 980px) {
  .mobile-menu {
    display: none !important;
  }
}
/* burger always on top of content */
header, .mobile-menu-toggle {
  z-index: 2001;
}

/* ============================================================
  HERO SECTION
============================================================ */
.hero-section {
  background: linear-gradient(
    to bottom, var(--color-secondary) 0%, var(--color-white) 80%
  );
  padding-top: 54px;
  padding-bottom: 54px;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero-section h1 {
  color: var(--color-primary);
  font-size: 2.5rem;
}
.hero-section p {
  font-size: 1.22rem;
  color: var(--color-dark);
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .hero-section h1 {
    font-size: 1.55rem;
  }
  .hero-section p {
    font-size: 1.02rem;
  }
}

/* ============================================================
  FEATURE CARDS & SECTIONS
============================================================ */
.features-section, .services-section, .testimonials-section {
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
}
.features-section {
  border-left: 6px solid var(--color-secondary);
}
.services-section {
  border-left: 6px solid var(--color-accent);
}
.features-list, .services-list, .usps-list {
  margin-bottom: 24px;
  padding-left: 0px;
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.services-list li, .usps-list li {
  font-size: 1.07rem;
  color: var(--color-dark);
  margin-bottom: 10px;
}

/* ============================================================
  TESTIMONIALS
============================================================ */
.testimonials-section {
  border-left: 6px solid var(--color-accent);
}
.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
/* Visually highlight stars in testimonials */
.testimonial-card span:last-of-type {
  font-size: 1.25rem;
  color: var(--color-secondary);
  margin-top: 8px;
}

/* ============================================================
  TABLES
============================================================ */
table {
  width: 100%;
  margin-top: 10px;
  background: var(--color-gray-100);
  border-radius: var(--radius);
  overflow: hidden;
}
thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 10px;
  font-size: 1rem;
}
tbody td {
  background: var(--color-white);
  color: var(--color-dark);
  padding: 12px 10px;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-gray-200);
}
tbody tr:last-child td { border-bottom: none; }

/* ============================================================
  FOOTER
============================================================ */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 40px 0 0 0;
  margin-top: 60px;
  position: relative;
  z-index: 10;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.logo-footer img {
  width: 90px;
  height: auto;
  filter: brightness(2.2);
  opacity: 0.93;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.99rem;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-body);
  transition: color 0.14s;
  opacity: 0.95;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}
.footer-contact p {
  margin-bottom: 3px;
  font-size: 0.99rem;
  color: var(--color-accent);
}
@media (max-width: 800px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================================
  RESPONSIVE DESIGN
============================================================ */
@media (max-width: 1050px) {
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 899px) {
  .container {
    padding: 0 4vw;
  }
  .content-wrapper {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    gap: 8px;
  }
  .content-wrapper, .footer-flex, .features-list, .testimonial-grid {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .hero-section .content-wrapper {
    align-items: center !important;
    text-align: center;
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 1.32rem;
  }
  h2 {
    font-size: 1.10rem;
  }
  .footer-contact p {
    font-size: 0.92rem;
  }
}
@media (max-width: 500px) {
  .container { padding: 0 1.9vw; }
  .section, section { padding: 30px 0 30px 0; }
  .card, .testimonial-card {
    padding: 14px 8px !important;
  }
}

/* ============================================================
  MICRO-INTERACTIONS & TRANSITIONS
============================================================ */
a, button, .btn-primary, .btn-secondary {
  transition: background 0.18s, color 0.18s, box-shadow 0.19s, border 0.13s;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid var(--color-gray-300);
  padding: 10px 14px;
  background: var(--color-white);
  margin-bottom: 14px;
  transition: border 0.13s, box-shadow 0.14s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary);
}

/* ============================================================
  COOKIE CONSENT BANNER & MODAL
============================================================ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-dark);
  color: var(--color-white);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 22px 6vw 22px 6vw;
  z-index: 2222;
  box-shadow: 0 -2px 20px rgba(32,64,59,0.19);
  font-size: 1rem;
  animation: cookieSlideIn 0.89s cubic-bezier(.22,1.34,.33,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(140%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-banner p {
  max-width: 400px;
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 11px;
}
.cookie-banner button {
  border-radius: 6px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  transition: background 0.14s, color 0.14s, box-shadow 0.13s;
}
.cookie-banner .cookie-accept {
  background: var(--color-success);
  color: var(--color-white);
}
.cookie-banner .cookie-accept:hover {
  background: #28a57a;
}
.cookie-banner .cookie-decline {
  background: var(--color-error);
  color: var(--color-white);
}
.cookie-banner .cookie-decline:hover {
  background: #e85654;
}
.cookie-banner .cookie-settings {
  background: var(--color-secondary);
  color: var(--color-dark);
}
.cookie-banner .cookie-settings:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 320px;
  max-width: 98vw;
  width: 400px;
  background: var(--color-white);
  box-shadow: 0 9px 46px rgba(32,64,59,.25);
  border-radius: 12px;
  z-index: 2500;
  transform: translate(-50%, -50%) scale(0.93);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s, transform 0.24s;
  padding: 28px 30px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  animation: fadeInModal 0.32s cubic-bezier(.22,1.44,.33,1);
}
@keyframes fadeInModal {
  from { opacity:0; transform: translate(-50%, -42%) scale(.89); }
  to   { opacity:1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.23rem;
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.cookie-modal .cookie-category {
  padding: 12px 0 12px 0;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .toggle-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  background: var(--color-gray-300);
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.17s;
}
.cookie-modal .toggle-switch:checked {
  background: var(--color-success);
}
.cookie-modal .toggle-switch::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  position: absolute;
  left: 2px;
  top: 2px;
  transition: left 0.17s;
  box-shadow: 0 1px 5px rgba(32,64,59,0.13);
}
.cookie-modal .toggle-switch:checked::before {
  left: 18px;
  background: var(--color-secondary);
}
.cookie-modal .toggle-switch[disabled] {
  background: var(--color-gray-300);
  opacity: .72;
  cursor: not-allowed;
}
.cookie-modal .close-modal {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 7px 13px;
  border-radius: 6px;
  align-self: flex-end;
  font-size: 1.02rem;
  margin-top: 3px;
  font-family: var(--font-display);
  box-shadow: var(--shadow-xs);
  border: none;
  transition: background 0.12s, color 0.12s;
}
.cookie-modal .close-modal:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

/* Cookie modal overlay bg */
.cookie-modal-bg {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(32,64,59, 0.18);
  z-index: 2400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal.active ~ .cookie-modal-bg {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 3vw 19px 3vw;
    font-size: 15px;
  }
  .cookie-modal {
    width: 96vw;
    min-width: unset;
    padding: 20px 12px 19px 14px;
  }
}
@media (max-width: 400px) {
  .cookie-banner { font-size: 13px; }
}

/* ============================================================
  MISCELLANEOUS ELEMENTS & FORMS
============================================================ */
section {
  background: var(--color-white);
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 500px) {
  section { padding: 22px 0; }
}
.btn-primary, .btn-secondary {
  min-width: 170px;
}
a.btn-primary, a.btn-secondary {
  text-decoration: none;
  display: inline-block;
}

/* Accessibility focus */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Prevent content overlap! Enforce section/card spacing */
section + section, .section + .section {
  margin-top: 40px !important;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Hide scroll on body when mobile menu/cookie modal active */
body.menu-open, body.cookie-modal-open {
  overflow: hidden !important;
}

/* ============================================================
  PRINT STYLES
============================================================ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-bg {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  section, .card { box-shadow: none; background: #fff; }
}
