/* =============================================
   AZZIMATO — Landing Page
   ============================================= */

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

:root {
  --black:      #0a0a0a;
  --white:      #ffffff;
  --off-white:  #fafaf8;
  --gray-soft:  #f2f0ee;
  --gray:       #999;
  --border:     #e2e0dd;
  --green:      #4a7c4e;
  --green-bg:   #eaf4eb;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Jost', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--off-white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 7vw;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav-logo {
  height: 42px;
  width: auto;
  transition: opacity 0.3s;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 7vw;
  box-shadow: 0 1px 0 var(--border);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* --- Image layer --- */
.hero-media {
  position: absolute;
  top: -14%;
  bottom: 0;
  left: 0;
  right: 0;
  will-change: transform;
}

.hero-kenburns {
  width: 100%;
  height: 100%;
  animation: kenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurns {
  from { transform: scale(1.0)  translate(0, 0); }
  to   { transform: scale(1.09) translate(-1%, 0.5%); }
}

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

/* --- Gradient overlays --- */
.hero-vignette-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    transparent 72%
  );
  z-index: 1;
}

.hero-vignette-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.18) 35%,
    transparent 60%
  );
  z-index: 1;
}

/* Cinematic black reveal on load */
.hero-overlay-reveal {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 5;
  animation: cinemaReveal 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes cinemaReveal {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* --- Clip-reveal technique (luxury text entrance) --- */
.clip-mask {
  display: block;
  overflow: hidden;
  line-height: 1.05;
}

.clip-slide {
  display: block;
  transform: translateY(110%);
  animation: clipReveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes clipReveal {
  to { transform: translateY(0); }
}

/* --- Hero editorial content (bottom-left) --- */
.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  padding: 0 7vw 36px;
}

.hero-eyebrow .clip-slide {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 8.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 26px;
}

.hero-title .clip-mask {
  line-height: 1.02;
}

.hero-title--italic {
  font-style: italic;
  padding-left: 0.08em;
}

/* Tagline row with animated rule */
.hero-sub {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-sub-rule {
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  animation: expandRule 0.7s ease forwards;
}

@keyframes expandRule {
  to { width: 36px; }
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.88rem, 1.4vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
}

/* --- Bottom frosted product strip --- */
.hero-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 7vw;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(100%);
  animation: slideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

.hb-name {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hb-dot {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

.hb-price {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
}

.hb-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  transition: gap 0.3s ease, border-color 0.3s;
}

.hb-cta:hover {
  gap: 16px;
  border-color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   STRIP
   ============================================= */
.strip {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 15px 20px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

/* =============================================
   PRODUCT SECTION
   ============================================= */
.product {
  padding: 88px 48px 110px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}

/* Scroll reveal for product columns */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.95s ease, transform 0.95s ease;
}

[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }

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

/* Product image */
.product-img-frame {
  overflow: hidden;
  background: var(--gray-soft);
  position: relative;
}

.product-img {
  width: 100%;
  display: block;
  transition: transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-img-frame:hover .product-img {
  transform: scale(1.045);
}

.product-img-caption {
  margin-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gray);
  text-transform: uppercase;
}

/* Product info column */
.product-brand {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.product-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.product-slogan {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--gray);
  margin-bottom: 28px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.product-price {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.product-stock {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-bg);
  padding: 5px 12px;
  border-radius: 2px;
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 34px;
}

/* Size picker */
.size-picker {
  margin-bottom: 26px;
}

.size-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}

.size-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.size-guide {
  font-size: 0.68rem;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.size-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.size-hint {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #c0392b;
  opacity: 0;
  transition: opacity 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-7px); }
  75%       { transform: translateX(7px); }
}

.size-picker.shake {
  animation: shake 0.4s ease;
}

/* Quantity picker */
.qty-picker {
  margin-bottom: 26px;
}

.qty-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 46px;
  height: 46px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  user-select: none;
}

.qty-btn:hover {
  background: var(--gray-soft);
}

.qty-value {
  min-width: 52px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 400;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Add to cart button */
.btn-cart {
  width: 100%;
  padding: 18px 24px;
  background: var(--black);
  color: var(--white);
  border: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.btn-cart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2a2a2a;
  transform: translateX(-101%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cart:hover::before {
  transform: translateX(0);
}

.btn-cart:hover {
  transform: translateY(-1px);
}

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

.btn-cart-label,
.btn-cart svg {
  position: relative;
  z-index: 1;
}

.btn-cart--added {
  background: var(--green) !important;
}

.btn-cart--added::before {
  display: none;
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: opacity 0.2s;
}

.accordion-trigger:hover {
  opacity: 0.55;
}

.acc-icon {
  flex-shrink: 0;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .acc-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

/* Spec list (dl) */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-bottom: 22px;
}

.spec-list > div {
  display: flex;
  gap: 20px;
}

.spec-list dt {
  font-size: 0.78rem;
  color: var(--gray);
  min-width: 90px;
  flex-shrink: 0;
}

.spec-list dd {
  font-size: 0.78rem;
}

/* Bullet list */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 22px;
}

.bullet-list li {
  font-size: 0.82rem;
  color: #555;
  padding-left: 18px;
  position: relative;
}

.bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gray);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--black);
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.5fr;
  gap: 56px;
  padding: 72px 7vw 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Brand column */
.footer-logo {
  height: 22px;
  width: auto;
  margin-bottom: 22px;
  opacity: 0.5;
}
.footer-brand-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 28px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}

.footer-social:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

/* Column shared */
.footer-col-title {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 22px;
  font-weight: 400;
}

/* Nav links */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 300;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.25s ease;
}

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

.footer-links a:hover::after {
  width: 16px;
}

/* Newsletter */
.footer-newsletter-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 22px;
}

.newsletter-field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 14px;
  transition: border-color 0.25s;
}

.newsletter-field:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
}

.newsletter-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  padding: 10px 0;
  letter-spacing: 0.02em;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.newsletter-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 10px 0 10px 14px;
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.25s;
}

.newsletter-btn:hover {
  color: var(--white);
  transform: translateX(4px);
}

.newsletter-btn:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

.newsletter-success {
  font-size: 0.72rem;
  color: #7fc882;
  letter-spacing: 0.04em;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
}

.newsletter-success.visible {
  max-height: 30px;
  opacity: 1;
}

.footer-newsletter-note {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.65;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
}

.footer-copy {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

.footer-legal span {
  color: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .product {
    padding: 64px 32px 80px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(28px);
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 20px 6vw;
  }

  .nav--scrolled {
    opacity: 0;
    pointer-events: none;
  }

  .nav-logo {
    width: 30vw;
    height: auto;
    margin-top: 30px; }

  .hero-content {
    padding: 0 6vw 28px;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hb-name {
    display: none;
  }

  .hb-dot {
    display: none;
  }

  .product {
    padding: 0 0 72px;
  }

  .product-grid {
    gap: 40px;
  }

  .product-gallery {
    padding: 0;
  }

  .product-img-frame {
    border-radius: 0;
  }

  .product-img-caption {
    padding: 0 20px;
  }

  .product-info {
    padding: 40px 20px 0;
  }

  .size-btn {
    width: 46px;
    height: 46px;
    font-size: 0.72rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 52px 6vw 44px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    padding: 20px 6vw 28px;
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 48px;
    align-items: start;
  }

  .footer-col--brand .footer-logo {
    grid-column: 1;
  }

  .footer-col--brand .footer-brand-tagline {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 12px;
  }

  .footer-col--brand .footer-socials {
    grid-column: 2;
    grid-row: 2;
  }
}
