/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Fonts */
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Archivo Black', sans-serif;

  /* Bright Color Scheme - Futuristic & Eco-Minimalism */
  --color-primary: #00c6ff; /* Bright Cyan/Blue - Futuristic Tech */
  --color-primary-darker: #00a5d9;
  --color-secondary: #7ed56f; /* Bright Green - Eco */
  --color-secondary-darker: #68b35a;
  --color-accent: #ff8c00; /* Bright Orange - Energetic Accent */
  --color-accent-darker: #d97700;

  /* Text Colors */
  --color-text-dark: #212529; /* Dark gray for primary text */
  --color-text-light: #ffffff;
  --color-text-medium: #555555; /* Medium gray for secondary text */
  --color-text-muted: #777777;

  /* Background Colors */
  --color-bg-light: #f8f9fa; /* Very light gray / off-white */
  --color-bg-dark: #1a1a1a; /* Dark background for footer/contrast */
  --color-bg-glass: rgba(255, 255, 255, 0.1);
  --color-bg-overlay: rgba(0, 0, 0, 0.5); /* Overlay for text on images */

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-futuristic: linear-gradient(45deg, #00c6ff, #0072ff);
  --gradient-eco: linear-gradient(45deg, #a8e063, #56ab2f);

  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-color: #dee2e6;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-futuristic: 0 0 15px var(--color-primary-darker);

  /* Transitions */
  --transition-short: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-in-out;
  --transition-long: 0.5s ease-in-out;
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 400; /* Archivo Black is inherently bold */
  line-height: 1.3;
}
.section-title {
  font-size: 2.5rem;
  color: #222222; /* Darker for better contrast */
  margin-bottom: 3rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-medium);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-short);
}
a:hover {
  color: var(--color-primary-darker);
  text-decoration: underline;
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white p, .text-white span, .text-white li, .text-white a {
    color: var(--color-text-light) !important;
}
.text-white a:hover {
    color: var(--color-secondary) !important;
}

section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg-light {
  background-color: var(--color-bg-light);
}
.section-bg-dark {
  background-color: var(--color-bg-dark);
}
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4, .section-bg-dark h5, .section-bg-dark h6,
.section-bg-dark p {
  color: var(--color-text-light);
}
.section-bg-dark a { color: var(--color-primary); }
.section-bg-dark a:hover { color: var(--color-secondary); }

.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.parallax-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--color-bg-overlay);
  z-index: 1;
}
.parallax-section > .container,
.parallax-section .sustainability-content, /* Ensure content is above overlay */
.parallax-section .careers-content {
  position: relative;
  z-index: 2;
}

.image-with-text-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.image-with-text-overlay::before {
    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)); /* Dark overlay */
    z-index: 1;
}
.image-with-text-overlay > * { /* Content on top of overlay */
    position: relative;
    z-index: 2;
}

/*--------------------------------------------------------------
# Buttons (Global)
--------------------------------------------------------------*/
.btn, button, input[type='submit'], input[type='button'] {
  font-family: var(--font-secondary);
  padding: 12px 30px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 400; /* For Archivo Black */
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  user-select: none;
}

.futuristic-button {
  background: var(--gradient-futuristic);
  color: var(--color-text-light) !important;
  border-color: transparent;
}
.futuristic-button:hover, .futuristic-button:focus {
  background: linear-gradient(45deg, var(--color-primary-darker), #005bb5);
  color: var(--color-text-light) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.futuristic-button-secondary {
  background-color: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}
.futuristic-button-secondary:hover, .futuristic-button-secondary:focus {
  background-color: var(--color-primary);
  color: var(--color-text-light) !important;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-futuristic);
}

.read-more-link {
    font-family: var(--font-secondary);
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}
.read-more-link::after { content: ' →'; }
.read-more-link:hover { color: var(--color-accent-darker); text-decoration: none; }
.read-more-link.text-white { color: var(--color-secondary) !important; }
.read-more-link.text-white:hover { color: var(--color-text-light) !important; }

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.futuristic-header {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 0;
  transition: all var(--transition-medium);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.futuristic-header .logo-text {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
}
.futuristic-header .logo-text:hover { color: var(--color-primary); }
.futuristic-header .nav-link {
  font-family: var(--font-primary);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8) !important;
  margin-left: 15px;
  padding: 10px 15px !important;
  transition: var(--transition-short);
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  font-size: 0.9rem;
}
.futuristic-header .nav-link:hover,
.futuristic-header .nav-link.active {
  color: var(--color-text-light) !important;
  background-color: rgba(0, 198, 255, 0.2);
}
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.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(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  .futuristic-header .navbar-collapse {
    background: rgba(26, 26, 26, 0.98);
    margin-top: 10px;
    border-radius: var(--border-radius-md);
    padding: 15px;
  }
  .futuristic-header .nav-link { margin-left: 0; margin-bottom: 5px; }
}

/* Padding for static pages with fixed header */
/* Apply body class e.g. <body class="page-privacy"> */
.page-privacy > main,
.page-terms > main {
    padding-top: 100px; /* As per requirement */
}
.page-about > main, /* For consistency if these pages exist */
.page-contacts > main {
    padding-top: 100px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  width: 100%;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  /* Dark overlay is applied via inline style in HTML */
}
.hero-content {
  position: relative;
  z-index: 2; /* Above overlay */
  max-width: 700px;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 700; /* Archivo Black is already bold */
  color: var(--color-text-light) !important; /* IMPORTANT: Hero text white */
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.hero-section .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9) !important; /* IMPORTANT: Hero text white */
  margin-bottom: 30px;
}
.hero-section .btn { padding: 15px 40px; font-size: 1.1rem; }
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-section .lead { font-size: 1.1rem; }
}

/*--------------------------------------------------------------
# Cards (General Styling)
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%; /* For consistent card heights in rows */
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card .card-image {
  width: 100%;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* For potential overlays on card images */
}
.card .card-image img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  transition: transform var(--transition-long);
}
.card:hover .card-image img { transform: scale(1.05); }

.card-body {
  padding: 25px;
  flex-grow: 1; /* Allows card body to take remaining space */
  display: flex;
  flex-direction: column;
}
.card-body.text-center, .card .text-center { /* For centered content in cards */
    text-align: center;
    align-items: center; /* If flex column */
}
.card .card-title {
  font-size: 1.4rem;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}
.card .card-text {
  color: var(--color-text-medium);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1; /* Pushes button to bottom if card-body is flex column */
}

/* Specific Card Types */
.eco-card { border-left: 5px solid var(--color-secondary); }
.eco-card .card-title { color: var(--color-secondary-darker); }

.product-card .card-image img { height: 300px; }
.product-card .price-text {
    color: var(--color-primary);
    font-family: var(--font-secondary);
    margin-top: auto;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.product-card .btn { margin-top: 0.5rem; width: 100%; }

.service-card { border-top: 5px solid var(--color-accent); text-align: center; }
.service-card .card-image { /* For service card icons */
    height: 150px; width: 150px;
    margin: 15px auto; /* Centering */
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-color: var(--color-bg-light);
}
.service-card .card-image img {
    height: 70px; width: 70px;
    object-fit: contain;
}
.service-card .card-title { color: var(--color-accent-darker); }

/*--------------------------------------------------------------
# UI Components
--------------------------------------------------------------*/
.form-check-input.futuristic-toggle {
  width: 3.5em; height: 1.75em;
  background-color: #ccc;
  border-radius: 1.75em;
  transition: background-color var(--transition-medium);
  border: none;
}
.form-check-input.futuristic-toggle:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.form-check-input.futuristic-toggle:focus { box-shadow: 0 0 0 0.25rem rgba(0, 198, 255, 0.3); }
.form-check-label { font-weight: 500; color: var(--color-text-medium); }

.custom-slider .carousel-indicators button {
  width: 12px; height: 12px; border-radius: 50%;
  background-color: rgba(0,0,0, 0.3); /* Darker for better visibility on light images */
  border: 1px solid rgba(255,255,255,0.5);
  margin: 0 5px;
}
.custom-slider .carousel-indicators .active { background-color: var(--color-primary); border-color: var(--color-primary); }
.custom-slider .carousel-control-prev-icon,
.custom-slider .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 40px; height: 40px;
  background-size: 50% 50%;
}
.custom-slider .carousel-caption { /* Ensured dark overlay for text readability in HTML */
  color: var(--color-text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  bottom: 20px; /* Adjust position */
  padding: 15px;
  border-radius: var(--border-radius-sm);
}
.custom-slider .carousel-caption h5 { font-family: var(--font-secondary); color: var(--color-text-light) !important; }
.custom-slider .carousel-caption p { color: rgba(255,255,255,0.9) !important; font-size: 0.9rem; }

/*--------------------------------------------------------------
# Section Specific Styles
--------------------------------------------------------------*/
#process img { max-width: 100%; border-radius: var(--border-radius-lg); }

.sustainability-content, .careers-content {
  /* background-color handled in HTML for variability via style attribute */
  padding: 40px; border-radius: var(--border-radius-lg);
  color: var(--color-text-dark); /* Ensure text is dark on light overlay from HTML */
}
.sustainability-content h2, .careers-content h2 { color: var(--color-text-dark); }
.sustainability-content p, .careers-content p { color: var(--color-text-medium); }

#external-resources .list-group-item {
  background-color: #fff; border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md); margin-bottom: 10px;
  transition: var(--transition-medium);
}
#external-resources .list-group-item:hover {
  background-color: var(--color-bg-light); transform: translateX(5px);
  border-left: 3px solid var(--color-primary);
}
#external-resources .list-group-item h5 { color: var(--color-primary); font-family: var(--font-secondary); }
#external-resources .list-group-item p { color: var(--color-text-muted); font-size: 0.9rem; }

.futuristic-accordion .accordion-item {
  background-color: #fff; border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md) !important;
  margin-bottom: 15px; box-shadow: var(--shadow-sm);
}
.futuristic-accordion .accordion-button {
  font-family: var(--font-secondary); font-size: 1.1rem;
  color: var(--color-text-dark); background-color: transparent;
  box-shadow: none; border-radius: var(--border-radius-md) !important;
}
.futuristic-accordion .accordion-button:not(.collapsed) {
  color: var(--color-primary); background-color: rgba(0, 198, 255, 0.05);
}
.futuristic-accordion .accordion-button::after {
  filter: invert(40%) sepia(90%) saturate(1500%) hue-rotate(170deg) brightness(100%) contrast(100%);
}
.futuristic-accordion .accordion-body { padding: 1.5rem; color: var(--color-text-medium); }

.form-title { font-family: var(--font-secondary); color: var(--color-text-dark); margin-bottom: 1.5rem; }
.futuristic-input {
  background-color: #fff; border: 1px solid #ddd;
  border-radius: var(--border-radius-md); padding: 12px 15px;
  font-size: 1rem; color: var(--color-text-dark);
  transition: var(--transition-medium);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
.futuristic-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 198, 255, 0.25), inset 0 1px 3px rgba(0,0,0,0.05);
  background-color: #fff;
}
#contact iframe { border-radius: var(--border-radius-lg); box-shadow: var(--shadow-sm); }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.futuristic-footer {
  background-color: var(--color-bg-dark); color: rgba(255, 255, 255, 0.7);
  padding: 50px 0;
}
.futuristic-footer .footer-title {
  font-family: var(--font-secondary); color: var(--color-text-light);
  font-size: 1.3rem; margin-bottom: 15px; text-transform: uppercase;
}
.futuristic-footer p { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.futuristic-footer hr { border-top: 1px solid rgba(255,255,255,0.1); }
.futuristic-footer .list-unstyled li { margin-bottom: 8px; }
.futuristic-footer .list-unstyled a {
  color: rgba(255, 255, 255, 0.7); transition: var(--transition-short);
  font-weight: 500;
}
.futuristic-footer .list-unstyled a:hover {
  color: var(--color-primary); text-decoration: none; padding-left: 5px;
}
.futuristic-footer .copyright-text {
  margin-top: 30px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5);
}

/*--------------------------------------------------------------
# Success Page (success.html)
--------------------------------------------------------------*/
/* Apply this class to the <body> tag of success.html */
.page-success-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-success-body > header { /* Assuming header is direct child */
    flex-shrink: 0;
}
.page-success-body > main { /* This will be the main content wrapper of success.html */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0; /* Vertical padding */
}
.page-success-body > footer { /* Assuming footer is direct child */
    flex-shrink: 0;
}
.page-success-container { /* The block with h1, p, button */
    text-align: center;
    max-width: 600px;
    padding: 20px;
}
.page-success-container h1 {
  color: var(--color-secondary);
  font-size: 3rem; /* Adjusted for impact */
  margin-bottom: 1rem;
}
.page-success-container p {
  font-size: 1.2rem;
  color: var(--color-text-medium);
  margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Animations & Scroll Effects
--------------------------------------------------------------*/
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-long) ease-out, transform var(--transition-long) ease-out;
}
.animate-on-scroll.is-visible { /* Class added by JS when element is in viewport */
  opacity: 1;
  transform: translateY(0);
}