/* ============================================================
   ALPINEEDGE — Outdoor Tent B2B Homepage
   Design System: taste-skill
   ============================================================ */

/* === Design Tokens === */
:root {
  --canvas: #F5F3EF;
  --white: #FFFFFF;
  --ink: #1C1917;
  --steel: #78716C;
  --forest: #2D5A3D;
  --sand: #C8B89A;
  --border: rgba(200, 184, 154, 0.3);
  --shadow: 0 24px 48px -12px rgba(28, 25, 23, 0.08);
  --shadow-hover: 0 32px 64px -12px rgba(28, 25, 23, 0.14);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --max-w: 1320px;
  --section-gap: clamp(5rem, 10vw, 9rem);
  --h-pad: clamp(1.25rem, 5vw, 4rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: var(--forest);
  color: var(--white);
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--sand);
  border-radius: 3px;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
}

p {
  color: var(--steel);
  max-width: 58ch;
}

/* === Layout Utilities === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--h-pad);
}

.section {
  padding: var(--section-gap) 0;
}

/* === Scroll Reveal === */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--h-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(245, 243, 239, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: color 0.3s ease;
}

.navbar.scrolled .logo {
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--steel);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--forest);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

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

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  color: var(--white);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.navbar.scrolled .nav-cta {
  border-color: var(--forest);
  color: var(--forest);
}

.nav-cta:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 25, 23, 0.72) 0%,
    rgba(28, 25, 23, 0.25) 50%,
    rgba(28, 25, 23, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--h-pad) clamp(4rem, 8vh, 7rem);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
  max-width: none;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 2.2rem;
  max-width: 14ch;
}

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.9rem 2rem;
  background: var(--forest);
  color: var(--white);
  border-radius: 100px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: #234a30;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(45, 90, 61, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================================
   BRAND STORY
   ============================================================ */
.brand-story {
  background: var(--white);
}

.brand-story .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.brand-story-text h2 {
  margin-bottom: 1.5rem;
}

.brand-story-text p {
  margin-bottom: 1rem;
}

.brand-story-text p:last-of-type {
  margin-bottom: 2rem;
}

.brand-story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-item {
  border-left: 2px solid var(--sand);
  padding-left: 1.2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--steel);
  letter-spacing: 0.04em;
}

.brand-story-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.brand-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.brand-story-image:hover img {
  transform: scale(1.03);
}

/* ============================================================
   PRODUCT SHOWCASE — Horizontal Scroll
   ============================================================ */
.products {
  background: var(--canvas);
  overflow: hidden;
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.products-header h2 {
  max-width: 18ch;
}

.products-header p {
  max-width: 32ch;
  margin-top: 0.75rem;
}

.products-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  cursor: grab;
}

.products-scroll:active {
  cursor: grabbing;
}

.products-scroll::-webkit-scrollbar {
  height: 3px;
}

.product-card {
  flex: 0 0 clamp(280px, 35vw, 420px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.product-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

.product-card-body p {
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

.product-card-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.product-card-link:hover {
  gap: 0.7rem;
}

.scroll-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
  transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-dot.active {
  background: var(--forest);
  transform: scale(1.4);
}

/* ============================================================
   CAPABILITIES — Bento Grid
   ============================================================ */
.capabilities {
  background: var(--white);
}

.capabilities-header {
  text-align: center;
  margin-bottom: 4rem;
}

.capabilities-header h2 {
  margin-bottom: 1rem;
}

.capabilities-header p {
  max-width: 44ch;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: auto;
  gap: 1.5rem;
}

/* Large left — spans 7 cols, 2 rows */
.bento-item--large {
  grid-column: span 7;
  grid-row: span 2;
}

/* Medium right top — spans 5 cols */
.bento-item--medium {
  grid-column: span 5;
}

/* Medium right bottom — spans 5 cols */
.bento-item--medium-2 {
  grid-column: span 5;
}

/* Full width */
.bento-item--full {
  grid-column: span 12;
}

.bento-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--canvas);
  transition: box-shadow 0.3s ease;
}

.bento-card:hover {
  box-shadow: var(--shadow);
}

.bento-card-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
}

.bento-item--large .bento-card-image {
  min-height: 480px;
}

.bento-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-card-image img {
  transform: scale(1.04);
}

.bento-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(28,25,23,0.7) 0%, transparent 100%);
}

.bento-item--large .bento-card-content {
  padding: 2.5rem;
}

.bento-card-content h3 {
  color: var(--white);
  margin-bottom: 0.4rem;
}

.bento-card-content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  max-width: none;
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.social-proof {
  background: var(--canvas);
}

.social-proof-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.social-proof-header h2 {
  margin-bottom: 0.8rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.5rem;
  max-width: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--steel);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
  background: var(--forest);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255,255,255,0.75);
  max-width: 44ch;
  margin: 0 auto 2.5rem;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.9rem 2.2rem;
  background: var(--white);
  color: var(--forest);
  border-radius: 100px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.btn-white:hover {
  background: var(--canvas);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(0,0,0,0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  max-width: 28ch;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--sand);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  max-width: none;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.65);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .brand-story .container {
    grid-template-columns: 1fr;
  }

  .brand-story-image {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .bento-item--large {
    grid-column: span 12;
    grid-row: span 1;
  }

  .bento-item--medium,
  .bento-item--medium-2 {
    grid-column: span 6;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .brand-story-stats {
    grid-template-columns: 1fr 1fr;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .bento-item--large,
  .bento-item--medium,
  .bento-item--medium-2,
  .bento-item--full {
    grid-column: span 12;
  }

  .bento-item--large .bento-card-image {
    min-height: 300px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .brand-story-stats {
    grid-template-columns: 1fr;
  }

  .product-card {
    flex: 0 0 85vw;
  }
}
