/*
  RuhrVital Dortmund CSS – Nature_Organic Theme
  Modern, earthy, organic, and trustworthy
  Compatible: Flexbox only, responsive, accessible
  Author: Senior CSS Developer
*/

/*----------------------*
  RESET & BASELINE
*-----------------------*/
html {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7F6F2;
  color: #33371d;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #214176;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #18a95c;
}
ul, ol {
  margin-bottom: 16px;
}
ul.benefits, ul.metrics {
  list-style: disc inside;
  font-size: 16px;
}
li {
  margin-bottom: 8px;
}

/* Typography scaling */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #214176;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #183215;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #476f34;
  margin-bottom: 12px;
  line-height: 1.2;
}
h4, .h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #49714c;
  margin-bottom: 10px;
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.125rem;
  color: #49714c;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
p {
  margin-bottom: 14px;
}
strong {
  color: #214176;
  font-weight: 600;
}

/*----------------------------------*
  COLORS & BRANDING (CSS variables)
*-----------------------------------*/
:root {
  --brand-primary: #214176;
  --brand-secondary: #F2C230;
  --brand-accent: #E2F0D5;
  --brand-bg: #F7F6F2;
  --earth-dark: #183215;
  --earth-medium: #476f34;
  --earth-light: #EDE7DA;
  --nature-green: #18a95c;
  --nature-leaf: #B3C49D;
  --nature-wood: #A68E6C;
  --nature-soil: #80694c;
  --nature-bark: #E1D3C2;
  --shadow-sm: 0 2px 8px rgba(71,111,52,0.09);
  --shadow-md: 0 4px 22px rgba(24,50,21,0.08);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 8px;
}

/*----------------------------------*
  LAYOUT & FLEXBOX CONTAINERS
*-----------------------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
}

main {
  flex: 1 1 auto;
  width: 100%;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px 22px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.16s;
  border: 1px solid var(--nature-leaf);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.01);
}

.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;
  margin-bottom: 20px;
  background: var(--brand-accent);
  color: #21361d;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s;
  flex-direction: row;
  min-width: 0;
}
.testimonial-card .stars {
  color: var(--brand-secondary);
  font-size: 20px;
  padding-right: 8px;
  align-self: flex-start;
}
.testimonial-card .client {
  font-size: 15px;
  margin-left: auto;
  color: #626d30;
  font-weight: 500;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid override for thematic sections */
.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  padding: 32px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--nature-leaf);
  transition: box-shadow 0.22s, transform 0.13s;
}
.feature-grid > div img {
  height: 54px;
  width: 54px;
  margin-bottom: 14px;
}
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.01);
}

/* Step guides */
.step-guide {
  margin: 20px 0 18px 0;
  background: var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: #21361d;
  font-size: 1rem;
  font-weight: 400;
  box-shadow: var(--shadow-sm);
}
.step-guide h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}
.step-guide ol {
  list-style: decimal inside;
  margin-left: 16px;
  margin-bottom: 0;
}
.step-guide li {
  margin-bottom: 7px;
  padding-left: 3px;
}

/* Service cards on homepage */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.service-cards > div {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 310px;
  padding: 28px 18px 22px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--nature-leaf);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.16s;
  position: relative;
}
.service-cards > div:hover, .service-cards > div:focus {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) scale(1.01);
}

.metrics ul, .benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 9px;
}
.metrics li, .benefits li {
  margin-bottom: 0;
  font-size: 1.06rem;
  color: #214176;
  background: var(--brand-accent);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 500;
}

/* Text Section (about/contact/methods) */
.text-section {
  padding: 18px 0 0 0;
}
.text-section h3 {
  font-size: 1.07rem;
  margin-top: 18px;
  color: #214176;
}

/* List of spacing classes mandated */
.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;
}

/*----------------------------------*
  HEADER / NAVIGATION
*-----------------------------------*/
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--nature-leaf);
  box-shadow: 0 2px 12px rgba(24,50,21,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
  flex-direction: row;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px 0 0;
}
.logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 500;
}
.main-nav a {
  color: #214176;
  padding: 7px 5px;
  border-radius: 9px;
  transition: background 0.16s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-accent);
  color: #183215;
}

.cta.primary, .cta {
  background: var(--nature-green);
  color: #fff;
  border-radius: 18px;
  padding: 12px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, box-shadow 0.2s, transform 0.13s;
  margin-left: 12px;
  margin-top: 0;
  outline: none;
}
.cta.primary:hover, .cta.primary:focus, .cta:hover, .cta:focus {
  background: #154e36;
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px) scale(1.01);
}

/*---------------------------*
  MOBILE MENU
*----------------------------*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #183215;
  cursor: pointer;
  margin-left: 12px;
  transition: color 0.15s;
  z-index: 150;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: var(--nature-green);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,65,118,0.97);
  transform: translateX(-110vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  margin: 18px 0 30px 28px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 10001;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--brand-secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  align-items: flex-start;
  margin-left: 44px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.26rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 7px 8px 7px 0;
  border-radius: 9px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--brand-accent);
  color: #183215;
}

@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
    font-size: 1.01rem;
  }
  .cta.primary, .cta {
    font-size: 1.01rem;
    padding: 10px 19px;
  }
  .header .container {
    min-height: 64px;
  }
}
@media (max-width: 800px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .main-nav {
    gap: 5px;
    font-size: 0.98rem;
  }
  .cta.primary, .cta {
    margin-left: 5px;
  }
}
@media (max-width: 768px) {
  .main-nav,
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .logo {
    height: 45px;
  }
}

/*-------------------------*
  HERO / HEADLINE SECTIONS
*--------------------------*/
section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
}
section > .container {
  padding: 0 0;
}
@media (max-width: 680px) {
  section {
    padding: 28px 0;
    margin-bottom: 36px;
  }
}

/*--------------------------*
  FOOTER
*---------------------------*/
footer {
  background: var(--earth-medium);
  color: #fff;
  padding: 30px 0 0 0;
  border-top: 2px solid var(--brand-accent);
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 20px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
}
.contact-info {
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.7;
  max-width: 280px;
}
.contact-info a {
  color: var(--brand-secondary);
  text-decoration: underline;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-accent);
}
.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}
.social-icons img {
  height: 29px;
  width: 29px;
  filter: grayscale(0.18) contrast(1.12);
  opacity: 0.92;
  transition: filter 0.14s, opacity 0.15s;
}
.social-icons img:hover, .social-icons img:focus {
  filter: none;
  opacity: 1;
}

@media (max-width: 820px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .footer-logo, .social-icons {
    margin-bottom: 8px;
  }
}

/*-----------------------------*
  RESPONSIVE LAYOUTS
*------------------------------*/
@media (max-width: 1100px) {
  .feature-grid > div, .service-cards > div {
    min-width: 180px;
    max-width: 100%;
  }
  .feature-grid, .service-cards {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-cards {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div,
  .service-cards > div {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .section {
    padding: 22px 6px;
  }
  .feature-grid, .card-container, .service-cards, .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 8px;
  }
}
@media (max-width: 540px) {
  h1, .h1 {font-size: 1.7rem;}
  h2, .h2 {font-size: 1.2rem;}
  .subheadline {font-size: 0.99rem;}
  .feature-grid > div, .service-cards > div {
    padding: 16px 10px 13px 10px;
  }
  .step-guide, .testimonial-card {
    padding: 10px 8px;
  }
  .section { padding: 10px 1px; }
}

/*-----------------------------*
  BUTTONS & FORMS
*------------------------------*/
button, .cta {
  cursor: pointer;
  border: none;
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  outline: none;
  transition: background 0.16s, color 0.13s, box-shadow 0.17s, transform 0.14s;
}

button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}


/*-----------------------------*
  COOKIE CONSENT BANNER & MODAL
*------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #183215;
  box-shadow: 0 -4px 20px rgba(24,50,21,0.07);
  z-index: 12000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px 22px 30px;
  gap: 24px;
  font-size: 1rem;
  border-top: 2px solid var(--nature-leaf);
  animation: slideUp 0.4s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUp {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-text {
  flex: 1 1 0;
  max-width: 70vw;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(71,111,52,0.07);
  background: var(--nature-green);
  color: #fff;
  margin: 0 0 0 2px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #154e36;
}
.cookie-btn.settings {
  background: var(--brand-accent);
  color: #214176;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--nature-leaf);
  color: #183215;
}
.cookie-btn.reject {
  background: #fff;
  color: #476f34;
  border: 1px solid var(--nature-leaf);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--brand-accent);
  color: #183215;
}
@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.97rem;
    padding: 13px 7px 13px 11px;
  }
  .cookie-banner .cookie-text {max-width: 97vw;}
}

.cookie-modal-overlay {
  position: fixed;
  left:0; right:0; top:0; bottom:0;
  background: rgba(33,65,118,0.63);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.23s;
}
.cookie-modal {
  background: #fff;
  padding: 34px 28px 28px 28px;
  border-radius: 18px;
  min-width: 90vw;
  max-width: 480px;
  box-shadow: 0 12px 48px rgba(71,111,52,.18);
  animation: growIn 0.34s cubic-bezier(.17,.67,.9,1.14);
  position: relative;
}
@keyframes growIn {
  from {transform: scale(0.91); opacity:0;}
  to {transform: scale(1); opacity:1;}
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-category label {
  font-size: 1.02rem;
  color: #214176;
  font-weight: 500;
}
.cookie-switch {
  width: 36px; height: 21px;
  background: var(--nature-leaf);
  border-radius: 13px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin-right: 6px;
  transition: background 0.17s;
}
.cookie-switch[aria-checked="true"] {
  background: var(--nature-green);
}
.cookie-switch::after {
  content: '';
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 3px #bbb;
  position: absolute; left: 2px;
  transition: left 0.17s;
}
.cookie-switch[aria-checked="true"]::after {
  left: 16px;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 19px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px; right: 11px;
  font-size: 1.47rem;
  background: none;
  border: none;
  color: #49714c;
  cursor: pointer;
  border-radius: 50%;
  padding: 3px 7px 2px 7px;
  transition: background 0.13s, color 0.14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--brand-accent);
  color: #214176;
}
@media (max-width: 490px) {
  .cookie-modal {
    min-width: 93vw;
    padding: 19px 6vw 16px 3vw;
  }
  .cookie-modal-actions {
    flex-direction: column;
    gap: 7px;
  }
}

/*-------------------------*
  ORGANIC & DECORATIVE TOUCHES
*--------------------------*/
.card, .feature-grid > div, .service-cards > div, .step-guide, .testimonial-card {
  /* soft paper-like background, subtle rustic look */
  background: linear-gradient(108deg,rgba(226,240,213,0.33) 0%, #fff 100%);
  border-radius: var(--radius-md);
  /* organic shape box-shadows for 'lifted' effect */
}
.section {
  border-radius: var(--radius-lg) var(--radius-md) var(--radius-lg) var(--radius-md) / var(--radius-md) var(--radius-lg) var(--radius-md) var(--radius-lg);
  box-shadow: 0 2px 18px 0 rgba(24,50,21,0.07);
}

/* Handdrawn flourish for some cards (if using background SVGs, add via ::before on cards) */
.card::before, .feature-grid > div::before {
  content: '';
  position: absolute;
  top: -16px; left: -13px;
  width: 35px; height: 26px;
  background: url("../assets/bg-leaf.svg") no-repeat;
  background-size: contain;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  display: block;
}
.card:hover::before, .feature-grid > div:hover::before {
  opacity: 0.27;
}

/*-----------------------------*
  MICRO-INTERACTIONS/ANIMATIONS
*------------------------------*/
.cta, .cta.primary, .cookie-btn {
  transition: background 0.2s, color 0.16s, box-shadow 0.18s, transform 0.15s;
}
.card, .feature-grid > div, .service-cards > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.13s;
}

.card:active,
.feature-grid > div:active,
.service-cards > div:active,
.cta:active,
.cta.primary:active {
  transform: scale(0.988);
}

/*-----------------------------------*
  MISC / ELEMENT UTILITIES
*------------------------------------*/
.text-center {text-align: center;}
.no-select {user-select: none;}
.hide {display: none !important;}

/* Visually hidden but accessible */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}


/*-----------------------------------*
  DARK TEXT ON TESTIMONIALS/REVIEW SECTIONS
*------------------------------------*/
.testimonial-card, .testimonial-card p {
  color: #21361d;
  background: var(--brand-accent);
}
.testimonial-card .client { color: #49714c; }
.testimonial-card .stars { color: var(--brand-secondary); }

/*-----------------------------------*
  PRINT STYLE CLEANUP
*------------------------------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {display: none !important;}
  section, main {padding: 0 !important; margin: 0;}
}

/* End RuhrVital CSS */
