/* ---------- Colors and basics ---------- */
:root {
  --burgundy: #1C070A;
  --cream: #F4EBDD;
  --beige: #E7D8C7;
  --ivory: #EFE2D3;
  --brown: #2A1C18;
  --muted-brown: #75665E;
  --line: rgba(42, 28, 24, 0.18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", Arial, sans-serif;
  --gutter: 24px;
  --section-space: 56px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.05;
}

h2 {
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.section-beige {
  background: var(--beige);
}

.intro {
  color: var(--muted-brown);
  margin-top: 16px;
  max-width: 520px;
}


/* ---------- Keyboard focus ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 4px;
}

.hero a:focus-visible,
.final a:focus-visible {
  outline-color: var(--ivory);
}


/* ---------- Buttons ---------- */

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 72px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition:
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.btn-dark {
  background: var(--burgundy);
  color: var(--ivory);
}

.btn-dark:hover {
  background: var(--brown);
}

.btn-ivory {
  background: var(--ivory);
  color: var(--brown);
}

.btn-ivory:hover {
  background: var(--cream);
}

.brands {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 20px;
}

.brands > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brands::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #EFE2D3;
}

.brands .arrow {
  font-size: 20px;
}


/* =========================================================
   1. NAVIGATION
========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--burgundy);
}

.menu a,
.nav-link {
  position: relative;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.menu a::after,
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.menu a:hover::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-shop {
  padding: 10px 20px;
}

.nav-cart,
.nav-shop {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--brown);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------- Mobile menu ---------- */

.menu {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 var(--gutter);
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-height 0.4s,
    padding 0.4s,
    visibility 0.4s;
}

.menu.open {
  max-height: 360px;
  padding: 24px var(--gutter);
  visibility: visible;
}

.menu a {
  font-size: 18px;
  width: fit-content;
}


/* =========================================================
   2. HERO
========================================================= */

.hero {
  margin-top: 16px;
  background: var(--burgundy);
  color: var(--ivory);
  border-radius: 28px;
  padding: 48px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.hero h1 {
  font-size: 46px;
  text-transform: uppercase;
  color: var(--ivory);
}

.hero p {
  margin-top: 20px;
  max-width: 440px;
  opacity: 0.85;
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  position: relative;
  width: 100%;
  max-width: 380px;
  animation: float 7s ease-in-out infinite;

  -webkit-mask-image: radial-gradient(
    ellipse 70% 75% at 50% 55%,
    #000 55%,
    transparent 100%
  );

  mask-image: radial-gradient(
    ellipse 70% 75% at 50% 55%,
    #000 55%,
    transparent 100%
  );
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}


/* =========================================================
   3. FEATURED CARDS
========================================================= */

.cards {
  margin-top: 40px;
  display: grid;
  gap: 32px;
}

.card {
  display: block;
  padding: 16px 16px 20px;
  border-radius: 12px;
  background: var(--ivory);
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}

.card-image {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  background: var(--beige);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.card-brand {
  margin-top: 20px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-brown);
}

.card h3 {
  font-size: 32px;
  margin-top: 6px;
}

.card-notes {
  color: var(--muted-brown);
  margin-top: 8px;
}

.card-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-size: 14px;
}

.card-arrow {
  color: var(--burgundy);
  font-size: 22px;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}


/* Hover and keyboard focus */

.card:hover,
.card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(28, 7, 10, 0.16);
}

.card:hover .card-image img,
.card:focus-visible .card-image img {
  transform: scale(1.05);
}

.card:hover .card-arrow,
.card:focus-visible .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (hover: none) {
  .card-arrow {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   4. FIND YOUR SCENT
========================================================= */

.moods {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.mood {
  position: relative;
  overflow: hidden;
  height: 420px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--burgundy);
  text-align: left;
  transition:
    transform 0.4s,
    border-color 0.3s,
    box-shadow 0.4s;
}

.mood img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.mood-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: var(--ivory);
  background: linear-gradient(
    transparent,
    rgba(28, 7, 10, 0.85)
  );
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mood-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.mood-desc {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.mood:hover,
.mood:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(28, 7, 10, 0.2);
}

.mood:hover img,
.mood:focus-visible img {
  transform: scale(1.06);
}

.mood:hover .mood-desc,
.mood:focus-visible .mood-desc,
.mood[aria-pressed="true"] .mood-desc {
  opacity: 1;
  transform: none;
}

.mood[aria-pressed="true"] {
  border-color: var(--brown);
  box-shadow:
    0 0 0 4px var(--cream),
    0 0 0 6px var(--burgundy);
}

@media (hover: none) {
  .mood-desc {
    opacity: 1;
    transform: none;
  }
}

.mood-result {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--burgundy);
}


/* =========================================================
   5. SHOP BY BRAND
========================================================= */

/* Main layout:
   Left = editorial introduction
   Right = fragrance house list
*/

.brands-section {
  background: var(--cream);
  padding-top: 110px;
  padding-bottom: 110px;
}

.brands-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr;
  gap: 90px;
  align-items: start;
}


/* ---------- Left side ---------- */

.brands-intro {
  max-width: 430px;
}

.brands-intro .eyebrow {
  margin: 0 0 28px;
  color: var(--muted-brown);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.brands-intro h2 {
  margin: 0;
  color: var(--brown);
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 78px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -2px;
  text-transform: none;
}

.brands-intro h2 em {
  font-style: italic;
}

.brands-description {
  max-width: 390px;
  margin: 34px 0 38px;
  color: var(--muted-brown);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
}


/* ---------- Brands CTA ---------- */

.brands-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  padding-bottom: 10px;
  border-bottom: 1px solid var(--brown);

  color: var(--brown);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    gap 0.3s ease;
}

.brands-cta span {
  font-size: 18px;
  line-height: 1;
}

.brands-cta:hover {
  color: var(--burgundy);
  border-color: var(--burgundy);
  gap: 24px;
}


/* ---------- Right side / Brand list ---------- */

.brand-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.brand-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.brand-list a {
  position: relative;

  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 30px;

  min-height: 82px;
  padding: 0;

  color: var(--brown);
  text-decoration: none;

  transition:
    color 0.3s ease,
    padding 0.3s ease;
}


/* ---------- Brand name ---------- */

.brand-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.3s ease;
}


/* ---------- Brand description ---------- */

.brand-description {
  color: var(--muted-brown);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.4;
  transition: color 0.3s ease;
}


/* ---------- Brand arrow ---------- */

.brand-arrow {
  color: var(--brown);
  font-family: var(--sans);
  font-size: 16px;

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}


/* ---------- Brand hover ---------- */

.brand-list a:hover {
  color: var(--burgundy);
  padding-left: 10px;
}

.brand-list a:hover .brand-name,
.brand-list a:hover .brand-arrow {
  color: var(--burgundy);
}

.brand-list a:hover .brand-description {
  color: var(--brown);
}

.brand-list a:hover .brand-arrow {
  transform: translate(3px, -3px);
}


/* =========================================================
   6. WHY RAHIQ
========================================================= */

.values {
  margin-top: 32px;
  display: grid;
  gap: 32px;
}

.value h3 {
  font-size: 30px;
}

.value p {
  margin-top: 10px;
  color: var(--muted-brown);
  max-width: 320px;
}


/* =========================================================
   7. FINAL CTA
========================================================= */

.final-wrap {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.final {
  background: var(--burgundy);
  color: var(--ivory);
  border-radius: 28px;
  padding: 64px 24px;
  text-align: center;
}

.final h2 {
  font-size: 40px;
  max-width: 760px;
  margin: 0 auto 36px;
  color: var(--ivory);
}


/* =========================================================
   8. FOOTER
========================================================= */

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted-brown);
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 700px) {

  :root {
    --gutter: 40px;
    --section-space: 80px;
  }

  .cards,
  .moods {
    grid-template-columns: repeat(3, 1fr);
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
  }

  .card h3 {
    font-size: 26px;
  }

  .mood {
    height: 460px;
  }

  .mood-title {
    font-size: 30px;
  }

  /* Brands */
  .brands-layout {
    grid-template-columns: 0.8fr 1.4fr;
    gap: 60px;
  }

  .brand-list a {
    grid-template-columns: 1fr auto;
  }

  .brand-description {
    display: none;
  }
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1000px) {

  :root {
    --gutter: 56px;
    --section-space: 104px;
  }

  h2 {
    font-size: 52px;
  }


  /* ---------- Navigation ---------- */

  .hamburger,
  .menu-cart {
    display: none;
  }

  .nav-cart,
  .nav-shop {
    display: inline-block;
  }

  .menu {
    position: static;
    visibility: visible;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    gap: 40px;
    padding: 0;
    border: 0;
    background: none;
  }

  .menu a {
    font-size: 15px;
  }


  /* ---------- Hero ---------- */

  .hero {
    flex-direction: row;
    align-items: center;
    height: 700px;
    padding: 0 64px;
    border-radius: 44px;
  }

  .hero-text {
    flex: 55;
  }

  .hero-image {
    flex: 45;
    align-self: stretch;
    align-items: center;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero-image img {
    max-width: 440px;
  }


  /* ---------- Featured cards ---------- */

  .card h3 {
    font-size: 30px;
  }


  /* =====================================================
     BRANDS - DESKTOP
  ===================================================== */

  .brands-section {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .brands-layout {
    grid-template-columns: 0.85fr 1.5fr;
    gap: 90px;
    align-items: start;
  }

  .brands-intro {
    max-width: 430px;
  }

  .brands-intro h2 {
    font-size: 72px;
  }

  .brand-list a {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    min-height: 82px;
  }

  .brand-name {
    font-size: 32px;
  }

  .brand-description {
    display: block;
  }


  /* ---------- Final CTA ---------- */

  .final {
    padding: 120px 48px;
    border-radius: 44px;
  }

  .final h2 {
    font-size: 68px;
  }


  /* ---------- Why RAHIQ ---------- */

  .values {
    gap: 0;
  }

  .value {
    padding: 0 40px;
    border-left: 1px solid var(--line);
  }

  .value:first-child {
    padding-left: 0;
    border-left: 0;
  }


  /* ---------- Footer ---------- */

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}


/* =========================================================
   MOBILE BRANDS
========================================================= */

@media (max-width: 900px) {

  .brands-section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .brands-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .brands-intro {
    max-width: 600px;
  }

  .brands-intro h2 {
    font-size: clamp(48px, 12vw, 68px);
  }

  .brands-description {
    max-width: 500px;
  }

  .brand-list a {
    grid-template-columns: 1fr auto;
    min-height: 75px;
    gap: 20px;
  }

  .brand-description {
    display: none;
  }

  .brand-name {
    font-size: 29px;
  }
}


/* ---------- Small mobile ---------- */

@media (max-width: 500px) {

  .brands-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .brands-intro .eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  .brands-intro h2 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .brands-description {
    margin-top: 25px;
    margin-bottom: 30px;
    font-size: 13px;
  }

  .brand-list a {
    min-height: 68px;
  }

  .brand-name {
    font-size: 27px;
  }
}


/* =========================================================
   RESPECT REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}