/* ============================================
   TITANIC DRUMS AND TANKS — Design tokens
   Industrial depot / shipping-manifest system
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --steel: #2B3A42;
  --steel-dark: #1C262C;
  --rust: #B5502C;
  --rust-dark: #8F3E22;
  --hazard: #E8A33D;
  --paper: #EDE8DE;
  --paper-light: #F5F2EA;
  --ink: #1C1C1A;
  --ink-soft: #4A4A45;
  --line: #C9C2B0;

  --display: 'Oswald', sans-serif;
  --body: 'Work Sans', sans-serif;

  --radius: 2px;
}

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

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--steel-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------- Hazard stripe divider -------- */
.hazard-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--hazard),
    var(--hazard) 14px,
    var(--steel-dark) 14px,
    var(--steel-dark) 28px
  );
}

/* -------- Header -------- */
header {
  background: var(--steel-dark);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--rust);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.15;
}

.logo span.mark {
  background: var(--rust);
  color: var(--paper);
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: var(--radius);
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}

nav ul {
  display: flex;
  gap: 28px;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a { transition: color 0.15s; border-bottom: 2px solid transparent; padding-bottom: 4px; }
nav a:hover { color: var(--hazard); border-color: var(--hazard); }

.header-cta {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  background: var(--rust);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.header-cta:hover { background: var(--rust-dark); }

/* -------- Hero -------- */
.hero {
  background: var(--steel);
  color: var(--paper);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--hazard);
  border: 1px solid var(--hazard);
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--paper);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--hazard);
}

.hero p {
  font-size: 1.1rem;
  color: #D6D2C6;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--display);
  letter-spacing: 0.06em;
  background: var(--rust);
  color: var(--paper);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: none;
}
.btn-primary:hover { background: var(--rust-dark); }

.btn-secondary {
  font-family: var(--display);
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--paper);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid var(--paper);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--hazard);
}
.stat-label {
  font-size: 0.8rem;
  color: #B9B4A8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------- Section headers -------- */
.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-eyebrow {
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: 6px;
  display: block;
}

.section-head h2 {
  font-size: 2rem;
}

.section-link {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--rust);
  border-bottom: 1px solid var(--rust);
}

/* -------- Category grid (crate-stencil cards) -------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.crate-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s;
}
.crate-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(28,38,44,0.15);
}

.crate-lot {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--steel-dark);
  color: var(--hazard);
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: var(--radius);
  z-index: 2;
}

.crate-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #DCD5C2, #C9C2AD);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.crate-body { padding: 18px 20px 22px; }

.crate-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.crate-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.crate-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.crate-count {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-family: var(--display);
  letter-spacing: 0.04em;
}

.crate-arrow {
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--rust);
}

/* -------- Trust bar -------- */
.trust-bar {
  background: var(--paper-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: center;
}
.trust-item {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--steel-dark);
}

/* -------- Why us -------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.why-item {
  border-left: 3px solid var(--rust);
  padding-left: 18px;
}
.why-item .num {
  font-family: var(--display);
  color: var(--hazard);
  background: var(--steel-dark);
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  margin-bottom: 10px;
}
.why-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* -------- Locations strip -------- */
.locations {
  background: var(--steel-dark);
  color: var(--paper);
  padding: 56px 0;
}
.locations h2 { color: var(--paper); }
.locations .section-eyebrow { color: var(--hazard); }
.location-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.location-tags a {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: var(--display);
  letter-spacing: 0.03em;
}
.location-tags a:hover { border-color: var(--hazard); color: var(--hazard); }

/* -------- Footer -------- */
footer {
  background: var(--ink);
  color: #B9B4A8;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 8px; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--hazard); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------- Mobile nav toggle -------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  order: 2;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------- Form controls (prevents iOS auto-zoom, consistent tap targets) -------- */
input, textarea, select, button {
  font-size: 1rem;
}
input, textarea, select {
  min-height: 44px;
}
textarea { min-height: 120px; }

/* -------- Responsive -------- */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; }
  .logo { order: 1; }
  .nav-toggle { display: flex; }
  .header-cta { order: 3; }
  nav {
    order: 4;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.nav-open { max-height: 520px; }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 14px 0 6px;
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
  }
  nav ul li { width: 100%; }
  nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .header-cta { padding: 10px 14px; font-size: 0.78rem; }
  form button[type="submit"] { width: 100%; }
}

/* -------- Accessibility -------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--hazard);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
