/*
Theme Name: Maxx Aesthetics
Template: kadence
Description: Child theme for estetikata.com - modern plum/sage design system shared with the store.
Version: 2.0.0
Text Domain: maxx-aesthetics
*/

:root {
  /* palette */
  --mx-ink:      #17141C;
  --mx-body:     #4A4551;
  --mx-muted:    #6E6875;
  --mx-paper:    #FBFAF8;
  --mx-surface:  #FFFFFF;
  --mx-line:     #EAE5EA;
  --mx-plum:     #7A2E5D;
  --mx-plum-dk:  #5E2148;
  --mx-plum-lt:  #F5E8EE;
  --mx-sage:     #7E9384;
  --mx-sage-lt:  #EDF1EE;
  --mx-sale:     #B3364F;

  /* type */
  --mx-display: "Fraunces", Georgia, serif;
  --mx-sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

  /* shape - the main modernity shift: soft radii + elevation */
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(23,20,28,.04), 0 4px 14px rgba(23,20,28,.05);
  --sh-2: 0 2px 6px rgba(23,20,28,.05), 0 16px 34px rgba(23,20,28,.09);

  --s1: .5rem; --s2: .875rem; --s3: 1.25rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem;
  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --max: 1260px;
}

body { font-family: var(--mx-sans); background: var(--mx-paper); color: var(--mx-body); }
h1,h2,h3,h4,.entry-title,.product_title,.woocommerce-loop-product__title {
  font-family: var(--mx-display) !important; font-weight: 400; color: var(--mx-ink); text-wrap: balance;
}
a { color: var(--mx-plum); }
:focus-visible { outline: 2px solid var(--mx-plum); outline-offset: 3px; }

.mx-wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.mx-sec { padding-block: clamp(2.5rem, 6vw, var(--s6)); }
.mx-sec--cream { background: var(--mx-plum-lt); }
.mx-sec--sand  { background: var(--mx-sage-lt); }

.mx-eyebrow {
  font-family: var(--mx-sans); font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mx-plum); margin: 0 0 var(--s1);
}
.mx-h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
.mx-lede { color: var(--mx-body); max-width: 60ch; margin: var(--s2) 0 0; }
.mx-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.mx-more { font-family: var(--mx-sans); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--mx-plum); text-decoration: none; white-space: nowrap; }
.mx-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* chips - new element */
.mx-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--mx-plum-lt); color: var(--mx-plum-dk);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.mx-chip--sage { background: var(--mx-sage-lt); color: #46584C; }

.mx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: .85rem 1.7rem; border-radius: var(--r-pill);
  font-family: var(--mx-sans); font-size: .84rem; font-weight: 800; letter-spacing: .02em;
  text-decoration: none; background: var(--mx-plum); color: #fff !important;
  border: 1px solid var(--mx-plum); box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.mx-btn:hover { background: var(--mx-plum-dk); border-color: var(--mx-plum-dk); transform: translateY(-1px); box-shadow: var(--sh-2); }
.mx-btn--ghost { background: transparent; color: var(--mx-ink) !important; border-color: var(--mx-line); box-shadow: none; }
.mx-btn--ghost:hover { background: var(--mx-surface); border-color: var(--mx-plum); color: var(--mx-plum) !important; }
.mx-btn--light { background: #fff; color: var(--mx-plum-dk) !important; border-color: #fff; }
.mx-btn--light:hover { background: var(--mx-plum-lt); border-color: var(--mx-plum-lt); }

/* marquee ticker - new element */
.mx-marquee { background: var(--mx-ink); color: #E9E4EE; overflow: hidden; }
.mx-marquee-track { display: flex; gap: 3rem; width: max-content; padding: .7rem 0; animation: mx-slide 34s linear infinite; }
.mx-marquee span { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.mx-marquee span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mx-sage); }
@keyframes mx-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mx-marquee-track { animation: none; } }

/* hero - offset composition */
.mx-hero { position: relative; background: var(--mx-paper); overflow: hidden; }
.mx-hero::after {
  content: ""; position: absolute; right: -12%; top: -35%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--mx-plum-lt) 0%, transparent 62%); pointer-events: none;
}
.mx-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) { .mx-hero-grid { grid-template-columns: 1fr 1.02fr; align-items: center; gap: var(--s4); } }
.mx-hero-copy { padding: clamp(2rem, 5vw, 4.5rem) var(--pad); }
.mx-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.02; margin: var(--s2) 0 var(--s3); letter-spacing: -.02em; }
.mx-hero h1 em { font-style: italic; color: var(--mx-plum); }
.mx-hero p { color: var(--mx-body); font-size: 1.05rem; max-width: 46ch; margin: 0 0 var(--s4); }
.mx-hero-cta { display: flex; gap: var(--s2); flex-wrap: wrap; }
.mx-hero-media { position: relative; min-height: 300px; padding: 0 var(--pad) var(--s4); }
@media (min-width: 900px) { .mx-hero-media { padding: var(--s4) var(--pad) var(--s4) 0; min-height: 520px; } }
.mx-hero-media img {
  width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: block;
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}

/* stat row - new element */
.mx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s4); }
.mx-stat b { display: block; font-family: var(--mx-display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--mx-plum); line-height: 1; }
.mx-stat span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mx-muted); }

/* cards */
.mx-pillars { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 620px) { .mx-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mx-pillars { grid-template-columns: repeat(4, 1fr); } }
.mx-pillar {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--mx-surface); border: 1px solid var(--mx-line); border-radius: var(--r);
  box-shadow: var(--sh-1); transition: transform .2s ease, box-shadow .2s ease;
}
.mx-pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.mx-pillar-img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--mx-plum-lt); }
.mx-pillar-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s ease; }
.mx-pillar:hover .mx-pillar-img img { transform: scale(1.06); }
.mx-pillar-body { padding: var(--s3); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.mx-pillar h3 { font-size: 1.25rem; margin: 0; }
.mx-pillar p { margin: 0; font-size: .89rem; color: var(--mx-muted); line-height: 1.6; }
.mx-pillar .mx-more { margin-top: auto; padding-top: var(--s2); }

.mx-tiles { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .mx-tiles { grid-template-columns: repeat(4, 1fr); } }
.mx-tile {
  display: block; text-decoration: none; overflow: hidden; background: var(--mx-surface);
  border: 1px solid var(--mx-line); border-radius: var(--r); box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mx-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.mx-tile-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--mx-plum-lt); }
.mx-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mx-tile:hover .mx-tile-img img { transform: scale(1.06); }
.mx-tile-body { padding: .85rem .95rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.mx-tile-name { font-family: var(--mx-display); font-size: 1.02rem; color: var(--mx-ink); line-height: 1.25; }
.mx-tile-n {
  font-size: .68rem; font-weight: 800; color: var(--mx-plum-dk); background: var(--mx-plum-lt);
  padding: .22rem .55rem; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* split band */
.mx-split { display: grid; grid-template-columns: 1fr; background: var(--mx-ink); color: #E4DFEA; border-radius: 0; overflow: hidden; }
@media (min-width: 880px) { .mx-split { grid-template-columns: 1fr 1fr; } }
.mx-split-media { position: relative; min-height: 260px; }
.mx-split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-split-copy { padding: clamp(2rem, 5vw, 3.75rem) var(--pad); align-self: center; }
.mx-split h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: #fff; margin: var(--s2) 0 var(--s2); }
.mx-split p { color: #B4ACBD; margin: 0 0 var(--s4); max-width: 46ch; }
.mx-split .mx-eyebrow { color: var(--mx-sage); }

/* posts */
.mx-posts { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 700px) { .mx-posts { grid-template-columns: repeat(3, 1fr); } }
.mx-post {
  text-decoration: none; display: flex; flex-direction: column; overflow: hidden;
  background: var(--mx-surface); border: 1px solid var(--mx-line); border-radius: var(--r); box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mx-post:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.mx-post-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mx-plum-lt); }
.mx-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-post-body { padding: var(--s3); display: flex; flex-direction: column; gap: .45rem; }
.mx-post h3 { font-size: 1.15rem; line-height: 1.25; margin: 0; }
.mx-post:hover h3 { color: var(--mx-plum); }
.mx-post time { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mx-muted); }

/* trust */
.mx-trust { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 620px) { .mx-trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mx-trust { grid-template-columns: repeat(4, 1fr); } }
.mx-trust-item { background: var(--mx-surface); border: 1px solid var(--mx-line); border-radius: var(--r); padding: var(--s3); box-shadow: var(--sh-1); }
.mx-trust-item h3 { font-size: 1.08rem; margin: 0 0 .3rem; }
.mx-trust-item p { margin: 0; font-size: .87rem; color: var(--mx-muted); line-height: 1.6; }

/* woocommerce */
.woocommerce ul.products li.product {
  background: var(--mx-surface); border: 1px solid var(--mx-line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--sh-1); padding-bottom: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.woocommerce ul.products li.product a img { margin: 0 0 .85rem; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.02rem !important; padding: 0 1rem; }
.woocommerce ul.products li.product .price { padding: 0 1rem; color: var(--mx-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.woocommerce ul.products li.product .price del { color: var(--mx-muted); font-weight: 400; }
.woocommerce ul.products li.product .price ins { color: var(--mx-sale); text-decoration: none; }
.woocommerce ul.products li.product .button,
.woocommerce div.product form.cart .button {
  background: var(--mx-plum); color: #fff; border-radius: var(--r-pill);
  letter-spacing: .03em; font-size: .78rem; font-weight: 800; min-height: 44px; margin: .75rem 1rem 0;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce div.product form.cart .button:hover { background: var(--mx-plum-dk); color: #fff; }
.woocommerce span.onsale { background: var(--mx-sale); border-radius: var(--r-pill); font-weight: 800; font-size: .7rem; padding: .3rem .7rem; min-height: 0; min-width: 0; line-height: 1.4; }

/* header / footer polish */
#masthead { background: var(--mx-surface); border-bottom: 1px solid var(--mx-line); }
#site-navigation .menu > li > a { font-family: var(--mx-sans); font-size: .87rem; font-weight: 600; color: var(--mx-ink); padding: .55rem .7rem; border-radius: var(--r-sm); }
#site-navigation .menu > li > a:hover { color: var(--mx-plum); background: var(--mx-plum-lt); }
#site-navigation .menu > li.current-menu-item > a { color: var(--mx-plum); }

@media (max-width: 767px) {
  .mx-sec { padding-block: 2.25rem; }
  .mx-head { margin-bottom: var(--s3); }
  .mx-hero-copy { padding: 1.6rem var(--pad) 1.25rem; }
  .mx-hero h1 { font-size: 2rem; }
  .mx-hero p { font-size: .95rem; margin-bottom: var(--s3); }
  .mx-hero-media { min-height: 210px; padding: 0 var(--pad) var(--s3); }
  .mx-hero-media img { border-radius: var(--r); }
  .mx-hero-cta .mx-btn { flex: 1 1 100%; }
  .mx-stats { gap: .75rem; margin-top: var(--s3); }
  .mx-tiles { gap: .65rem; }
  .mx-tile-name { font-size: .9rem; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: .7rem !important; }
  .mx-marquee-track { animation-duration: 22s; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Kadence stores a gold gradient on the header row in theme mods; that gradient
   re-tints itself from the palette, so it must be overridden, not recoloured. */
.site-header-row-container-inner,
#main-header .site-header-row-container-inner,
.site-main-header-wrap .site-header-row-container-inner {
  background: var(--mx-surface);
}
#masthead, #mobile-header { background: var(--mx-surface); border-bottom: 1px solid var(--mx-line); }

/* ============ header ============ */
#masthead, #mobile-header,
#masthead .site-header-row-container-inner,
.site-top-header-wrap .site-header-row-container-inner,
.site-main-header-wrap .site-header-row-container-inner,
.site-bottom-header-wrap .site-header-row-container-inner {
  background: var(--mx-surface);
  background-image: none;
}
#masthead { border-bottom: 1px solid var(--mx-line); }
.site-branding a.brand img { max-width: 165px; height: auto; }
.site-branding .site-title-wrap { display: none; }
#site-navigation .menu > li > a,
.header-navigation .menu > li > a {
  font-family: var(--mx-sans); font-size: .87rem; font-weight: 600;
  color: var(--mx-ink); padding: .55rem .75rem; border-radius: var(--r-sm);
  text-transform: none; letter-spacing: 0;
}
#site-navigation .menu > li > a:hover,
.header-navigation .menu > li > a:hover { color: var(--mx-plum); background: var(--mx-plum-lt); }
#site-navigation .menu > li.current-menu-item > a { color: var(--mx-plum); background: var(--mx-plum-lt); }
#mobile-toggle, .drawer-toggle, .menu-toggle-open {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--mx-ink);
}

/* ============ footer ============ */
#colophon { background: var(--mx-ink); color: #B4ACBD; margin-top: 0; }
#colophon .site-footer-row-container-inner,
#colophon .site-top-footer-wrap .site-footer-row-container-inner,
#colophon .site-middle-footer-wrap .site-footer-row-container-inner,
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner {
  background: transparent; background-image: none;
}
#colophon .site-footer-row { padding-block: 0; }
#colophon a { color: #E4DFEA; text-decoration: none; }
#colophon a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-html-inner { width: 100%; }

.mx-foot { display: grid; gap: 2rem 2.5rem; grid-template-columns: 1fr; padding: clamp(2.25rem,5vw,3.25rem) 0 0; text-align: left; }
@media (min-width: 620px) { .mx-foot { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .mx-foot { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.mx-foot h4 { font-family: var(--mx-sans); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .9rem; }
.mx-foot p { margin: 0 0 .5rem; font-size: .87rem; line-height: 1.65; color: #B4ACBD; }
.mx-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mx-foot li { font-size: .87rem; }
.mx-foot-brand { font-family: var(--mx-display); color: #fff; font-size: 1.35rem; margin: 0 0 .6rem; display: block; }
.mx-foot-bottom {
  margin-top: 2.25rem; padding: 1.1rem 0 1.4rem; border-top: 1px solid #2A2532;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: #8B8394;
}
@media (max-width: 767px) {
  .mx-foot { gap: 1.5rem; }
  .mx-foot-bottom { flex-direction: column; gap: .35rem; }
}

/* ============ feedback: less white, more colour ============ */
:root {
  --mx-paper:    #F7F2F4;   /* warmer, tinted ground instead of near-white */
  --mx-plum-lt:  #F0DDE7;   /* stronger plum tint */
  --mx-sage-lt:  #E4EDE7;   /* stronger sage tint */
  --mx-blush:    #FBEFF3;
}
body { background: var(--mx-paper); }
.content-bg, body.content-style-unboxed .site { background: transparent; }

/* hero gets colour instead of near-white */
.mx-hero { background: linear-gradient(168deg, var(--mx-blush) 0%, var(--mx-sage-lt) 100%); }
.mx-hero::after { background: radial-gradient(circle, rgba(122,46,93,.14) 0%, transparent 62%); }

/* alternating tinted bands so nothing reads as a white slab */
.mx-sec--cream { background: var(--mx-plum-lt); }
.mx-sec--sand  { background: var(--mx-sage-lt); }
.mx-sec--blush { background: var(--mx-blush); }
.mx-sec--plum  { background: var(--mx-plum); color: #F3E7EE; }
.mx-sec--plum .mx-h2, .mx-sec--plum h2, .mx-sec--plum h3 { color: #fff; }
.mx-sec--plum .mx-eyebrow { color: var(--mx-champagne, #E9C9D9); }
.mx-sec--plum .mx-more { color: #F0DDE7; }

/* cards keep white so they lift off the tinted bands */
.mx-pillar, .mx-tile, .mx-post, .mx-trust-item,
.woocommerce ul.products li.product { background: #fff; }

/* section headings carry an accent rule - more colour, more structure */
.mx-head { position: relative; }
.mx-h2::after {
  content: ""; display: block; width: 3rem; height: 3px; border-radius: 999px;
  background: var(--mx-plum); margin-top: .7rem;
}
.mx-sec--plum .mx-h2::after { background: var(--mx-sage); }

/* headings: more character now that Fraunces is loaded */
h1, h2, h3, .mx-h2, .mx-tile-name, .mx-pillar h3, .mx-post h3, .mx-foot-brand {
  font-variation-settings: "SOFT" 30, "WONK" 1;
  letter-spacing: -.015em;
}

/* header: the inline Viber/social images sat on the text baseline */
.site-header-item .footer-html-inner img,
.header-html img, .site-header-item img:not(.custom-logo) {
  vertical-align: middle; max-height: 22px; width: auto; display: inline-block; margin: 0 .3rem;
}
.header-html, .site-header-item .header-html-inner {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; line-height: 1.2;
}
.site-top-header-wrap { background: var(--mx-plum) !important; }
.site-top-header-wrap, .site-top-header-wrap a, .site-top-header-wrap p { color: #F5E8EE !important; font-size: .82rem; }
.site-top-header-wrap a:hover { color: #fff !important; }
.site-top-header-wrap .site-header-row-container-inner { background: transparent !important; }
