/* ===================================================================
   AMBRA — Luxury Perfume House
   Style: Glassmorphism + luxury oriental aesthetic
   Author: MB MEDIA
   =================================================================== */

/* ===== CSS Variables ===== */
:root {
  --gold: #C9A227;
  --gold-light: #d8b544;
  --cream: #FAF3E7;
  --cream-dark: #F2E8D8;
  --dark: #15100c;
  --card-bg: rgba(20, 15, 10, 0.45);
  --card-border: rgba(201, 162, 39, 0.2);
  --text-primary: #FAF3E7;
  --text-secondary: rgba(250, 243, 231, 0.8);
  --text-muted: rgba(250, 243, 231, 0.55);
  --rose: #d4897a;
  --amber: #c9a227;
  --musk: #b8b0a8;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --blur: blur(12px);
}

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

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

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: radial-gradient(circle at 20% 15%, rgba(201, 162, 39, 0.18), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(201, 162, 39, 0.12), transparent 50%),
              linear-gradient(160deg, #1a130c 0%, var(--dark) 55%, #0b0805 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Site Wrapper ===== */
.site-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 16px 0;
  min-height: 100vh;
}

/* ===== Glass Section ===== */
.glass-section {
  background: var(--card-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 48px 24px;
  margin-bottom: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Typography ===== */
.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 400;
}

/* ===== Hero Section ===== */
.hero-section {
  text-align: center;
  padding: 80px 24px 64px;
  margin-top: 0;
  border-radius: 0 0 24px 24px;
}

.hero-badge {
  display: inline-block;
  font-size: clamp(11px, 1.8vw, 14px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 12vw, 100px);
  font-weight: 800;
  color: var(--cream);
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(18px, 4vw, 32px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.hero-desc {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  background: var(--gold);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.35);
}

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

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  background: rgba(20, 15, 10, 0.35);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* ===== Product Image with Pop-out Effect ===== */
.product-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: visible;
}

/* Placeholder box — replaces the awaiting product image gracefully */
.product-image-wrapper--placeholder {
  min-height: 300px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 162, 39, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, rgba(201, 162, 39, 0.08), transparent 70%);
  border: 1px dashed rgba(201, 162, 39, 0.4);
  position: relative;
  overflow: hidden;
}
.product-image-wrapper--placeholder::after {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: inset 0 0 40px rgba(201, 162, 39, 0.12);
}

.product-img {
  display: block;
  width: 75%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition), filter var(--transition);
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.product-card:hover .product-img {
  transform: scale(1.15);
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ===== Product Info ===== */
.product-info {
  padding: 0 20px 24px;
  text-align: center;
}

.product-name {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.product-category {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.product-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.note {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(250, 243, 231, 0.08);
  border: 1px solid rgba(250, 243, 231, 0.12);
  border-radius: 999px;
  padding: 4px 14px;
  letter-spacing: 0.03em;
}

/* ===== Ingredients Grid ===== */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.ingredient-card {
  text-align: center;
  padding: 28px 16px;
  background: rgba(250, 243, 231, 0.04);
  border: 1px solid rgba(250, 243, 231, 0.08);
  border-radius: 16px;
  transition: background var(--transition), transform var(--transition);
}

.ingredient-card:hover {
  background: rgba(250, 243, 231, 0.08);
  transform: translateY(-4px);
}

.ingredient-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--gold);
}

.ingredient-icon svg {
  width: 100%;
  height: 100%;
}

.ingredient-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}

.ingredient-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Stats Section ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 28px 12px;
}

.stat-number {
  display: block;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: clamp(12px, 2vw, 15px);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
}

.cta-text {
  font-size: clamp(15px, 2.5vw, 19px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ===== Footer ===== */
.footer-section {
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 16px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-sep {
  color: var(--text-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .glass-section:hover {
    transform: none;
  }
  .product-card:hover .product-img {
    transform: scale(1.05);
  }
}

/* ===================================================================
   Responsive: Mobile < 768px
   - background-attachment: scroll (fix iOS perf)
   - Stacked layout
   =================================================================== */
@media (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  .site-wrapper {
    padding: 56px 12px 0;
  }

  .glass-section {
    padding: 32px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
  }

  .glass-section:hover {
    transform: none;
  }

  .hero-section {
    padding: 60px 16px 48px;
  }

  .hero-title {
    letter-spacing: 0.03em;
  }

  .products-grid {
    gap: 24px;
  }

  .product-img {
    width: 70%;
  }

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

  .ingredients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ingredient-card {
    padding: 20px 12px;
  }

  .ingredient-icon {
    width: 44px;
    height: 44px;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 20px 8px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }
}

/* ===================================================================
   Responsive: Tablet 768px+
   =================================================================== */
@media (min-width: 768px) {
  .site-wrapper {
    padding: 72px 24px 0;
  }

  .glass-section {
    padding: 64px 40px;
    margin-bottom: 28px;
  }

  .hero-section {
    padding: 100px 40px 80px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .product-img {
    width: 80%;
  }

  .ingredients-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* ===================================================================
   Responsive: Desktop 1440px+
   =================================================================== */
@media (min-width: 1440px) {
  .site-wrapper {
    padding: 80px 32px 0;
  }

  .glass-section {
    padding: 80px 56px;
    margin-bottom: 32px;
    border-radius: 28px;
  }

  .hero-section {
    padding: 120px 56px 96px;
  }

  .products-grid {
    gap: 32px;
  }

  .ingredients-grid {
    gap: 32px;
  }
}