/* ============================================================
   ATTIBOY — DTC Storefront Styles
   Do it right. Do it better. Prove them wrong.
   ============================================================ */

:root {
  --cream: #F5F0E8;
  --cream-dark: #E8E0D4;
  --black: #0A0A0A;
  --grey: #6B6B6B;
  --grey-light: #B0ADA6;
  --grey-dark: #2A2A2A;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow Condensed', sans-serif;
  background-color: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--cream);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  background: linear-gradient(180deg, var(--black) 0%, #111 50%, var(--black) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 45%, rgba(245,240,232,0.03) 0%, transparent 100%);
  pointer-events: none;
}

.hero-logo {
  width: clamp(160px, 25vw, 280px);
  margin-bottom: 40px;
  position: relative;
  animation: fadeInUp 1s ease-out;
}

.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 300;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 48px;
  position: relative;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-cta {
  position: relative;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 48px;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--cream);
  color: var(--black);
  border: 2px solid var(--cream);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--cream);
  border: 2px solid var(--black);
}

.btn-dark:hover {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-buy {
  background: var(--cream);
  color: var(--black);
  border: 2px solid var(--cream);
  font-size: 16px;
  padding: 18px 64px;
  width: 100%;
  text-align: center;
}

.btn-buy:hover {
  background: var(--cream-dark);
  border-color: var(--cream-dark);
}

.btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
  background: var(--cream);
  color: var(--black);
  padding: 100px 0;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 0.9;
  margin-bottom: 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition);
}

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

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.product-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-card-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--grey);
}

/* ============ STORY SECTION ============ */
.story-section {
  background: var(--black);
  color: var(--cream);
  padding: 120px 0;
}

.story-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.story-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 48px;
}

.story-quote em {
  font-style: italic;
  color: var(--grey-light);
}

.story-text {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: var(--grey-light);
  margin-bottom: 24px;
}

.story-text strong {
  color: var(--cream);
  font-weight: 500;
}

.story-divider {
  width: 40px;
  height: 1px;
  background: var(--grey);
  margin: 48px auto;
}

.story-closing {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 0.05em;
  margin-top: 48px;
}

/* ============ EMAIL CAPTURE ============ */
.email-section {
  background: var(--cream);
  color: var(--black);
  padding: 100px 0;
  text-align: center;
}

.email-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 12px;
}

.email-subtitle {
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 40px;
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  flex: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  padding: 16px 20px;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--black);
  outline: none;
  letter-spacing: 0.05em;
}

.email-form input[type="email"]::placeholder {
  color: var(--grey-light);
}

.email-form button {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  background: var(--black);
  color: var(--cream);
  border: 2px solid var(--black);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.email-form button:hover {
  background: var(--grey-dark);
  border-color: var(--grey-dark);
}

.email-form-message {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.email-form-message.success {
  color: #2d6a2e;
}

.email-form-message.error {
  color: #8b2020;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--grey-dark);
  padding: 60px 0 40px;
  text-align: center;
}

.footer-logo img {
  height: 32px;
  margin: 0 auto 24px;
}

.footer-tagline {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-links a {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color var(--transition);
}

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

.footer-copyright {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* ============ PRODUCT PAGE ============ */
.product-page {
  padding-top: 80px;
  min-height: 100vh;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

.product-image-wrap {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.product-image-wrap img {
  max-height: 80vh;
  object-fit: contain;
}

.product-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}

.product-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.product-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--grey-light);
  margin-bottom: 32px;
}

.product-description {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-light);
  margin-bottom: 40px;
  max-width: 400px;
}

/* Size Selector */
.size-selector {
  margin-bottom: 40px;
}

.size-label {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 12px;
}

.size-options {
  display: flex;
  gap: 8px;
}

.size-btn {
  width: 52px;
  height: 52px;
  border: 2px solid var(--grey-dark);
  color: var(--grey-light);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}

.size-btn:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.size-btn.active {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--black);
}

.product-buy-wrap {
  max-width: 400px;
}

/* Product Story Section */
.product-story {
  background: var(--cream);
  color: var(--black);
  padding: 100px 0;
  text-align: center;
}

.product-story-text {
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.8;
  color: var(--grey);
}

.product-story-text strong {
  color: var(--black);
  font-weight: 500;
}

/* ============ SUCCESS PAGE ============ */
.success-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 32px;
}

.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 16px;
}

.success-message {
  font-weight: 300;
  font-size: 18px;
  color: var(--grey-light);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    padding: 24px;
    min-height: 50vh;
  }

  .product-details {
    padding: 32px 24px 60px;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form button {
    width: 100%;
  }

  .site-header {
    padding: 16px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }

  .size-btn {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 140px;
  }

  .product-name {
    font-size: 36px;
  }

  .product-price {
    font-size: 28px;
  }
}
