/* ================================================================
   LA LUZ SKINCARE — Global Design System v3.0
   Astra Child Theme · Nairobi, Kenya
   ================================================================ */

/* ── 1. BRAND TOKENS ─────────────────────────────────────────── */
:root {
  --terra:        #a9897b;
  --terra-deep:   #8c6e62;
  --terra-muted:  #c4a89a;
  --blush:        #edd5ca;
  --blush-pale:   #f7ede8;
  --cream:        #faf6f2;
  --cream-warm:   #f3ebe3;
  --linen:        #ede4df;
  --charcoal:     #4b494a;
  --charcoal-lt:  #7a7876;
  --ink:          #2e2927;
  --white:        #fffdfb;
  --serif:        'Cormorant', Georgia, serif;
  --sans:         'Jost', system-ui, sans-serif;
}

/* ── 2. BASE RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── 3. CRITICAL: STRIP ALL WORDPRESS & ASTRA CONTAINER CONSTRAINTS ── */
/*
   WordPress block editor wraps every block in a content-width box.
   Astra adds its own container. Both must be fully neutralised on La Luz pages.
*/

/* Strip Astra's wrappers */
.laluz-site #page,
.laluz-site #content,
.laluz-site .site-content,
.laluz-site .ast-container,
.laluz-site #primary,
.laluz-site .content-area,
.laluz-site .site-main,
.laluz-site #main,
.laluz-site article.page,
.laluz-site .entry-content,
.laluz-site .post-content,
.laluz-site .wp-block-post-content,
.laluz-site .is-layout-flow {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Strip WordPress block layout margins/max-width from HTML blocks */
.laluz-site .wp-block-html,
.laluz-site .wp-block-html.alignfull,
.laluz-site .wp-block-html.alignwide,
.laluz-site .entry-content > .wp-block-html,
.laluz-site .entry-content .wp-block-html {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* WordPress applies margin: auto to all .entry-content > * by default */
.laluz-site .entry-content > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remove WordPress block-library padding from body */
.laluz-site .wp-site-blocks {
  padding: 0 !important;
}

/* Astra page title and breadcrumb */
.laluz-site .ast-page-title-bar,
.laluz-site .page-header,
.laluz-site .entry-header,
.laluz-site .ast-breadcrumbs-wrap {
  display: none !important;
}

/* Astra top/bottom content spacing */
.laluz-site .ast-separate-container .ast-article-single,
.laluz-site .ast-separate-container .entry-content,
.laluz-site .hentry {
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Remove any Astra-specific padding on the inner container */
.laluz-site .ast-plain-container .site-content,
.laluz-site .ast-plain-container #primary {
  padding: 0 !important;
}

/* ── 4. LA LUZ HEADER ────────────────────────────────────────── */
.laluz-ann-bar {
  background: #3a3735;
  color: rgba(255,255,255,.85);
  text-align: center;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .08em;
  padding: 10px 16px;
  line-height: 1.4;
  width: 100%;
}
.laluz-ann-bar strong { color: var(--blush); }
.laluz-ann-bar a      { color: var(--terra-muted); font-weight: 600; }

.laluz-header {
  background: var(--linen);
  border-bottom: 1px solid rgba(169,137,123,.18);
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
}
.laluz-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.laluz-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.laluz-logo-img  { height: 60px; width: auto; object-fit: contain; }

.laluz-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.laluz-nav-links a {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--charcoal-lt);
  transition: color .2s;
  text-decoration: none;
}
.laluz-nav-links a:hover { color: var(--terra); }

.laluz-nav-actions { display: flex; align-items: center; gap: 10px; }
.laluz-nav-ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: none; border: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--charcoal);
  transition: background .2s, color .2s;
  position: relative;
}
.laluz-nav-ic:hover { background: var(--blush-pale); color: var(--terra); }
.laluz-cart-dot {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--terra); color: #fff;
  font-size: .55rem; font-weight: 700;
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--sans);
}

.laluz-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 17px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.laluz-burger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--charcoal);
  transition: all .3s;
}

.laluz-nav-drawer {
  display: none;
  position: fixed; inset: 0;
  background: var(--linen);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8%;
  overflow-y: auto;
}
.laluz-nav-drawer.open { display: flex; }
.laluz-drawer-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; font-size: 1.6rem;
  color: var(--charcoal); cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center;
}
.laluz-drawer-links { list-style: none; padding: 0; margin: 0 0 40px; }
.laluz-drawer-links a {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300; color: var(--ink);
  display: block; padding: 8px 0;
  transition: color .2s; text-decoration: none;
}
.laluz-drawer-links a:hover { color: var(--terra); }
.laluz-drawer-contact { display: flex; flex-direction: column; gap: 10px; }
.laluz-drawer-contact a {
  font-family: var(--sans); font-size: .82rem;
  color: var(--charcoal-lt); display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.laluz-drawer-contact a:hover { color: var(--terra); }
body.laluz-nav-open { overflow: hidden; }

/* ── 5. LA LUZ FOOTER ────────────────────────────────────────── */
.laluz-footer { background: var(--ink); color: rgba(255,255,255,.75); width: 100%; }

.laluz-footer-band {
  background: var(--linen);
  padding: 36px 5%;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
  border-bottom: 1px solid rgba(169,137,123,.2);
}
.laluz-footer-band-img { height: 80px; width: auto; object-fit: contain; }
.laluz-footer-tagline {
  font-family: var(--serif); font-size: 1.1rem;
  font-style: italic; color: var(--terra-deep);
  text-align: right; line-height: 1.6;
}
.laluz-footer-tagline span {
  display: block; font-family: var(--sans);
  font-size: .6rem; font-style: normal;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra-muted); margin-top: 4px;
}
.laluz-footer-body {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding: 60px 5% 32px;
}
.laluz-footer-about p {
  font-size: .83rem; color: rgba(255,255,255,.52);
  max-width: 260px; margin-bottom: 20px; line-height: 1.85;
}
.laluz-footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.laluz-social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: none; display: grid; place-items: center;
  color: rgba(255,255,255,.7); font-size: .82rem;
  transition: border-color .2s, background .2s; text-decoration: none;
}
.laluz-social-btn:hover { border-color: var(--terra-muted); background: rgba(169,137,123,.2); color: #fff; }
.laluz-footer-col h5 {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.38); margin-bottom: 18px;
}
.laluz-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.laluz-footer-col a { font-size: .82rem; color: rgba(255,255,255,.62); transition: color .2s; text-decoration: none; }
.laluz-footer-col a:hover { color: var(--terra-muted); }
.laluz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 5%;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: .7rem;
  color: rgba(255,255,255,.32); flex-wrap: wrap; gap: 8px;
}
.laluz-footer-bottom a { color: rgba(255,255,255,.32); text-decoration: none; }
.laluz-footer-bottom a:hover { color: var(--terra-muted); }
.laluz-pay-icons { display: flex; gap: 6px; }
.laluz-pay-icons span {
  font-size: .62rem; letter-spacing: .06em;
  background: rgba(255,255,255,.08);
  padding: 3px 8px; border-radius: 4px;
}

/* ── 6. NAVIGATION JS CLASSES ────────────────────────────────── */
.laluz-burger.open span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.laluz-burger.open span:nth-child(2) { opacity: 0; }
.laluz-burger.open span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }

/* ── 7. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .laluz-nav-links { display: none; }
  .laluz-burger    { display: flex; }
  .laluz-footer-body { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .laluz-footer-body { grid-template-columns: 1fr; }
}

/* ── 8. WOOCOMMERCE ──────────────────────────────────────────── */
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button {
  background: var(--terra) !important;
  color: #fff !important;
  border-radius: 100px !important;
  font-family: var(--sans) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--terra-deep) !important;
  color: #fff !important;
}

/* ── 9. EDITOR BLOCK RESET (inside Gutenberg editor) ─────────── */
.editor-styles-wrapper .wp-block-html {
  max-width: 100% !important;
  margin: 0 !important;
}
