/* --- Fonts & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

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

/* --- Root Variables & Base Styles --- */
:root {
  --primary-color: #1A2A4A;
  --accent-color: #6A8BAA;
  --bg-light: #F8F8F8;
  --text-dark: #333333;
  --text-muted: #666;
  --border-color: #e0e0e0;

  --font-family: 'Source Sans Pro', sans-serif;
  --header-height: 80px;

  --spacing-xs: 4px;
  --spacing-s: 8px;
  --spacing-m: 16px;
  --spacing-l: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;
  --section-padding: clamp(80px, 10vw, 120px);
}

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

body {
  font-family: var(--font-family);
  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-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
p { margin-bottom: var(--spacing-m); }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.btn {
  display: inline-block;
  padding: var(--spacing-m) var(--spacing-xl);
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: var(--spacing-l);
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  padding: var(--spacing-s) 0;
  position: relative;
}

.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);
}

.mobile-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
}

/* --- Hero Section (Editorial Style) --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

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

.hero h1 {
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-l);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 650px;
}

.hero-bg-image {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 400px;
  height: 600px;
  object-fit: cover;
  filter: grayscale(100%) contrast(120%);
  opacity: 0.15;
  z-index: 1;
}

/* --- Page Specific Hero --- */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: white;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--primary-color);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  opacity: 0.2;
  z-index: -2;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--primary-color);
  opacity: 0.7;
  z-index: -1;
}

.page-hero h1 {
  color: white;
}

/* --- Editorial/Article Content style --- */
.article-content {
  padding: var(--section-padding) 0;
}

.article-body {
  max-width: 750px;
  margin: 0 auto;
}

.article-body h2 {
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-l);
}

.article-body blockquote {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--primary-color);
  margin: var(--spacing-xxl) 0;
  padding-left: var(--spacing-l);
  border-left: 3px solid var(--accent-color);
}

/* --- Values/Approach Section --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.value-card {
  padding: var(--spacing-l);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.value-card-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-m);
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-s);
}

/* --- Article Listing --- */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.article-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.article-card-content {
  padding: var(--spacing-l);
}
.article-card h3 {
  margin-bottom: var(--spacing-s);
}
.article-card-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-m);
}

.article-card-link {
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
}

.text-link {
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-color), var(--accent-color));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}

.text-link:hover {
    background-size: 100% 2px;
}

/* --- About Page --- */
.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}
@media (min-width: 992px) {
  .about-section {
    grid-template-columns: 2fr 3fr;
  }
  .about-section.reverse {
    grid-template-columns: 3fr 2fr;
  }
}

.about-image img {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: grayscale(1);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxxl);
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-l);
}
.contact-info-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: var(--spacing-m);
  width: 24px;
  text-align: center;
}
.contact-form .form-group {
  margin-bottom: var(--spacing-l);
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-s);
}
.contact-form .form-control {
  width: 100%;
  padding: var(--spacing-m);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 1rem;
}
.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: var(--spacing-xxxl);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Thank You Page --- */
.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%;
  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;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  font-size: 0.9rem;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xxl);
}
.footer-about h4, .footer-links h4, .footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-l);
  color: #fff;
}
.footer-about p {
  color: rgba(255, 255, 255, 0.8);
}
.footer-links ul li {
  margin-bottom: var(--spacing-s);
}
.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}
.footer-links ul li a:hover {
  color: #fff;
}
.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
}
.footer-contact a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-l);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 42, 74, 0.95);
  color: white;
  padding: var(--spacing-l);
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-l);
  z-index: 9999;
  backdrop-filter: blur(5px);
  text-align: center;
}

#cookie-banner p {
  margin: 0;
  max-width: 600px;
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-m);
}

.cookie-btn {
  padding: var(--spacing-s) var(--spacing-l);
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid white;
  background: transparent;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background: white;
  color: var(--primary-color);
}
.cookie-btn.accept:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}
.cookie-btn.decline:hover {
    background: rgba(255,255,255,0.1);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding-top: var(--spacing-xxxl);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: block;
  }
  #cookie-banner {
    flex-direction: column;
  }
  .map-container {
    height: 350px;
  }
  .hero-bg-image {
    opacity: 0.05;
    width: 80%;
    right: -20%;
  }
}