/* --- CSS RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Lato', 'Open Sans', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

/* --- CSS CUSTOM PROPERTIES --- */
:root {
  --primary-color: #0A1128;
  --accent-color: #6497B1;
  --background-color: #F5F5F5;
  --surface-color: #FFFFFF;
  --text-color: #333333;
  --text-muted: #555555;
  --border-color: #E0E0E0;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.section {
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
}

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

.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--surface-color);
  border: 2px solid var(--accent-color);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--surface-color);
  text-decoration: none;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration: none;
}

/* --- HEADER & NAVIGATION --- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.logo:hover {
  text-decoration: none;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-lg);
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  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);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-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: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 17, 40, 0.7); /* Deep navy blue with transparency */
}

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

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: white;
  margin-bottom: var(--spacing-sm);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.hero-page {
  min-height: 40vh;
}

/* --- FEATURES SECTION --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background-color: var(--surface-color);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  color: var(--accent-color);
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}
.feature-icon svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  stroke-width: 1.5;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

/* --- CONTENT SECTIONS --- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.content-layout.reverse {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .content-layout.reverse .content-text {
    order: 2;
  }
  .content-layout.reverse .content-image {
    order: 1;
  }
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/3;
  filter: grayscale(80%) brightness(0.95);
}

.content-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* --- ARTICLE/CARD LIST --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.article-card {
  background: var(--surface-color);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.article-card:hover {
  box-shadow: var(--shadow);
}


.article-card-content {
  padding: var(--spacing-lg);
}

.article-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.article-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.article-card p {
    color: var(--text-muted);
}

.article-card .read-more {
  display: inline-block;
  margin-top: var(--spacing-sm);
  font-weight: 700;
}

/* --- ARTICLE DETAIL PAGE --- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
}
.article-content h1, .article-content h2, .article-content h3 {
  margin-top: 2rem;
}
.article-content ul, .article-content ol {
    margin-left: 1.5rem;
}
.article-content img {
    border-radius: var(--border-radius);
    margin: var(--spacing-lg) 0;
    filter: grayscale(80%) brightness(0.95);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

.contact-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}
.contact-info-item a {
    color: var(--text-muted);
}
.contact-info-item a:hover {
    color: var(--accent-color);
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--surface-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(100, 151, 177, 0.3);
}

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

.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: var(--spacing-xl);
}

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

/* --- LEGAL & THANK YOU PAGE --- */
.static-page-content {
    max-width: 800px;
    margin: 0 auto;
}
.static-page-content h2 {
    margin-top: 2rem;
}

.thank-you-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-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(--text-muted);
  max-width: 600px;
  margin-bottom: 30px;
}
.thank-you-section .btn {
    text-decoration: none;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--primary-color);
  color: #a7b0c4;
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  font-size: 0.9rem;
}

.footer a {
  color: #a7b0c4;
  text-decoration: none;
}
.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.footer-column h4 {
  color: white;
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 0.6rem;
}
.footer-column p {
    margin-bottom: 0.6rem;
}


.footer-bottom {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-md);
  border-top: 1px solid #2e3b55;
  text-align: center;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 17, 40, 0.95);
  color: white;
  padding: var(--spacing-md);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  backdrop-filter: blur(5px);
}
#cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

#cookie-banner a {
    color: #a7b0c4;
    text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}
.cookie-buttons button {
  padding: 0.6em 1.2em;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
#accept-cookies {
  background-color: var(--accent-color);
  color: white;
}
#accept-cookies:hover {
  background-color: #7bb1cb;
}
#decline-cookies {
  background-color: transparent;
  color: white;
  border: 1px solid #a7b0c4;
}
#decline-cookies:hover {
    background-color: #a7b0c4;
    color: var(--primary-color);
}

/* --- GO TO TOP BUTTON --- */
#to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(20px);
}
#to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
#to-top:hover {
    background-color: var(--primary-color);
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
  }
}

@media (max-width: 767px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: var(--spacing-xxl) var(--spacing-lg);
    gap: var(--spacing-sm);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  
  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-toggle.open .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .mobile-menu-toggle.open .icon-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.open .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .content-layout, .content-layout.reverse {
    grid-template-columns: 1fr;
  }
  
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .map-container {
    height: 350px;
  }
}