@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

:root {
  --primary-color: #1A345A;
  --accent-color: #697B8C;
  --background-color: #F5F7F9;
  --text-color: #333333;
  --light-text-color: #FFFFFF;
  --border-color: #E0E0E0;
  --font-family: 'Lato', sans-serif;
  --section-padding: clamp(4rem, 8vw, 6rem);
  --container-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

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

/* --- Header & Navigation --- */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-color);
}

.nav-links .dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 240px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 1;
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  display: block;
  white-space: nowrap;
  font-weight: 400;
}

.dropdown-content a:hover {
  background-color: var(--background-color);
}

.dropdown-content a::after {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-nav-toggle .icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--section-padding) 0;
  background-size: cover;
  background-position: center;
  color: var(--light-text-color);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 52, 90, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  color: var(--light-text-color);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: 0.9;
}

/* --- General Content Sections --- */
.content-section {
  padding: var(--section-padding) 0;
}

.content-section.bg-light {
  background-color: #fff;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.content-image {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card h3 {
  margin-bottom: 1rem;
}

.card p {
  flex-grow: 1;
}

.card a.read-more {
  font-weight: 700;
  color: var(--primary-color);
}

/* --- Article Page --- */
.article-page {
  padding: var(--section-padding) 0;
  background-color: #fff;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.article-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.descriptive-schema {
    border: 2px dashed var(--accent-color);
    background-color: var(--background-color);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    border-radius: 8px;
    font-style: italic;
    color: var(--accent-color);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 2fr 3fr;
  }
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-info strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.contact-info a {
  word-break: break-all;
}

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

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

.contact-form .form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.btn-submit {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background-color: #2c5a9a;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Footer --- */
.footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: var(--light-text-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-col p, .footer-col a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  display: block;
}

.footer-col a:hover {
  color: #fff;
}

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

.disclaimer-section {
  background-color: rgba(255,255,255,0.05); /* or use site's secondary color */
  padding: 1.5rem;
  margin: 0 -1.5rem 3rem -1.5rem;
  border-radius: 8px;
  text-align: left;
  line-height: 1.6;
  border: 1px solid var(--accent-color);
}
.disclaimer-section strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* --- Cookie Banner --- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 52, 90, 0.95);
  color: var(--light-text-color);
  padding: 1.5rem;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(5px);
}

.cookie-text {
  flex-grow: 1;
  max-width: 800px;
  font-size: 0.9rem;
}

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

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-btn-accept {
  background-color: #fff;
  color: var(--primary-color);
}
.cookie-btn-accept:hover {
  background-color: #e0e0e0;
}

.cookie-btn-decline {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cookie-btn-decline:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* --- Utility & Other Pages --- */
.legal-page, .thank-you-section, .not-found-section {
  padding: var(--section-padding) 0;
  background-color: #fff;
  min-height: 60vh;
}
.legal-content, .thank-you-content, .not-found-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2, .legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.thank-you-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}
.thank-you-icon svg { width: 40px; height: 40px; color: white; }
.thank-you-section h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.thank-you-section p { font-size: 1.2rem; color: var(--accent-color); max-width: 600px; margin-bottom: 30px; }
.btn-home {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 0.8rem 2rem;
  border-radius: 4px;
  font-weight: 700;
}

.not-found-section {
  text-align: center;
}
.not-found-section h1 {
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: 1;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 0;
  }
  .nav-links li {
      width: 100%;
  }
  .nav-links a {
      display: block;
      width: 100%;
      padding: 1rem 0;
      border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a::after {
      display: none;
  }
  .nav-links a.active {
      background-color: var(--background-color);
  }
  .dropdown:hover .dropdown-content {
      display: none;
  }
  .dropdown .dropdown-content {
      position: static;
      display: none;
      box-shadow: none;
      background: none;
      opacity: 1;
      transform: none;
      padding: 0 0 0 1rem;
  }
  .dropdown.open .dropdown-content {
      display: block;
  }
  .dropdown-content a {
      padding: 0.75rem 0;
      border-bottom: 1px solid var(--border-color);
  }

  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  .mobile-nav-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-nav-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .map-container {
    height: 350px;
  }
}