/* ===== ARCANE UNDERWEAR — MAIN STYLESHEET ===== */

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

:root {
  --black:        #080808;
  --black-soft:   #0f0f0f;
  --black-card:   #141414;
  --purple:       #500778;
  --purple-mid:   #6a0fa0;
  --purple-light: #9b30d8;
  --blue-purple:  #3a0aaa;
  --gray:         #75787B;
  --gray-dark:    #373A36;
  --white:        #f0eeee;
  --white-muted:  #a8a8a8;
  --border:       rgba(80, 7, 120, 0.3);
  --nav-height:   72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(80, 7, 120, 0.15);
  transition: background 0.3s ease;
}

.nav-logo img {
  height: 36px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.3s;
}
.nav-logo:hover img {
  opacity: 1;
}

/* Nav right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cart button */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.25s;
  cursor: pointer;
  z-index: 1100;
}
.cart-btn:hover {
  opacity: 1;
}
.cart-btn svg {
  display: block;
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--purple-mid);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  display: none;
  pointer-events: none;
}
.cart-count.visible {
  display: block;
}

/* Hamburger button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.3s;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Dropdown */
.dropdown-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.45s ease;
  z-index: 999;
}
.dropdown-menu.open {
  max-height: 340px;
  padding: 20px 0 28px;
}
.dropdown-menu a {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white-muted);
  padding: 14px 0;
  width: 100%;
  text-align: center;
  transition: color 0.25s, letter-spacing 0.25s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dropdown-menu a:last-child {
  border-bottom: none;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--white);
  letter-spacing: 0.32em;
}
.dropdown-menu a.active {
  color: var(--purple-light);
}

/* ===== PAGE WRAPPER ===== */
.page-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ===== HERO (index.html only) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../Assets/images/blue-black-and-purple.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(1.2);
  image-rendering: high-quality;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(80, 7, 120, 0.08) 0%,
    rgba(8, 8, 8, 0.55) 60%,
    rgba(8, 8, 8, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
}

.hero-logo {
  width: min(520px, 78vw);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(80, 7, 120, 0.5))
          drop-shadow(0 0 80px rgba(58, 10, 170, 0.25));
  animation: logoFadeIn 1.8s ease forwards;
  opacity: 0;
}

.hero-tagline {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--white-muted);
  opacity: 0;
  animation: fadeUp 1.6s ease 0.6s forwards;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-mid), transparent);
  opacity: 0;
  animation: fadeIn 1.6s ease 0.9s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeUp 1.6s ease 1.2s forwards;
}

.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 14px 38px;
  transition: border-color 0.3s, background 0.3s, letter-spacing 0.3s;
  cursor: pointer;
  background: transparent;
}
.btn:hover {
  border-color: var(--purple-mid);
  background: rgba(80, 7, 120, 0.15);
  letter-spacing: 0.42em;
}
.btn-primary {
  border-color: var(--purple-mid);
  background: rgba(80, 7, 120, 0.2);
}
.btn-primary:hover {
  background: rgba(80, 7, 120, 0.45);
}

/* ===== SECTION SHARED ===== */
.section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.section-title.gradient-text {
  background: linear-gradient(90deg, var(--purple-light), var(--blue-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.section-sub {
  margin-top: 16px;
  color: var(--white-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Thin ruled divider */
.ruled {
  border: none;
  border-top: 1px solid var(--gray-dark);
  margin: 0 40px;
  opacity: 0.5;
}

/* ===== PRODUCTS PAGE ===== */
.products-hero {
  height: 38vh;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0008 0%, #1a0030 50%, #080818 100%);
  text-align: center;
  padding: 0 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}

.product-card {
  background: var(--black-card);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0030, #0d0020);
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-bg {
  transform: scale(1.05);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, transparent 55%);
}

.product-card-info {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.product-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 8px;
}

.product-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.product-price {
  font-size: 0.85rem;
  color: var(--white-muted);
  letter-spacing: 0.1em;
}

.product-card .btn {
  margin-top: 14px;
  font-size: 0.65rem;
  padding: 10px 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease,
              border-color 0.3s, background 0.3s, letter-spacing 0.3s;
}
.product-card:hover .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Coming soon badge */
.coming-soon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--purple-light);
  padding: 5px 12px;
  z-index: 3;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  height: 45vh;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(160deg, #0d0020 0%, #050010 40%, #08080f 100%);
  padding: 0 40px 50px;
  position: relative;
  overflow: hidden;
}

.about-hero-accent {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(80,7,120,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.about-hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.about-hero-title span {
  display: block;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  letter-spacing: 0.5em;
  font-weight: 400;
  color: var(--purple-light);
  margin-bottom: 12px;
  font-family: 'Raleway', sans-serif;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  color: var(--white-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  line-height: 1.85;
}

.about-text p:first-child {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 400;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.stat-item {
  border-left: 1px solid var(--purple-mid);
  padding-left: 24px;
}

.stat-number {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 6px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2px;
}

.value-card {
  background: var(--black-card);
  padding: 40px 32px;
  transition: background 0.3s;
}
.value-card:hover {
  background: #1a001a;
}

.value-icon {
  font-size: 1.5rem;
  margin-bottom: 16px;
  display: block;
}

.value-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}

.value-text {
  font-size: 0.85rem;
  color: var(--white-muted);
  line-height: 1.75;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
  height: 35vh;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0d0020 0%, #080808 100%);
  text-align: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--white-muted);
  font-size: 0.88rem;
  line-height: 1.85;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 48px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.detail-value {
  font-size: 0.9rem;
  color: var(--white-muted);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--purple-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--black-card);
  border: 1px solid var(--gray-dark);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--purple-mid);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-dark);
}
.form-group textarea {
  min-height: 140px;
}
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--black-card) inset;
  -webkit-text-fill-color: var(--white);
  transition: background-color 5000s ease-in-out 0s;
}
.notify-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.notify-input {
  flex: 1;
  background: var(--black-card);
  border: 1px solid var(--gray-dark);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s;
}
.notify-input:focus {
  border-color: var(--purple-mid);
}
.notify-input::placeholder {
  color: var(--gray-dark);
}
.notify-input:-webkit-autofill,
.notify-input:-webkit-autofill:hover,
.notify-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--black-card) inset;
  -webkit-text-fill-color: var(--white);
  transition: background-color 5000s ease-in-out 0s;
}
.notify-btn {
  white-space: nowrap;
  padding: 12px 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-submit {
  margin-top: 8px;
  text-align: right;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--gray-dark);
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 80px;
  opacity: 0.6;
}

.footer-logo img {
  height: 22px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.25s;
}
.footer-links a:hover {
  color: var(--white);
}

/* ===== ANIMATIONS ===== */
@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Tablet (≤900px) ── */
@media (max-width: 900px) {

  /* About */
  .about-body {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-hero {
    height: auto;
    min-height: 220px;
    padding: 100px 28px 40px;
    align-items: flex-start;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Sections */
  .section {
    padding: 64px 28px;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
    padding: 36px 28px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;
  }

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

  /* Notify form */
  .notify-form {
    flex-direction: column;
  }
  .notify-btn {
    width: 100%;
  }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {

  /* Nav */
  .navbar {
    padding: 0 18px;
    height: 60px;
  }
  :root { --nav-height: 60px; }
  .nav-logo img {
    height: 28px;
  }

  /* Hero */
  .hero-logo {
    width: min(88vw, 340px);
  }
  .hero-content {
    gap: 18px;
    padding: 0 16px;
  }
  .hero-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.3em;
  }
  .hero-statement {
    font-size: clamp(0.9rem, 4.5vw, 1.2rem);
    letter-spacing: 0.08em;
  }

  /* Sections */
  .section {
    padding: 52px 18px;
  }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* About */
  .about-hero {
    padding: 90px 18px 36px;
  }
  .about-hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .about-stats {
    gap: 24px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .values-grid {
    gap: 1px;
  }
  .value-card {
    padding: 32px 20px;
  }

  /* Contact */
  .contact-hero {
    height: auto;
    min-height: 200px;
    padding: 80px 18px 36px;
    align-items: flex-start;
    text-align: left;
  }
  .contact-info,
  .contact-form {
    padding: 0;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 28px 18px;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
  }
  .footer-copy {
    font-size: 0.65rem;
  }

  /* Dropdown */
  .dropdown-menu a {
    font-size: 0.78rem;
    padding: 16px 0;
  }
}

/* ===== HOMEPAGE COLLECTION PREVIEW ===== */
.home-collection {
  border-top: 1px solid var(--gray-dark);
}

.home-product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.home-product-card {
  display: flex;
  flex-direction: column;
  background: var(--black-card);
  border: 1px solid var(--gray-dark);
  transition: border-color 0.3s ease;
  text-decoration: none;
}

.home-product-card:hover {
  border-color: var(--purple-mid);
}

.home-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 20px;
  background: var(--black);
}

.home-product-info {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-product-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
}

.home-product-sub {
  font-size: 0.78rem;
  color: var(--white-muted);
}

.home-cta-row {
  text-align: center;
}

@media (max-width: 768px) {
  .home-product-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .home-product-card img {
    aspect-ratio: 4 / 3;
  }
}
