/* ============================================================
   DESERT SLED — style.css
   ============================================================ */

/* --- Variables --- */
:root {
  --black:   #1e1e1e;
  --grey:    #8d8e91;
  --sand:    #cbb382;
  --orange:  #e1572c;
  --white:   #ffffff;
  --off-white: #f5f4f0;

  --font-heading: 'Protest Guerrilla', sans-serif;
  --font-eyebrow: 'Rock Salt', cursive;
  --font-body:    'Inter', sans-serif;

  --nav-h: 72px;
  --section-pad: clamp(64px, 8vw, 120px);
  --container: 1280px;
  --radius: 4px;
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Typography scale --- */
h1 { font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 6rem); line-height: 1.0; font-weight: 400; text-transform: uppercase; }
h2 { font-family: var(--font-heading); font-size: clamp(2rem, 4.5vw, 3.75rem); line-height: 1.05; font-weight: 400; text-transform: uppercase; }
h3 { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.2; font-weight: 400; text-transform: uppercase; }
h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
p  { max-width: 60ch; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-eyebrow);
  font-size: 0.875rem;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--sand); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
}
.btn--primary:hover {
  background: #c94a22;
}

/* Split-text flip (orange CTAs) */
.btn__text {
  display: inline-block;
  overflow: hidden;
  line-height: 1.2;
}
.btn__text > span {
  display: block;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.btn__text > span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  white-space: nowrap;
}
.btn--primary:hover .btn__text > span,
.nav__cta:hover .btn__text > span {
  transform: translateY(-100%);
}
.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn--ghost:hover {
  background: var(--black);
  color: var(--white);
}
.btn--ghost--light {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost--light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn--full { width: 100%; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(30,30,30,0.97);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav__inner {
  max-width: calc(var(--container) + 2 * clamp(24px, 6vw, 96px));
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 96px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img {
  height: 36px;
  width: auto;
  filter: invert(1); /* white logo on dark nav */
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav__cta:hover { background: #c94a22; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  background: var(--off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}
.hero__content {
  padding: clamp(24px, 4vw, 56px) clamp(24px, 5vw, 80px) clamp(24px, 4vw, 56px) clamp(24px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero__content .eyebrow { margin-bottom: 1.25rem; }
.hero__heading {
  margin-bottom: 1.5rem;
  color: var(--black);
}
.hero__sub {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--grey);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px) clamp(24px, 4vw, 64px) 0;
  height: 100%;
  align-self: flex-end;
}
.hero__image img {
  max-height: calc(100svh - var(--nav-h));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.18));
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--black);
}
.about__image {
  overflow: hidden;
  position: relative;
}
.about__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease, transform 0.6s ease;
}
.about__image img.is-active { opacity: 1; }
.about__image:hover img { transform: scale(1.03); }
.about__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 1;
}
.about-nav {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30,30,30,0.6);
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}
.about-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}
.about__content {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  color: var(--white);
}
.about__content h2 { margin-bottom: 1.5rem; }
.about__content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}
.about__sign {
  font-family: var(--font-eyebrow);
  font-size: 0.7rem !important;
  color: var(--sand) !important;
  margin: 1rem 0 2rem !important;
  letter-spacing: 0.05em;
}

/* ============================================================
   PRODUCT
   ============================================================ */
.product {
  background: var(--white);
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  max-width: 100%;
}
.product__header {
  max-width: var(--container);
  margin: 0 auto 64px;
}
.product__header h2 { margin-bottom: 1rem; }
.product__intro {
  font-size: 1rem;
  color: var(--grey);
  max-width: 64ch;
  line-height: 1.75;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  max-width: var(--container);
  margin: 0 auto 80px;
  background: #e8e6e1;
}
.feature {
  background: var(--white);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}
.feature:hover { background: var(--off-white); }
.feature__icon {
  width: 40px;
  height: 40px;
  color: var(--orange);
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 { font-size: 1.25rem; color: var(--black); }
.feature p {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: none;
}

/* Specs */
.specs {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 2px solid var(--black);
  padding-top: 48px;
}
.specs__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}
.specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #e8e6e1;
}
.spec-row {
  display: flex;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e6e1;
  gap: 16px;
}
.spec-row:nth-child(odd) { border-right: 1px solid #e8e6e1; }
.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  min-width: 120px;
  flex-shrink: 0;
}
.spec-value {
  font-size: 0.875rem;
  color: var(--black);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  background: var(--black);
  padding: var(--section-pad) clamp(24px, 4vw, 64px);
}
.gallery__header {
  max-width: var(--container);
  margin: 0 auto 48px;
  color: var(--white);
}
.gallery__header h2 { margin-top: 0; }
.gallery__track {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}
.gallery-swiper {
  flex: 1;
  min-width: 0;
  padding-bottom: 48px !important;
}
.gallery-swiper .swiper-slide {
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.gallery-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.3);
  opacity: 1;
}
.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--orange);
}

/* External nav buttons */
.gallery-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  align-self: center;
  margin-bottom: 48px;
}
.gallery-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.05);
}
.gallery-nav.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

@media (max-width: 768px) {
  .gallery__track {
    gap: 0;
  }
  .gallery-nav {
    display: none;
  }
  .gallery-swiper .swiper-slide {
    height: auto;
    aspect-ratio: 2 / 3;
  }
  .gallery-swiper .swiper-slide img {
    object-fit: cover;
    height: 100%;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--black);
  padding: var(--section-pad) clamp(24px, 6vw, 96px);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact__header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--white);
}
.contact__header h2 { margin-bottom: 1rem; }
.contact__header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: none;
}

/* Form */
.contact__form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.phone-field {
  display: flex;
  gap: 8px;
}
.phone-field input { flex: 1; min-width: 0; }
.phone-field select {
  flex: 0 0 auto;
  width: 112px;
  padding-right: 34px;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.phone-field select option,
.phone-field select optgroup {
  background: var(--black);
  color: var(--white);
}
.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background-color: rgba(255,255,255,0.09);
}
.form__note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
  max-width: none;
}
.form__note a[href^="tel"] { white-space: nowrap; }
.form__note a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Success state */
.form__success {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.form__success svg {
  width: 48px;
  height: 48px;
  color: var(--orange);
}
.form__success h3 { font-size: 2rem; }
.form__success p { color: rgba(255,255,255,0.6); max-width: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #141414;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 96px) 0;
  color: var(--white);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo {
  height: 80px;
  width: auto;
  filter: invert(1);
  margin-bottom: 16px;
}
.footer__brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 36ch;
}
.footer__location {
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand) !important;
  margin-top: 12px;
}
.footer__links h4,
.footer__social h4 {
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.social-links a:hover { color: var(--white); }
.social-links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer__email {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--sand);
  transition: color var(--transition);
}
.footer__email:hover { color: var(--white); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  max-width: none;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .specs__grid {
    grid-template-columns: 1fr;
  }
  .spec-row:nth-child(odd) { border-right: none; }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav */
  .nav__links { display: none; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    padding-bottom: 0;
  }
  .hero__content {
    padding: 20px clamp(20px, 5vw, 40px) 28px;
  }
  .hero__content .eyebrow { margin-bottom: 0.6rem; }
  .hero__heading { margin-bottom: 0.75rem; }
  .hero__sub {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  .hero__actions { gap: 8px; }
  .hero__actions .btn {
    padding: 11px 22px;
    font-size: 0.78rem;
  }
  .hero__image {
    padding: 0 clamp(16px, 4vw, 32px);
    justify-content: center;
    order: -1;
  }
  .hero__image img {
    max-height: 80vw;
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
  }
  .about__image {
    height: 56vw;
    min-height: 280px;
  }
  .about__image img {
    object-position: center var(--focus-y, 0%);
  }
  .about__content {
    padding: clamp(40px, 8vw, 64px) clamp(20px, 5vw, 40px);
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
  }

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

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__brand {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }
}
