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

:root {
  --color-primary: #0a2342;
  --color-white: #ffffff;
  --color-gray: #f2f4f7;
  --color-accent: #8c1c13;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --transition: all 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.narrow {
  max-width: 800px;
}

/* Header */
.site-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo a {
  text-decoration: none;
  color: var(--color-white);
}

.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-highlight {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 2px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gray);
}

.lang-switch a {
  color: var(--color-white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-white);
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
}

.lang-switch a:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a5c 100%);
  color: var(--color-white);
  padding: 6rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

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

/* Buttons */
.cta-button,
.cta-button-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button {
  background: var(--color-accent);
  color: var(--color-white);
}

.cta-button:hover {
  background: #a52219;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140, 28, 19, 0.3);
}

.cta-button-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cta-button-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.link-button {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.link-button:hover {
  text-decoration: underline;
}

/* Sections */
.intro-section,
.services-preview,
.faq-section,
.cta-section,
.page-header,
.content-section,
.form-section,
.services-detail,
.articles-section,
.team-section {
  /* Added .team-section to the sections list */
  padding: 4rem 0;
}

.intro-section,
.services-preview,
.content-section,
.services-detail,
.articles-section {
  background: var(--color-white);
}

.faq-section,
.team-section {
  /* Added .team-section to the gray background sections */
  background: var(--color-gray);
}

.cta-section {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.page-header {
  background: var(--color-gray);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  text-align: center;
}

.content-section h2,
.content-section h3 {
  text-align: left;
}

/* Services Grid */
.services-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-image-slot {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-gray);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.service-image-slot:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.service-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--color-text-light);
}

/* Services Detail */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  background: var(--color-gray);
  padding: 2.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
}

.service-item h3 {
  color: var(--color-primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.team-member {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--color-gray);
}

.faq-icon {
  transition: var(--transition);
  font-size: 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

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

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

/* Forms */
.contact-form {
  max-width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
}

.form-group.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.error-message {
  display: block;
  color: var(--color-accent);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--color-gray);
  padding: 2rem;
  border-radius: 8px;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.article-meta {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Values List */
.values-list {
  list-style: none;
  margin: 2rem 0;
}

.values-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.values-list li:last-child {
  border-bottom: none;
}

/* Disclaimer Box */
.disclaimer-box {
  background: var(--color-gray);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  margin-top: 2rem;
}

.disclaimer-box h3 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 2000;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.cookie-content p {
  margin: 0;
}

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

.cookie-buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

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

.btn-accept:hover {
  background: #a52219;
}

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

.btn-decline:hover {
  background: var(--color-gray);
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

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

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--color-white);
  text-align: left;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

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

/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .services-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

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

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
