/* RAVN Equipment – main.css */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500&family=IBM+Plex+Mono:wght@400&display=swap');

@font-face {
  font-family: 'RAVN Wordmark';
  src: url('../fonts/RavnWordmark.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Constantia';
  src: url('../fonts/Constantia.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --charcoal-900: #2c2a29;
  --charcoal-800: #3a3735;
  --charcoal-700: #454242;
  --charcoal-600: #575350;
  --taupe-500: #90877a;
  --taupe-400: #a9a094;
  --taupe-300: #c2bbb0;
  --taupe-100: #e8e4de;
  --cream-000: #f7f4ef;
  --plum-600: #4f3d54;
  --plum-500: #644c69;
  --pine-600: #3a5c47;
  --pine-500: #4a7359;
  --pine-400: #5f8f70;
  --silver-500: #898a8c;

  --surface-page: var(--cream-000);
  --surface-card: #ffffff;
  --surface-muted: #f4f2ef;
  --border-default: var(--taupe-300);
  --text-primary: var(--charcoal-900);
  --text-secondary: var(--taupe-500);
  --text-link: var(--pine-600);
  --text-link-hover: var(--pine-500);

  --font-wordmark: 'RAVN Wordmark', 'Fjalla One', sans-serif;
  --font-display: 'Constantia', 'Georgia', serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;

  --text-h1: 2.25rem;
  --text-h2: 1.75rem;
  --text-h3: 1.375rem;

  --tracking-wide: 0.08em;
  --tracking-tight: -0.01em;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(44,42,41,0.08);
  --shadow-md: 0 4px 12px rgba(44,42,41,0.10);
  --shadow-lg: 0 12px 32px rgba(44,42,41,0.14);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body    { margin: 0; font-family: var(--font-body); background: var(--surface-page); }
img     { display: block; max-width: 100%; }
h1,h2,h3 { margin: 0; }
p       { margin: 0; }
a       { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--text-link-hover); }
::placeholder { color: var(--taupe-400); opacity: 1; }

/* ── Splash ──────────────────────────────────────────────── */
@keyframes splashFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes splashRise {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#splash {
  position: fixed;
  inset: 0;
  background: var(--charcoal-900);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashFade 0.7s ease 1.3s forwards;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: splashRise 0.9s ease both;
  pointer-events: none;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--charcoal-700);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.site-logo {
  height: 76px;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 19px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--taupe-300);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a.active {
  color: #fff;
  text-decoration: underline;
}

.site-nav a:hover { color: var(--taupe-100); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--taupe-300);
  transition: opacity 150ms;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--charcoal-700);
  color: var(--taupe-500);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-brands {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  filter: brightness(0) invert(0.65);
  opacity: 0.85;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom a { color: var(--taupe-500); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--charcoal-900);
  overflow: hidden;
  text-align: center;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  font-family: var(--font-wordmark);
  font-size: 18px;
  letter-spacing: var(--tracking-wide);
  color: var(--taupe-500);
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 16px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms;
  line-height: 1.2;
}

.btn-primary {
  background: var(--pine-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--pine-500);
  color: #fff;
}

/* ── Product card ────────────────────────────────────────── */
.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: zoom-in;
}

.product-placeholder {
  width: 100%;
  height: 200px;
  background: var(--taupe-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--taupe-400);
}

.product-body { padding: 20px; }

.product-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--pine-600);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Product grid ────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ── Brand strip ─────────────────────────────────────────── */
.brand-strip {
  padding: 72px 24px;
  text-align: center;
}

.brand-strip-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.brand-strip-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background: var(--charcoal-900);
  padding: 88px 24px;
  text-align: center;
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(44,42,41,0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: min(900px, 90vw);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ── Contact form ────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  padding: 11px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  width: 100%;
  transition: border-color 150ms;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--pine-500); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2390877a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-textarea { resize: vertical; }

/* ── Contact raven ───────────────────────────────────────── */
.contact-raven {
  position: absolute;
  left: 475px;
  top: 184px;
  width: 220px;
  height: auto;
  opacity: 0.9;
  z-index: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .site-header {
    padding: 0 24px;
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 0;
  }

  .header-left { gap: 20px; }
  .site-logo { height: 54px; }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 4px 0 16px;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 10px 0;
    font-size: 17px;
    border-top: 1px solid var(--charcoal-600);
  }

  .nav-toggle { display: flex; }

  .contact-raven { display: none; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .brand-strip-logos { gap: 32px; }
  .footer-brands { gap: 32px; }
  .site-footer { padding: 40px 24px; }
}
