:root {
  /* Primary Palette */
  --c-midnight: #252936;
  --c-petrol: #385A61;
  --c-mint: #73CFC1;
  --c-sky: #A9CBD4;
  --c-lavender: #B9B4D3;
  --c-amber: #D99A69;
  --c-sage: #AABBAA;
  --c-cream: #F5F2EA;
  --c-mist: #DDE0DC;
  --c-graphite: #343740;
  
  /* Spacing */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-40: 40px;
  --sp-64: 64px;
  --sp-80: 80px;
  --sp-120: 120px;

  /* Fonts & Shadows */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --shadow-sm: 0 2px 8px rgba(37, 41, 54, 0.04);
  --shadow-md: 0 8px 24px rgba(37, 41, 54, 0.08);
  --shadow-lg: 0 16px 40px rgba(37, 41, 54, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-midnight);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; margin-bottom: var(--sp-24); }
h2 { font-size: 2rem; margin-bottom: var(--sp-24); }
h3 { font-size: 1.5rem; margin-bottom: var(--sp-16); }
p { margin-bottom: var(--sp-16); overflow-wrap: anywhere; }
a { color: var(--c-petrol); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; overflow-wrap: anywhere; }
a:hover { color: var(--c-mint); }
a:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 4px; border-radius: 2px; }
ul, ol { margin-bottom: var(--sp-24); padding-left: var(--sp-24); }
li { margin-bottom: var(--sp-8); }

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

section {
  padding: var(--sp-80) 0;
}

/* Header */
.site-header {
  background-color: var(--c-cream);
  border-bottom: 1px solid rgba(52, 55, 64, 0.1);
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-weight: 700;
  color: var(--c-midnight);
  font-size: 1.125rem;
}

.brand svg {
  width: 24px;
  height: 24px;
}

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

.nav-links {
  display: flex;
  gap: var(--sp-24);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--c-graphite);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a[aria-current="page"] {
  color: var(--c-midnight);
  font-weight: 700;
  border-bottom: 2px solid var(--c-mint);
}

.btn-contact-compact {
  background-color: var(--c-midnight);
  color: var(--c-cream);
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.btn-contact-compact:hover {
  background-color: var(--c-petrol);
  color: var(--c-cream);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-8);
}
.mobile-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--c-midnight);
}

/* Hero Section */
.hero {
  background-color: var(--c-mist);
  padding: var(--sp-120) 0 var(--sp-80);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(115, 207, 193, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.editorial-label {
  display: inline-block;
  background: var(--c-lavender);
  color: var(--c-midnight);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-24);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--c-graphite);
  margin-bottom: var(--sp-32);
}

.hero-actions {
  display: flex;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-24);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--c-petrol);
  color: var(--c-cream);
}
.btn-primary:hover {
  background-color: var(--c-midnight);
  color: var(--c-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-midnight);
  border: 1px solid var(--c-graphite);
}
.btn-secondary:hover {
  background-color: rgba(52, 55, 64, 0.05);
}

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.production-metadata {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  padding: var(--sp-16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.metadata-item {
  display: flex;
  flex-direction: column;
}
.metadata-label {
  font-size: 0.75rem;
  color: var(--c-graphite);
  text-transform: uppercase;
}
.metadata-value {
  font-weight: 600;
  color: var(--c-midnight);
}

/* Glass Card Grid */
.services-section {
  background-color: var(--c-cream);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-64);
  margin-top: var(--sp-40);
}

/* STRICT GLASS CARD STRUCTURE */
.glass-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.glass-card-image-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-32); /* STRICT 32px GAP */
  background-color: var(--c-mist);
  box-shadow: var(--shadow-sm);
}

.glass-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.glass-card:hover .glass-card-img {
  transform: scale(1.03);
}

.glass-content-panel {
  background: rgba(245, 242, 234, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  padding: var(--sp-24);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.8rem;
  color: var(--c-petrol);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--sp-12);
  display: block;
}

.glass-content-panel h3 {
  margin-bottom: var(--sp-12);
}

.glass-content-panel p {
  color: var(--c-graphite);
  margin-bottom: var(--sp-24);
  flex-grow: 1;
}

.card-meta {
  display: flex;
  gap: var(--sp-16);
  margin-bottom: var(--sp-24);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid rgba(52, 55, 64, 0.1);
}

.card-meta span {
  font-size: 0.85rem;
  color: var(--c-midnight);
  font-weight: 500;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  color: var(--c-petrol);
  font-weight: 600;
}
.card-cta::after {
  content: "→";
  margin-left: var(--sp-8);
  transition: transform 0.2s ease;
}
.glass-card:hover .card-cta::after {
  transform: translateX(4px);
}

/* Text Sections */
.supporting-section {
  background-color: var(--c-mist);
  position: relative;
}

.supporting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
}

.diagram-block {
  background: var(--c-cream);
  border-radius: var(--radius-lg);
  padding: var(--sp-40);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.diagram-row {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.diagram-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-mint);
}
.diagram-dot.alt { background: var(--c-sky); }
.diagram-dot.amber { background: var(--c-amber); }

.diagram-line {
  flex-grow: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--c-graphite) 0, var(--c-graphite) 4px, transparent 4px, transparent 8px);
  opacity: 0.3;
}

/* Interior Pages */
.page-header {
  background-color: var(--c-midnight);
  color: var(--c-cream);
  padding: var(--sp-80) 0;
  text-align: center;
}
.page-header h1 {
  color: var(--c-cream);
  margin-bottom: var(--sp-16);
}
.page-header p {
  color: var(--c-sky);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.content-section {
  padding: var(--sp-80) 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sp-64);
}

.main-article h2 {
  margin-top: var(--sp-40);
  color: var(--c-petrol);
}

.main-article h3 {
  margin-top: var(--sp-32);
}

.main-article p {
  font-size: 1.05rem;
  color: var(--c-graphite);
}

.main-article ul {
  margin-bottom: var(--sp-24);
  font-size: 1.05rem;
  color: var(--c-graphite);
}

.main-article li {
  margin-bottom: var(--sp-12);
  padding-left: var(--sp-8);
}

.sidebar {
  position: sticky;
  top: var(--sp-32);
}

.sidebar-widget {
  background: var(--c-mist);
  padding: var(--sp-32);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-32);
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-16);
}

.sidebar-list {
  list-style: none;
  padding: 0;
}

.sidebar-list li {
  margin-bottom: var(--sp-12);
}

.sidebar-list a {
  color: var(--c-midnight);
  font-weight: 500;
  display: block;
  padding: var(--sp-8) var(--sp-12);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.sidebar-list a:hover {
  background: rgba(255,255,255,0.5);
  color: var(--c-petrol);
}

.table-responsive {
  overflow-x: auto;
  margin: var(--sp-32) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: var(--sp-16);
  border-bottom: 1px solid rgba(52, 55, 64, 0.1);
}

th {
  background-color: var(--c-mist);
  font-weight: 600;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
}

.form-group {
  margin-bottom: var(--sp-24);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--sp-8);
  color: var(--c-midnight);
}

.form-control {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  border: 1px solid var(--c-sage);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-midnight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-petrol);
  box-shadow: 0 0 0 3px rgba(56, 90, 97, 0.1);
}

.form-control.is-invalid {
  border-color: #d9534f;
}

.error-message {
  display: none;
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: var(--sp-4);
}
.form-control.is-invalid + .error-message {
  display: block;
}

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

.form-success {
  display: none;
  background: rgba(115, 207, 193, 0.2);
  border: 1px solid var(--c-mint);
  padding: var(--sp-24);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-24);
}
.form-success.is-visible {
  display: block;
}

.contact-info-card {
  background: var(--c-mist);
  padding: var(--sp-40);
  border-radius: var(--radius-lg);
}

.contact-info-card h3 {
  margin-bottom: var(--sp-24);
}

.info-item {
  margin-bottom: var(--sp-16);
}
.info-item strong {
  display: block;
  color: var(--c-petrol);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.static-map {
  margin-top: var(--sp-32);
  width: 100%;
  height: 200px;
  background: var(--c-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-sage);
  position: relative;
  overflow: hidden;
}

.static-map::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(169, 203, 212, 0.2) 10px, rgba(169, 203, 212, 0.2) 20px);
}
.static-map-marker {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  background: var(--c-amber);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}

/* Footer */
.site-footer {
  background-color: var(--c-midnight);
  color: var(--c-cream);
  padding: var(--sp-64) 0 var(--sp-32);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-64);
  margin-bottom: var(--sp-64);
}

.footer-col h4 {
  color: var(--c-mint);
  margin-bottom: var(--sp-24);
  font-size: 1.1rem;
}

.footer-col p {
  color: var(--c-sky);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: var(--sp-12);
}
.footer-links a {
  color: var(--c-sky);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--c-mint);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-sky);
}

.footer-bottom a {
  color: var(--c-amber);
  font-weight: 600;
}
.footer-bottom a:hover {
  color: var(--c-cream);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(37, 41, 54, 0.95);
  backdrop-filter: blur(10px);
  color: var(--c-cream);
  padding: var(--sp-24);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-24);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1 1 300px;
  font-size: 0.9rem;
  color: var(--c-sky);
}
.cookie-text p {
  margin: 0;
}

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

.btn-cookie {
  padding: var(--sp-8) var(--sp-16);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.btn-cookie[data-cookie-choice="accept"] {
  background: var(--c-mint);
  color: var(--c-midnight);
}
.btn-cookie[data-cookie-choice="accept"]:hover {
  background: #fff;
}

.btn-cookie[data-cookie-choice="reject"] {
  background: transparent;
  color: var(--c-cream);
  border: 1px solid var(--c-graphite);
}
.btn-cookie[data-cookie-choice="reject"]:hover {
  background: rgba(255,255,255,0.1);
}

.btn-cookie[data-cookie-choice="preferences"] {
  background: transparent;
  color: var(--c-sky);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-top: var(--sp-40); }
  .production-metadata { bottom: 24px; left: 24px; }
}

@media (max-width: 768px) {
  .site-header { height: 52px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--c-cream);
    flex-direction: column;
    padding: var(--sp-24);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(52, 55, 64, 0.1);
  }
  .nav-links.is-active {
    display: flex;
  }
  .btn-contact-compact { display: none; }
  .mobile-toggle { display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-32); }
  .contact-grid { grid-template-columns: 1fr; }
  .supporting-grid { grid-template-columns: 1fr; }
  
  .glass-card-image-wrap { margin-bottom: var(--sp-24); } /* Responsive gap, but strictly maintained separation */
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 400px) {
  .hero { padding: var(--sp-64) 0 var(--sp-40); }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .glass-card-img { height: 200px; }
  .production-metadata { display: none; /* Simplify on tiny screens to avoid overlap */ }
}

@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;
  }
}