/* ==========================================================================
   Jam & Bottle — Perfume Elixirs
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500&display=swap');

/* --- Tokens --- */
:root {
  --ink: #08080d;
  --ink-warm: #0e0e16;
  --ink-card: #111119;
  --cream: #f0e6d0;
  --cream-dim: rgba(240, 230, 208, 0.6);
  --cream-faint: rgba(240, 230, 208, 0.08);
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.12);
  --mauve: #c4929f;
  --honeyed: #d4af5a;
  --oxblood: #a13545;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--ink); color: var(--cream); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7; letter-spacing: 0.015em; overflow-x: hidden; }
::selection { background: var(--gold); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); text-decoration: none; }

/* --- Utility --- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.container--narrow { max-width: 800px; }

.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: center;
  padding: 8rem 0 5rem;
}
.section-header h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.25;
}
.section-header h2 em {
  font-style: italic;
  color: var(--gold);
}

/* --- Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  transition: all 0.5s var(--ease);
}
.nav--scrolled {
  background: rgba(8, 8, 13, 0.92);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--cream-faint);
}
.nav__inner { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav__logo img { height: 55px; width: auto; transition: height 0.5s var(--ease); }
.nav--scrolled .nav__logo img { height: 55px; }
.nav__links { display: flex; gap: 3rem; list-style: none; }
.nav__links a {
  font-size: 0.68rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--cream-dim); transition: color 0.3s; padding: 0.4rem 0;
  position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 22px; height: 1px; background: var(--cream); margin: 5px 0; transition: all 0.3s; }
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero__image {
  position: absolute; inset: 0; z-index: 0;
}
.hero__image img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(8,8,13,0.5) 0%, rgba(8,8,13,0.2) 40%, rgba(8,8,13,0.6) 80%, var(--ink) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(8,8,13,0.4) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 2rem;
}
.hero__logo {
  width: min(360px, 65vw); margin: 0 auto;
  opacity: 0; animation: fadeUp 1.4s var(--ease) 0.2s forwards;
}
.hero__divider {
  width: 50px; height: 1px; background: var(--gold); margin: 2rem auto;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.8s forwards;
}
.hero__tagline {
  font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300; font-style: italic; letter-spacing: 0.08em;
  opacity: 0; animation: fadeUp 1s var(--ease) 1s forwards;
}
.hero__sub {
  font-size: 0.7rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--cream-dim); margin-top: 0.6rem;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.3s forwards;
}
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: var(--cream-dim); text-decoration: none;
  opacity: 0; animation: fadeUp 1s var(--ease) 1.8s forwards;
}
.hero__scroll span { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.3em; }
.hero__scroll svg { animation: scrollBounce 2.5s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ============================================
   INGREDIENTS STRIP
   ============================================ */
.ingredients-strip {
  position: relative; height: 220px; overflow: hidden;
}
.ingredients-strip__image {
  position: absolute; inset: 0;
}
.ingredients-strip__image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
}
.ingredients-strip__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(8,8,13,0.55) 30%, rgba(8,8,13,0.55) 70%, var(--ink) 100%);
}
.ingredients-strip__text {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; height: 100%;
}
.ingredients-strip__text p {
  font-family: var(--serif); font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 300; font-style: italic; letter-spacing: 0.12em;
  color: var(--cream-dim); text-align: center;
}

/* ============================================
   FRAGRANCE FEATURES (staggered image + text)
   ============================================ */
.fragrance-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
  overflow: hidden;
}

.fragrance-feature__image {
  position: relative; overflow: hidden;
}
.fragrance-feature__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.fragrance-feature:hover .fragrance-feature__image img {
  transform: scale(1.03);
}

.fragrance-feature__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}

.fragrance-feature__number {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.35em;
  margin-bottom: 1rem;
}

.fragrance-feature__name {
  font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; font-style: italic; line-height: 1.15;
  margin-bottom: 1.2rem;
}

.fragrance-feature__character {
  font-size: 0.95rem; color: var(--cream-dim); line-height: 1.8;
  margin-bottom: 2rem; max-width: 380px;
}

.fragrance-feature__notes {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 2rem; padding-left: 1rem;
  border-left: 1px solid var(--cream-faint);
}
.note-group { display: flex; gap: 1rem; align-items: baseline; }
.note-label {
  font-size: 0.6rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--cream-dim); min-width: 40px;
}
.note-value {
  font-family: var(--serif); font-size: 0.95rem; font-style: italic;
}

.fragrance-feature__price {
  font-size: 0.75rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--cream-dim); margin-bottom: 2rem;
}

/* Reversed layout (image on right) */
.fragrance-feature--reverse { direction: rtl; }
.fragrance-feature--reverse > * { direction: ltr; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.65rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.25em;
  padding: 1rem 2.2rem; cursor: pointer;
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
  border: none; background: none; color: var(--cream);
}
.btn span { position: relative; z-index: 1; }

.btn--outline {
  border: 1px solid var(--btn-accent, var(--cream-faint));
  color: var(--cream);
}
.btn--outline::before {
  content: ''; position: absolute; inset: 0;
  background: var(--btn-accent, var(--cream));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn--outline:hover { color: var(--ink); }
.btn--outline:hover::before { transform: scaleX(1); }

.btn--gold {
  border: 1px solid var(--gold); color: var(--gold);
}
.btn--gold::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn--gold:hover { color: var(--ink); }
.btn--gold:hover::before { transform: scaleX(1); }

/* ============================================
   BRAND QUOTE
   ============================================ */
.brand-quote {
  padding: 8rem 0;
  background: var(--ink-warm);
  border-top: 1px solid var(--cream-faint);
  border-bottom: 1px solid var(--cream-faint);
}
.brand-quote blockquote { text-align: center; }
.brand-quote p {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300; font-style: italic; line-height: 1.5;
}
.brand-quote cite {
  display: block; margin-top: 1.5rem;
  font-family: var(--sans); font-size: 0.7rem; font-style: normal;
  text-transform: uppercase; letter-spacing: 0.25em; color: var(--gold);
}

/* ============================================
   STORY (image left, text right — overlapping)
   ============================================ */
.story {
  display: grid; grid-template-columns: 55% 1fr;
  min-height: 80vh; overflow: hidden;
}
.story__image-wrap {
  position: relative; overflow: hidden;
}
.story__image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.story__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}
.story__content h2 {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; line-height: 1.3; margin-bottom: 1.5rem;
}
.story__content p {
  color: var(--cream-dim); font-size: 0.92rem; line-height: 1.9;
  margin-bottom: 1.2rem; max-width: 440px;
}
.story__content .btn { margin-top: 1rem; }

/* ============================================
   DISCOVERY SET (image right, text left)
   ============================================ */
.discovery {
  display: grid; grid-template-columns: 1fr 55%;
  min-height: 70vh; overflow: hidden;
  background: var(--ink-warm);
}
.discovery__image-wrap { position: relative; overflow: hidden; }
.discovery__image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.discovery__content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}
.discovery__content h2 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; font-style: italic; margin-bottom: 1.2rem;
}
.discovery__desc {
  color: var(--cream-dim); font-size: 0.92rem; line-height: 1.9;
  margin-bottom: 2rem; max-width: 420px;
}
.discovery__includes {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-family: var(--serif); font-size: 1rem; font-style: italic;
  margin-bottom: 1.5rem; padding-left: 1rem;
  border-left: 1px solid var(--cream-faint);
}
.discovery__price {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 300;
  color: var(--gold); margin-bottom: 2rem;
}

/* ============================================
   JOURNAL STRIP (latest posts on every page)
   ============================================ */
.journal-strip {
  padding: 6rem 0;
  border-top: 1px solid var(--cream-faint);
}
.journal-strip__header {
  text-align: center; margin-bottom: 3rem;
}
.journal-strip__header h3 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 300;
  font-style: italic;
}
.journal-strip__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.journal-strip__card {
  text-decoration: none; color: var(--cream);
  border: 1px solid var(--cream-faint);
  background: var(--ink-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.journal-strip__card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-3px);
}
.journal-strip__image {
  overflow: hidden; aspect-ratio: 16/9;
}
.journal-strip__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.journal-strip__card:hover .journal-strip__image img {
  transform: scale(1.04);
}
.journal-strip__date {
  display: block; padding: 1.2rem 1.2rem 0;
  font-size: 0.6rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gold);
}
.journal-strip__title {
  display: block; padding: 0.4rem 1.2rem 1.4rem;
  font-family: var(--serif); font-size: 1.1rem; font-style: italic;
  line-height: 1.4;
}
.journal-strip__cta {
  text-align: center; margin-top: 3rem;
}

@media (max-width: 768px) {
  .journal-strip__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 6rem 0 3rem;
  border-top: 1px solid var(--cream-faint);
}

.footer__newsletter-section {
  text-align: center; padding-bottom: 5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--cream-faint);
}
.footer__newsletter-section h3 {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 300;
  font-style: italic; margin-bottom: 0.5rem;
}
.footer__newsletter-section > p {
  font-size: 0.85rem; color: var(--cream-dim); margin-bottom: 2rem;
}
.footer__newsletter-form {
  display: flex; max-width: 440px; margin: 0 auto;
}
.footer__newsletter-form input {
  flex: 1; background: transparent;
  border: 1px solid var(--cream-faint); border-right: none;
  color: var(--cream); font-family: var(--sans); font-size: 0.8rem;
  padding: 0.9rem 1.2rem; outline: none;
  transition: border-color 0.3s;
}
.footer__newsletter-form input::placeholder { color: var(--cream-dim); opacity: 0.4; }
.footer__newsletter-form input:focus { border-color: var(--gold); }
.footer__newsletter-form button {
  background: var(--gold); color: var(--ink); border: 1px solid var(--gold);
  font-family: var(--sans); font-size: 0.6rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  padding: 0.9rem 1.8rem; cursor: pointer;
  transition: all 0.3s;
}
.footer__newsletter-form button:hover {
  background: var(--cream); border-color: var(--cream);
}

.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 4rem;
}
.footer__logo { height: auto; margin-bottom: 1rem; opacity: 0.6; }
.footer__tagline {
  font-family: var(--serif); font-size: 0.85rem; font-style: italic;
  color: var(--cream-dim); line-height: 1.6;
}
.footer__grid h4 {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 1.2rem;
}
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { font-size: 0.82rem; color: var(--cream-dim); transition: color 0.3s; }
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--cream-faint);
  font-size: 0.68rem; color: var(--cream-dim); opacity: 0.5;
}
.footer__bottom a { color: var(--cream-dim); }
.footer__bottom a:hover { color: var(--gold); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .fragrance-feature { grid-template-columns: 1fr; min-height: auto; }
  .fragrance-feature--reverse { direction: ltr; }
  .fragrance-feature__image { aspect-ratio: 4/5; max-height: 70vh; }
  .fragrance-feature__content { padding: 3rem clamp(1.5rem, 4vw, 3rem) 5rem; }
  .fragrance-feature__character { max-width: none; }

  .story { grid-template-columns: 1fr; }
  .story__image-wrap { aspect-ratio: 16/10; max-height: 50vh; }
  .story__content { padding: 3rem clamp(1.5rem, 4vw, 3rem) 5rem; }
  .story__content p { max-width: none; }

  .discovery { grid-template-columns: 1fr; }
  .discovery__image-wrap { aspect-ratio: 16/9; max-height: 45vh; order: -1; }
  .discovery__content { padding: 3rem clamp(1.5rem, 4vw, 3rem) 5rem; }
  .discovery__desc { max-width: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none; position: fixed; inset: 0; background: var(--ink);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 2.5rem; z-index: 999;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 0.9rem; letter-spacing: 0.3em; color: var(--cream); }
  .nav__toggle { display: block; z-index: 1001; }

  .hero { min-height: 100svh; }
  .ingredients-strip { height: 160px; }

  .section-header { padding: 5rem 0 3rem; }

  .brand-quote { padding: 5rem 0; }

  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__logo { margin: 0 auto 1rem; }
  .footer__newsletter-form { flex-direction: column; }
  .footer__newsletter-form input { border-right: 1px solid var(--cream-faint); }

  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero__logo { width: 75vw; }
  .fragrance-feature__image { aspect-ratio: 3/4; }
}
