/* ===========================
   LIWARA PERFUMES — style.css
   Inspired by zinodavidoff.com
   =========================== */

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Jost', sans-serif;
  background: #fff;
  color: #1a1a1a;
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ---- TOKENS ---- */
:root {
  --gold: #b8975a;
  --gold-dark: #9a7a45;
  --black: #0d0d0d;
  --grey-bg: #f4f0ea;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e0dbd4;
  --navy: #0d1b2e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-pad {
  padding: 6rem 0;
}

.section-pad-sm {
  padding: 0 0 6rem;
}

/* ==============================
   NAVIGATION
============================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo a {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: #fff;
  text-transform: uppercase;
  transition: color 0.4s;
}

.nav--scrolled .nav__logo a {
  color: var(--black);
}

.nav__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav__menu-btn,
.nav__icon-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.4s;
  padding: 0;
}

.nav--scrolled .nav__menu-btn,
.nav--scrolled .nav__icon-btn {
  color: var(--black);
}

.nav__menu-btn:hover,
.nav__icon-btn:hover {
  color: var(--gold);
}

.nav__hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__hamburger-icon span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ---- DRAWER ---- */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--black);
  z-index: 500;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  transition: color 0.3s;
}

.nav-drawer__close:hover {
  color: var(--gold);
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav-drawer__links a {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  transition: color 0.3s, transform 0.3s;
}

.nav-drawer__links a:hover {
  color: var(--gold);
  transform: translateX(6px);
}

.nav-drawer__footer {
  margin-top: 4rem;
}

.nav-drawer__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.nav-drawer__backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.nav-drawer__backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ==============================
   HERO
============================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding-bottom: 5%;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 12s var(--ease) forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.07);
  }

  to {
    transform: scale(1.0);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.2) 40%,
      rgba(0, 0, 0, 0.65) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__brand {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: #fff;
  margin-bottom: 0.6rem;
  animation: fadeUp 1s 0.3s both;
}

.hero__tagline {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s 0.5s both;
}

.hero__cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
  animation: fadeUp 1s 0.7s both;
}

.hero__cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   BRAND INTRO
============================== */
.intro {
  border-bottom: 1px solid var(--border);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.intro__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--black);
}

.intro__body {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.intro__body:last-child {
  margin-bottom: 0;
}

/* ==============================
   PRODUCT CARDS
============================== */
.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.prod-card {
  text-align: center;
}

.prod-card__img-link {
  display: block;
}

.prod-card__img-wrap {
  background: var(--grey-bg);
  aspect-ratio: 7/8;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.prod-card__img-wrap img {
  object-fit: contain;
  padding: 3rem 2rem;
  transition: transform 0.7s var(--ease);
}

.prod-card:hover .prod-card__img-wrap img {
  transform: scale(1.04);
}

.prod-card__label {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.05em;
}

/* ==============================
   SPLIT BANNERS
============================== */
.split-banners {}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-cell {
  position: relative;
  aspect-ratio: 7/9;
  overflow: hidden;
  cursor: pointer;
}

.split-cell img {
  transition: transform 0.8s var(--ease);
}

.split-cell:hover img {
  transform: scale(1.04);
}

.split-cell__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.15) 50%,
      transparent 100%);
}

.split-cell__content {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  color: #fff;
}

.split-cell__type {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.split-cell__name {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.split-cell__cta {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.split-cell__cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==============================
   QUOTE BANNER
============================== */
.quote-banner {
  position: relative;
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-bottom: 4%;
}

.quote-banner__bg {
  position: absolute;
  inset: 0;
}

.quote-banner__bg img {
  object-position: center 30%;
}

.quote-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.quote-banner__content {
  position: relative;
  z-index: 2;
}

.quote-banner__quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.quote-banner__sub {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

/* ==============================
   LIFESTYLE GRID
============================== */
.ingredients__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.ingredients__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--black);
}

.ingredients__all {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.3s;
}

.ingredients__all:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.75rem;
}

.lifestyle-grid__main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.lifestyle-grid__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lifestyle-grid__sub {
  position: relative;
  overflow: hidden;
  flex: 1;
  background: var(--grey-bg);
}

.lifestyle-grid__sub img {
  object-fit: contain;
  padding: 1.5rem;
}

.lifestyle-grid__label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lifestyle-grid__label span {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  color: #fff;
}

.lifestyle-grid__label a {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
  align-self: flex-start;
  transition: color 0.3s;
}

.lifestyle-grid__label a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.lifestyle-grid__label--dark span {
  color: var(--black);
}

.lifestyle-grid__label--dark a {
  color: var(--text-muted);
  border-color: var(--border);
}

.lifestyle-grid__label--dark a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.lifestyle-grid__main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.1) 50%,
      transparent 100%);
}

.lifestyle-grid__main .lifestyle-grid__label {
  z-index: 2;
}

.lifestyle-grid__main img {
  transition: transform 0.7s var(--ease);
}

.lifestyle-grid__main:hover img {
  transform: scale(1.03);
}

/* ==============================
   NEWSLETTER
============================== */
.newsletter {
  background: var(--navy);
  padding: 7rem 2rem;
  text-align: center;
}

.newsletter__inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.newsletter__desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.newsletter__field {
  margin-bottom: 1.25rem;
}

.newsletter__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 0;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s;
  text-align: center;
  letter-spacing: 0.05em;
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter__input:focus {
  border-color: rgba(255, 255, 255, 0.7);
}

.newsletter__btn {
  width: 100%;
  background: #fff;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  border: none;
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: background 0.3s, color 0.3s;
}

.newsletter__btn:hover {
  background: var(--gold);
  color: #fff;
}

.newsletter__fine {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.7;
}

.nl-success {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  padding: 2rem 0;
}

/* ==============================
   FOOTER
============================== */
.footer {
  background: #fafaf8;
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--black);
  margin-bottom: 0.4rem;
}

.footer__sub {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer__col h5 {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col ul a {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__col ul a:hover {
  color: var(--gold);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__bottom div {
  display: flex;
  gap: 2rem;
}

.footer__bottom a {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__bottom a:hover {
  color: var(--gold);
}

/* ==============================
   SCROLL REVEAL
============================== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .lifestyle-grid__main {
    aspect-ratio: 16/9;
  }

  .lifestyle-grid__side {
    flex-direction: row;
  }

  .lifestyle-grid__sub {
    aspect-ratio: 1;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1.2rem 1.5rem;
  }

  .nav--scrolled {
    padding: 0.875rem 1.5rem;
  }

  .intro__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .products__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-row {
    grid-template-columns: 1fr;
  }

  .split-cell {
    aspect-ratio: 4/3;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .lifestyle-grid__side {
    flex-direction: column;
  }

  .lifestyle-grid__sub {
    aspect-ratio: unset;
    height: 240px;
  }
}

@media (max-width: 520px) {
  .footer__cols {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}