/* style.css */

/*
---
Design System: Modern / Eco-minimalism
Color Scheme: Neutral
Animation Style: Morphing
Fonts: Poppins (Headings), Work Sans (Body)
Framework: Bulma
---
*/

/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary-color: #00A896; /* A professional, eco-inspired teal */
  --primary-color-dark: #00897b;
  --accent-color: #E0A458; /* Warm, earthy accent */
  --background-color: #FDFEFE; /* Almost white, very clean */
  --light-background-color: #F1F3F4; /* Light grey for section contrast */
  --text-color: #363636; /* Bulma's default dark grey */
  --heading-color: #222222; /* Darker for strong headers */
  --white-color: #FFFFFF;
  --border-color: #dbdbdb;
  --shadow-color: rgba(10, 10, 10, 0.1);
  --shadow-color-hover: rgba(10, 10, 10, 0.2);
  --overlay-color: rgba(0, 0, 0, 0.55);

  /* Typography */
  --font-family-headings: 'Poppins', sans-serif;
  --font-family-body: 'Work Sans', sans-serif;

  /* Spacing & Radius */
  --section-padding: 4rem 1.5rem;
  --card-border-radius: 8px;
  --button-border-radius: 5px;
}

/* ===== General & Body Styles ===== */
html {
  scroll-behavior: smooth;
  background-color: var(--background-color);
}

body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 1.1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override Bulma's primary color */
.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
}
.button.is-primary:hover, .button.is-primary:focus {
  background-color: var(--primary-color-dark);
  border-color: transparent;
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover, .button.is-primary.is-outlined:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}
.progress.is-primary::-webkit-progress-value { background-color: var(--primary-color); }
.progress.is-primary::-moz-progress-bar { background-color: var(--primary-color); }
.progress.is-primary::-ms-fill { background-color: var(--primary-color); }

.has-text-primary {
    color: var(--primary-color) !important;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-family-headings);
  color: var(--heading-color);
  font-weight: 700;
}
.subtitle {
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.9;
}

/* ===== Global Components & Utilities ===== */
.section {
  padding: var(--section-padding);
}
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
}

.main-container {
    overflow-x: hidden;
}

/* Modern Button Styles */
.button {
  font-family: var(--font-family-headings);
  font-weight: 600;
  border-radius: var(--button-border-radius);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px var(--shadow-color);
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px var(--shadow-color-hover);
}
.button.is-large {
  font-size: 1.3rem;
  padding: 1.5rem 2.5rem;
}

/* Modern Form Styles */
.input, .textarea {
    border-radius: var(--button-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) inset;
    transition: all 0.3s ease;
}
.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.25);
}

/* General Card Styles */
.card {
  border-radius: var(--card-border-radius);
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Important for border-radius on images */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color-hover);
}
.card .card-image {
    text-align: center; /* Center figure element */
}
.card .card-image figure {
  margin: 0 auto; /* Center figure within its container */
}
.card .card-image img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover; /* Ensures image covers the area without distortion */
}
.card .card-content {
  text-align: left;
  flex-grow: 1; /* Allows content to fill remaining space */
}

/* ===== Page Transition ===== */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

/* ===== Header & Footer ===== */
.navbar.is-fixed-top {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.navbar-item.logo {
    font-family: var(--font-family-headings);
    font-size: 1.5rem;
    font-weight: 700;
}
.navbar-item {
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-item:hover, .navbar-item:focus {
    color: var(--primary-color);
    background-color: transparent;
}
.navbar-burger {
    color: var(--heading-color);
}
.navbar-burger:hover {
    background-color: var(--light-background-color);
}
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 8px 16px rgba(10,10,10,0.1);
        border-radius: 0 0 10px 10px;
    }
}

.footer {
  background-color: var(--heading-color);
  color: var(--light-background-color);
}
.footer .title {
  color: var(--white-color);
}
.footer p {
    color: var(--light-background-color);
    opacity: 0.8;
}
.footer a {
  color: var(--light-background-color);
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* ===== Section: Hero ===== */
#hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#hero .title {
  font-size: 3.5rem;
  font-weight: 700;
}
#hero .subtitle {
    font-size: 1.7rem;
}
@media screen and (max-width: 768px) {
  #hero .title {
    font-size: 2.5rem;
  }
  #hero .subtitle {
      font-size: 1.3rem;
  }
}

/* ===== Section: Methodology ===== */
.methodology-card {
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

/* ===== Section: History (Timeline) ===== */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}
.timeline-item:nth-child(odd) {
  left: 0;
}
.timeline-item:nth-child(even) {
  left: 50%;
}
.timeline-content {
  padding: 20px 30px;
  background-color: var(--white-color);
  position: relative;
  border-radius: var(--card-border-radius);
  box-shadow: 0 3px 10px var(--shadow-color);
}
.timeline-marker {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white-color);
  border: 4px solid var(--primary-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-item:nth-child(even) .timeline-marker {
  left: -10px;
}
@media screen and (max-width: 768px) {
  .timeline-container::after {
    left: 15px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
    left: 0 !important; /* Override inline style */
  }
  .timeline-marker {
    left: 5px; /* Adjust marker position */
  }
}

/* ===== Section: Sustainability (Accordion) ===== */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}
.accordion-header {
  width: 100%;
  background-color: transparent;
  border: none;
  text-align: left;
  padding: 1.5rem 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-family-headings);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}
.accordion-header:hover {
    background-color: #f9f9f9;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease;
}
.accordion-content .content {
  padding: 0 0.5rem 1.5rem 0.5rem;
}
.accordion-item.active .accordion-content {
  max-height: 500px; /* Adjust as needed */
  transition: max-height 1s ease-in-out;
}
.progress-bar-container {
    margin-top: 1rem;
}
.progress-bar-container span {
    font-weight: 500;
}

/* ===== Section: Partners ===== */
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 3rem;
}
.partners-logos img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.partners-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* ===== Section: External Resources ===== */
.resource-card {
    background: var(--white-color);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 var(--card-border-radius) var(--card-border-radius) 0;
    transition: box-shadow 0.3s ease;
}
.resource-card:hover {
    box-shadow: 0 5px 15px var(--shadow-color);
}
.resource-card a {
    color: var(--heading-color);
    font-weight: 600;
}
.resource-card a:hover {
    color: var(--primary-color);
}
.resource-card p {
    margin-top: 0.5rem;
}

/* ===== Page-Specific Styles ===== */
.legal-page, .success-page {
    padding: 10rem 1.5rem 4rem 1.5rem;
    min-height: 80vh;
}
.success-page .content-wrapper {
    text-align: center;
    background: var(--white-color);
    padding: 3rem;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 25px var(--shadow-color);
    max-width: 600px;
    margin: auto;
}
.success-page .success-icon {
    font-size: 4rem;
    color: var(--primary-color);
}
/* If success-page is the whole body */
body.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--light-background-color);
}