/* ============================================
   Equilibra - Educational Mineral Resource
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #1B5E20;
  --primary-light: #2E7D32;
  --primary-dark: #1B5E20;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

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

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

a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

/* Header / Navbar */
.navbar {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

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

.navbar-brand:hover {
  color: var(--primary-light) !important;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-toggler {
  border-color: var(--primary-color);
}

.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(27, 94, 32, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Content Spacing */
main {
  padding-top: 80px;
}

/* Hero Section */
.hero-section {
  background-color: var(--bg-light);
  padding: 5rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-image {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-light {
  background-color: var(--bg-light);
}

.section-white {
  background-color: var(--bg-white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Content Blocks */
.content-block {
  margin-bottom: 2rem;
}

.content-image {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition);
}

.content-image:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Cards */
.info-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.info-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.mineral-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.mineral-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.mineral-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.mineral-card-body {
  padding: 1.5rem;
}

.mineral-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Infographic Section */
.infographic-section {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 5rem 0;
}

.infographic-section h2 {
  color: var(--bg-white);
}

.infographic-section p {
  color: rgba(255, 255, 255, 0.9);
}

.infographic-image {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

/* FAQ Section */
.faq-section .card {
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.faq-section .card-header {
  background-color: var(--bg-white);
  border-bottom: none;
  padding: 0;
}

.faq-section .btn-link {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 1.5rem;
  display: block;
  width: 100%;
  text-align: left;
}

.faq-section .btn-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.faq-section .card-body {
  padding: 1rem 1.5rem;
  color: var(--text-muted);
}

/* Study/Research Section */
.study-card {
  background-color: var(--bg-white);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.study-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.study-card .study-source {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn-outline-custom {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.contact-form .form-control {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(27, 94, 32, 0.15);
}

.contact-info {
  margin-top: 2rem;
}

.contact-info-item {
  margin-bottom: 1rem;
}

.contact-info-item strong {
  color: var(--primary-color);
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.disclaimer-box h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.disclaimer-box p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer h5 {
  color: var(--bg-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer a:hover {
  color: var(--bg-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.8125rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--bg-white);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.cookie-banner a {
  color: var(--bg-white);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  padding: 0.5rem 1.5rem;
}

.btn-accept {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--bg-white);
}

.btn-accept:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--bg-white);
}

.btn-reject {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--bg-white);
}

.btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Policy Pages */
.policy-page {
  padding: 5rem 0;
}

.policy-page h1 {
  margin-bottom: 2rem;
}

.policy-page h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.policy-page h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.policy-page ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.policy-page li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* About Page */
.about-section {
  padding: 5rem 0;
}

.about-image {
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding: 3rem 0;
    min-height: auto;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
  
  main {
    padding-top: 70px;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .info-card {
    padding: 1.5rem;
  }
  
  .cookie-banner {
    padding: 1rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons .btn {
    width: 100%;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .cookie-banner,
  .footer {
    display: none;
  }
  
  main {
    padding-top: 0;
  }
  
  .section {
    padding: 1rem 0;
  }
}
