/*
Theme Name: Ladies Who Latte London (Hello Elementor Child)
Theme URI: https://ladieswholatte.com
Description: Child theme for Hello Elementor. Holds the design tokens, fonts, motion and hover styles for the Ladies Who Latte London site. All page content is built and edited in Elementor.
Author: Ladies Who Latte London
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: lwl-child
*/

/* ------------------------------------------------------------------
   1. Design tokens
------------------------------------------------------------------ */
:root {
  --lwl-espresso: #1F1612;
  --lwl-cocoa: #3B2A22;
  --lwl-oat: #F6EFE4;
  --lwl-foam: #FFFAF2;
  --lwl-crema: #E7D8C3;
  --lwl-copper: #D08A52;       /* accent on dark backgrounds */
  --lwl-copper-text: #8F4F1F;  /* accent on light backgrounds (AA contrast) */
  --lwl-muted: #5C4A3F;
  --lwl-muted-dark: #D9C9B5;
  --lwl-ease: cubic-bezier(.22, .61, .36, 1);
  --lwl-serif: 'Instrument Serif', Georgia, serif;
  --lwl-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

body {
  background: var(--lwl-oat);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------------------
   2. Typography helpers (font sizes themselves live in Elementor)
------------------------------------------------------------------ */
.lwl em { font-style: italic; color: var(--lwl-copper-text); }
.lwl-on-dark em { color: var(--lwl-crema); }
.lwl .elementor-heading-title { text-wrap: balance; }

.lwl .elementor-widget-text-editor a {
  color: var(--lwl-copper-text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-weight: 600;
  transition: opacity .6s var(--lwl-ease);
}
.lwl .elementor-widget-text-editor a:hover { opacity: .75; }
.lwl-on-dark .elementor-widget-text-editor a {
  color: var(--lwl-muted-dark);
  border-bottom-color: rgba(246, 239, 228, .4);
  font-weight: 500;
}

/* Max-width helpers for paragraphs */
.lwl-maxw-340 { max-width: 340px; }
.lwl-maxw-420 { max-width: 420px; }
.lwl-maxw-460 { max-width: 460px; }
.lwl-maxw-520 { max-width: 520px; }
.lwl-maxw-560 { max-width: 560px; }
.lwl-maxw-820 { max-width: 820px; }

/* ------------------------------------------------------------------
   3. Section atmospherics (colours are set in Elementor; these add depth)
------------------------------------------------------------------ */
.lwl-hero {
  background-image:
    radial-gradient(ellipse at 78% 38%, rgba(208, 138, 82, .24), rgba(31, 22, 18, 0) 58%),
    radial-gradient(ellipse at 8% 100%, rgba(59, 42, 34, .9), rgba(31, 22, 18, 0) 55%);
}
.lwl-proof {
  background-image: radial-gradient(ellipse at 85% 0%, rgba(208, 138, 82, .2), rgba(59, 42, 34, 0) 55%);
}
.lwl-footer {
  background-image: radial-gradient(ellipse at 50% 0%, rgba(208, 138, 82, .2), rgba(31, 22, 18, 0) 60%);
}

/* Faint paper grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------
   4. Navigation
------------------------------------------------------------------ */
.lwl-nav-row { border-bottom: 1px solid rgba(231, 216, 195, .16); }
.lwl-nav .elementor-widget-container,
.lwl-nav { font-weight: 500; }
.lwl-nav a,
.lwl-on-dark .lwl-nav a {
  display: inline-block;
  margin-right: 34px;
  color: var(--lwl-muted-dark);
  border-bottom: 0;
  font-weight: 500;
}
.lwl-nav a:hover { color: #fff; opacity: 1; }

/* ------------------------------------------------------------------
   5. Hero art, badge, marquee
------------------------------------------------------------------ */
.lwl-arch {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  border-radius: 999px 999px 28px 28px;
  background-image: linear-gradient(180deg, #4A352B 0%, #2A1E18 100%);
  border: 1px solid rgba(231, 216, 195, .2);
  overflow: hidden;
}
.lwl-arch svg { width: 82%; height: auto; display: block; margin: 0 auto; }
.lwl-badge {
  position: absolute !important;
  left: 22px;
  bottom: 22px;
  width: 112px;
  height: 112px;
  border-radius: 999px;
}

.lwl-marquee-wrap {
  border-top: 1px solid rgba(231, 216, 195, .16);
  border-bottom: 1px solid rgba(231, 216, 195, .16);
}
.lwl-marquee { overflow: hidden; white-space: nowrap; }
.lwl-marquee__track {
  display: inline-flex;
  animation: lwl-marquee 52s linear infinite;
  will-change: transform;
}
.lwl-marquee__track span {
  font-family: var(--lwl-serif);
  font-style: italic;
  font-size: 30px;
  color: var(--lwl-crema);
  padding-right: .6em;
}
.lwl-marquee:hover .lwl-marquee__track { animation-play-state: paused; }
@keyframes lwl-marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------
   6. Cards, hairlines, facts lists
------------------------------------------------------------------ */
.lwl-card {
  transition: transform .9s var(--lwl-ease), border-color .9s var(--lwl-ease), box-shadow .9s var(--lwl-ease);
}
.lwl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -34px rgba(31, 22, 18, .45);
}
.lwl-card-dark {
  background-image: radial-gradient(ellipse at 90% 0%, rgba(208, 138, 82, .28), rgba(31, 22, 18, 0) 60%);
}
.lwl-card-brown {
  background-image: radial-gradient(ellipse at 10% 100%, rgba(208, 138, 82, .22), rgba(59, 42, 34, 0) 60%);
}

.lwl-facts p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--lwl-crema);
  color: #1F1612;
  font-size: 17px;
}
.lwl-facts p:first-child { border-top: 1px solid var(--lwl-crema); }
.lwl-facts strong {
  flex: 0 0 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lwl-muted);
}
.lwl-facts span { flex: 1 1 200px; }

.lwl-photo { text-align: center; }

/* ------------------------------------------------------------------
   7. Buttons: weighted, deliberate hover
------------------------------------------------------------------ */
.lwl .elementor-button {
  transition: background-color .6s var(--lwl-ease), color .6s var(--lwl-ease), transform .6s var(--lwl-ease), box-shadow .6s var(--lwl-ease);
}
.lwl .elementor-button:hover { transform: translateY(-2px); }

/* Focus visibility */
.lwl a:focus-visible,
.lwl .elementor-button:focus-visible,
.lwl input:focus-visible,
.lwl textarea:focus-visible {
  outline: 2px solid var(--lwl-copper);
  outline-offset: 3px;
}

/* Skip link */
.lwl-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  background: var(--lwl-copper);
  color: var(--lwl-espresso);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--lwl-sans);
  font-weight: 600;
}
.lwl-skip:focus { left: 8px; }

/* ------------------------------------------------------------------
   8. Scroll reveal (activated by assets/js/lwl.js; never hides content in the Elementor editor)
------------------------------------------------------------------ */
.lwl-js .lwl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--lwl-ease), transform .9s var(--lwl-ease);
}
.lwl-js .lwl-reveal.is-in { opacity: 1; transform: none; }
.elementor-editor-active .lwl-reveal,
.elementor-editor-preview .lwl-reveal { opacity: 1 !important; transform: none !important; }

/* ------------------------------------------------------------------
   9. Responsive refinements
------------------------------------------------------------------ */
@media (max-width: 767px) {
  .lwl-marquee__track span { font-size: 22px; }
  .lwl-nav a { margin: 0 18px 8px 0; }
  .lwl-arch { max-width: 100%; }
  .lwl-facts strong { flex-basis: 100%; }
}
@media (min-width: 2200px) {
  html { font-size: 112.5%; }
}

/* ------------------------------------------------------------------
   10. Reduced motion
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .lwl-marquee__track { animation: none; }
  .lwl-js .lwl-reveal { opacity: 1; transform: none; transition: none; }
  .lwl .elementor-button,
  .lwl-card { transition: none; }
}
