/* =============================================================
   EthicaMind AI 'Nature Organic' Style – style.css
   Modern, nature-inspired, responsible, and authoritative
   Responsive, Flexbox-based, mobile-first
   ============================================================= */

/*--------------------------------------------------------------
 NORMALIZE & CSS RESET
--------------------------------------------------------------*/
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F8F8F8;
  color: #214031;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image: url('../assets/organic-bg-light.svg');
  background-repeat: repeat;
  background-size: cover;
}
img {
  max-width: 100%;
  height: auto;
  border: none;
  display: block;
}
a {
  color: #3AAFA9;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #183152;
  text-decoration: underline;
  outline: none;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
strong {
  font-weight: 600;
}

/*--------------------------------------------------------------
 TYPOGRAPHY – Visual Hierarchy
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #183152;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.subheadline {
  font-size: 1.25rem;
  color: #214031;
  margin-bottom: 24px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}
.brand-story, .contact-summary {
  font-size: 1.125rem;
  margin-bottom: 20px;
  color: #2b513a;
}

/*--------------------------------------------------------------
 LAYOUT: Container & Section Spacing – Mandatory patterns
--------------------------------------------------------------*/
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 3px 24px 0 rgba(60,60,60,0.09);
  position: relative;
}
@media (max-width: 900px) {
  .section {
    padding: 28px 8px;
  }
}

/*--------------------------------------------------------------
 FLEX LAYOUTS (NO GRID): Cards, Features, Testimonials, Teams
--------------------------------------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  border-radius: 22px;
  box-shadow: 0 2px 9px 0 rgba(67,86,53,0.08);
  padding: 28px 22px;
  min-width: 230px;
  max-width: 350px;
  flex: 1 1 290px;
  transition: box-shadow 0.26s;
}
.card:hover {
  box-shadow: 0 5px 22px 0 rgba(50, 80, 54, 0.18);
}

.content-grid, .feature-grid, .team-grid, .article-list, .event-calendar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid {
  margin-top: 8px;
  width: 100%;
}
.feature {
  background: #e8efe7;
  border-radius: 18px;
  box-shadow: 0 1px 6px 0 rgba(41,89,60,0.06);
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1 1 250px;
  min-width: 215px;
  max-width: 330px;
  margin-bottom: 20px;
  border-left: 4px solid #3AAFA9;
  transition: transform 0.14s, box-shadow 0.2s;
}
.feature img {
  width: 36px; height: 36px;
}
.feature:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 7px 28px 0 rgba(54,97,56,0.16);
}
.team-grid {
  gap: 28px;
}
.team-member {
  background: #f6f3ea;
  border-radius: 18px;
  box-shadow: 0 2px 9px 0 rgba(107,101,93,0.06);
  padding: 22px 18px;
  flex: 1 1 220px;
  min-width: 205px;
  max-width: 310px;
  margin-bottom: 20px;
  border-left: 4px solid #214031;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-list {
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
article {
  background: #f6faef;
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(44,79,37,0.07);
  padding: 20px 18px;
}
.event-calendar {
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.event-calendar div {
  background: #e8efe7;
  border-radius: 15px;
  padding: 16px 14px;
}

/* Testimonials: dark text/light bg for contrast */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f3f6f2;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(51,87,41,0.11);
  color: #193B22;
  border-left: 5px solid #3AAFA9;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #21533E;
  font-weight: 600;
  font-size: 1rem;
}

/* Feature Items (FAQ, value-list, etc.) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* Text & Image Section Flex */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.text-section {
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
 BUTTONS & CTAs
--------------------------------------------------------------*/
.cta-primary {
  display: inline-flex;
  align-items: center;
  background: #3AAFA9;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  border-radius: 24px;
  box-shadow: 0 2px 12px 0 rgba(41,89,60,0.09);
  padding: 13px 32px;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, transform 0.13s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #214031;
  color: #fff;
  transform: translateY(-2px) scale(1.033);
  outline: none;
}

.button, button, input[type="button"], input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #fff;
  background: #3AAFA9;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41,89,60,0.1);
  transition: background 0.18s, color 0.13s, transform 0.10s;
}
.button:hover, button:hover, .button:focus, button:focus {
  background: #214031;
  color: #fff;
  transform: scale(1.03);
  outline: none;
}

/*--------------------------------------------------------------
 NAVIGATION (Desktop & Mobile)
--------------------------------------------------------------*/
header {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(41, 89, 60, 0.06);
  position: sticky;
  top: 0;
  z-index: 2300;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 17px 18px 17px 12px;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  color: #214031;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
  font-size: 1.04rem;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e8efe7;
  color: #3AAFA9;
  text-decoration: none;
  outline: none;
}

/* Get Started button */
.nav-container .cta-primary {
  margin: 0 0 0 18px;
  padding: 10px 20px;
  font-size: 1rem;
}

/* Mobile menu toggle (hamburger) */
.mobile-menu-toggle {
  display: none;
  background: #e8efe7;
  color: #183152;
  border: none;
  font-size: 2rem;
  padding: 7px 13px;
  border-radius: 12px;
  margin-left: 8px;
  z-index: 3010;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #3AAFA9;
  color: #fff;
  outline: none;
}

/*-----------------------------------------------------------
 MOBILE NAVIGATION MENU (Overlay)
-----------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 360px;
  height: 100vh;
  background: #f8f8f8;
  box-shadow: -6px 0 28px 0 rgba(28,45,36,0.19);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,.02,.27,.99);
  z-index: 3500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 26px 18px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: #e8efe7;
  color: #183152;
  border: none;
  font-size: 2rem;
  border-radius: 14px;
  padding: 6px 12px 5px;
  margin-bottom: 22px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41,89,60,0.07);
  transition: background 0.18s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #3AAFA9;
  color: #fff;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
}
.mobile-nav a {
  color: #193B22;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 11px 0 9px 0;
  border-radius: 12px;
  transition: background 0.14s, color 0.14s;
  font-weight: 500;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e8efe7;
  color: #3AAFA9;
  outline: none;
  text-decoration: none;
}

/* Show/hide elements for mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .nav-container .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (max-width:600px) {
  .mobile-menu {
    width: 100vw;
    max-width: 100vw;
    padding: 30px 10vw 20px 9vw;
  }
}

/*--------------------------------------------------------------
 FOOTER
--------------------------------------------------------------*/
footer {
  background: #e8efe7;
  color: #214031;
  font-size: 1rem;
  padding: 0;
}
footer .container {
  padding: 0 18px;
  max-width: 1180px;
  margin: 0 auto;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding: 36px 0 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  color: #183152;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background 0.16s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #cfe2db;
  color: #3AAFA9;
  outline: none;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}
.footer-links a {
  color: #214031;
  transition: color 0.14s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #3AAFA9;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #25412c;
  margin-bottom: 5px;
}
.contact-details img {
  width: 18px; height: 18px; margin-right: 5px; vertical-align: text-bottom;
  display: inline-block;
}
.social-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 8px 0 3px 0;
}
.social-icons img {
  width: 32px; height: 32px;
  filter: grayscale(0.08) brightness(0.94);
  transition: filter 0.18s, transform 0.13s;
  border-radius: 50%;
}
.social-icons img:hover, .social-icons img:focus {
  filter: grayscale(0) brightness(1.1) drop-shadow(0px 2px 10px #3AAFA9);
  transform: scale(1.12) rotate(-4deg);
  outline: none;
}
.copyright {
  font-size: 0.95rem;
  color: #557463;
  margin: 10px 0 0 0;
  padding-bottom: 16px;
}

/*--------------------------------------------------------------
 COOKIE CONSENT BANNER & MODAL
--------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5600;
  background: #e8efe7;
  color: #183152;
  padding: 22px 30px 20px 30px;
  box-shadow: 0 -2px 18px 0 rgba(43,79,62,.13);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.08rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  padding: 9px 20px;
  font-weight: 600;
  transition: background 0.12s, color 0.12s, box-shadow 0.16s;
}
.cookie-banner .accept {
  background: #3AAFA9;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #214031;
}
.cookie-banner .reject {
  background: #f3f6f2;
  color: #183152;
  border: 1.5px solid #3AAFA9;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #3AAFA9;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #214031;
  border: 1.5px solid #214031;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #e8efe7;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(24,49,82,0.17);
  z-index: 5700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
.cookie-modal {
  background: #fff;
  color: #214031;
  border-radius: 20px;
  box-shadow: 0 6px 44px rgba(34,70,41,0.17);
  padding: 38px 34px 28px;
  min-width: 320px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  animation: cookieModalIn 0.3s;
}
@keyframes cookieModalIn {
  from { transform: scale(0.95) translateY(35px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  right: 19px;
  top: 16px;
  background: #e8efe7;
  border-radius: 11px;
  color: #183152;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  padding: 3px 11px 2px;
  transition: background 0.16s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #3AAFA9;
  color: #fff;
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.cookie-modal .toggle {
  width: 36px;
  height: 22px;
  background: #d2ebd2;
  border-radius: 16px;
  position: relative;
  outline: none;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .toggle[aria-checked="true"], .cookie-modal .toggle.active {
  background: #3AAFA9;
}
.cookie-modal .toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.14s;
}
.cookie-modal .toggle[aria-checked="true"]::before, .cookie-modal .toggle.active::before {
  transform: translateX(14px);
}
.cookie-modal .cookie-category[aria-disabled="true"] .toggle {
  background: #aaa;
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal .cookie-category[aria-disabled="true"] label {
  color: #aaa;
}
.cookie-modal .modal-footer {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  width: 100%;
  margin-top: 6px;
}

/*--------------------------------------------------------------
 MISC UTILITY and ORGANIC SHAPES
--------------------------------------------------------------*/
.section::before {
  content: "";
  display: block;
  position: absolute;
  top: -24px; left: -34px;
  width: 70px; height: 70px;
  background: #e8efe7;
  opacity: 0.33;
  z-index: 0;
  border-radius: 39% 61% 57% 43% / 61% 34% 66% 39%;
  pointer-events: none;
}
.section::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -23px; right: -22px;
  width: 54px; height: 54px;
  background: #cfe2db;
  opacity: 0.22;
  z-index: 0;
  border-radius: 31% 69% 67% 33% / 32% 41% 59% 68%;
  pointer-events: none;
}

@media (max-width: 900px) {
  .section::before, .section::after {
    display: none;
  }
}

/* FAQ, lists, misc adjustments */
ul {
  list-style: disc inside;
}
ul li {
  margin-bottom: 8px;
}

/* Filters & event registration (insights page) */
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 18px;
}
.filters a {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 11px;
  background: #f3f6f2;
  color: #193B22;
  transition: background 0.12s, color 0.13s;
}
.filters a:hover, .filters a:focus {
  background: #3AAFA9;
  color: #fff;
  outline: none;
}

/*--------------------------------------------------------------
 RESPONSIVE DESIGN (mobile-first approach)
--------------------------------------------------------------*/
@media (max-width: 1024px) {
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
  .content-grid, .feature-grid, .team-grid, .card-container {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .section {
    margin-bottom: 36px;
    padding: 22px 6px;
    border-radius: 17px;
  }
  .content-grid, .feature-grid, .team-grid, .card-container {
    flex-direction: column;
    gap: 11px;
    align-items: stretch;
  }
  .testimonials-card,
  .card,
  .feature,
  .team-member,
  .article-list article,
  .event-calendar div {
    min-width: 100%;
    max-width: 99%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  body {
    font-size: 0.98rem;
  }
  .section {
    margin-bottom: 28px;
    padding: 12px 2px;
    border-radius: 11px;
  }
  h1 { font-size: 1.35rem; }
  .footer-nav, .footer-links {
    flex-direction: column;
    gap: 7px;
  }
  .footer-nav, .footer-links, .contact-details, .social-icons {
    font-size: 0.97rem;
  }
  .cookie-banner {
    padding: 16px 8px 14px 8px;
    font-size: 0.98rem;
    flex-direction: column;
    gap: 9px;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
  }
  .cookie-modal {
    padding: 18px 8px 17px;
    min-width: 60vw;
    max-width: 99vw;
  }
  .cookie-modal .modal-footer {
    gap: 7px;
  }
}

/*--------------------------------------------------------------
 PRINT STYLES
--------------------------------------------------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  body, .container {
    background: #fff;
    color: #183152;
  }
}
