/*
Theme Name: APB Wholesale LLC
Theme URI: https://apbwholesale.com
Author: APB Wholesale LLC
Author URI: https://apbwholesale.com
Description: Custom theme for APB Wholesale LLC — B2B wholesale supplier for smoke shops.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: apb-wholesale
*/

/* ===========================
   RESET & BASE
   =========================== */

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

:root {
  --brand: #1a1a2e;
  --accent: #e63946;
  --gold: #f4a261;
  --light: #f8f7f2;
  --mid: #e8e6de;
  --text: #1a1a2e;
  --muted: #6b6b80;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--text);
  overflow-x: hidden;
}

/* ===========================
   NAVIGATION
   =========================== */

nav.site-nav {
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--white);
  letter-spacing: 2px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  text-decoration: none;
}

.nav-cta:hover {
  background: #c1121f;
  color: var(--white);
}

/* ===========================
   HERO
   =========================== */

.hero {
  background: var(--brand);
  color: var(--white);
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(230, 57, 70, 0.07) 0px, rgba(230, 57, 70, 0.07) 1px,
    transparent 1px, transparent 24px
  );
}

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

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
  margin-left: -6px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #c1121f;
  color: var(--white);
}

.hero-stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.stat-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--gold);
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ===========================
   TICKER
   =========================== */

.ticker {
  background: var(--accent);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 2rem;
  animation: ticker 26s linear infinite;
}

.ticker-item {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ticker-dot {
  color: rgba(255, 255, 255, 0.5);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   SHARED SECTION STYLES
   =========================== */

.site-section {
  padding: 5rem 2.5rem;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  color: var(--brand);
  line-height: 1;
}

.section-title span {
  color: var(--accent);
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 500px;
  line-height: 1.6;
}

/* ===========================
   WHY APB
   =========================== */

.why {
  background: var(--brand);
}

.why .section-title {
  color: var(--white);
}

.why .section-sub {
  color: rgba(255, 255, 255, 0.5);
}

.why .section-label {
  color: var(--gold);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2rem 1.5rem;
}

.why-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ===========================
   APPLY / FORM
   =========================== */

.apply {
  background: var(--light);
}

.apply-box {
  background: var(--white);
  border: 1.5px solid var(--mid);
  border-radius: 8px;
  padding: 3rem;
  max-width: 680px;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--light);
  border: 1.5px solid var(--mid);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  width: 100%;
}

.form-submit:hover {
  background: #c1121f;
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: #0d0d1a;
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 2.5rem 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--white);
  letter-spacing: 2px;
}

.footer-brand span {
  color: var(--gold);
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
}

.footer-links h4 {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 12px;
}

.footer-badge {
  font-size: 11px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid rgba(230, 57, 70, 0.25);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  nav.site-nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 3rem 1.25rem;
  }

  .hero h1 {
    font-size: 28px;
    white-space: normal;
    margin-left: 0;
  }

  .site-section {
    padding: 3rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .apply-box {
    padding: 1.5rem;
  }

  .hero-stat-row {
    gap: 1.5rem;
  }

  .site-footer {
    padding: 2rem 1.25rem;
  }
}

/* ===========================
   FORM ALERT MESSAGES
   =========================== */

.apb-alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 1.5rem;
  max-width: 680px;
}

.apb-alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.apb-alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.apb-alert-error a {
  color: #721c24;
  font-weight: 600;
}
