/* ==================== ROOT VARIABLES ==================== */
:root {
  /* Colors - Complementary Scheme (Blue & Orange/Gold) */
  --background-color: #E0E5EC; 
  --primary-color: #3D84A8;   
  --secondary-color: #F8B400; 
  --white-color: #FFFFFF;
  --text-color: #34495e;      
  --text-color-light: #5b6f82;
  --heading-color: #2c3e50;  
  --dark-color-footer: #222831;

  /* Neumorphism Shadows */
  --light-shadow: rgba(255, 255, 255, 0.8);
  --dark-shadow: rgba(163, 177, 198, 0.7);
  --neumorphic-shadow: 8px 8px 16px var(--dark-shadow), -8px -8px 16px var(--light-shadow);
  --neumorphic-shadow-inset: inset 6px 6px 12px var(--dark-shadow), inset -6px -6px 12px var(--light-shadow);
  --neumorphic-shadow-pressed: inset 4px 4px 8px var(--dark-shadow), inset -4px -4px 8px var(--light-shadow);
  
  /* Typography */
  --font-family-headings: 'Raleway', sans-serif;
  --font-family-body: 'Open Sans', sans-serif;

  /* Transitions & Animations */
  --transition-speed: 0.3s;
  --transition-easing: cubic-bezier(0.68, -0.55, 0.27, 1.55);
  
  /* Layout */
  --header-height: 80px;
  --container-width: 1140px;
  --container-padding: 1rem;
}

/* ==================== BASE STYLES ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-family-headings);
  color: var(--heading-color);
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

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

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-speed) ease;
}

.navigation {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-family-headings);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading-color);
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-speed) ease-out;
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--heading-color);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* ==================== BUTTONS (GLOBAL) ==================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-family-headings);
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-speed) var(--transition-easing);
  box-shadow: var(--neumorphic-shadow);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  box-shadow: var(--neumorphic-shadow-pressed);
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}
.btn-primary:hover {
    background-color: #32728f;
    color: var(--white-color);
}

.btn-secondary {
  background-color: var(--background-color);
  color: var(--text-color);
}
.btn-secondary:hover {
    color: var(--primary-color);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white-color); /* CRITICAL */
  padding: 0 var(--container-padding);
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: inherit;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* ==================== STATISTICS SECTION ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--neumorphic-shadow);
  transition: transform var(--transition-speed) ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon-wrapper {
  margin-bottom: 1rem;
}

.animated-icon {
  stroke: var(--primary-color);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.stat-number {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-description {
  color: var(--text-color-light);
}

.progress-indicator {
    width: 100%;
    background: var(--background-color);
    border-radius: 10px;
    box-shadow: var(--neumorphic-shadow-inset);
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 25px;
    background-color: var(--primary-color);
    border-radius: 10px;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: width 1.5s ease-out;
}
.stat-description-small {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* ==================== ABOUT & SUSTAINABILITY SECTIONS ==================== */
.about-content, .sustainability-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.sustainability-content .sustainability-text {
    order: 2;
}
.sustainability-content .sustainability-image-container {
    order: 1;
}

.about-image-container img, .sustainability-image-container img {
  border-radius: 20px;
  box-shadow: var(--neumorphic-shadow);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================== CARDS (PRICING, NEWS, ETC.) ==================== */
.pricing-grid, .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card {
  background-color: var(--background-color);
  border-radius: 20px;
  box-shadow: var(--neumorphic-shadow);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition-speed) var(--transition-easing);
  display: flex; /* CRITICAL */
  flex-direction: column; /* CRITICAL */
  align-items: center; /* CRITICAL */
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 12px 12px 24px var(--dark-shadow), -12px -12px 24px var(--light-shadow);
}

.card .card-image {
  width: 100%;
  height: 200px; /* CRITICAL */
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* CRITICAL */
}

.card .card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card .card-content h3 {
    margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0.5rem 0 1rem 0;
}

.card .btn {
    margin-top: 1.5rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
    display: block;
}

.read-more {
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
    color: var(--primary-color);
}
.read-more:hover {
    text-decoration: underline;
}

/* ==================== SUCCESS STORIES ==================== */
.stories-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.story-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.story-card .card-image {
    width: 120px; /* Overwrite card default */
    height: 120px; /* Overwrite card default */
    margin-bottom: 1.5rem;
}
.story-avatar {
    border-radius: 50%;
    border: 5px solid var(--background-color);
    box-shadow: var(--neumorphic-shadow-inset);
}
.story-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}
.story-card blockquote::before {
    content: '“';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    left: -10px;
    top: -10px;
    opacity: 0.3;
}
.story-card cite {
    font-weight: bold;
    color: var(--heading-color);
}

/* ==================== EXTERNAL RESOURCES ==================== */
.resources-list .resource-item {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.resource-item h3 {
    margin-bottom: 0.5rem;
}
.resource-item p {
    margin: 0;
    flex-grow: 1;
}

/* ==================== CONTACT SECTION ==================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--neumorphic-shadow);
}
.contact-info ul {
    margin-top: 1.5rem;
}
.contact-info li {
    margin-bottom: 0.5rem;
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background-color: var(--background-color);
  box-shadow: var(--neumorphic-shadow-inset);
  color: var(--text-color);
  font-family: var(--font-family-body);
  font-size: 1rem;
  outline: none;
  transition: box-shadow var(--transition-speed) ease;
}

.form-input:focus {
  box-shadow: inset 3px 3px 7px var(--dark-shadow), inset -3px -3px 7px var(--light-shadow), 0 0 0 2px var(--primary-color);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-color-light);
  pointer-events: none;
  transition: all var(--transition-speed) ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -1.2rem;
  left: 0.5rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  background: var(--background-color);
  padding: 0 5px;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}


/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--dark-color-footer);
  color: var(--white-color);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-section h4 {
  color: var(--white-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
}

.footer-section ul li {
  margin-bottom: 0.7rem;
}

.footer-section ul a {
  color: #ccc;
  transition: color var(--transition-speed) ease;
}

.footer-section ul a:hover {
  color: var(--secondary-color);
}

.footer-copyright {
  border-top: 1px solid #444;
  padding: 1.5rem 0;
  text-align: center;
  color: #aaa;
}
.footer-copyright p { margin: 0; }

/* ==================== PAGE-SPECIFIC STYLES ==================== */
.page-success {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}
.page-success-content {
    max-width: 600px;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--neumorphic-shadow);
}
.page-success-content h1 {
    color: var(--primary-color);
}

.legal-page-content {
    padding: calc(var(--header-height) + 4rem) var(--container-padding) 4rem;
}
.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 992px) {
  h1 { font-size: 2.8rem; }
  .hero-title { font-size: 3.2rem; }
  .section { padding: 4rem 0; }
  .about-content, .sustainability-content { grid-template-columns: 1fr; }
  .sustainability-content .sustainability-text, .sustainability-content .sustainability-image-container { order: 0; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .resource-item { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--background-color);
    padding: 2rem;
    transition: right 0.4s ease;
  }
  .nav-menu.show-menu {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .nav-link {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .footer-grid { text-align: center; }
}

@media (max-width: 576px) {
    .contact-wrapper { padding: 1.5rem; }
}