/*
 * Custom stylesheet for Archive Perfumery
 *
 * This file defines a soft, contemporary palette inspired by the
 * three signature perfumes. It uses CSS variables for easy
 * theming and lays out a responsive grid for the collection. The
 * frosted bottles are built entirely with CSS shapes and a glossy
 * cap to echo the original design intent. Hover states and
 * transitions add a tactile feel without using external
 * frameworks.
 */

/* Root variables for colours and spacing */
:root {
  /* Minimalist luxury palette inspired by Dior's understated elegance */
  --color-background: #ffffff;       /* pure white base */
  --color-section: #f6f6f6;          /* light grey for alternate sections */
  --color-primary: #b80f55;          /* magenta accent for Red Flag */
  --color-secondary: #2a4682;        /* deep navy accent for Obsessed */
  --color-tertiary: #735c8e;         /* muted lavender accent for Poison Kiss */
  --color-dark: #1a1a1a;             /* near‑black for headings */
  --color-grey: #505050;             /* dark grey for body text */
  --color-light: #ffffff;
  --radius: 12px;
  --max-width: 1280px;
}

/* Global resets */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Use clean sans serif for body to echo Dior's minimalism */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--color-dark);
  background: var(--color-background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Typography improvements for a luxury feel */
h1, h2, h3, h4, h5, h6 {
  /* Use high‑contrast serif for headings reminiscent of luxury fashion brands */
  font-family: "Didot", "Bodoni MT", "Georgia", serif;
  letter-spacing: 1px;
}

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

/* Header styles */
header {
  background: var(--color-light);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

header .logo img {
  height: 40px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  font-weight: 500;
  color: var(--color-dark);
  transition: color 0.2s ease;
  letter-spacing: 0.5px;
  text-transform: none;
  font-size: 1rem;
}

header nav ul li a:hover {
  /* Use primary accent for hover effect */
  color: var(--color-primary);
}

@media (max-width: 600px) {
  header nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Hero section */
#hero {
  position: relative;
  background: url('assets/design_depan_poison_kiss.png') center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Softer overlay to allow hero image to shine through */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

#hero .hero-content {
  position: relative;
  padding: 4rem 2rem;
  max-width: 700px;
  z-index: 1;
}

#hero h1 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 700;
}

#hero p {
  margin-top: 1.2rem;
  font-size: 1.3rem;
}

#hero .cta-btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: transparent;
  color: var(--color-dark);
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

#hero .cta-btn:hover {
  background: var(--color-dark);
  color: var(--color-light);
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.4rem;
  }
  #hero p {
    font-size: 1rem;
  }
}

/* About section */
#about {
  padding: 4rem 2rem;
  background: var(--color-section);
  color: var(--color-dark);
}

#about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

#about .about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

#about .about-content em {
  font-style: italic;
}

/* Collection section */
#collection {
  padding: 4rem 2rem;
  background: var(--color-background);
}

#collection h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.perfume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--color-light);
  border-radius: var(--radius);
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Bottle design */
.card .bottle {
  width: 80px;
  height: 120px;
  margin: 0 auto 1rem;
  position: relative;
}

.card .bottle .body {
  width: 100%;
  height: 100%;
  border-radius: 12px 12px 20px 20px;
  opacity: 0.95;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card .bottle .cap {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 40px;
  height: 20px;
  border-radius: 4px;
  /* Dark cap for a refined, minimal look */
  background: var(--color-dark);
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Colour theming for each perfume */
/* Red bottle color for Red Flag */
.card.red .bottle .body {
  background: #d95a90;
}

.card.red .tagline {
  color: var(--color-primary);
}

/* Blue bottle color for Obsessed */
.card.blue .bottle .body {
  background: #4f6faa;
}

.card.blue .tagline {
  color: var(--color-secondary);
}

/* Lavender bottle color for Poison Kiss */
.card.lavender .bottle .body {
  background: #8b7aa4;
}

.card.lavender .tagline {
  color: var(--color-tertiary);
}

  /* Accent lines on top of cards matching each perfume */
  .card.red {
    border-top: 4px solid var(--color-primary);
  }
  .card.blue {
    border-top: 4px solid var(--color-secondary);
  }
  .card.lavender {
    border-top: 4px solid var(--color-tertiary);
  }

/* Card typography */
.card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-dark);
}

.card .tagline {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.4px;
  font-style: normal;
}

.card button.toggle-story {
  margin-top: 1rem;
  display: block;
  width: 100%;
  background: transparent;
  color: var(--color-dark);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--color-dark);
}

.card button.toggle-story:hover {
  background: var(--color-dark);
  color: var(--color-light);
}

/* Colour-coded toggle buttons for each perfume */
.card.red button.toggle-story {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.card.red button.toggle-story:hover {
  background: var(--color-primary);
  color: var(--color-light);
}

.card.blue button.toggle-story {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}
.card.blue button.toggle-story:hover {
  background: var(--color-secondary);
  color: var(--color-light);
}

.card.lavender button.toggle-story {
  border-color: var(--color-tertiary);
  color: var(--color-tertiary);
}
.card.lavender button.toggle-story:hover {
  background: var(--color-tertiary);
  color: var(--color-light);
}

.card .story {
  margin-top: 1rem;
  color: var(--color-grey);
  line-height: 1.6;
  font-size: 0.95rem;
}

.card .story h4 {
  margin: 1rem 0 0.5rem;
  color: var(--color-dark);
  font-size: 1.1rem;
}

.card .story ul.notes {
  margin: 0;
  padding-left: 1rem;
}

.card .story ul.notes li {
  margin-bottom: 0.4rem;
}

.hidden {
  display: none;
}

/* Detail link within cards */
.card .detail-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.card.red .detail-link {
  color: var(--color-primary);
}
.card.blue .detail-link {
  color: var(--color-secondary);
}
.card.lavender .detail-link {
  color: var(--color-tertiary);
}
.card .detail-link:hover {
  opacity: 0.8;
}

/* Product hero pages */
.product-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.product-hero .hero-overlay {
  position: relative;
  max-width: 800px;
  padding: 3rem 2rem;
}

.product-hero h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
}

.product-hero p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.product-hero.red {
  background: url('assets/design_depan_red_flag.png') center/cover no-repeat;
}

.product-hero.blue {
  background: url('assets/design_depan_obsessed.png') center/cover no-repeat;
}

.product-hero.lavender {
  background: url('assets/design_depan_poison_kiss.png') center/cover no-repeat;
}

/* Story section for dedicated perfume pages */
.story-section {
  padding: 4rem 2rem;
}

.story-section .container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: var(--color-dark);
}

.story-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.story-section h3 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.story-section ul {
  padding-left: 1.5rem;
}

.story-section ul li {
  margin-bottom: 0.4rem;
}

/* Other products cross navigation */
.other-products {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--color-section);
}

.other-products h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: var(--color-dark);
}

.other-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.other-grid .mini-card {
  display: block;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid currentColor;
}

.other-grid .mini-card.red {
  color: var(--color-primary);
  background: transparent;
}

.other-grid .mini-card.red:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.other-grid .mini-card.blue {
  color: var(--color-secondary);
  background: transparent;
}

.other-grid .mini-card.blue:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.other-grid .mini-card.lavender {
  color: var(--color-tertiary);
  background: transparent;
}

.other-grid .mini-card.lavender:hover {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
}

.other-grid .mini-card:hover {
  /* Fill with accent colour on hover */
  color: var(--color-light);
}

/* Generic page hero for static pages (About, Collection, Kirim Cerita) */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.page-hero .hero-overlay {
  position: relative;
  max-width: 800px;
  padding: 3rem 2rem;
}

.page-hero h1 {
  margin: 0;
  font-size: 2.8rem;
  line-height: 1.2;
  font-weight: 700;
}

.page-hero p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.page-hero.about {
  background: url('assets/design_depan_poison_kiss.png') center/cover no-repeat;
}

.page-hero.collection {
  background: url('assets/design_depan_red_flag.png') center/cover no-repeat;
}

.page-hero.submit {
  background: url('assets/design_depan_obsessed.png') center/cover no-repeat;
}

/* Remove decorative underlines for a clean, minimal look */

/* Contact / Kirim Cerita form */
.form-section {
  padding: 4rem 2rem;
}

.form-section .container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form button {
  background: transparent;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: var(--color-dark);
  color: var(--color-light);
}

/* Submit section */
#submit {
  padding: 4rem 2rem;
  background: var(--color-section);
  text-align: center;
}

#submit h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

#submit p {
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

#submit a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--color-light);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-grey);
}