/* style.css */

/*--------------------------------------------------------------
# Root Variables
--------------------------------------------------------------*/
:root {
  /* Monochrome Color Scheme */
  --primary-color: #6c757d; /* Mid Grey */
  --primary-darker: #5a6268; /* Darker Grey */
  --dark-color: #212529; /* Very Dark Grey / Black */
  --dark-grey: #343a40;
  --medium-grey: #adb5bd;
  --light-grey: #ced4da;
  --light-color: #f8f9fa; /* Very Light Grey / Off-White */
  --white-color: #FFFFFF;

  /* Text Colors */
  --text-dark: #333333;
  --text-light: var(--light-color);
  --text-muted: #6c757d;
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-darker);

  /* Fonts */
  --font-primary: 'Work Sans', sans-serif;
  --font-secondary: 'Poppins', sans-serif; /* Headings */

  /* Spacing & Radius */
  --spacing-unit: 1rem; /* 16px */
  --border-radius-sm: 0.25rem; /* 4px */
  --border-radius-md: 0.5rem; /* 8px */
  --border-radius-lg: 0.75rem; /* 12px */

  /* Shadows for Volumetric UI */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--white-color);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--dark-color);
  margin-top: 0;
  margin-bottom: calc(var(--spacing-unit) * 0.75);
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 700; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-unit);
  color: var(--text-dark); /* Ensure paragraphs use dark text on light bg */
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove bottom space */
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-shadow-light {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.text-shadow-dark {
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.volumetric {
  box-shadow: var(--shadow-md);
  border-radius: var(--border-radius-md);
}

.section-padding {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-weight: 700;
  color: var(--dark-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle depth */
}

.read-more-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.read-more-link:hover {
    color: var(--primary-darker);
    text-decoration: underline;
    transform: translateX(3px);
}

/*--------------------------------------------------------------
# Global Component Styles (Overrides/Enhancements)
--------------------------------------------------------------*/

/* Buttons */
.btn, button, input[type='submit'] {
  font-family: var(--font-secondary);
  padding: 10px 25px;
  font-weight: 500;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.btn-primary, input[type='submit'].btn-primary { /* Ensure specificity for input */
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover, input[type='submit'].btn-primary:hover {
  background-color: var(--primary-darker);
  border-color: var(--primary-darker);
  color: var(--white-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline-secondary {
    border-color: var(--medium-grey);
    color: var(--dark-grey);
}

.btn-outline-secondary:hover {
    background-color: var(--medium-grey);
    color: var(--white-color);
    box-shadow: var(--shadow-sm);
}

/* Forms */
.form-control {
  border-radius: var(--border-radius-md);
  padding: 12px 15px;
  box-shadow: var(--shadow-inset);
  border: 1px solid var(--light-grey);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  font-size: 1rem;
  min-height: 48px; /* Ensure consistent height */
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-inset), 0 0 0 0.2rem rgba(108, 117, 125, 0.25); /* Combine inset and focus shadow */
}

textarea.form-control {
    min-height: 120px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-grey);
}

.needs-validation .form-control:invalid {
    border-color: #dc3545; /* Bootstrap danger color */
}
.needs-validation .form-control:valid {
    border-color: #198754; /* Bootstrap success color */
}
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Keep content contained */
  background-color: var(--white-color);
  height: 100%; /* Make cards in a row equal height */
  display: flex; /* STRICT: Center content */
  flex-direction: column; /* STRICT: Center content */
  align-items: center; /* STRICT: Center content */
  text-align: center; /* STRICT: Center content */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-image { /* STRICT: Image container */
    width: 100%;
    height: 200px; /* STRICT: Fixed height */
    overflow: hidden;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-unit); /* Space below image */
    display: flex; /* Center image inside */
    align-items: center;
    justify-content: center;
}

.card-img-top {
    width: 100%;
    height: 100%; /* Fill the container */
    object-fit: cover; /* STRICT: Cover and crop */
    border-top-left-radius: var(--border-radius-lg); /* Keep radius if image is the only element */
    border-top-right-radius: var(--border-radius-lg);
    margin: 0 auto; /* STRICT: Center */
}

.card-body {
  padding: calc(var(--spacing-unit) * 1.5);
  flex-grow: 1; /* Allow body to fill remaining space */
  width: 100%; /* Ensure body takes full width */
}

.card-title {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    font-weight: 600;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-unit);
}

/* Accordion */
.accordion-item {
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-unit);
  box-shadow: var(--shadow-sm);
  background-color: var(--white-color);
  overflow: hidden; /* Ensure radius is respected */
}

.accordion-button {
  font-weight: 600;
  color: var(--dark-color);
  background-color: var(--white-color);
  border-radius: var(--border-radius-md); /* Apply radius here */
  padding: calc(var(--spacing-unit) * 1.2) calc(var(--spacing-unit) * 1.5);
  box-shadow: none; /* Remove default shadow */
}
.accordion-button:not(.collapsed) {
  color: var(--dark-color);
  background-color: rgba(108, 117, 125, 0.05); /* Subtle active background */
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1);
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
  z-index: 3;
}
.accordion-button::after {
  /* Customize accordion icon if desired */
}
.accordion-body {
    padding: calc(var(--spacing-unit) * 1.5);
    color: var(--text-dark);
}

/* Progress Bars */
.progress {
  height: 12px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-inset);
  background-color: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  line-height: 12px;
  color: var(--white-color);
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(108, 117, 125, 0.3);
  transition: width 1s ease-in-out;
}

/* Carousel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 1rem;
    background-size: 50% 50%;
}
.carousel-control-prev, .carousel-control-next {
    width: 5%; /* Smaller control area */
}
.carousel-inner {
    border-radius: var(--border-radius-lg); /* Rounded corners for carousel content */
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
  padding: var(--spacing-unit) 0;
  box-shadow: var(--shadow-sm);
  background-color: var(--white-color);
  transition: padding 0.3s ease, background-color 0.3s ease;
}

.navbar.navbar-scrolled { /* Style for scrolled state */
    padding: calc(var(--spacing-unit) * 0.5) 0;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent */
    backdrop-filter: blur(5px);
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-color) !important;
}

.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--dark-color) !important;
  margin: 0 calc(var(--spacing-unit) * 0.5);
  padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
  border-radius: var(--border-radius-sm);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(108, 117, 125, 0.05);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Section Styles
--------------------------------------------------------------*/

/* Hero Section */
#hero {
  min-height: 80vh; /* Keep a decent height */
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover; /* Background properties */
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color); /* STRICT: White text */
  background-attachment: fixed; /* Parallax effect */
  padding: 6rem 0; /* Adjusted padding */
}

#hero::before { /* Dark overlay for readability */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

#hero .container {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-unit);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7); /* Stronger shadow */
  color: var(--white-color); /* STRICT: White heading */
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
  max-width: 600px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* Shadow for paragraph */
  color: var(--white-color); /* STRICT: White paragraph */
}

#hero .btn-primary {
    padding: 15px 35px; /* Larger hero button */
    font-size: 1.1rem;
}

/* Features Section */
#features {
    background-color: var(--light-color);
}
#features .card {
    background-color: var(--white-color); /* Cards stand out on light bg */
}
#features .card-title {
    color: var(--dark-grey);
}

/* Mission Section */
#mission img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}
#mission h4 {
    margin-top: calc(var(--spacing-unit) * 2);
    color: var(--dark-grey);
}

/* Sustainability Section */
#sustainability {
    background-color: var(--light-color);
}
#sustainability .carousel-inner img {
    aspect-ratio: 3 / 2; /* Maintain aspect ratio */
    object-fit: cover;
}

/* Press Section */
#press .card {
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm); /* Lighter shadow for press logos */
}
#press .card-image {
    height: auto; /* Adjust height for logos */
    min-height: 100px;
    margin-bottom: 0;
    padding: var(--spacing-unit);
    display: flex;
    align-items: center;
    justify-content: center;
}
#press .card-image img {
    max-width: 150px;
    height: auto;
    object-fit: contain; /* Ensure logo fits */
}
#press .card-body {
    padding-top: 0.5rem;
}
#press .card-title {
    font-size: 1rem;
}
#press .card-text {
    font-size: 0.85rem;
    min-height: 60px; /* Ensure some consistent space */
}
#press .btn-sm {
    padding: 5px 15px;
    font-size: 0.8rem;
}

/* External Resources Section */
#external-resources {
    background-color: var(--light-color);
}
#external-resources .list-group-item {
  background-color: var(--white-color);
  border: 1px solid #dee2e6;
  margin-bottom: var(--spacing-unit);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 1.5);
}
#external-resources .list-group-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
#external-resources a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}
#external-resources a:hover {
  color: var(--dark-color);
  text-decoration: underline;
}
#external-resources p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
#external-resources h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* FAQ Section */
#faq {
    background-color: var(--white-color);
}

/* Contact Section */
#contact {
    background-color: var(--light-color);
}

/* Footer */
footer.footer {
  padding: 4rem 0 2rem 0;
  background-color: var(--dark-color);
  color: var(--text-light);
}
footer h5 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}
footer p {
    color: var(--medium-grey);
    font-size: 0.95rem;
}
footer a {
  color: var(--medium-grey);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}
footer a:hover {
  color: var(--white-color);
  text-decoration: underline;
}
footer .list-unstyled li {
  margin-bottom: 0.75rem;
}
footer .social-links a { /* Text-based social links */
  margin-right: 1.5rem; /* More spacing */
  font-weight: 500;
  display: inline-block; /* Ensure proper spacing */
  color: var(--medium-grey);
}
footer .social-links a:last-child {
    margin-right: 0;
}
footer .social-links a:hover {
    color: var(--white-color);
}
footer .border-top {
  margin-top: 3rem;
  padding-top: 2rem;
  border-color: #495057 !important; /* Darker border */
}
footer .text-center p {
  font-size: 0.9rem;
  color: var(--medium-grey);
}

/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/

/* Success Page */
.success-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Allow header/footer */
}
.success-page-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.success-page-content .card {
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}
.success-page-content .icon {
    font-size: 4rem;
    color: #198754; /* Bootstrap success green */
    margin-bottom: 1rem;
}

/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: 100px; /* Offset for fixed header */
    padding-bottom: 4rem;
}
.legal-page-content h1 {
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.legal-page-content p, .legal-page-content li {
    color: var(--text-dark);
    line-height: 1.8;
}

/*--------------------------------------------------------------
# Animations & Transitions (Global)
--------------------------------------------------------------*/
/* Smooth scroll handled by JS */
/* AOS animations are applied via data attributes */

/* Basic transition for interactive elements */
a, button, .card, .form-control, .accordion-button {
    transition: all 0.3s ease-in-out;
}

/*--------------------------------------------------------------
# Media Queries (Responsive Adjustments)
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  h1, #hero h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .section-padding { padding: 4rem 0; }
  .section-title { margin-bottom: 3rem; }

  .navbar-nav {
    margin-top: var(--spacing-unit);
    background-color: var(--white-color);
    padding: var(--spacing-unit);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
  }
  .navbar-nav .nav-link {
    padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
    margin: calc(var(--spacing-unit) * 0.25) 0;
  }

  #hero p { font-size: 1.1rem; }

  .card-image { height: 180px; } /* Slightly smaller images on medium screens */
}

@media (max-width: 767.98px) {
  h1, #hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.4rem; }

  .section-padding { padding: 3rem 0; }
  .section-title { margin-bottom: 2.5rem; }

  #hero {
    min-height: 70vh;
    text-align: center;
  }
  #hero p {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  #hero .btn-primary {
      padding: 12px 30px;
      font-size: 1rem;
  }

  footer .col-md-4 {
    margin-bottom: 2rem;
    text-align: center;
  }
  footer .social-links {
      justify-content: center;
      display: flex;
      flex-wrap: wrap; /* Allow wrapping */
  }
   footer .social-links a {
       margin: 0 0.75rem 0.5rem 0.75rem; /* Adjust spacing for center align */
   }

  footer .text-center {
      margin-top: 1rem;
      padding-top: 1rem;
  }

  .card-image { height: 160px; } /* Smaller images on small screens */
}

@media (max-width: 575.98px) {
    h1, #hero h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .section-padding { padding: 2.5rem 0; }

    #hero p { font-size: 0.95rem; }
}