/* ============================================
   XTS Supply LLC — Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0f2b5b;
  --navy-deep:  #091d40;
  --blue:       #1a3f7a;
  --blue-mid:   #2563eb;
  --blue-light: #60a5fa;
  --accent:     #f59e0b;
  --accent-hover:#e08e05;
  --white:      #ffffff;
  --off-white:  #f7f8fb;
  --gray-100:   #eef1f6;
  --gray-200:   #d8dde6;
  --gray-500:   #6b7280;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --max-w:      1140px;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg:  0 4px 12px rgba(0,0,0,.1), 0 16px 40px rgba(0,0,0,.08);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: 14px 32px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
  line-height: 1.2;
}
.btn--primary {
  background: var(--accent); color: var(--navy-deep); border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: var(--navy-deep);
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.btn--outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.4);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white);
}
.btn--sm { padding: 10px 22px; font-size: .875rem; }
.btn--full { width: 100%; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,14,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition);
}
.nav--scrolled { background: rgba(6,6,10,.97); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .04em;
  color: var(--white); background: var(--accent); padding: 4px 10px;
  border-radius: 6px; line-height: 1;
}
.nav__company { font-size: .95rem; font-weight: 600; color: var(--white); letter-spacing: .01em; }
.nav__logo-img { height: 40px; width: auto; }
.footer__logo-img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.nav__links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav__links a {
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__links .btn { color: var(--navy-deep); }
.nav__links .btn:hover { color: var(--navy-deep); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; border-radius: 2px; transition: all .3s;
}

/* --- Hero --- */
.hero {
  background: url('/hero-bg.jpg') center/cover no-repeat;
  padding: 140px 0 100px; min-height: 80vh;
  display: flex; align-items: center;
  overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(9,29,64,.88) 0%, rgba(15,43,91,.78) 40%, rgba(26,63,122,.7) 100%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center;
  position: relative; text-align: center;
}
.hero__eyebrow {
  font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 24px;
}
.hero__subtitle {
  font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 620px;
  margin: 0 auto 36px; line-height: 1.75;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__graphic { width: 100%; max-width: 400px; opacity: .85; }

/* --- Sections --- */
.section { padding: 100px 0; }
.section--alt { background: var(--off-white); }
.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.25rem); font-weight: 800; color: var(--navy);
  margin-bottom: 16px; line-height: 1.2;
}
.section__title--center { text-align: center; }
.section__subtitle {
  text-align: center; color: var(--gray-500); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto 56px;
}

/* --- About --- */
.about__grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start;
}
.about__lead {
  font-size: 1.15rem; color: var(--gray-700); margin-bottom: 16px;
  line-height: 1.75; font-weight: 500;
}
.about__text p:last-child { color: var(--gray-500); }
.about__stats {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding-top: 12px;
}
.stat {
  background: var(--off-white); border-radius: var(--radius-lg);
  padding: 28px 32px; text-align: center;
  border: 1px solid var(--gray-100);
}
.stat__number {
  display: block; font-size: 2rem; font-weight: 800; color: var(--blue-mid);
  margin-bottom: 4px;
}
.stat__label { font-size: .85rem; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }

/* --- Metrics Banner --- */
.section--dark {
  background: linear-gradient(135deg, #0a0a0e 0%, #111827 100%);
  padding: 64px 0;
}
.metrics__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  text-align: center;
}
.metric { padding: 12px 0; }
.metric__number {
  display: inline; font-size: 2.8rem; font-weight: 800; color: var(--accent);
  line-height: 1.1;
}
.metric__dollar::before { content: '$'; }
.metric__suffix {
  font-size: 2.8rem; font-weight: 800; color: var(--accent);
}
.metric__label {
  display: block; font-size: .85rem; color: rgba(255,255,255,.6);
  font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  margin-top: 8px;
}

/* --- Categories --- */
.categories__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}
.card__icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  color: var(--blue-mid);
}
.card__title {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin-bottom: 12px;
}
.card__market {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--blue-mid); background: rgba(37,99,235,.08);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.card__desc { font-size: .93rem; color: var(--gray-500); line-height: 1.7; }
.card__highlights {
  list-style: none; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--gray-100); text-align: left;
}
.card__highlights li {
  font-size: .87rem; color: var(--gray-700); padding: 6px 0 6px 24px;
  position: relative; line-height: 1.5;
}
.card__highlights li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent);
  font-weight: 700; font-size: .9rem;
}

/* --- Why Us --- */
.why__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px;
}
.why__item { display: flex; gap: 20px; align-items: flex-start; }
.why__icon {
  flex-shrink: 0; width: 48px; height: 48px; color: var(--blue-mid);
  background: rgba(37,99,235,.08); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.why__item h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--navy);
  margin-bottom: 6px;
}
.why__item p { font-size: .93rem; color: var(--gray-500); line-height: 1.65; }

/* --- Brands --- */
.brands__placeholder { text-align: center; }
.brands__logos {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  margin-bottom: 40px;
}
.brands__logo-slot {
  aspect-ratio: 3/2; background: var(--white); border: 2px dashed var(--gray-200);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center;
}
.brands__cta {
  font-size: 1.05rem; color: var(--gray-500);
}
.brands__cta a { font-weight: 600; color: var(--blue-mid); }
.brands__cta a:hover { color: var(--accent); }

/* --- Contact --- */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start;
}
.contact__detail { margin-bottom: 32px; }
.contact__detail h3 {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray-500); margin-bottom: 8px;
}
.contact__detail a, .contact__detail p {
  font-size: 1.05rem; color: var(--gray-900); font-weight: 500;
}
.contact__form {
  background: var(--off-white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 40px;
}
.form__group { margin-bottom: 20px; }
.form__group label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px;
}
.form__group input,
.form__group textarea {
  width: 100%; padding: 12px 16px;
  font-family: var(--font); font-size: .95rem; color: var(--gray-900);
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); transition: border-color var(--transition);
  outline: none;
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form__group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.footer {
  background: var(--navy-deep); padding: 48px 0; color: rgba(255,255,255,.5);
}
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer__copy { font-size: .85rem; }
.footer__location { font-size: .85rem; }
.footer__location a { color: rgba(255,255,255,.6); }
.footer__location a:hover { color: var(--accent); }

/* --- Mobile --- */
@media (max-width: 900px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero__actions .btn { width: 100%; }
  .about__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: repeat(3, 1fr); }
  .categories__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .why__grid { grid-template-columns: 1fr; }
  .brands__logos { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: rgba(9,29,64,.98);
    padding: 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav__links.active { display: flex; }
  .nav__toggle { display: block; }
  .nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .section { padding: 72px 0; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .about__stats { grid-template-columns: 1fr; }
  .brands__logos { grid-template-columns: repeat(2, 1fr); }
  .contact__form { padding: 28px 20px; }
  .hero__actions .btn { width: 100%; }
}

/* --- Hero entrance animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero__eyebrow { animation: fadeInUp .8s ease both; animation-delay: .2s; }
.hero__title { animation: fadeInUp .8s ease both; animation-delay: .4s; }
.hero__subtitle { animation: fadeInUp .8s ease both; animation-delay: .6s; }
.hero__actions { animation: fadeInUp .8s ease both; animation-delay: .8s; }

/* --- Reveal animations --- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1);
}
.reveal.revealed {
  opacity: 1; transform: translateY(0);
}
/* Stagger children */
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* --- Card hover enhancements --- */
.card { transition: all .35s cubic-bezier(.23,1,.32,1); }
.card:hover .card__icon { transform: scale(1.1); }
.card__icon { transition: transform .35s ease; }

/* --- Button pulse on hero --- */
.hero .btn--primary { position: relative; overflow: hidden; }
.hero .btn--primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.hero .btn--primary:hover::after { transform: translateX(100%); }

/* --- Smooth nav transition --- */
.nav { transition: background .4s ease, box-shadow .4s ease; }