/* ===============================================
   NATURE_ORGANIC THEME by Gavazarrov Malermeister
   Modern, friendly, trustworthy – EARTH TONES, green accents
   FLEXBOX ONLY – NO grid, NO columns!
   =============================================== */

/* ==== CSS RESET & NORMALIZE ==== */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol {
  list-style: none;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  outline: none;
}
:root {
  /* Brand Earthy Tones & Greens for organic look */
  --color-primary: #1B3A4B;
  --color-secondary: #F5F5F5;
  --color-accent: #D9A066;
  --color-green: #46816A;
  --color-bg: #F9F8F6;
  --color-brown: #B9A081;
  --color-dark: #24332A;
  --color-grey: #878775;
  --color-white: #fff;
  --color-shadow: rgba(70, 129, 106, 0.07);

  --font-display: 'Montserrat', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ============ TYPOGRAPHY ============ */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  font-weight: 700;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-green);
  margin-bottom: 20px;
  font-weight: 700;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 600;
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 16px;
}
.subheadline {
  color: var(--color-grey);
  font-size: 1.15rem;
  font-family: var(--font-body);
  margin-bottom: 20px;
}
strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ==== LINKS ==== */
a {
  color: var(--color-green);
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 34px 34px 26px 26px/26px 26px 34px 34px;
  box-shadow: 0 4px 24px var(--color-shadow);
  /* organic border radius */
}

/* ---- FLEXBOX Mandatory Patterns ---- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  border-radius: 24px 32px 20px 28px/34px 18px 28px 24px;
  box-shadow: 0 4px 20px var(--color-shadow);
  background: var(--color-white);
  transition: box-shadow 0.2s;
  padding: 24px 18px;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(30, 60, 40, 0.13);
}
.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: 20px;
  background: #f1f8f3;
  border-left: 8px solid var(--color-green);
  border-radius: 20px 34px 20px 34px/28px 36px 36px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(70,129,106,0.13);
  color: var(--color-primary);
}
.testimonial-card p {
  color: var(--color-dark);
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-green);
  font-size: 0.98rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* Preview features grid on homepage */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: var(--color-bg);
  border-radius: 20px 24px 16px 22px;
  padding: 22px 18px;
  box-shadow: 0 2px 13px var(--color-shadow);
  transition: box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 24px rgba(212, 160, 95, 0.10);
}
.feature-grid img {
  width: 40px;
  margin-bottom: 10px;
  opacity: 0.91;
}
/* organic divider line */
hr {
  border: 0;
  border-top: 2px solid var(--color-brown);
  width: 60px;
  margin: 24px 0;
}

/* =========== HEADER / NAV =========== */
header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--color-white);
  padding: 14px 24px 14px 24px;
  border-bottom: 2px solid var(--color-bg);
  box-shadow: 0 2px 12px rgba(70,129,106,0.07);
  z-index: 101;
}
header img {
  height: 52px;
  width: auto;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-bg);
  color: var(--color-green);
}
.cta-primary {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 28px 24px 18px 30px;
  padding: 12px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(70,129,106,0.10);
  transition: background 0.18s, color 0.2s, transform 0.16s;
  border: none;
  cursor: pointer;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}
.cta-secondary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 18px 22px 22px 16px;
  padding: 8px 24px;
  margin-top: 10px;
  margin-left: 0;
  transition: background 0.16s, color 0.2s, transform 0.16s;
  border: none;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-green);
  color: var(--color-white);
  transform: scale(1.03);
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 2rem;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 14px 24px 18px 18px;
  transition: background 0.18s, color 0.2s, box-shadow 0.16s;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 16px rgba(70,129,106,0.13);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: 0 0 32px rgba(27,58,75,0.16);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(.82,.15,.5,1.12), opacity 0.34s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-green);
  color: var(--color-white);
  font-size: 2rem;
  padding: 4px 14px;
  margin: 18px 18px 10px 0;
  border-radius: 16px 12px 18px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.2s;
  z-index: 2012;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px 35px;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: var(--color-dark);
  font-family: var(--font-display);
  padding: 12px 0 8px 0;
  border-bottom: 1px solid var(--color-brown);
  transition: background 0.16s, color 0.2s;
  border-radius: 0 18px 14px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-green);
  color: var(--color-white);
}

@media (max-width: 1100px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 6px;
  }
  .feature-grid > div, .card {
    min-width: 180px;
    padding: 18px 12px;
  }
}

@media (max-width: 768px) {
  header nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header {
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 16px 8px;
  }
  .section, .card {
    padding: 22px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .container {
    padding: 0 6px;
  }
}

@media (max-width: 480px) {
  .testimonial-card, .feature-grid > div, .card {
    font-size: 0.98rem;
  }
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
}

/* =========== MAIN CONTENT CUSTOM =========== */
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
  padding-left: 0;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
li {
  margin-bottom: 8px;
  color: var(--color-dark);
  font-size: 1rem;
}

.project-story-block, .project-briefs, .result-descriptions, .featured-articles, .faq-teaser {
  background: #eef5ec;
  border-radius: 22px 22px 16px 16px;
  padding: 18px 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 11px rgba(70,129,106,0.05);
  color: var(--color-primary);
  font-size: 1.02rem;
}

.social-media-links {
  display: flex;
  gap: 20px;
  margin: 8px 0 18px 0;
}
.social-media-links a {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px 24px 18px 14px;
  background: var(--color-green);
  transition: background 0.18s;
}
.social-media-links a:hover {
  background: var(--color-accent);
}
.social-media-links img {
  width: 22px;
  height: 22px;
}

/* Contact details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f6f2;
  border-radius: 18px 20px 14px 24px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 5px var(--color-shadow);
}
.contact-cta-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.contact-cta-details a {
  margin-top: 0 !important;
}
@media (max-width: 700px) {
  .contact-cta-details {
    flex-direction: column;
    gap: 10px;
  }
}
.faq-teaser {
  margin-top: 12px;
}

/* =========== FOOTER =========== */
footer {
  margin-top: 60px;
  background: var(--color-secondary);
  padding: 32px 0 24px 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 48px 24px 0 0;
  box-shadow: 0 -6px 34px rgba(70,129,106,0.06);
}
footer img {
  height: 44px;
  width: auto;
  margin-bottom: 12px;
  flex: 0 0 auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.97rem;
}
footer nav a {
  color: var(--color-green);
  padding: 4px 0;
  transition: color 0.2s;
}
footer nav a:hover {
  color: var(--color-accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.95rem;
  color: var(--color-primary);
}
@media (max-width: 900px) {
  footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 14px 22px 14px;
  }
}

/* =========== BUTTONS =========== */
button, .cta-primary, .cta-secondary {
  transition: background 0.15s, color 0.19s, transform 0.13s;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.96);
}

/* =========== MICRO-INTERACTIONS and EFFECTS =========== */
section, .card, .testimonial-card {
  transition: box-shadow 0.25s, background 0.22s;
}
.card:active, .feature-grid > div:active {
  transform: scale(0.98);
}

/* ============== COOKIE CONSENT BANNER ============== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f9ef;
  color: var(--color-dark);
  box-shadow: 0 -2px 24px rgba(70,129,106,0.10);
  padding: 18px 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: center;
  z-index: 3500;
  border-radius: 26px 26px 0 0/24px 24px 0 0;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.32s, visibility 0.32s;
}
.cookie-consent-banner.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-consent-text {
  max-width: 430px;
  color: var(--color-dark);
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 18px 18px 20px 16px;
  padding: 9px 22px;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(180, 161, 95, 0.08);
  font-size: 1rem;
  transition: background 0.17s, color 0.16s, transform 0.10s;
}
.cookie-btn.accept {
  background: var(--color-green);
  color: var(--color-white);
}
.cookie-btn.accept:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #e9e3d7;
  color: var(--color-primary);
}
.cookie-btn.reject:hover {
  background: var(--color-brown);
  color: var(--color-white);
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-dark);
}
.cookie-btn.settings:hover {
  background: var(--color-green);
  color: var(--color-white);
}

@media (max-width: 680px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 8px 16px 8px;
  }
  .cookie-consent-text {
    font-size: 0.96rem;
  }
  .cookie-buttons {
    gap: 10px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(27,58,75,0.32);
  justify-content: center;
  align-items: center;
  transition: background 0.23s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #f7fbe9;
  border-radius: 30px 24px 26px 28px;
  padding: 34px 22px 26px 22px;
  min-width: 290px;
  max-width: 94vw;
  box-shadow: 0 6px 36px rgba(70,129,106,0.19);
  z-index: 4100;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--color-primary);
}
.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--color-green);
  margin-bottom: 8px;
  font-weight: 700;
}
.cookie-settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-setting-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-category-label {
  flex: 1;
  color: var(--color-primary);
}
.cookie-toggle {
  position: relative;
  margin-right: 2px;
}
.cookie-toggle input[type='checkbox'] {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle .switch {
  display: inline-block;
  width: 36px;
  height: 20px;
  background: #e0e8db;
  border-radius: 20px;
  position: relative;
  transition: background 0.19s;
  cursor: pointer;
}
.cookie-toggle .switch::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.19s, background 0.17s;
}
.cookie-toggle input:checked + .switch {
  background: var(--color-green);
}
.cookie-toggle input:checked + .switch::before {
  transform: translateX(16px);
  background: var(--color-accent);
}
/* Essential always enabled */
.cookie-toggle[data-essential] {
  pointer-events: none;
  opacity: 0.5;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-save-btn {
  background: var(--color-green);
  color: var(--color-white);
  border: none;
  border-radius: 18px 14px 20px 16px;
  padding: 7px 19px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.cookie-modal-save-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal-cancel-btn {
  background: #e4e3da;
  color: var(--color-primary);
  border: none;
  border-radius: 14px 22px 20px 18px;
  padding: 7px 19px;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.cookie-modal-cancel-btn:hover {
  background: var(--color-brown);
  color: var(--color-white);
}

@media (max-width: 420px) {
  .cookie-modal {
    padding: 20px 7px 14px 7px;
    font-size: 0.98rem;
  }
  .cookie-modal-title {
    font-size: 1rem;
  }
}

/* =========== MISC ORGANIC STYLING =========== */
.section, .card, .testimonial-card, .feature-grid > div {
  /* organic shapes using border-radius */
  border-radius: 32px 30px 28px 10px/16px 38px 34px 20px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.section, .card, .feature-grid > div, .testimonial-card {
  animation: fadeInUp 0.7s cubic-bezier(.32,1.19,.56,1) both;
}

/* --- Selection Color --- */
::selection {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Hide visually but retain for accessibility */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
