@charset "UTF-8";

/* ==========================================================================
   VARIABLES & GLOBAL SETTINGS
   ========================================================================== */
:root {
  /* Spacing Scale (4, 8, 12, 16, 24, 40, 64) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  /* Colors (Soft Modern Aesthetic) */
  --color-bg: #f9faf8;
  --color-surface: #ffffff;
  --color-surface-hover: #f4f6f4;
  --color-text-main: #2c3e50;
  --color-text-muted: #596b7d;
  --color-primary: #2b5c46;
  --color-primary-hover: #1e4232;
  --color-accent: #6db38f;
  --color-error: #d32f2f;
  --color-error-bg: #ffebee;
  --color-border: #e2e8f0;

  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Radii & Shadows (Soft Modern) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-micro: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-base: 0.3s ease-out;
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility & Focus */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Media & Images */
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .brand-name, .nav-link, th, td, a {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-24);
  color: var(--color-primary);
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: var(--space-16);
  color: var(--color-primary);
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: var(--space-16);
}

p {
  margin-bottom: var(--space-16);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--color-primary-hover);
}

ul, ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

li {
  margin-bottom: var(--space-8);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
  min-width: 0;
}

.section {
  padding: var(--space-64) 0;
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  background-color: var(--color-primary);
  color: var(--color-surface);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  min-width: 0;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

.btn-small {
  padding: var(--space-8) var(--space-16);
  font-size: 0.875rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 102;
  min-width: 0;
}

.brand-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
}

.brand-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.header-cta {
  z-index: 102;
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
  z-index: 102;
  color: var(--color-text-main);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-40);
    padding: var(--space-24);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
    z-index: 101;
  }

  .nav-container.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav {
    flex-direction: column;
    text-align: center;
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-bg) 0%, #eef5f0 100%);
  padding: var(--space-64) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-40);
}

/* ==========================================================================
   CARDS (Horizontal Split)
   ========================================================================== */
.guides-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
}

.card-split {
  display: flex;
  flex-direction: row;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.card-split:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
  color: inherit;
}

.card-media {
  flex: 0 0 40%;
  min-width: 0;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.card-content {
  flex: 1;
  padding: var(--space-40);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

.tag {
  background-color: var(--color-bg);
  color: var(--color-primary);
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-16);
  color: var(--color-primary);
}

.card-excerpt {
  color: var(--color-text-muted);
  margin-bottom: var(--space-24);
  flex-grow: 1;
}

.card-cta {
  align-self: flex-start;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
}

.card-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-base);
}

.card-split:hover .card-cta svg {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .card-split {
    flex-direction: column;
  }
  .card-media {
    flex: none;
    height: 200px;
  }
  .card-content {
    padding: var(--space-24);
  }
}

/* ==========================================================================
   ARTICLE / PAGE CONTENT
   ========================================================================== */
.article-header {
  text-align: center;
  padding: var(--space-64) 0 var(--space-40);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-surface);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-64) var(--space-24);
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-micro);
  margin-top: -32px;
  position: relative;
  z-index: 10;
}

.article-content h2 {
  margin-top: var(--space-40);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: var(--space-40) 0;
  box-shadow: var(--shadow-micro);
}

/* Statistics Block */
.stat-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-12);
  background-color: var(--color-bg);
  padding: var(--space-24);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Tables for Legal/Specs */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--space-24);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background-color: var(--color-bg);
  font-weight: 600;
  color: var(--color-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   FORMS & CONTACT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-64);
  align-items: start;
}

@media (max-width: 767px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-40);
  }
}

.form-group {
  margin-bottom: var(--space-24);
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: var(--space-8);
  font-weight: 600;
  color: var(--color-text-main);
}

.form-control {
  padding: var(--space-16);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-bg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 92, 70, 0.1);
  background-color: var(--color-surface);
}

.form-control.is-invalid {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

.form-error-msg {
  display: none;
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: var(--space-8);
}

.is-invalid + .form-error-msg {
  display: block;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: var(--space-24);
  background-color: #e8f5e9;
  color: #2e7d32;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-24);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* Static Map Block */
.static-map-wrapper {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-micro);
  overflow: hidden;
}

.static-map {
  width: 100%;
  height: 250px;
  background: 
    linear-gradient(90deg, rgba(43, 92, 70, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(0deg, rgba(43, 92, 70, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-pin {
  width: 48px;
  height: 48px;
  fill: var(--color-error);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transform: translateY(-12px);
}

.contact-details {
  padding: var(--space-40);
}

.contact-details h3 {
  color: var(--color-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-64) 0 var(--space-40);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: var(--space-16);
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-8);
}

.footer-links a {
  text-decoration: none;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: var(--space-24);
  right: var(--space-24);
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  z-index: 9999;
  
  /* Hidden by default, JS adds .is-visible if consent is absent */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-8);
}

.cookie-content p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

@media (max-width: 400px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: none;
    max-width: none;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}

/* Utilities for layout shifts */
[hidden] {
  display: none !important;
}