/* BASE VARIABLES & SETUP */
:root {
  --bg-canvas: #111312;
  --bg-surface: #1c1f1e;
  --bg-surface-hover: #252928;
  --text-primary: #e0e6e5;
  --text-muted: #95a09e;
  --accent-primary: #ff6f59;
  --accent-secondary: #ff8a78;
  --border-subtle: #2d3331;
  
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --radius-card: 0px;
  --radius-pill: 40px;
  --space-unit: 8px;
  
  --ease-kinetic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration: 400ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  /* Subtle coral radial gradient as per style direction */
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 111, 89, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 400;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

a { color: var(--text-primary); text-decoration: none; transition: color 0.2s var(--ease-kinetic); }
a:hover { color: var(--accent-primary); }
a:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; background-color: var(--bg-surface); object-fit: cover; border-radius: var(--radius-card); }
table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
th, td { border: 1px solid var(--border-subtle); padding: 0.75rem; text-align: left; }
th { background: var(--bg-surface); font-family: var(--font-display); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.long-form { max-width: 68ch; margin: 0 auto; }

/* HEADER - Floating inset box with rounded ends */
.site-header {
  position: relative;
  max-width: 1200px;
  margin: 1.5rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.main-nav a { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.mobile-menu-btn {
  display: none; background: transparent; border: none; color: var(--text-primary);
  font-size: 1.5rem; cursor: pointer; padding: 0.5rem;
}
.mobile-nav-panel {
  display: none; position: absolute; top: 100%; left: 0; width: 100%;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); padding: 1rem; margin-top: 0.5rem;
}
.mobile-nav-panel.is-open { display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 768px) {
  .site-header { margin: 1rem; padding: 0.75rem 1.5rem; border-radius: 8px; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* BUTTONS - Outlined, square ends, uppercase */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: var(--radius-card);
  transition: all var(--duration) var(--ease-kinetic);
  text-align: center;
}
.btn:hover { background: var(--accent-primary); color: var(--bg-canvas); }

/* HERO - Overlapping Action Images */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  align-items: center;
}
.hero-content { z-index: 10; }
.hero-visual {
  position: relative;
  height: 500px;
  width: 100%;
}
.hero-img { position: absolute; border: 2px solid var(--bg-canvas); }
.hero-img-1 { top: 0; left: 0; width: 65%; height: 300px; z-index: 1; }
.hero-img-2 { top: 20%; right: 0; width: 55%; height: 250px; z-index: 2; }
.hero-img-3 { bottom: 0; left: 15%; width: 60%; height: 200px; z-index: 3; }

@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-visual { height: 400px; }
}

/* STAT STRIPS & TABS */
.stat-strip {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}
.stat-item {
  flex: 1;
  padding: 1rem;
  border-right: 1px solid var(--border-subtle);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-primary); display: block; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

.tab-container { margin: 3rem 0; border: 1px solid var(--border-subtle); }
.tab-list { display: flex; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
.tab-btn {
  flex: 1; padding: 1rem; background: transparent; border: none;
  color: var(--text-muted); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; cursor: pointer; transition: background 0.2s;
  border-radius: 0;
}
.tab-btn[aria-selected="true"] {
  background: var(--bg-canvas); color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}
.tab-panel { display: none; padding: 2rem; background: var(--bg-canvas); }
.tab-panel[aria-hidden="false"] { display: block; animation: fadeUp var(--duration) var(--ease-kinetic); }

@media (max-width: 600px) {
  .stat-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
}

/* CARDS - Badged Image Top */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-img-wrap { position: relative; }
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-badge {
  position: absolute;
  bottom: -12px;
  right: 16px;
  background: var(--accent-primary);
  color: var(--bg-canvas);
  padding: 4px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}
.card-content { padding: 2rem 1.5rem 1.5rem; flex-grow: 1; }
.card-title { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* FORMS & TOOLS */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.form-control {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-body);
  border-radius: var(--radius-card);
}
.form-control:focus { outline: none; border-color: var(--accent-primary); }
textarea.form-control { min-height: 120px; resize: vertical; }

/* FOOTER */
.site-footer {
  margin: 4rem auto 2rem;
  max-width: 1200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3rem 2rem 1.5rem;
}
@media (max-width: 768px) { .site-footer { border-radius: 8px; margin: 2rem 1rem; } }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { color: var(--accent-primary); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.875rem; }
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--duration) var(--ease-kinetic), transform var(--duration) var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* UTILITIES */
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.text-accent { color: var(--accent-primary); }
.content-section { padding: 4rem 0; border-bottom: 1px solid var(--border-subtle); }
.content-section:last-of-type { border-bottom: none; }