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

:root {
  --color-primary: #0A2240; /* Deep Navy Blue */
  --color-secondary: #4A6C8C; /* Muted Blue */
  --color-accent: #6B8EAD; /* Soft Institutional Blue */
  --color-background: #F4F6F8; /* Neutral Light Grey */
  --color-surface: #FFFFFF;
  --color-text: #333333; /* Neutral Dark Grey */
  --color-text-muted: #6c757d;
  --font-family-base: 'Roboto', 'system-ui', sans-serif;
  --spacing-unit: 8px;
  --border-radius: 6px;
  --header-height: 80px;
}

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 calc(var(--spacing-unit) * 3);
}

.section {
  padding: calc(var(--spacing-unit) * 10) 0;
}
.section-alt {
    background-color: var(--color-surface);
}
.section-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-unit) * 6);
}

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

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

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
  padding: calc(var(--spacing-unit) * 2) 0;
  border-bottom: 2px solid transparent;
}
.nav-links a.active, .nav-links a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  position: relative;
  transition: transform 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-toggle .hamburger::before { top: -8px; }
.menu-toggle .hamburger::after { top: 8px; }

.nav-open .menu-toggle .hamburger {
  transform: rotate(45deg);
}

.nav-open .menu-toggle .hamburger::before {
  top: 0;
  transform: rotate(90deg);
}
.nav-open .menu-toggle .hamburger::after {
  top: 0;
  transform: rotate(90deg);
}


/* --- Breadcrumbs --- */
.breadcrumbs {
    background-color: var(--color-background);
    padding: calc(var(--spacing-unit) * 2) 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}
.breadcrumbs ul {
    display: flex;
    gap: var(--spacing-unit);
    color: var(--color-text-muted);
}
.breadcrumbs a {
    color: var(--color-accent);
}
.breadcrumbs li:not(:last-child)::after {
    content: '>';
    margin-left: var(--spacing-unit);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-content h1 {
  color: white;
  font-weight: 300;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

/* --- Content & Card Styles --- */
.content-section {
  max-width: 800px;
  margin: auto;
}
.content-section p, .content-section ul, .content-section ol {
    font-size: 1.1rem;
    color: var(--color-text);
}
.content-section ul {
    list-style: disc;
    padding-left: 25px;
}
.content-section blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--color-secondary);
}

.card-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 4);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card-content {
    padding: calc(var(--spacing-unit) * 3);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.card-content a {
    margin-top: auto;
    font-weight: 500;
}
.card-content a::after {
    content: ' →';
}

/* Image styling */
.content-image {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    filter: saturate(0.5) brightness(0.95);
    margin: calc(var(--spacing-unit) * 4) 0;
}

/* Hexagon Grid */
.hexagon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: calc(var(--spacing-unit) * 5);
    margin-top: calc(var(--spacing-unit) * 6);
}
.hexagon {
    position: relative;
    width: 100%;
    padding-bottom: 115.47%; /* Aspect ratio of a hexagon */
    background-color: var(--color-surface);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
}
.hexagon:hover {
    background-color: #e9eff5;
}
.hexagon-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}
.hexagon-content i {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: var(--spacing-unit);
}
.hexagon-content h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
}


/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 6);
    align-items: flex-start;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 500;
    margin-bottom: var(--spacing-unit);
}
.form-group input, .form-group textarea {
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(107, 142, 173, 0.2);
}
.contact-info p {
    margin-bottom: var(--spacing-unit);
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}
.contact-info i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}
.form-notice {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: #f0f0f0;
    padding: var(--spacing-unit);
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
}
.submit-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}
.submit-btn:hover {
    background-color: var(--color-secondary);
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}
.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(--color-primary);
  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 p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 30px;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--color-primary);
  color: #a9b8c7;
  padding: calc(var(--spacing-unit) * 6) 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
}
.footer-col h4 {
  color: white;
  margin-bottom: var(--spacing-unit) * 2;
  font-weight: 500;
}
.footer-col a {
  color: #a9b8c7;
}
.footer-col a:hover {
  color: white;
}
.footer-col p, .footer-col ul {
    margin: 0;
}
.footer-col ul li {
    margin-bottom: var(--spacing-unit);
}
.footer-bottom {
  border-top: 1px solid var(--color-secondary);
  margin-top: calc(var(--spacing-unit) * 4);
  padding-top: calc(var(--spacing-unit) * 2);
  text-align: center;
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 34, 64, 0.95);
  color: white;
  padding: calc(var(--spacing-unit) * 3);
  display: none; /* Initially hidden */
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 3);
  z-index: 9999;
  backdrop-filter: blur(5px);
}
.cookie-text {
  flex-grow: 1;
  font-size: 0.9rem;
}
.cookie-buttons {
  display: flex;
  gap: var(--spacing-unit) * 2;
  flex-shrink: 0;
}
.cookie-btn {
  background: none;
  border: 1px solid var(--color-accent);
  color: white;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.cookie-btn#accept-cookies {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: bold;
}
#cookie-banner a {
    color: var(--color-surface);
    text-decoration: underline;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--color-surface);
    flex-direction: column;
    padding-top: calc(var(--header-height) + 20px);
    padding-left: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .nav-open .nav-links {
    transform: translateX(0);
  }
  .menu-toggle {
    display: block;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .map-container {
    height: 350px;
    border-radius: 8px;
  }
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
}