/* ============================================================
   Sugar & Stones — Main Stylesheet
   Typography: Cormorant Garamond (headings) + Poppins (body)
   Palette: Crimson #7A1327 · Gold #D6B76E · Ivory text #F4E9DE
   ============================================================ */

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

/* ── Reset & Base ────────────────────────────────────────── */

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

:root {
  --bg:         #7A1327;   /* crimson page background */
  --bg-deep:    #5C0F1E;   /* deeper crimson: footer, toast, dark bands */
  --gold:       #D6B76E;
  --gold-dark:  #B9973F;
  --dark:       #F4E9DE;   /* default text = ivory (on crimson page) */
  --secondary:  #E0CFC3;   /* muted ivory (secondary text on crimson) */
  --border:     rgba(244, 233, 222, 0.16);
  --white:      #FFFFFF;   /* white surfaces (cards, drawer, inputs) */

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Poppins', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.30);
  --radius: 2px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ── Typography ──────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
}

h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.8;
}

/* ── Navigation ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
}

.nav.scrolled {
  background: rgba(92, 15, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2.5rem;
  border-bottom: 1px solid rgba(244, 233, 222, 0.12);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.nav__logo span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  transition: color var(--transition);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__bag-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
}

.nav__bag-btn:hover {
  color: var(--gold);
}

.nav__bag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: #3A0A12;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1;
  display: none;
}

.nav__bag-count.visible {
  display: inline-flex;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: var(--transition);
}

/* Mobile Nav Overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dark);
  transition: color var(--transition);
}

.nav__mobile a:hover {
  color: var(--gold);
}

.nav__mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: #F4E9DE;
  color: #6E1220;
  border: 1px solid #F4E9DE;
}

.btn--primary:hover {
  background: var(--gold);
  color: #3A0A12;
  border-color: var(--gold);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--dark);
}

.btn--outline:hover {
  background: var(--dark);
  color: var(--bg);
}

.btn--gold {
  background: var(--gold);
  color: #3A0A12;
  border: 1px solid var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
  font-size: 0.65rem;
}

.btn--ghost:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: 1px solid #25D366;
  gap: 0.6rem;
}

.btn--whatsapp:hover {
  background: #1DA851;
  border-color: #1DA851;
}

/* ── Section Layout ──────────────────────────────────────── */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

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

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

.section__eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 0.875rem;
  color: var(--secondary);
  max-width: 480px;
  line-height: 1.8;
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin: 0 auto;
}

/* ── Divider ─────────────────────────────────────────────── */

.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0;
}

.divider--center {
  margin: 1.25rem auto;
}

/* ── Product Card ────────────────────────────────────────── */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--dark);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
}

.product-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__collection {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.product-card__price {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  margin-top: auto;
  letter-spacing: 0.04em;
}

.product-card__actions {
  display: flex;
  gap: 0.5rem;
}

.product-card__actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.65rem;
}

/* ── Product Grid ────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Enquiry Bag ─────────────────────────────────────────── */

.bag-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  height: 100%;
  width: 420px;
  background: var(--white);
  border-left: 1px solid var(--border);
  z-index: 2000;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bag-drawer.open {
  right: 0;
}

.bag-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 6, 10, 0.45);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.bag-drawer__overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.bag-drawer__header {
  padding: 2rem 1.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bag-drawer__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
}

.bag-drawer__close {
  font-size: 1.25rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}

.bag-drawer__close:hover {
  color: var(--dark);
}

.bag-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}

.bag-drawer__empty {
  text-align: center;
  padding: 3rem 1rem;
}

.bag-drawer__empty p {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.bag-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.bag-item__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.bag-item__info {
  flex: 1;
}

.bag-item__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.bag-item__collection {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
}

.bag-item__price {
  font-size: 0.78rem;
  color: var(--secondary);
}

.bag-item__remove {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  cursor: pointer;
  transition: color var(--transition);
  margin-top: 0.5rem;
  display: inline-block;
}

.bag-item__remove:hover {
  color: var(--dark);
}

.bag-drawer__footer {
  padding: 1.5rem 1.75rem;
  border-top: 1px solid var(--border);
}

.bag-drawer__footer .btn {
  width: 100%;
  justify-content: center;
}

/* ── Toast ───────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-deep);
  color: #F4E9DE;
  padding: 0.85rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(244, 233, 222, 0.12);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── Scroll Reveal ───────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.5);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand .nav__logo {
  color: #FFFFFF;
  font-size: 1.6rem;
  display: block;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  max-width: 280px;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col ul li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--gold);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  transition: var(--transition);
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
}

/* ── Page Hero (inner pages) ─────────────────────────────── */

.page-hero {
  padding: 10rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero__eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 0.875rem;
  color: var(--secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Utility ─────────────────────────────────────────────── */

.text-gold { color: var(--gold); }
.text-secondary { color: var(--secondary); }
.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }

/* ============================================================
   CRIMSON THEME — keep white surfaces on the original light
   palette by re-scoping the colour variables inside them.
   Everything else inherits the crimson/ivory page palette.
   ============================================================ */

.product-card,
.featured-section,
.bag-drawer,
.gallery,
.search-bar,
.value-card,
.contact-channel,
.quick-enquiry {
  --bg:        #FFFFFF;
  --dark:      #222222;
  --secondary: #707070;
  --border:    #E9E2D8;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Brand logo images ───────────────────────────────────── */

.nav__logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav.scrolled .nav__logo-img {
  height: 38px;
}

.hero__title--logo {
  margin: 0 0 1.5rem;
  line-height: 0;
}

.hero__title--logo img {
  width: clamp(220px, 27vw, 310px);
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .nav__logo-img { height: 34px; }
  .hero__title--logo img { width: 220px; }
}