/* Base Variables & Theme */
:root {
  --bg-canvas: #0d2a33; /* Petrol base */
  --bg-surface: #173c46; /* Lighter petrol surface */
  --text-primary: #e0f2f1; /* Off-white / light teal */
  --text-muted: #95b8b7; /* Dimmed teal for secondary text */
  --accent-primary: #ff6f59; /* Coral */
  --accent-hover: #fa5c45;
  --border-subtle: rgba(224, 242, 241, 0.15);
  --panel-bg: rgba(23, 60, 70, 0.75);
  
  --font-base: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --transition: all 0.25s ease;
  
  --max-width: 1100px;
  --header-height: 64px;
}

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

html {
  lang: en;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 8px 16px;
  z-index: 1000;
  font-weight: bold;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.5rem; }
a { color: var(--accent-primary); text-decoration: none; transition: var(--transition); }

.text-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-thickness: 4px;
}

/* Layout Bands */
.band-petrol {
  background-color: var(--bg-canvas);
  padding: 5rem 1.5rem;
  width: 100%;
}
.band-coral {
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 5rem 1.5rem;
  width: 100%;
}
.band-coral h2, .band-coral h3, .band-coral p, .band-coral .text-muted {
  color: var(--bg-canvas);
}
.band-coral .text-link {
  color: var(--bg-canvas);
  text-decoration-color: var(--bg-canvas);
}
.band-coral .card-translucent {
  background-color: rgba(13, 42, 51, 0.1);
  border-color: rgba(13, 42, 51, 0.2);
}
.band-coral .card-translucent p {
  color: var(--bg-canvas);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header & Nav */
.site-header {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 1.5rem;
  position: relative; /* Not sticky */
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.desktop-nav {
  display: none;
  flex-grow: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 992px) {
  .desktop-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

.nav-group {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-group a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-group a:hover {
  color: var(--accent-primary);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.mobile-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}
.mobile-dropdown[hidden] {
  display: none;
}
.mobile-dropdown a {
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 0;
  display: block;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-dropdown a:last-child {
  border-bottom: none;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-canvas) !important;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  min-width: 44px;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(13, 42, 51, 0.4), rgba(13, 42, 51, 0.95));
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}
.hero-content h1 {
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Page Header (Internal Pages) */
.page-header {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1 {
  max-width: 800px;
  margin: 0 auto;
}

/* Cards & Components */
.card-translucent {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Card Variations */
.card-featured {
  width: 100%;
  margin-bottom: 3rem;
}
.card-featured img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.card-featured .card-body {
  padding: 3rem;
}

@media (max-width: 768px) {
  .card-featured img { aspect-ratio: 16/9; }
  .card-featured .card-body { padding: 1.5rem; }
}

.card-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-split img {
  width: 40%;
  object-fit: cover;
  min-height: 100%;
}
.card-split .card-body {
  width: 60%;
  padding: 2.5rem;
}

@media (max-width: 800px) {
  .card-split { flex-direction: column; }
  .card-split img { width: 100%; aspect-ratio: 16/9; min-height: auto; }
  .card-split .card-body { width: 100%; padding: 1.5rem; }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card-grid {
  height: 100%;
}
.card-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.card-grid .card-body {
  padding: 1.5rem;
}

.card-compact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}
.card-compact img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.card-compact .card-body {
  padding: 0;
}
@media (max-width: 600px) {
  .card-compact { flex-direction: column; text-align: center; }
  .card-compact img { width: 100%; height: auto; aspect-ratio: 16/9; }
}

/* Comparison Strips */
.comparison-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.comparison-strip:last-child {
  border-bottom: none;
}
.strip-label { font-weight: 800; }
.strip-value { color: var(--text-muted); }

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
input, textarea, select {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent-primary);
  border-color: transparent;
}
.draft-tools {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* FAQ */
.faq-item {
  margin-bottom: 2rem;
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
}
.faq-item h3 {
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

/* Footer */
.site-footer {
  background-color: #081a20; /* Darker petrol */
  padding: 4rem 1.5rem 2rem;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}
.footer-col h4 {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: var(--text-primary);
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--accent-primary);
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

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