/* --- Root Variables & Reset --- */
:root {
  --primary-color: #1A2A4A;
  --accent-color: #6A8BAA;
  --bg-light: #F8F8F8;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --border-color: #DDDDDD;
  --monospace-font: 'Source Code Pro', monospace;
  --sans-serif-font: 'Open Sans', sans-serif;
  --section-padding: clamp(4rem, 8vw, 6rem);
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--monospace-font);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1rem; }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { text-decoration: underline; color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header & Navigation --- */
.main-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--monospace-font);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.nav-links a.active, .nav-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.mobile-menu-toggle .hamburger-icon {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu-toggle .line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  text-align: center;
  padding: 4rem 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--primary-color);
  opacity: 0.7;
  filter: saturate(0);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}
.page-title {
  min-height: 30vh;
}

/* --- General Section Styling --- */
.section {
  padding: var(--section-padding) 0;
  border-bottom: 1px solid var(--border-color);
}
.section:last-of-type {
  border-bottom: none;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  margin-bottom: 0.5rem;
}
.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

/* --- Brutalist/Institutional Components --- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.value-card {
  border: 1px solid var(--border-color);
  padding: 2rem;
  background-color: #fff;
}
.value-card svg{
  width: 40px;
  height: 40px;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.article-card {
  border: 1px solid var(--border-color);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}
.article-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(0);
}
.article-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.article-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.article-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1rem;
  font-family: var(--monospace-font);
}
.article-content p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.read-more-link {
  font-family: var(--monospace-font);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}
.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.article-body blockquote {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
}
.article-body ol, .article-body ul {
    list-style-position: inside;
    margin-left: 1rem;
    margin-bottom: 1rem;
}
.article-body ol li {
    list-style-type: decimal;
}
.article-body ul li {
    list-style-type: disc;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-block ul li {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-info-block svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 5px;
}
.form-field {
  margin-bottom: 1.5rem;
}
.form-field label {
  display: block;
  font-family: var(--monospace-font);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background-color: #fff;
  font-family: var(--sans-serif-font);
  font-size: 1rem;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-color);
  border-color: var(--accent-color);
}
.form-submit-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  font-family: var(--monospace-font);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.form-submit-btn:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  text-decoration: none;
}
.map-container {
  width: 100%;
  height: 450px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-top: 3rem;
}
.map-container iframe { width: 100%; height: 100%; border:0; }

/* --- Legal & Thank You Pages --- */
.legal-content h3{ margin-top: 2rem; margin-bottom: 1rem; }
.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(--primary-color);
  border-radius: 50%;
  border: 5px solid var(--bg-light);
  box-shadow: 0 0 0 1px var(--border-color);
  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: #666; max-width: 600px; margin-bottom: 30px; }
.back-home-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-family: var(--monospace-font);
  text-transform: uppercase; font-weight: bold;
  letter-spacing: 1px;
}
.back-home-btn:hover {
    background-color: var(--accent-color);
    text-decoration: none;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h3 {
  font-family: var(--monospace-font);
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-col a,
.footer-col p {
  color: rgba(255, 255, 255, 0.8);
}
.footer-col a:hover {
  color: var(--text-light);
  text-decoration: underline;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Cookie Banner --- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 42, 74, 0.95);
  color: var(--text-light);
  padding: 1.5rem;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text {
  flex-grow: 1;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--text-light);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  font-family: var(--monospace-font);
  font-weight: bold;
  transition: all 0.3s ease;
}
.cookie-btn.accept {
  background: var(--text-light);
  color: var(--primary-color);
}
.cookie-btn:hover {
  opacity: 0.8;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu-toggle.active .line1 {
    transform: rotate(-45deg) translate(-7px, 7px);
  }
  .mobile-menu-toggle.active .line2 {
    opacity: 0;
  }
  .mobile-menu-toggle.active .line3 {
    transform: rotate(45deg) translate(-7px, -7px);
  }
  .hero { min-height: 60vh; }
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}