/*
Theme Name: Joely Jewelry (Astra Child)
Theme URI: https://joely-jewelry.co.uk/
Template: astra
Author: Joely Jewelry
Version: 1.0.0
Description: Custom child theme for Joely Jewelry. Ivory, cream and charcoal design system. Store/shop styles live in assets/shop.css.
Text Domain: joely
*/

/* ===== 1. Design tokens ===== */
:root {
  --joely-ivory: #FAF8F5;
  --joely-cream: #F2EBE3;
  --joely-charcoal: #252321;
  --background-primary: var(--joely-ivory);
  --background-secondary: var(--joely-cream);
  --text-primary: var(--joely-charcoal);
  --text-muted: rgba(37,35,33,.68);
  --button-primary: var(--joely-charcoal);
  --button-text: var(--joely-ivory);
  --border-primary: var(--joely-cream);
  --border-strong: rgba(37,35,33,.16);
  --jj-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --jj-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --jj-max: 1400px;
  --jj-gutter: clamp(20px, 4vw, 56px);
  --jj-section: clamp(64px, 9vw, 120px);
  --jj-radius: 2px;
  --jj-ease: cubic-bezier(.22,.61,.36,1);
  --jj-error: #A4372B;
  --jj-success: #2F6B47;
}

/* ===== 2. Base ===== */
html { scroll-behavior: smooth; }
body, body.ast-separate-container, .ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post,
.ast-plain-container, #page, .site-content, .ast-separate-container #primary, .woocommerce-page.ast-separate-container #primary { background-color: var(--background-primary) !important; }
body, button, input, select, textarea, .ast-button, .ast-custom-button { font-family: var(--jj-sans) !important; color: var(--text-primary); -webkit-font-smoothing: antialiased; }
body { font-size: 16px; line-height: 1.65; }
h1,h2,h3,h4,h5,h6, .entry-title, .woocommerce-loop-product__title, .product_title, .wp-block-heading { font-family: var(--jj-serif) !important; color: var(--text-primary) !important; font-weight: 500 !important; letter-spacing: -.005em; line-height: 1.15; }
h1 { font-size: clamp(40px, 4.4vw, 52px); } h2 { font-size: clamp(32px, 3.6vw, 46px); } h3 { font-size: clamp(24px, 2.2vw, 30px); } h4 { font-size: 22px; }
p { margin-bottom: 1.1em; }
a { color: var(--text-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: opacity .2s var(--jj-ease), color .2s; }
a:hover { color: var(--text-primary); opacity: .72; }
img { max-width: 100%; height: auto; }
::selection { background: var(--joely-charcoal); color: var(--joely-ivory); }
:focus-visible { outline: 2px solid var(--joely-charcoal) !important; outline-offset: 3px !important; }
hr { border-color: var(--border-strong); }

/* ===== 3. Layout ===== */
.jj-container { width: 100%; max-width: var(--jj-max); margin: 0 auto; padding: 0 var(--jj-gutter); }
.ast-container { max-width: calc(var(--jj-max) + 2*var(--jj-gutter)) !important; padding-left: var(--jj-gutter) !important; padding-right: var(--jj-gutter) !important; }
.jj-full .site-content > .ast-container { max-width: 100% !important; padding: 0 !important; display: block; }
.jj-full #primary { margin: 0 !important; padding: 0 !important; width: 100%; }
.jj-full .entry-content > * { margin-top: 0; margin-bottom: 0; }
.jj-full .entry-header { display: none; }
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post { padding: 0 !important; background: transparent !important; }
.ast-separate-container #primary, .ast-plain-container #primary { padding: clamp(36px,5vw,72px) 0 !important; margin: 0 !important; }
.jj-section { padding: var(--jj-section) 0; }
.jj-bg-cream { background: var(--background-secondary) !important; }
.jj-bg-ivory { background: var(--background-primary) !important; }
.jj-section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px,5vw,60px); }
.jj-eyebrow { display: inline-block; font-family: var(--jj-sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.jj-heading { font-size: clamp(34px, 3.6vw, 48px) !important; margin: 0 0 16px !important; }
.jj-lead { font-size: 17px; color: var(--text-muted); margin: 0 auto; max-width: 620px; }
.jj-actions { margin-top: clamp(32px,4vw,52px); text-align: center; }

/* ===== 4. Buttons ===== */
.jj-btn, .button, button.button, a.button, input[type=submit], input[type=button], button[type=submit],
.wp-block-button__link, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .single_add_to_cart_button,
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .ast-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--button-primary) !important; color: var(--button-text) !important;
  border: 1px solid var(--joely-charcoal) !important; border-radius: var(--jj-radius) !important;
  font-family: var(--jj-sans) !important; font-size: 13px !important; font-weight: 500 !important;
  letter-spacing: .14em !important; text-transform: uppercase; line-height: 1.2 !important;
  padding: 16px 32px !important; min-height: 50px; box-shadow: none !important; text-decoration: none !important;
  transition: background-color .25s var(--jj-ease), color .25s var(--jj-ease), border-color .25s var(--jj-ease) !important; cursor: pointer;
}
.jj-btn:hover, .button:hover, a.button:hover, button.button:hover, input[type=submit]:hover, button[type=submit]:hover,
.wp-block-button__link:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):hover, .wc-block-cart__submit-button:hover, .wc-block-components-checkout-place-order-button:hover {
  background: var(--joely-cream) !important; color: var(--joely-charcoal) !important; border-color: var(--joely-charcoal) !important; opacity: 1;
}
.jj-btn--secondary, .is-style-outline .wp-block-button__link { background: transparent !important; color: var(--joely-charcoal) !important; border: 1px solid var(--joely-charcoal) !important; }
.jj-btn--secondary:hover, .is-style-outline .wp-block-button__link:hover { background: var(--joely-charcoal) !important; color: var(--joely-ivory) !important; }
.jj-btn--light { background: var(--joely-ivory) !important; color: var(--joely-charcoal) !important; border-color: var(--joely-ivory) !important; }
.jj-btn--light:hover { background: transparent !important; color: var(--joely-ivory) !important; border-color: var(--joely-ivory) !important; }
.button:disabled, .button.disabled, button:disabled, .single_add_to_cart_button.disabled { opacity: .45 !important; cursor: not-allowed; }
.button.loading, .jj-btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.button.loading::after, .jj-btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 1.5px solid; border-color: var(--joely-ivory) transparent; border-radius: 50%; animation: jj-spin .8s linear infinite; top: calc(50% - 8px); left: calc(50% - 8px); margin: 0 !important; }
ul.products .button.loading::after, .jj-btn--secondary.is-loading::after { border-color: var(--joely-charcoal) transparent; }
.added_to_cart { display: none !important; }
@keyframes jj-spin { to { transform: rotate(360deg); } }
.jj-link { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ===== 5. Forms & notices ===== */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=url], textarea, select,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .select2-container .select2-selection--single {
  background: #fff !important; border: 1px solid var(--border-strong) !important; border-radius: var(--jj-radius) !important;
  color: var(--text-primary) !important; padding: 13px 15px !important; font-size: 15px !important; min-height: 48px; box-shadow: none !important; transition: border-color .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--joely-charcoal) !important; outline: none; }
label, .woocommerce form .form-row label { font-size: 13px; font-weight: 500; color: var(--text-primary); letter-spacing: .02em; margin-bottom: 6px; }
.required { color: var(--jj-error) !important; }
.jj-form-msg { padding: 14px 16px; font-size: 14px; margin-top: 14px; border-left: 2px solid; display: none; text-align: left; }
.jj-form-msg.is-success { display: block; border-color: var(--jj-success); color: var(--jj-success); background: rgba(47,107,71,.06); }
.jj-form-msg.is-error { display: block; border-color: var(--jj-error); color: var(--jj-error); background: rgba(164,55,43,.06); }
.jj-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { background: var(--joely-cream) !important; color: var(--text-primary) !important; border: 0 !important; border-left: 2px solid var(--joely-charcoal) !important; border-radius: 0 !important; font-size: 14px; }
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-left-color: var(--jj-error) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--joely-charcoal) !important; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 0; padding: 8px 16px !important; font-size: 11px !important; }
.woocommerce-store-notice, p.demo_store { background: var(--joely-charcoal) !important; color: var(--joely-ivory) !important; }

/* ===== 6. Announcement + header ===== */
#masthead, .ast-mobile-header-wrap, .main-header-bar-wrap { display: none !important; }
.jj-announce { background: var(--joely-charcoal); color: var(--joely-ivory); text-align: center; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; padding: 10px var(--jj-gutter); margin: 0; }
.jj-announce a { color: var(--joely-ivory); }
.jj-header { position: sticky; top: 0; z-index: 900; background: var(--joely-ivory); border-bottom: 1px solid var(--border-primary); transition: box-shadow .3s var(--jj-ease); }
.admin-bar .jj-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .jj-header { top: 0; } }
.jj-header.is-scrolled { box-shadow: 0 1px 12px rgba(37,35,33,.05); }
.jj-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; max-width: var(--jj-max); margin: 0 auto; padding: 0 var(--jj-gutter); transition: height .3s var(--jj-ease); }
.jj-header.is-scrolled .jj-header__inner { height: 68px; }
.jj-logo { justify-self: center; text-decoration: none !important; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.jj-logo:hover { opacity: 1; }
.jj-logo__mark { font-family: var(--jj-serif); font-size: 32px; font-weight: 500; letter-spacing: .32em; margin-right: -.32em; color: var(--joely-charcoal); }
.jj-logo__sub { font-family: var(--jj-sans); font-size: 9.5px; letter-spacing: .5em; margin-right: -.5em; text-transform: uppercase; margin-top: 6px; color: var(--joely-charcoal); }
.jj-logo img { max-height: 48px; width: auto; }
.jj-nav { justify-self: start; }
.jj-nav ul { list-style: none; margin: 0; padding: 0; }
.jj-nav > ul { display: flex; gap: clamp(16px, 1.8vw, 30px); }
.jj-nav li { position: relative; margin: 0; }
.jj-nav a { font-size: 13.5px; letter-spacing: .05em; text-decoration: none; padding: 30px 0; display: inline-block; position: relative; }
.jj-nav > ul > li > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 24px; height: 1px; background: var(--joely-charcoal); transition: right .3s var(--jj-ease); }
.jj-nav > ul > li:hover > a::after, .jj-nav > ul > li.current-menu-item > a::after, .jj-nav > ul > li > a:focus-visible::after { right: 0; }
.jj-nav a:hover { opacity: 1; }
.jj-nav .sub-menu { position: absolute; top: 100%; left: -24px; min-width: 240px; background: var(--joely-ivory); border: 1px solid var(--border-primary); padding: 16px 24px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--jj-ease); z-index: 10; }
.jj-nav .sub-menu a { padding: 8px 0; font-size: 14px; letter-spacing: .02em; display: block; }
.jj-nav li:hover > .sub-menu, .jj-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.jj-nav .menu-item-has-children > a { padding-right: 14px; }
.jj-nav .menu-item-has-children > a::before { content: ''; position: absolute; right: 0; top: 50%; width: 5px; height: 5px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-75%) rotate(45deg); }
.jj-icons { justify-self: end; display: flex; align-items: center; gap: 4px; }
.jj-icon-btn { position: relative; display: inline-flex !important; align-items: center; justify-content: center; width: 42px; height: 42px; background: transparent !important; border: 0 !important; color: var(--joely-charcoal) !important; padding: 0 !important; min-height: 0 !important; cursor: pointer; border-radius: 50% !important; text-decoration: none !important; letter-spacing: 0 !important; }
.jj-icon-btn:hover { background: var(--joely-cream) !important; opacity: 1; }
.jj-icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.jj-count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--joely-charcoal); color: var(--joely-ivory); font-size: 10px; font-weight: 600; line-height: 17px; text-align: center; font-family: var(--jj-sans); }
.jj-count[data-count="0"] { display: none; }
.jj-burger { display: none !important; }
@media (max-width: 1024px) {
  .jj-header__inner { grid-template-columns: 1fr auto 1fr; height: 64px; padding: 0 12px; }
  .jj-header.is-scrolled .jj-header__inner { height: 60px; }
  .jj-nav { display: none; }
  .jj-burger { display: inline-flex !important; justify-self: start; }
  .jj-logo__mark { font-size: 23px; }
  .jj-logo__sub { font-size: 7.5px; margin-top: 4px; }
  .jj-icons .jj-hide-sm { display: none !important; }
  .jj-icons { gap: 0; }
}

/* ===== 7. Drawers, quantity, search ===== */
.jj-overlay { position: fixed; inset: 0; background: rgba(37,35,33,.38); opacity: 0; visibility: hidden; transition: opacity .35s var(--jj-ease), visibility .35s; z-index: 1000; }
.jj-overlay.is-open { opacity: 1; visibility: visible; }
.jj-drawer { position: fixed; top: 0; bottom: 0; width: min(440px, 92vw); background: var(--joely-ivory); z-index: 1001; display: flex; flex-direction: column; transition: transform .45s var(--jj-ease), visibility .45s; visibility: hidden; }
.jj-drawer.is-open { visibility: visible; transform: none !important; }
.jj-drawer--right { right: 0; transform: translateX(100%); }
.jj-drawer--left { left: 0; transform: translateX(-100%); }
.jj-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 18px 28px; border-bottom: 1px solid var(--border-primary); }
.jj-drawer__title { font-family: var(--jj-serif); font-size: 26px; margin: 0; font-weight: 500; }
.jj-drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; overscroll-behavior: contain; transition: opacity .2s; }
.jj-drawer__foot { padding: 22px 28px 26px; border-top: 1px solid var(--border-primary); }
.jj-drawer.is-busy .jj-drawer__body { opacity: .5; pointer-events: none; }
.jj-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.jj-mobile-nav li { border-bottom: 1px solid var(--border-primary); margin: 0; }
.jj-mobile-nav a { display: block; padding: 15px 0; font-family: var(--jj-serif); font-size: 24px; text-decoration: none; }
.jj-mobile-nav .sub-menu { padding: 0 0 12px 14px; }
.jj-mobile-nav .sub-menu li { border: 0; }
.jj-mobile-nav .sub-menu a { font-family: var(--jj-sans); font-size: 15px; padding: 7px 0; }
.jj-mobile-links { margin-top: 26px; display: grid; gap: 16px; font-size: 14.5px; }
.jj-mobile-links a { text-decoration: none; display: flex; gap: 12px; align-items: center; }
.jj-mobile-links svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.jj-cart-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border-primary); }
.jj-cart-item__img { aspect-ratio: 1; background: var(--joely-cream); overflow: hidden; display: block; }
.jj-cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.jj-cart-item__name { font-family: var(--jj-serif); font-size: 19px; line-height: 1.2; text-decoration: none; display: block; margin-bottom: 4px; }
.jj-cart-item__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.jj-cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.jj-cart-item__price { font-size: 15px; font-weight: 500; }
.jj-remove { background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; color: var(--text-muted) !important; font-size: 12px !important; text-decoration: underline !important; letter-spacing: .02em !important; text-transform: none !important; cursor: pointer; font-weight: 400 !important; margin-top: 8px; display: inline-block !important; }
.jj-subtotal { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 6px; }
.jj-subtotal strong { font-size: 19px; font-weight: 500; }
.jj-note { font-size: 12.5px; color: var(--text-muted); margin-bottom: 16px; }
.jj-drawer__foot .jj-btn { width: 100%; margin-top: 10px; }
.jj-drawer__foot .jj-split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jj-drawer__foot .jj-split2 .jj-btn { padding: 14px 10px !important; font-size: 12px !important; }
.jj-empty { text-align: center; padding: 56px 10px; }
.jj-empty p { color: var(--text-muted); }
.jj-empty svg { width: 40px; height: 40px; stroke: var(--joely-charcoal); fill: none; stroke-width: 1; margin-bottom: 14px; }
.jj-qty, .quantity.jj-qty-wrap { display: inline-flex !important; align-items: stretch; border: 1px solid var(--border-strong); height: 40px; background: #fff; }
.jj-qty button, .jj-qty-wrap .jj-step { width: 36px; background: transparent !important; border: 0 !important; color: var(--joely-charcoal) !important; padding: 0 !important; min-height: 0 !important; font-size: 17px !important; cursor: pointer; letter-spacing: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; font-weight: 400 !important; }
.jj-qty button:hover, .jj-qty-wrap .jj-step:hover { background: var(--joely-cream) !important; }
.jj-qty button:disabled, .jj-qty-wrap .jj-step:disabled { opacity: .3 !important; }
.jj-qty span, .jj-qty-wrap input.qty { width: 40px !important; min-height: 0 !important; height: auto !important; text-align: center; border: 0 !important; padding: 0 !important; font-size: 14px !important; display: inline-flex; align-items: center; justify-content: center; -moz-appearance: textfield; background: transparent !important; }
.jj-qty-wrap input.qty::-webkit-outer-spin-button, .jj-qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jj-search { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; background: var(--joely-ivory); transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--jj-ease), visibility .45s; max-height: 100vh; overflow-y: auto; }
.jj-search.is-open { transform: none; visibility: visible; }
.jj-search__inner { max-width: 1000px; margin: 0 auto; padding: 40px var(--jj-gutter) 48px; position: relative; }
.jj-search__form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--joely-charcoal); padding-right: 50px; }
.jj-search__form svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; flex: none; }
.jj-search__form input[type=search] { flex: 1; border: 0 !important; background: transparent !important; font-family: var(--jj-serif) !important; font-size: clamp(24px, 3vw, 34px) !important; padding: 14px 0 !important; min-height: 0; }
.jj-search__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin: 28px 0 14px; }
.jj-search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 28px; }
.jj-search__item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--border-primary); }
.jj-search__item img { width: 64px; height: 64px; object-fit: cover; background: var(--joely-cream); }
.jj-search__item strong { display: block; font-family: var(--jj-serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.jj-search__item small { display: block; color: var(--text-muted); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.jj-search__item .jj-price { font-size: 14px; }
.jj-search__suggest { display: flex; flex-wrap: wrap; gap: 10px; }
.jj-search__suggest a { border: 1px solid var(--border-strong); padding: 8px 16px; font-size: 13px; text-decoration: none; }
.jj-search__suggest a:hover { background: var(--joely-charcoal); color: var(--joely-ivory); opacity: 1; }
.jj-search__close { position: absolute !important; top: 44px; right: var(--jj-gutter); }
.jj-search__all { margin-top: 26px; }

/* ===== 8. Hero carousel ===== */
.jj-hero { position: relative; height: clamp(580px, 46vw, 700px); overflow: hidden; background: var(--joely-cream); }
.jj-hero__track { position: relative; height: 100%; }
.jj-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--jj-ease), visibility 1.1s; }
.jj-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.jj-slide__media { position: absolute; inset: 0; background: var(--joely-cream); }
.jj-slide__media img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.jj-slide.is-active .jj-slide__media img { transform: scale(1); }
.jj-slide__content { position: relative; z-index: 2; height: 100%; max-width: var(--jj-max); margin: 0 auto; padding: 0 var(--jj-gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.jj-slide__content > * { max-width: 520px; opacity: 0; transform: translateY(18px); transition: opacity .9s var(--jj-ease), transform .9s var(--jj-ease); }
.jj-slide.is-active .jj-slide__content > * { opacity: 1; transform: none; }
.jj-slide.is-active .jj-slide__content > :nth-child(2) { transition-delay: .12s; }
.jj-slide.is-active .jj-slide__content > :nth-child(3) { transition-delay: .24s; }
.jj-slide.is-active .jj-slide__content > :nth-child(4) { transition-delay: .36s; }
.jj-slide__title { font-size: clamp(46px, 5.2vw, 76px) !important; line-height: 1.02 !important; margin: 0 0 22px !important; }
.jj-slide__text { font-size: 17px; line-height: 1.65; margin: 0 0 34px; color: var(--text-muted); max-width: 440px !important; }
.jj-hero__nav { position: absolute; z-index: 3; bottom: 36px; left: 0; right: 0; max-width: var(--jj-max); margin: 0 auto; padding: 0 var(--jj-gutter); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.jj-hero__dots { display: flex; gap: 8px; pointer-events: auto; }
.jj-hero__dot { width: 36px; height: 24px; background: transparent !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; cursor: pointer; position: relative; }
.jj-hero__dot::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(37,35,33,.28); transition: all .3s; }
.jj-hero__dot[aria-current="true"]::before { background: var(--joely-charcoal); height: 2px; }
.jj-hero__arrows { display: flex; gap: 8px; pointer-events: auto; }
.jj-hero__arrow { width: 46px; height: 46px; border: 1px solid rgba(37,35,33,.3) !important; background: var(--joely-ivory) !important; border-radius: 50% !important; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; min-height: 0 !important; cursor: pointer; color: var(--joely-charcoal) !important; transition: background .2s, color .2s; }
.jj-hero__arrow:hover { background: var(--joely-charcoal) !important; color: var(--joely-ivory) !important; }
.jj-hero__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
@media (max-width: 767px) {
  .jj-hero { height: auto; }
  .jj-hero__track { display: grid; }
  .jj-slide { position: relative; grid-area: 1 / 1; }
  .jj-slide__media { position: relative; height: 92vw; max-height: 460px; }
  .jj-slide__media img { width: 100%; }
  .jj-slide__content { height: auto; padding: 28px 20px 80px; background: var(--joely-ivory); }
  .jj-slide__title { font-size: clamp(36px, 10vw, 46px) !important; margin-bottom: 14px !important; }
  .jj-slide__text { font-size: 15.5px; margin-bottom: 24px; }
  .jj-hero__nav { bottom: 26px; }
  .jj-hero__arrows { display: none; }
}

/* ===== 9. Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ===== Header layout: logo left, navigation centred, icons right ===== */
.jj-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav icons"; column-gap: clamp(24px, 3vw, 48px); }
.jj-header .jj-logo { grid-area: logo; justify-self: start; }
.jj-nav { grid-area: nav; justify-self: center; }
.jj-icons { grid-area: icons; }
.jj-burger { grid-area: burger; }
@media (max-width: 1100px) {
  .jj-header__inner { grid-template-columns: 1fr auto 1fr; grid-template-areas: "burger logo icons"; height: 64px; padding: 0 12px; }
  .jj-header .jj-logo { justify-self: center; }
  .jj-nav { display: none; }
  .jj-burger { display: inline-flex !important; justify-self: start; }
  .jj-icons .jj-hide-sm { display: none !important; }
  .jj-logo__mark { font-size: 23px; }
  .jj-logo__sub { font-size: 7.5px; margin-top: 4px; }
}
