/* ==========================================================================
   Kingdom Tools — Stylesheet
   Rugged / industrial theme: charcoal & steel base, amber/safety-orange accent
   ========================================================================== */

:root {
  /* Palette */
  --color-bg: #16171a;
  --color-bg-alt: #1e2023;
  --color-bg-panel: #24272b;
  --color-steel: #3a3f45;
  --color-steel-light: #565c63;
  --color-border: #3a3f45;
  --color-off-white: #f2f0ea;
  --color-off-white-dim: #cfcdc7;
  --color-amber: #ff8c1a;
  --color-amber-dark: #e26f00;
  --color-amber-text: #ffb057; /* lighter, higher-contrast amber for text-on-dark */

  /* Type */
  --font-heading: "Arial Black", "Helvetica Neue", Inter, Arial, sans-serif;
  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-off-white);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* Visually-hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  background: var(--color-amber);
  color: #16171a;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

/* ---------- Diagonal stripe / brushed metal texture utilities ---------- */
.texture-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 140, 26, 0.06),
    rgba(255, 140, 26, 0.06) 2px,
    transparent 2px,
    transparent 26px
  );
}

.texture-brushed {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 3px
    );
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  text-decoration: none;
  padding: 16px 28px;
  border: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-amber);
  color: #16171a;
  border-color: var(--color-amber);
}

.btn-primary:hover {
  background: var(--color-amber-dark);
  border-color: var(--color-amber-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-off-white);
  border-color: var(--color-off-white-dim);
}

.btn-secondary:hover {
  border-color: var(--color-amber);
  color: var(--color-amber-text);
}

.btn-block {
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(22, 23, 26, 0.96);
  border-bottom: 3px solid var(--color-amber);
  backdrop-filter: saturate(140%) blur(4px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-off-white);
}

.wordmark-icon {
  flex-shrink: 0;
  color: var(--color-amber);
}

.wordmark-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-text .accent {
  color: var(--color-amber-text);
}

/* Primary nav */
.primary-nav {
  display: none;
}

.primary-nav ul {
  display: flex;
  gap: 28px;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-off-white-dim);
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--color-off-white);
  border-color: var(--color-amber);
}

.nav-call-btn {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--color-steel-light);
  border-radius: var(--radius);
  color: var(--color-off-white);
}

.nav-toggle-icon {
  position: relative;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.15s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg-alt);
  border-bottom: 3px solid var(--color-amber);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  z-index: 490;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 20px;
}

.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav .btn {
  margin-top: 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(255, 140, 26, 0.12), transparent 55%),
    linear-gradient(160deg, #1c1e22 0%, #101114 70%);
  border-bottom: 3px solid var(--color-steel);
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 140, 26, 0.05),
    rgba(255, 140, 26, 0.05) 3px,
    transparent 3px,
    transparent 34px
  );
  pointer-events: none;
}

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

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--color-amber-text);
  border: 2px solid var(--color-amber);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--color-off-white);
  margin-bottom: 20px;
}

.hero-subhead {
  font-size: 1.125rem;
  color: var(--color-off-white-dim);
  max-width: 60ch;
  margin-bottom: 32px;
}

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

/* ---------- Section shells ---------- */
.section {
  padding: 72px 0;
  border-bottom: 3px solid var(--color-steel);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--color-off-white);
}

.section-header p {
  color: var(--color-off-white-dim);
  font-size: 1.05rem;
}

.section-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--color-amber-text);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Products grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.product-card {
  background: var(--color-bg-panel);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  border-left: 5px solid var(--color-amber);
}

.product-card-icon {
  color: var(--color-amber);
  margin-bottom: 16px;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-off-white);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-card p {
  color: var(--color-off-white-dim);
  font-size: 0.95rem;
  margin: 0;
}

.products-note {
  background: var(--color-bg-panel);
  border: 2px dashed var(--color-steel-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--color-off-white-dim);
  font-size: 0.98rem;
  text-align: center;
}

.products-note strong {
  color: var(--color-off-white);
}

/* ---------- How it works / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 2px solid var(--color-border);
  position: relative;
}

.step:last-child {
  padding-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--color-amber);
  color: var(--color-amber-text);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-panel);
}

.step-body h3 {
  font-size: 1.1rem;
  color: var(--color-off-white);
  margin-bottom: 6px;
}

.step-body p {
  color: var(--color-off-white-dim);
  margin: 0;
}

/* ---------- About ---------- */
.about-content {
  max-width: 780px;
  margin: 0 auto;
}

.about-content p {
  color: var(--color-off-white-dim);
  font-size: 1.05rem;
}

.about-content p:first-of-type {
  color: var(--color-off-white);
  font-size: 1.15rem;
}

/* ---------- Shipping & Returns ---------- */
.shipping-content {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.shipping-card {
  background: var(--color-bg-panel);
  border: 2px solid var(--color-border);
  border-left: 5px solid var(--color-amber);
  border-radius: var(--radius);
  padding: 24px;
}

.shipping-card h3 {
  font-size: 1rem;
  color: var(--color-off-white);
  margin-bottom: 10px;
}

.shipping-card p {
  color: var(--color-off-white-dim);
  margin: 0;
}

/* ---------- Gallery placeholders ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-panel);
  border: 2px dashed var(--color-steel-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder-label {
  color: var(--color-off-white-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

/* ---------- Contact ---------- */
.contact-section {
  background:
    radial-gradient(ellipse at bottom left, rgba(255, 140, 26, 0.1), transparent 55%),
    linear-gradient(160deg, #1c1e22 0%, #101114 70%);
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg-panel);
  border: 3px solid var(--color-steel);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.contact-card h3 {
  color: var(--color-off-white);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--color-off-white-dim);
  font-size: 1rem;
}

.contact-list a {
  color: var(--color-off-white);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--color-amber-text);
  text-decoration: underline;
}

.contact-icon {
  flex-shrink: 0;
  color: var(--color-amber);
  margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg);
  padding: 56px 0 28px;
}

.footer-top {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--color-border);
}

.footer-brand .wordmark-text {
  font-size: 1.05rem;
}

.footer-tagline {
  color: var(--color-off-white-dim);
  margin-top: 10px;
  font-size: 0.95rem;
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact a {
  color: var(--color-off-white-dim);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--color-amber-text);
  text-decoration: underline;
}

.footer-privacy {
  color: var(--color-off-white-dim);
  font-size: 0.85rem;
  max-width: 70ch;
  margin-bottom: 16px;
}

.footer-bottom {
  color: var(--color-off-white-dim);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .step {
    flex-direction: column;
    border-top: none;
    border-left: 2px solid var(--color-border);
    padding: 4px 24px;
  }

  .step:first-child {
    border-left: none;
  }

  .footer-top {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .primary-nav {
    display: block;
  }

  .nav-call-btn {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 110px 0 96px;
  }
}
