* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #2C3E50;
  --accent-blue: #3498DB;
  --accent-green: #27AE60;
  --accent-orange: #E67E22;
  --light-bg: #F8F9FA;
  --text-dark: #2C3E50;
  --text-muted: #7F8C8D;
  --border-light: #E0E0E0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary-dark);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

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

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  line-height: 1.65;
}

.text-muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header .navbar {
  padding: 0.8rem 0;
}

header .navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header .navbar-brand img {
  height: 35px;
  width: auto;
}

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

header .nav-link:hover {
  color: var(--accent-blue) !important;
}

header .nav-link.active {
  color: var(--accent-blue) !important;
  border-bottom: 2px solid var(--accent-blue);
}

/* Main content offset */
main {
  margin-top: 80px;
}

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

section.hero {
  padding: 7rem 0 6rem;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 152, 219, 0.8) 100%), url('images/hero-intro.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  display: flex;
  align-items: center;
  min-height: 90vh;
  margin-top: 0;
  position: relative;
}

section.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.75);
  z-index: 1;
}

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

section.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

section.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: 1fr 1fr;
}

.two-col.reverse > div:nth-child(1) {
  order: 2;
}

.two-col.reverse > div:nth-child(2) {
  order: 1;
}

.two-col img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
}

.two-col img:hover {
  transform: translateY(-5px);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}

.btn-primary:hover {
  background: #2980B9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: var(--accent-blue);
  color: white;
}

.btn-tertiary {
  background: var(--accent-green);
  color: white;
}

.btn-tertiary:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.3);
}

/* Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-disclaimer {
  background: #FEF5E7;
  padding: 1rem;
  border-left: 4px solid var(--accent-orange);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #8B6914;
}

/* FAQ */
.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light-bg);
  font-weight: 600;
  color: var(--primary-dark);
  user-select: none;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #E8EEF2;
}

.faq-question.active {
  background: var(--accent-blue);
  color: white;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-toggle.active {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--text-dark);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

footer .container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--accent-blue);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-green);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  border-left: 3px solid var(--accent-green);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  border: none;
  background: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-dark);
}

.modal-content h1 {
  margin-top: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  display: none;
  animation: slideUp 0.3s ease;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

.cookie-buttons button {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cookie-accept {
  background: var(--accent-green);
  color: white;
}

.cookie-accept:hover {
  background: #229954;
}

.cookie-reject {
  background: var(--light-bg);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}

.cookie-reject:hover {
  background: var(--border-light);
}

.cookie-learn {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.cookie-learn:hover {
  background: var(--accent-blue);
  color: white;
}

/* List styles */
ul, ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
  border-left: 4px solid var(--accent-blue);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  section {
    padding: 3rem 0;
  }

  section.hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  section.hero h1 {
    font-size: 2rem;
  }

  section.hero p {
    font-size: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col.reverse > div:nth-child(1) {
    order: 1;
  }

  .two-col.reverse > div:nth-child(2) {
    order: 2;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  main {
    margin-top: 70px;
  }

  header .navbar-brand {
    font-size: 1.1rem;
  }

  header .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem !important;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-buttons button {
    width: 100%;
  }

  .modal-content h1 {
    font-size: 1.5rem;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }

  .modal-content h3 {
    font-size: 1rem;
  }

  footer h4 {
    font-size: 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  section {
    padding: 2rem 0;
  }

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

  section.hero p {
    font-size: 0.9rem;
  }

  header .navbar-brand {
    font-size: 1rem;
  }

  header .nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem !important;
  }
}
