/* ─── RESET ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --gold: #b19869;
  --gold-pale: #d4bc96;
  --cream: #fcf9f7;
  --warm-off: #f5f2ee;
  --text: #2c2825;
  --muted: #7a7268;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
}

/* ─── BASE ────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "inter";
  background-color: var(--cream);
  color: var(--text);
  font-weight: 300;
}

/* ─── UTILITY ─────────────────────────────────────────── */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.jesmonite {
  margin-top: 90px;
}

/* ─── HEADER ─────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(252, 249, 247, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(177, 152, 105, 0.12);
  transition: background-color 0.5s ease-out, border-color 0.5s ease-out;
}

header.scrolled {
  background-color: rgba(252, 249, 247, 0.6);
  border-color: transparent;
}

.header-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr;
  align-items: center;
  height: 130px;
  justify-items: start;
}

/* ── Logo (center column) ── */
.logo {
  display: flex;
  gap: 10px;
  text-decoration: none;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  grid-area: 1 / 2;
}

.logo-img {
  width: 80px;
  height: 80px;
  background-image: url("/img/CeluneCandles-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.logo-name {
  display: block;
  background-image: url("/img/CeluneCandles-name-logo.png");
  width: 240px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}


/* ── Nav (left column on desktop) ── */
.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 65px;
}


.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gold);
}

/* ── Right column ── */
.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ── Collection dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: "inter";
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0;
  transition: color 0.2s;
}

.nav-btn:hover,
.nav-dropdown.open .nav-btn {
  color: var(--gold);
}

.chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown.open .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  background-color: var(--cream);
  border: 1px solid rgba(177, 152, 105, 0.18);
  min-width: 140px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  text-decoration: none;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 20px;
  transition: background-color 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background-color: var(--warm-off);
  color: var(--gold);
}

/* ── Hamburger button ── */
.hamburger {
  background-image: url(/img/hamberger-menu.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 50px;
  height: 50px;
  flex-direction: column;
  gap: 5px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 4px;
  display: none;

}

.hamburger span {
  display: block;
}

.hamburger:hover span {
  background-color: var(--gold);
}

/* ── Mobile full-screen menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  position: absolute;
  top: 44px;
  right: 28px;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  font-size: 30px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  color: var(--gold);

}

.mobile-menu-close:hover {
  color: var(--gold);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--gold);
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  height: 100vh;
  min-height: 600px;
  background-image: url("/img/hero.png");
  background-size: cover;
  background-position: center bottom;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-content {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.1;
  max-width: 560px;
  margin-bottom: 16px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 380px;
  line-height: 1.7;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  text-decoration: none;
  color: var(--text);
  background-color: var(--cream);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 1px;
  transition: background-color 0.2s, color 0.2s;
}

.btn:hover {
  background-color: var(--gold);
  color: #fff;
}

/* ─── MADE WITH CARE ─────────────────────────────────── */
.care {
  padding: 120px 0;
  background-color: var(--cream);
}

.care-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.care-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 32px;
}

.care-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.care-text .highlight {
  font-weight: 400;
  color: var(--text);
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.care-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.care-img {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: #e8e2d8;
  background-size: cover;
  background-position: center;
}

.care-img:first-child {
  margin-top: -40px;
  background-image: url("/img/soy-wax.jpeg");
  background-size: cover;
  background-position: left;
}

.care-img:last-child {
  margin-top: 40px;
  background-image: url("/img/cleancandle.jpeg");
}

/* ─── COLLECTION ─────────────────────────────────────── */
.collection {
  padding: 120px 0;
  background-color: var(--warm-off);
}

.collection-header,
.Jesmonite-header {
  text-align: center;
  margin-bottom: 72px;
}

.Jesmonite-header h2 {
  margin-top: 60px;
}

.collection-header h2,
.Jesmonite-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 12px;
}

.collection-header p,
.Jesmonite-header p {
  font-family: "inter";
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pricebox {
  display: flex;
  flex-direction: column;
  padding-bottom: 10px;
}

.product {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.product p {
  font-size: 14px;
  font-weight: 400;
}

.product a {
  text-decoration: none;
  color: #816d4b;
}

.Dm-us {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }

  100% {
    opacity: 1;
  }
}

.Dm-us:hover {
  opacity: 1;
  animation: none;
}

.product p span {
  color: #816d4b;
}

.ava-box a {
  height: auto;
}

a.product-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s;

  margin-bottom: 10px;
}

a.product-link:hover {
  opacity: 0.85;
}

.product-image {
  aspect-ratio: 1 / 1;
  background-color: #e2ddd4;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.product-name {
  font-size: 13px;
  font-weight: 400;
  color: #816d4b;
  margin-bottom: 4px;
}

.product-price {
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.product-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* slider */
.product-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #e2ddd4;
}

.product-slider .prev,
.product-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgb(252 249 247 / 8%);
  border: none;
  width: 32px;
  backdrop-filter: blur(10px);
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  letter-spacing: 0;
  padding: 0;
}

.product-slider:hover .prev,
.product-slider:hover .next {
  opacity: 1;
}

.product-slider .prev {
  left: 10px;
}

.product-slider .next {
  right: 10px;
}

.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s;
}

.dot.active {
  background-color: #fff;
}


@media (max-width: 600px) {

  .product-slider .prev,
  .product-slider .next {
    opacity: 0;
  }
}

/* ─── BOTTOM CTA BANNER ──────────────────────────────── */
.cta-banner {
  padding: 120px 0;
  background-color: var(--cream);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 32px;
}

.cta-banner p {
  color: var(--muted);
  font-size: 15px;
  max-width: 380px;
  margin: 0 auto 64px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 48px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-item:hover {
  opacity: 0.6;
}

.contact-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-family: "inter";
  font-size: 20px;
  color: var(--text);
}

.contact-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(177, 152, 105, 0.3);
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 40px 0;
  border-top: 1px solid rgba(177, 152, 105, 0.2);
  text-align: center;
}

footer p {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ─── SCROLL-TO-TOP ARROW ────────────────────────────── */
.scroll-top {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--cream);
  border: 1px solid rgba(177, 152, 105, 0.35);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s, background-color 0.2s, color 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top:hover {
  background-color: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}

.scroll-top.visible {
  opacity: 1;
}

@media (min-width: 601px) {
  .scroll-top {
    display: none !important;
  }

}

@media (min-width: 750px) {

  .header-inner {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 160px;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hide desktop nav, show hamburger */
  .nav-main {
    display: none;
  }

  .logo-name {
    display: block;
    background-image: url("/img/CeluneCandles-name-logo.png");
    width: 200px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
  }


  .mobile-menu {
    display: flex;
  }


}

@media (max-width: 900px) {
  .nav-main {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .hamburger {
    display: flex;
    position: fixed;
    right: 30px;
  }

  .care-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    margin: 0 auto;
  }

  .care-images {
    max-width: 500px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 50px;
  }
}



@media (max-width: 640px) {


  .care {
    padding: 40px 0;
  }

  .hero {
    height: 900px;
    background-image: url(/img/hero-phone.png);
    align-items: center;
    background-position: right;
  }

  .hero-content p {
    font-weight: 500;
  }

  .care-images {
    grid-template-columns: 1fr 1fr;
  }

  .care-img:first-child {
    margin-top: 0;
  }

  .care-img:last-child {
    margin-top: 24px;
  }

  .contact-links {
    flex-direction: column;
    gap: 32px;
  }

  .contact-divider {
    width: 40px;
    height: 1px;
  }

  .contact-item {
    padding: 0;
  }

  .product-slider:hover .prev,
  .product-slider:hover .next {
    opacity: 0;
  }

  /* Dropdown opens upward on small screens if needed */
  .dropdown-menu {
    right: auto;
    left: 0;
  }
}