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

:root {
  --primary-color: #1A2B4C;
  --accent-color: #6A8BAA;
  --background-color: #F7F7F7;
  --text-color: #333333;
  --text-light: #555;
  --white-color: #FFFFFF;
  --border-color: #e0e0e0;
  
  --font-family: 'Lato', 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;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(26, 43, 76, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-l);
}

section {
  padding: var(--spacing-xxxl) 0;
}

@media(min-width: 1024px) {
  section {
    padding: 100px 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: var(--spacing-m);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); text-align: center; margin-bottom: var(--spacing-xxl); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
p { margin-bottom: var(--spacing-m); color: var(--text-light); }
a { color: var(--accent-color); text-decoration: none; transition: color 0.3s ease; }
a:hover, a:focus { color: var(--primary-color); text-decoration: underline; }

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.desaturated-img {
  filter: grayscale(1) contrast(0.9) sepia(0.1);
  -webkit-filter: grayscale(1) contrast(0.9) sepia(0.1);
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

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

.nav-links {
  display: none;
  align-items: center;
  gap: var(--spacing-l);
}

.nav-links li a {
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  padding: var(--spacing-s) 0;
  position: relative;
}

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

.nav-links li a:hover::after,
.nav-links li a.active::after {
  transform: scaleX(1);
}

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

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background-color: var(--white-color);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  min-width: 250px;
  z-index: 1;
  padding: var(--spacing-s) 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 12px 20px;
  font-weight: 400;
  color: var(--text-color);
  white-space: nowrap;
}
.dropdown-content a:hover {
  background-color: var(--background-color);
  text-decoration: none;
}
.dropdown-content a::after { display: none !important; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-nav {
  display: block;
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--primary-color);
  padding: 100px var(--spacing-xl);
  transition: left 0.3s ease-in-out;
  z-index: 1050;
}

.mobile-nav.open {
  left: 0;
  box-shadow: 10px 0px 30px rgba(0,0,0,0.2);
}

.mobile-nav .nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-l);
}

.mobile-nav .nav-links li a {
  color: var(--white-color);
  font-size: 1.2rem;
}

.mobile-nav .dropdown-content { position: static; background: transparent; box-shadow: none; padding: 0; margin-left: var(--spacing-m); border-left: 2px solid var(--accent-color);}
.mobile-nav .dropdown:hover .dropdown-content { display: flex; flex-direction: column; gap: var(--spacing-xs); margin-top: var(--spacing-s); }
.mobile-nav .dropdown-content a { color: #ccc; }

.hamburger.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }


@media(min-width: 1024px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .mobile-nav { display: none; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: var(--white-color);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-color);
  opacity: 0.8;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-content h1 {
  color: var(--white-color);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--spacing-m) 0;
  background-color: #eef2f5;
  border-bottom: 1px solid var(--border-color);
}
.breadcrumbs a { color: var(--accent-color); }
.breadcrumbs span { color: var(--text-light); }

/* Content Sections */
.intro-section {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-color);
}
.intro-text {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

.grid-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
}
@media(min-width: 768px) {
  .grid-section {
    grid-template-columns: repeat(2, 1fr);
  }
}
.article-card {
  background: var(--white-color);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.article-card h3 {
  margin-bottom: var(--spacing-m);
}
.article-card a {
  font-weight: 700;
  display: inline-block;
  margin-top: var(--spacing-m);
  text-decoration: underline;
}

/* Article Page */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-color);
    padding: var(--spacing-xxxl);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.article-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-xl);
}

.article-content p, .article-content ul {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: var(--spacing-l);
    margin: var(--spacing-xl) 0;
    font-style: italic;
    color: var(--text-light);
}

.related-articles {
    margin-top: var(--spacing-xxxl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.related-articles h3 {
    margin-bottom: var(--spacing-l);
}

.related-articles ul li {
    margin-bottom: var(--spacing-s);
}

.content-image-wrapper {
  margin: var(--spacing-xxl) 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.content-image-wrapper img {
  width: 100%;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxxl);
}
@media(min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-m);
  margin-bottom: var(--spacing-l);
  font-size: 1.1rem;
}
.contact-info svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--primary-color);
}
.contact-info a { word-break: break-all; }

.contact-form .form-group {
  margin-bottom: var(--spacing-l);
}
.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--spacing-s);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px var(--spacing-m);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(106, 139, 170, 0.2);
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 14px var(--spacing-xl);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background-color: #2c4a85;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white-color);
}
.form-disclaimer {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: var(--spacing-m);
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--spacing-xxxl);
}
.map-container iframe { width: 100%; height: 100%; border: none; }
@media (max-width: 768px) {
  .map-container { height: 350px; border-radius: 8px; }
}

/* Footer */
.main-footer {
  background-color: var(--primary-color);
  color: #ccc;
  padding: var(--spacing-xxxl) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--spacing-xxl);
}
@media(min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-col h4 {
  color: var(--white-color);
  margin-bottom: var(--spacing-l);
  font-size: 1.2rem;
}
.footer-col ul li {
  margin-bottom: var(--spacing-s);
}
.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
}
.footer-col ul li a:hover {
  color: var(--white-color);
  text-decoration: underline;
}
.footer-contact-info p {
  margin-bottom: var(--spacing-s);
  color: #ccc;
}
.footer-bottom {
  border-top: 1px solid #2a3f68;
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xl);
  text-align: center;
  font-size: 0.9rem;
  color: #a0a8b9;
}

/* 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-light);
  max-width: 600px;
  margin-bottom: 30px;
}

/* Scroll to top */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow-md);
  transition: opacity 0.3s, transform 0.3s;
}
#scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}
#scroll-to-top.show {
    display: flex;
}
#scroll-to-top svg {
    width: 24px;
    height: 24px;
}

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

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
}
.cookie-text a { color: var(--accent-color); text-decoration: underline; }

.cookie-buttons {
  display: flex;
  gap: var(--spacing-m);
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s;
}
.cookie-accept {
  background-color: var(--accent-color);
  color: var(--white-color);
}
.cookie-accept:hover { background-color: #8ab0d4; }
.cookie-decline {
  background-color: transparent;
  color: #ccc;
  border: 1px solid #ccc;
}
.cookie-decline:hover { background-color: rgba(255,255,255,0.1); color: var(--white-color); }

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}