/* ---=== ROOT & GENERAL STYLES ===--- */
:root {
  --primary-color: #0D1B2A; /* Dark Navy Blue */
  --secondary-color: #415A77; /* Slate Blue */
  --accent-color: #E0E1DD; /* Light Gray/Off-White */
  --highlight-color: #D4A373; /* Muted Gold for accents */
  --text-color: #E0E1DD;
  --text-dark: #0D1B2A;
  --background-light: #F8F9FA;
  --background-dark: #1B263B;
  --border-color: rgba(224, 225, 221, 0.2);

  --font-family-sans: 'Inter', sans-serif;
  --font-family-serif: 'Lora', serif;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --spacing-xxl: 120px;

  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s ease;
}

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

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: 500;
  color: var(--accent-color);
  line-height: 1.3;
}

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: var(--spacing-md); max-width: 75ch; }
a { color: var(--highlight-color); text-decoration: none; transition: var(--transition-speed); }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
section { padding: var(--spacing-xxl) 0; overflow: hidden; }

.section-light {
    background-color: var(--background-light);
    color: var(--text-dark);
}
.section-light h1, .section-light h2, .section-light h3 {
    color: var(--primary-color);
}
.section-light .text-muted {
    color: #6c757d;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition-speed);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background-color: var(--highlight-color);
  color: var(--primary-color);
}
.btn-primary:hover {
  background-color: transparent;
  border-color: var(--highlight-color);
  color: var(--highlight-color);
}
.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}
.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.text-center { text-align: center; }
.text-muted { color: #A9B4C2; }
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
.section-header h2 {
    margin-bottom: var(--spacing-md);
}
.section-header p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ---=== HEADER & NAVIGATION ===--- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: var(--spacing-md) 0;
  background-color: rgba(13, 27, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-speed);
}
.main-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  width: 90%;
  margin: 0 auto;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  font-family: var(--font-family-serif);
}
.logo:hover {
  color: var(--highlight-color);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
}
.nav-links a {
  color: var(--accent-color);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--highlight-color);
  transition: var(--transition-speed);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav-toggle .icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 5px 0;
  transition: var(--transition-speed);
}

/* ---=== HERO SECTION ===--- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  background-image: url('https://images.pexels.com/photos/60130/pexels-photo-60130.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 27, 42, 0.8) 0%, rgba(13, 27, 42, 0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}
.hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  color: var(--accent-color);
}

/* ---=== FEATURES/FOCUS AREA GRID ===--- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}
.focus-card {
  background-color: var(--background-dark);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(65, 90, 119, 0.5);
  transition: var(--transition-speed);
}
.focus-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--highlight-color);
}
.focus-card .icon {
  width: 50px;
  height: 50px;
  margin-bottom: var(--spacing-md);
  color: var(--highlight-color);
}
.focus-card h3 {
  color: var(--accent-color);
  margin-bottom: var(--spacing-sm);
}

/* ---=== CONTENT SECTION (ALTERNATING) ===--- */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}
.content-section.reverse {
  grid-template-columns: 1fr 1fr;
}
.content-section.reverse .content-image {
  order: 1;
}
.content-section.reverse .content-text {
  order: 2;
}
.content-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* ---=== ARTICLES GRID ===--- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}
.article-card {
    background-color: var(--background-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
.article-card:hover {
    transform: translateY(-5px);
}
.article-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.article-card-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.article-card-content h3 {
    margin-bottom: var(--spacing-md);
}
.article-card-content p {
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}
.article-card-content a {
    font-weight: bold;
}

/* ---=== EXPERT COMMENTARY (TESTIMONIALS) ===--- */
.commentary-card {
    background-color: var(--secondary-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
}
.commentary-card blockquote {
    font-family: var(--font-family-serif);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    border: none;
    padding: 0;
}
.commentary-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}
.commentary-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--highlight-color);
}
.commentary-author-info strong {
    display: block;
    color: var(--accent-color);
}
.commentary-author-info span {
    color: var(--accent-color);
    opacity: 0.8;
}
.commentary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* ---=== DATA SOURCES ===--- */
.sources-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    filter: invert(90%) sepia(10%) saturate(100%) hue-rotate(180deg) brightness(100%) contrast(90%);
}
.sources-grid img {
    height: 40px;
    opacity: 0.7;
    transition: var(--transition-speed);
}
.sources-grid img:hover {
    opacity: 1;
}

/* ---=== FAQ SECTION ===--- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.section-light .faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: var(--spacing-md) 0;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: inherit;
}
.faq-question:hover {
    color: var(--highlight-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease;
    padding: 0 var(--spacing-md);
}
.faq-answer p {
    padding: var(--spacing-md) 0;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: var(--spacing-md);
}
.faq-icon {
    transition: transform var(--transition-speed);
    flex-shrink: 0;
    margin-left: 20px;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ---=== CONTACT PAGE ===--- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: flex-start;
}
.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}
.contact-info-item svg {
    width: 24px;
    height: 24px;
    color: var(--highlight-color);
}
a[href^="mailto:"] { color: var(--highlight-color); }
a[href^="mailto:"]:hover { text-decoration: underline; }
.contact-form .form-group {
    margin-bottom: var(--spacing-md);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--accent-color);
    opacity: 0.7;
}
.contact-form button {
    width: 100%;
}
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-xl);
  border: 1px solid var(--border-color);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---=== LEGAL & THANK YOU PAGES ===--- */
.legal-content, .thank-you-section {
    min-height: 70vh;
    padding: var(--spacing-xxl) 0;
}
.legal-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--highlight-color);
}
.legal-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.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(--highlight-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}
.thank-you-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary-color);
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.cookies-table thead {
  background: var(--secondary-color);
  color: var(--accent-color);
}
.cookies-table th,
.cookies-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.section-light .cookies-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.03); }
.section-light .cookies-table tbody tr:hover { background: rgba(0,0,0,0.06); }
.section-light .cookies-table {
    border: 1px solid rgba(0,0,0,0.1);
}
.section-light .cookies-table th, .section-light .cookies-table td {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.section-light .cookies-table thead {
    background-color: var(--primary-color);
    color: var(--accent-color);
}


/* ---=== FOOTER ===--- */
.main-footer {
  background-color: var(--primary-color);
  padding: var(--spacing-xl) 0 0;
  border-top: 4px solid var(--highlight-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.footer-col h4 {
  color: var(--highlight-color);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-sans);
  font-weight: 700;
}
.footer-col a, .footer-col p {
  color: var(--accent-color);
  opacity: 0.8;
  margin-bottom: var(--spacing-sm);
  display: block;
}
.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}
.disclaimer-section {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--accent-color);
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid var(--border-color);
}
.disclaimer-section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--highlight-color);
  font-size: 0.9rem;
}
.footer-bottom {
  text-align: center;
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-color);
  margin-top: var(--spacing-lg);
}

/* ---=== COOKIE BANNER ===--- */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(5px);
  color: var(--accent-color);
  padding: var(--spacing-md);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}
.cookie-text {
  flex-grow: 1;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-shrink: 0;
}
.cookie-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
}
#cookie-accept {
  background-color: var(--highlight-color);
  color: var(--primary-color);
}
#cookie-decline {
  background-color: var(--secondary-color);
  color: var(--accent-color);
}

/* ---=== RESPONSIVE DESIGN ===--- */
@media (max-width: 1024px) {
  .content-section, .content-section.reverse {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  .content-section.reverse .content-image {
    order: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 73px; /* Header height */
    left: -100%;
    width: 100%;
    height: calc(100vh - 73px);
    background-color: var(--background-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-speed);
    gap: var(--spacing-xl);
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    font-size: 1.5rem;
  }
  .mobile-nav-toggle {
    display: block;
    z-index: 1001;
  }
  .mobile-nav-toggle.open .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-nav-toggle.open .icon-bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.open .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
  .map-container { height: 350px; }
  section { padding: var(--spacing-xl) 0; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .cookies-table { display: block; overflow-x: auto; white-space: nowrap; }
}