/* ============================================================
   La'sani Fragrance — design tokens
   Palette: warm ink / ivory paper / deep wine burgundy
   Type: Fraunces (display, carries the logo's curling serif
   personality) + Jost (body/utility, quiet and geometric)
   Signature: the dot from the logo's apostrophe, reused as a
   recurring mark — nav underlines, list bullets, dividers.
   ============================================================ */

:root {
  --ink: #17120f;
  --ink-soft: #3a322d;
  --paper: #f7f2ea;
  --paper-dim: #efe6d8;
  --wine: #5c1220;
  --wine-deep: #38070f;
  --wine-soft: #caa48f;
  --line: rgba(23, 18, 15, 0.14);
  --line-light: rgba(247, 242, 234, 0.24);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--wine);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine);
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wine);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .18s ease, transform .18s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  opacity: 1;
  transform: translate(-50%, 8px);
}
.main-nav a.active { color: var(--wine); }

.header-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.header-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
  border-top: 1px solid var(--line);
}
.mobile-nav.open { max-height: 260px; }
.mobile-nav a {
  padding: 14px 28px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a.active { color: var(--wine); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  max-width: 12ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--wine);
}
.hero p.lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 18px 0 30px;
}
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.btn-primary:hover { background: var(--wine-deep); border-color: var(--wine-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-whatsapp::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--ink) 0%, #241a17 55%, var(--wine-deep) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-visual .dot-field {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-light) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: .5;
}
.hero-visual .bottle-mark {
  position: relative;
  color: var(--paper);
  text-align: center;
  font-family: var(--font-display);
}
.hero-visual .bottle-mark .glyph {
  font-size: 5.4rem;
  line-height: 1;
}
.hero-visual .bottle-mark small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine-soft);
  margin-top: 10px;
}

/* ---------- Section scaffolding ---------- */
section { padding: 68px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--ink-soft); max-width: 46ch; margin: 8px 0 0; }

/* ---------- Category chips ---------- */
.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover, .chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -20px rgba(23,18,15,0.35);
}
.product-media {
  aspect-ratio: 1 / 1;
  background: var(--paper-dim);
  position: relative;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--wine-soft);
  font-size: 1.1rem;
  text-align: center;
  padding: 12px;
}
.featured-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--wine);
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-body .cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--wine); }
.product-body h3 { font-size: 1.15rem; margin: 2px 0 0; }
.product-body .desc { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.product-body .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.price { font-family: var(--font-display); font-size: 1.05rem; }
.mini-link { font-size: 0.85rem; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

/* ---------- About / story split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .note-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.split .note-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.split .note-list li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--wine);
  margin-top: 8px;
  flex-shrink: 0;
}
.stat-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.stat-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-light) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: .4;
}
.stat-panel > * { position: relative; }
.stat-panel .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
}
.stat-panel .attribution {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--wine-soft);
  letter-spacing: 0.04em;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.pd-media {
  aspect-ratio: 4/5;
  background: var(--paper-dim);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .cat-tag {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--wine); font-weight: 600;
}
.pd-info h1 { margin-top: 10px; font-size: clamp(2rem, 3.6vw, 2.6rem); }
.pd-info .price { font-size: 1.6rem; margin: 10px 0 4px; }
.pd-info .size-tag { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 22px; }
.pd-info .desc { color: var(--ink-soft); margin-bottom: 28px; }
.notes-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.notes-table .note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.notes-table .note .label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--wine); margin-bottom: 6px; display:block;
}
.pd-cta { margin-top: 10px; }

/* ---------- Contact / enquiry form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--paper-dim);
}
.info-card .row { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.info-card .row .k { font-weight: 600; min-width: 90px; font-size: 0.9rem; }
.info-card .row .v { color: var(--ink-soft); font-size: 0.9rem; }

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  background: var(--paper-dim);
  border: 1px solid var(--wine-soft);
}
.alert.success { border-color: var(--wine); color: var(--wine-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-light);
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a, .footer-grid p { color: rgba(247,242,234,0.72); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-brand img { height: 34px; margin-bottom: 14px; filter: invert(1) brightness(1.6); }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(247,242,234,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: var(--wine);
  color: var(--paper);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -10px rgba(23,18,15,0.5);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Utility ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .split, .product-detail, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .notes-table { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
