/* CSS RESET & BASELINE --------------------------------------------------- */
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2F3D33;
  background-color: #F8FAF8;
}

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

ul, ol {
  padding-left: 1.2em;
}

a {
  color: #205072;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #519872;
  outline: none;
}

/* BRAND COLOR VARIABLES (with fallbacks) */
:root {
  --color-primary: #205072;
  --color-secondary: #519872;
  --color-accent: #E7EDF1;
  --color-bg: #F8FAF8;
  --color-earth: #907156;
  --color-leaf: #63916F;
  --color-soil: #71594b;
  --color-contrast: #154351;
  --color-white: #fff;
  --color-black: #212616;
}

/* TYPOGRAPHY --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #205072;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}

h1 { font-size: 2rem; margin-bottom: 24px; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.17rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; margin-bottom: 14px; }
h5, h6 { font-size: 1rem; }

@media (min-width: 600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

strong, b {
  font-weight: bold;
  color: #205072;
}

.text-section p, .text-section ul, .text-section ol {
  margin-bottom: 24px;
}
.text-section ul, .text-section ol {
  margin-top: 0;
  margin-bottom: 24px;
}
.text-section li {
  margin-bottom: 8px;
}

/* BUTTONS --------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  border-radius: 32px;
  padding: 12px 30px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.06);
  cursor: pointer;
  text-decoration: none;
  min-width: 150px;
  margin-top: 12px;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.button.primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.button:hover, .button:focus {
  background: var(--color-leaf);
  color: var(--color-white);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px 0 rgba(32,80,114, 0.12);
}
.button:active {
  transform: none;
}

/* CONTAINERS & FLEX LAYOUTS ----------------------------------- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(32,80,114,.10);
  padding: 28px 26px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(32,80,114,.20);
  transform: translateY(-3px) scale(1.02);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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;
  background: var(--color-accent);
  color: #205072;
  border-radius: 24px;
  box-shadow: 0 2px 10px rgba(32,80,114,.07);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  min-width: 280px;
  max-width: 520px;
  transition: box-shadow 0.14s;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.97em;
  color: #417859;
  margin-left: auto;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px rgba(32,80,114,.14);
}

.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.rating-summary {
  margin-top: 18px;
  font-size: 1.03em;
  color: #205072;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(81, 152, 114, 0.08);
  padding: 22px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.feature-item img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(81,152,114,0.13));
}
.feature-item h3 {
  color: #417859;
  font-size: 1.13rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 22px rgba(81,152,114,0.18);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
  justify-content: space-between;
}

.usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 0;
}
.usp-grid > div {
  background: var(--color-accent);
  border-radius: 18px;
  padding: 18px 14px;
  min-width: 160px;
  font-weight: 600;
  color: #205072;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 1px 7px rgba(81,152,114,0.10);
}

.service-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 10px rgba(32, 80, 114, 0.08);
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 230px;
  transition: box-shadow 0.16s;
}
.service-item:hover, .service-item:focus-within {
  box-shadow: 0 8px 24px rgba(32,80,114,0.14);
}
.service-price {
  margin-top: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #417859;
  font-weight: 600;
  font-size: 1.1em;
}

/* HERO SECTION -------------------------------------------- */
.hero {
  background-color: var(--color-accent);
  background-image:
    radial-gradient(circle at 62% 42%, rgba(81,152,114,0.17) 0%, transparent 69%),
    radial-gradient(circle at 10% 95%, rgba(32,80,114,0.09) 0%, transparent 60%);
  padding: 48px 0 34px 0;
  border-radius: 0 0 44px 44px / 0 0 24px 24px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #205072;
  font-size: 2.3rem;
  margin-bottom: 12px;
}
.hero p {
  color: #31795b;
  font-size: 1.16rem;
  margin-bottom: 20px;
  max-width: 680px;
}
@media (min-width:600px) {
  .hero h1 { font-size: 2.7rem; }
  .hero { padding: 64px 0 46px 0; }
}

/* TABLES --------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 1px 6px rgba(32,80,114,0.09);
}
table th, table td {
  padding: 18px 12px;
  border-bottom: 1px solid #E7EDF1;
  text-align: left;
}
table th {
  background: var(--color-earth);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
table tr:last-child td {
  border-bottom: none;
}

/* HEADER & NAVIGATION -------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 3px 18px rgba(32, 80, 114, 0.08);
  padding: 0;
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #205072;
  font-size: 1rem;
  padding: 6px 5px;
  position: relative;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #E7EDF1;
  color: #417859;
}
header .button.primary {
  margin-left: 16px;
  margin-top: 0;
  font-size: 0.98rem;
  min-width: 120px;
}

@media (max-width: 992px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 20px 12px 20px;
  }
  header nav {
    gap: 12px;
  }
  header .button.primary {
    align-self: flex-end;
  }
}

/* MOBILE NAVIGATION (BURGER & OVERLAY) --------------------- */
.mobile-menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  background: var(--color-secondary);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 32px;
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 20px;
  box-shadow: 0 3px 16px rgba(81,152,114,0.14);
  z-index: 1020;
  transition: background 0.16s, box-shadow 0.16s, transform 0.13s;
}
.mobile-menu-toggle:active {
  background: var(--color-leaf);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,0.95);
  z-index: 1200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.33,.66,.92,1);
  overflow-y: auto;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #fff;
  background: none;
  border: none;
  align-self: flex-end;
  margin: 20px 36px 0 0;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.14s;
  z-index: 1205;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-secondary);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding: 36px 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  padding: 12px 0;
  transition: color 0.14s, background 0.14s;
  border-radius: 10px;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #519872;
  background: hsla(145,41%,53%,0.15);
}

@media (min-width: 849px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}
@media (max-width: 848px) {
  header nav, header .button.primary { display: none !important; }
  .mobile-menu-toggle { display: flex; }
}
/* Ensure mobile menu covers everything */
@media (max-width: 600px) {
  .mobile-nav { padding: 24px 12px; }
  .mobile-menu-close { margin-right: 18px; }
}

/* MAIN & SECTION SPACING ----------------------------------- */
main {
  padding-bottom: 48px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
}
section:last-child { margin-bottom: 0; }

.text-section {
  background: transparent;
  border-radius: 18px;
  padding: 24px 14px;
  margin-bottom: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/***** FOOTER *********************************************/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0;
  border-radius: 38px 38px 0 0 / 12px 12px 0 0;
  box-shadow: 0 -2px 17px rgba(32,80,114,0.07);
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 20px 16px 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
footer nav a {
  color: #E7EDF1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
  border-radius: 8px;
  padding: 2px 6px;
}
footer nav a:hover, footer nav a:focus {
  color: #519872;
  background: hsla(145,41%,53%,0.16);
}
.footer-info {
  font-size: 0.98rem;
  color: #E7EDF1;
  opacity: 0.85;
  margin-top: 8px;
}
footer img {
  width: 48px;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px 20px 14px 20px;
  }
  footer nav { gap: 10px; }
}


/***** RESPONSIVE LAYOUTS *********************************/
@media (max-width: 960px) {
  .feature-grid, .service-overview-grid, .testimonials, .usp-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .card-container, .content-grid, .usp-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .hero { padding: 36px 0 22px 0; border-radius: 0 0 30px 30px / 0 0 20px 20px; }  
  section, .section { padding: 30px 6px; }
  .content-wrapper { gap: 14px; }
}
@media (max-width: 520px) {
  .container { padding: 0 4px; }
  .card, .feature-item, .service-item, .testimonial-card { padding: 18px 8px; }
  table th, table td { padding: 12px 4px; }
}

/***** MISCELLANEOUS ELEMENTS *****************************/
.social-links {
  margin: 18px 0 0 0;
  color: #205072;
  font-size: 1rem;
}

.rating-summary strong {
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #205072;
}

/***** COOKIE CONSENT *************************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-earth);
  color: #fff;
  z-index: 1500;
  box-shadow: 0 -4px 18px rgba(32,80,114,0.11);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 20px;
  font-size: 1rem;
  animation: cookie-fade-in 0.7s cubic-bezier(.18,.65,.9,1);
}
@keyframes cookie-fade-in {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-left: 16px;
}
.cookie-banner .button {
  background: #fff;
  color: #205072;
  border-radius: 24px;
  font-size: 0.98rem;
  padding: 8px 18px;
  min-width: 110px;
  box-shadow: none;
  margin-top: 0;
}
.cookie-banner .button.primary {
  background: #519872;
  color: #fff;
}
.cookie-banner .button:focus {
  outline: 2px solid #205072;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(32, 80, 114, .75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade 0.45s cubic-bezier(.23,.74,.46,1);
}
@keyframes cookie-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 10px 44px rgba(32,80,114,0.23);
  padding: 34px 26px;
  width: 90%;
  max-width: 410px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  color: #205072;
  animation: cookie-modal-slide 0.32s cubic-bezier(.39,.65,.92,1);
}
@keyframes cookie-modal-slide {
  from { transform: translateY(90px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.2rem;
  color: #205072; margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"], .cookie-modal input[type="radio"] {
  accent-color: #519872;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .button {
  background: #519872;
  color: #fff;
  border-radius: 22px;
  font-size: 0.97rem;
  padding: 8px 18px;
}

.cookie-modal .button.secondary {
  background: #E7EDF1;
  color: #205072;
}
.cookie-modal .button:focus {
  outline: 2px solid #205072;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #205072;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 520px) {
  .cookie-modal { padding: 17px 6px; }
}

/***** ORGANIC/NATURE VISUALS ********************************/
section, .card, .feature-item, .service-item, .testimonial-card, .cookie-modal {
  border-radius: 18px 36px 26px 20px / 18px 32px 24px 30px;
}

/* Subtle textures for nature/organic feel (background patterns) */
body {
  background-image:
    radial-gradient(circle at 10% 15%, rgba(236, 245, 224, 0.12) 0, transparent 58%),
    radial-gradient(circle at 90% 91%, rgba(81, 152, 114, 0.07) 0, transparent 60%),
    radial-gradient(circle at 55% 63%, rgba(144,113,86, 0.06) 0, transparent 55%);
}

@media (max-width: 600px) {
  section, .section {
    margin-bottom: 32px;
    padding: 20px 4px;
    border-radius: 14px 22px 16px 14px / 14px 16px 16px 14px;
  }
}

/***** ANIMATIONS & INTERACTIONS **************************/
.card, .feature-item, .testimonial-card, .service-item {
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .feature-item:hover, .service-item:hover {
  box-shadow: 0 12px 36px rgba(32,80,114,.23);
  transform: scale(1.02);
}

.button, .cookie-banner .button, .cookie-modal .button {
  transition: background 0.2s, color 0.2s, box-shadow 0.17s, transform 0.15s;
}
.button:active {
  transform: scale(0.98);
  background: #417859;
}

input, textarea, select {
  border-radius: 12px;
  border: 1.5px solid #E7EDF1;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #205072;
  outline: none;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #519872;
}
::placeholder {
  color: #787a74;
  opacity: 0.65;
}

/***** SCROLLBAR STYLING *******************************/
body {
  scrollbar-color: #519872 #E7EDF1;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: #519872;
  border-radius: 16px;
}
::-webkit-scrollbar-track {
  background: #E7EDF1;
  border-radius: 6px;
}

/***** ACCESSIBILITY FOCUS RING *************************/
a:focus, button:focus, input:focus {
  outline: 2px solid #519872;
  outline-offset: 2px;
}

/***** HIDE JS-ONLY ELEMENTS BY DEFAULT ******/
.cookie-banner, .cookie-modal, .cookie-modal-overlay {
  display: none;
}

/***** GENERAL UTILITIES ******************************/
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.align-center { align-items: center !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.gap-20 { gap: 20px !important; }

/***** PRINT SUPPORT ***********/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-overlay { display: none !important; }
  section, main, body, html { background: #fff !important; color: #205072 !important; }
}
