/*
Theme Name: Ferrer Mag
Theme URI: https://ferrermag.com/
Author: Ferrer Mag
Author URI: https://ferrermag.com/
Description: A pastel lifestyle magazine theme for Ferrer Mag — five minds, one mag, endless inspo. v1.7: compact article cards everywhere (180px images, 15-16px titles, 2-line excerpts), each of the 13 niches in its own pastel tint, a rotating circular category dial in Every Niche In Motion, and a full-width pastel mega menu under Categories. v1.6: header fallback so inner pages get a header even when the Elementor Header template only matches the homepage, and visibly stronger continuous motion in every section (bigger tile bob, faster plane, real gradient shift, rotating hero badge). Demo-style two-column hero with the user-supplied five-ladies screenshot (sticky notes + doodles baked in, shown full with object-fit:contain, no crop, no HTML note overlay), solid header with a real Categories mega menu, full footer on every page, working Categories / Gallery / About pages, a wallpaper Gallery with free high-resolution downloads, and niche motion + Motion Wall. Fully responsive.
Version: 1.16.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ferrer-mag
Tags: blog, pastel, responsive, custom-menu, customizer, featured-images, editor-style, wallpaper-gallery
*/

:root{
  --cream:#FFFBF3; --cream-2:#FFF3E8; --ink:#33272A; --muted:#7A6A6E;
  --pink:#D97B8C; --pink-soft:#F3C6CC; --pink-pale:#FDEFF1;
  --lavender:#C9B8E8; --peach:#F5C9A8; --mint:#BFE3C6; --blue:#BFD9E8; --yellow:#F7E8B0;
  --radius:24px; --shadow:0 10px 30px rgba(51,39,42,.08);
  /* v1.7: one pastel tint per niche, used identically in Motion Wall,
     Every Niche In Motion, the mega menu and the Categories page. */
  --tint-fashion:#F6D7E2; --tint-home:#FFE0CB; --tint-beauty:#E3DBF4; --tint-travel:#D9E7F9; --tint-food:#DAF3DC; --tint-pets:#FAEDCE; --tint-lifestyle:#F9E1E8; --tint-gifts:#E7DAF0; --tint-health:#DCF2DB; --tint-diy:#FFE8D6; --tint-garden:#E6EBE4; --tint-parenting:#F9EFCE; --tint-weddings:#F7DCE5;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:190px}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.6;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--pink);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--serif);line-height:1.15;margin:0 0 .5em}
p{margin:0 0 1em}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.eyebrow{letter-spacing:.18em;text-transform:uppercase;font-size:12px;color:var(--pink);font-weight:700;scroll-margin-top:190px;display:block}
.btn{display:inline-block;background:var(--pink);color:#fff;padding:12px 22px;border-radius:999px;font-weight:700;border:0;cursor:pointer}
.btn:hover{text-decoration:none;opacity:.92}
.btn-ghost{background:#fff;color:var(--pink);border:2px solid var(--pink-pale)}
/* v1.3: 190px clearance (was 160px in v1.2, still clipped live) so eyebrows
   and H1s are never clipped under the sticky header — designed for a
   TALLER Elementor sticky header, whose height is unknown and differs
   from the theme header, not the theme header height. .page-hero gets
   150px top padding plus a min-height so the eyebrow sits well clear on
   load. NOTE: the live Elementor header is semi-transparent (content
   shows through while scrolling) — that is an Elementor setting
   (Header template > Style > Background), theme CSS cannot make it
   opaque; see readme step 9. */
.section{padding:120px 0 56px;scroll-margin-top:190px}
.section.alt{background:var(--pink-pale)}
.section-title{font-size:clamp(28px,4vw,40px);scroll-margin-top:190px}
.section-sub{color:var(--muted);max-width:640px}
h1,h2{scroll-margin-top:190px}
.page-hero{padding:150px 0 8px;scroll-margin-top:190px;min-height:260px}
.page-hero .eyebrow,.section .eyebrow{scroll-margin-top:190px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Header — solid, opaque, no ghosting */
.site-header{position:sticky;top:0;z-index:60;background:#FFFBF3;border-bottom:1px solid #F3E3DE}
.header-inner{display:flex;align-items:center;gap:14px;padding:14px 20px;max-width:1100px;margin:0 auto}
.site-logo{font-family:var(--serif);font-size:28px;font-weight:700;color:var(--ink);white-space:nowrap}
.site-logo .dot{color:var(--pink)}
.site-logo:hover{text-decoration:none}
.main-nav{margin-left:auto;display:flex;align-items:center;gap:6px}
.main-nav a,.main-nav button.mega-toggle{color:var(--ink);font-weight:600;padding:10px 12px;border-radius:999px;background:none;border:0;font-family:var(--sans);font-size:16px;cursor:pointer}
.main-nav a:hover,.main-nav a.active,.main-nav button.mega-toggle:hover{background:var(--pink-pale);text-decoration:none}
.nav-toggle{display:none;background:var(--pink);color:#fff;border:0;border-radius:999px;padding:10px 16px;font-weight:700;cursor:pointer}
.header-search-toggle{background:#fff;border:1px solid #EAD9D5;border-radius:50%;width:40px;height:40px;font-size:18px;line-height:1;cursor:pointer;flex:none}
.header-search-wrap{display:none}
.header-search-wrap.open{display:block}
.header-search{border-radius:999px;border:1px solid #EAD9D5;background:#fff;padding:8px 12px}
.subscribe-pill{background:var(--pink);color:#fff;padding:10px 18px;border-radius:999px;font-weight:700;white-space:nowrap}
.subscribe-pill:hover{text-decoration:none}

/* Mega menu — real, full-width, hover + click */
.has-mega{position:relative}
/* v1.7: full-width pastel mega menu — as wide as the header allows,
   cream/white panel, soft shadow, 13 pastel tiles + featured panel. */
.mega-menu{display:none;position:absolute;left:50%;transform:translateX(-50%);top:calc(100% + 10px);width:min(1080px,96vw);background:#FFFBF3;border:1px solid #F6E3DE;border-radius:24px;box-shadow:0 24px 60px rgba(51,39,42,.18);padding:24px;z-index:70}
/* v1.13.0 — panel visibility depends ONLY on the .open class.
   Until v1.12 the :hover and :focus-within selectors below also
   showed the panel — so after a MOUSE-click open, Escape removed
   .open (and blurred focus) but the still-hovering mouse kept the
   panel visible via :hover, while a Tab-focus open DID close (no
   hover to resurrect it). Hover is now driven by JS instead
   (main.js: mouseenter adds .open, mouseleave removes it), so
   Escape removing .open always hides the panel, hover or not. */
.has-mega.open .mega-menu{display:block}
.mega-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.mega-item{display:flex;gap:12px;padding:12px;border-radius:16px;background:var(--cream);border:1px solid rgba(255,255,255,.7)}
.mega-item:hover{background:var(--pink-pale);text-decoration:none}
.mega-icon{font-size:26px;line-height:1}
.mega-item h4{font-size:16px;margin:0 0 2px;color:var(--ink)}
.mega-item p{font-size:13px;color:var(--muted);margin:0}
.mega-count{font-size:12px;color:var(--pink);font-weight:700}
.mega-featured{grid-column:1/-1;background:linear-gradient(90deg,var(--pink-pale),#EFE6FF);border-radius:16px;padding:16px;display:flex;gap:16px;align-items:center}
.mega-featured img{width:120px;height:80px;object-fit:cover;border-radius:12px;flex:none}
.mega-featured .mega-featured-text{flex:1}
.mega-featured a{color:var(--ink)}
.mega-featured h4{margin:0 0 4px}
/* v1.13.0 — SHOWCASE HERO (archive.php): the category hero is now
   a full-width photo banner, ~480px tall on desktop, that grabs the
   eye — real photograph with a slow Ken Burns zoom, a dark/pastel
   gradient overlay so the big white title stays readable, and the
   big white title + description + story-count pill + photo credit.
   v1.14.0 — the stage of LARGE animated emoji figures that v1.13.0
   put over the photo is REMOVED at Komal's request (2026-11-16:
   remove ALL the small widgets from every category page) — the
   showcase is clean photo + text only, no figures, no parallax.
   Top clearance: the sticky Elementor header (~64–72px) overlays
   the top of the page, so the section carries 88px of top padding
   (80px on phones) and the photo /
   overlay start BELOW that padding — the padding area shows the
   category's own pastel tint, so it reads as one continuous band,
   not a gap, and no icon is ever clipped behind the header. */
.niche-hero.niche-showcase{position:relative;overflow:hidden;min-height:568px;padding:88px 0 44px;display:flex;align-items:flex-end;color:#fff;background:#FDEFF1}
.niche-showcase-photo{position:absolute;left:0;right:0;top:88px;bottom:0;z-index:0}
.niche-showcase-photo img{width:100%;height:100%;object-fit:cover;display:block;animation:sc-kenburns 26s ease-in-out infinite alternate}
.niche-showcase-overlay{position:absolute;left:0;right:0;top:88px;bottom:0;z-index:1;background:linear-gradient(180deg,rgba(24,17,19,.28) 0%,rgba(24,17,19,0) 32%,rgba(24,17,19,.12) 58%,rgba(24,17,19,.68) 100%),linear-gradient(90deg,rgba(24,17,19,.44) 0%,rgba(24,17,19,0) 58%)}
.niche-showcase-copy{position:relative;z-index:3;max-width:720px}
.niche-showcase-copy .eyebrow{color:#FFE9EC}
.niche-showcase-copy .section-title{color:#fff;font-size:clamp(38px,5.2vw,62px);line-height:1.05;text-shadow:0 2px 24px rgba(24,17,19,.5);margin:6px 0 10px}
.niche-showcase-copy .section-sub{color:#FFF6F3;font-size:clamp(16px,1.6vw,19px);line-height:1.55;text-shadow:0 1px 14px rgba(24,17,19,.55);margin:0 0 12px}
.niche-showcase-copy .tile-count{display:inline-block;background:rgba(255,255,255,.94);border:1px solid #EAD9D5;border-radius:999px;padding:7px 16px;font-size:13px;font-weight:700;color:var(--ink)}
.niche-showcase-credit{position:absolute;right:14px;bottom:10px;z-index:3;font-size:11px;color:rgba(255,255,255,.78);text-shadow:0 1px 8px rgba(24,17,19,.6)}
.archive-empty{text-align:center;padding:24px 0 8px}
.archive-empty h2{margin-bottom:8px}
.archive-empty .niche-chips{margin-top:20px}
.mobile-drawer{display:none}

/* Hero — demo-style two-column: text left, real photo right, NO overlap.
   v1.4: top padding raised to 150px (was 48px) so the hero eyebrow
   "MEET THE FACES BEHIND FERRER MAG" clears the sticky Elementor
   header on load — it was still half-hidden/faint under it on the
   homepage on two loads in v1.3, because .page-hero's 150px padding
   never applied to the front-page .hero section. Hero image
   unchanged (hero-five-v2.jpg, 1033x745). */
.hero{position:relative;background:linear-gradient(180deg,#FDEFF1,#FFFBF3);padding:150px 0 32px;scroll-margin-top:190px}
.hero .eyebrow{scroll-margin-top:190px}
.hero-grid{max-width:1100px;margin:0 auto;padding:0 20px;display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.hero-copy h1{font-size:clamp(36px,5vw,58px)}
.hero-copy h1 em{color:var(--pink)}
.hero-stats{display:flex;gap:18px;margin:18px 0;font-weight:700;flex-wrap:wrap}
.hero-stats span{color:var(--muted);font-weight:400}
.hero-photo-wrap{position:relative}
.hero-photo-frame{border-radius:24px;overflow:hidden;background:#FFFBF3;box-shadow:var(--shadow)}
/* v1.2: full image, no cropping — the user-supplied hero is 1033x745 with
   sticky notes + doodles baked in, so object-fit:contain (never cover),
   no aspect-ratio crop, no Ken Burns zoom, no arch frame. */
.hero-photo-frame img{width:100%;height:auto;aspect-ratio:1033/745;object-fit:contain;object-position:center;display:block}
.hero-notes{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:14px}
.sticky-note{position:relative;padding:10px 8px 8px;border-radius:4px;box-shadow:0 8px 18px rgba(51,39,42,.18);font-size:12px;line-height:1.35;transform:rotate(-2deg);animation:note-sway 5s ease-in-out infinite;min-height:96px}
.sticky-note::before{content:"";position:absolute;top:-9px;left:50%;transform:translateX(-50%) rotate(2deg);width:44px;height:14px;background:rgba(255,255,255,.65);border:1px solid rgba(0,0,0,.05)}
.sticky-note .note-num{font-size:10px;letter-spacing:.1em;font-weight:800;opacity:.7}
.sticky-note h3{font-size:14px;margin:2px 0}
.sticky-note p{margin:0;font-family:"Caveat",cursive;font-size:15px;line-height:1.25}
.note-1{background:#FDE68A}
.note-2{background:#FBCFE8;transform:rotate(2deg)}
.note-3{background:var(--mint)}
.note-4{background:#FCA5A5;transform:rotate(2deg)}
.note-5{background:var(--blue)}
@keyframes note-sway{0%,100%{translate:0 0}50%{translate:0 -4px}}
.hero-doodle{position:absolute;z-index:2;font-size:26px;animation:floaty 6s ease-in-out infinite;pointer-events:none}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.hero-badge{position:absolute;top:-14px;right:-8px;background:#fff;border-radius:50%;width:96px;height:96px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--pink);box-shadow:var(--shadow);transform:rotate(8deg)}
/* v1.6: the badge is now an SVG circular textPath ("5 GIRLS • 1 MAG •
   ENDLESS INSPO •") inside .hero-badge — the div spins (badge-spin in
   motion.css) and the SVG text rides around the circle with it. */
.hero-badge svg{display:block;width:100%;height:100%}
.hero-badge svg text{fill:var(--pink);font-family:var(--sans);font-size:10.5px;font-weight:700;letter-spacing:.14em}

/* Marquee */
.marquee{background:#fff;border-block:1px solid #F3E3DE;overflow:hidden;padding:12px 0;white-space:nowrap}
.marquee span{font-family:var(--serif);font-size:18px;padding:0 12px}

/* Cards / grids — images never crop baked-in text */
/* v1.7: SMALL article widgets in every section — compact cards.
   Image 180px high (object-fit:cover, so the fixed height never leaves a
   gap; article photos, not baked-in-text screenshots, so cover does not
   cut text), body padding 15px, title 16px, excerpt clamped to 2 lines,
   meta 12px, card max-width 320px, grid gap 18px, 4 per row on desktop
   (.card-grid.four), 2 tablet / 1 phone (see Responsive below).
   White cards, soft shadow, hover lift + pink title (motion.css). */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card-grid.four{grid-template-columns:repeat(4,1fr);gap:18px}
.card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);max-width:320px;width:100%;justify-self:center}
.card img{width:100%;height:180px;object-fit:cover;object-position:center;background:var(--cream-2)}
.card-body{padding:15px}
.card-cat{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--pink);font-weight:700}
.card h3{font-size:16px;margin:6px 0;line-height:1.3}
.card h3 a{color:var(--ink)}
.card p{color:var(--muted);font-size:14px}
.card-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5;margin:0 0 8px}
.card-meta{font-size:12px;color:var(--muted)}
/* --- v1.9.0: Wallpaper Gallery (replaces the Seasonal Edit) --- */
.gallery-tools{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;margin:18px 0 22px}
.gallery-filters{display:flex;flex-wrap:wrap;gap:8px}
.gallery-filter{border:1px solid #F0D9DC;background:#fff;color:var(--ink);border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer}
.gallery-filter:hover{border-color:var(--pink)}
.gallery-filter.active{background:var(--pink);border-color:var(--pink);color:#fff}
.gallery-search{border:1px solid #F0D9DC;border-radius:999px;padding:9px 16px;font-size:14px;min-width:220px;background:#fff}
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.wallpaper-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);max-width:320px;width:100%;justify-self:center}
.wallpaper-preview{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer}
.wallpaper-preview img{width:100%;height:180px;object-fit:cover;object-position:center;background:var(--cream-2);display:block}
.wallpaper-body{padding:15px}
.wallpaper-body h3{font-size:16px;margin:6px 0;line-height:1.3}
.wallpaper-body .btn-download{display:inline-block;margin-top:10px}
.gallery-empty{text-align:center;color:var(--muted);padding:30px 0}
.gallery-note{font-size:13px;color:var(--muted);margin-top:26px}
/* Lightbox */
.gallery-lightbox{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:20px}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox-backdrop{position:absolute;inset:0;background:rgba(46,35,38,.72)}
.gallery-lightbox-box{position:relative;background:#fff;border-radius:20px;max-width:920px;width:94vw;max-height:92vh;overflow:auto;padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.3)}
.gallery-lightbox-box img{width:100%;max-height:68vh;object-fit:contain;border-radius:12px;background:#FFF7F2}
.gallery-lightbox-close{position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:50%;border:0;background:var(--pink);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.gallery-lightbox-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.gallery-lightbox-actions button{border:1px solid #F0D9DC;background:#fff;border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer}


/* Niche motion */
.niche-stage{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
/* v1.7: PASTEL category containers — each niche in its own pastel tint
   (same tints in Motion Wall, Every Niche In Motion, mega menu and
   Categories page), rounded 24px, soft pastel gradient, soft shadow,
   icon in a white/pastel circle, serif name, small story count,
   hover lift + pastel glow. v1.6 bob/drift motion kept (motion.css). */
.niche-tile{background:#fff;border-radius:24px;padding:18px 14px;text-align:center;box-shadow:0 10px 28px rgba(51,39,42,.09);border:1px solid rgba(255,255,255,.75)}
.niche-tile .tile-icon{font-size:32px;display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:rgba(255,255,255,.78);box-shadow:0 4px 12px rgba(51,39,42,.08)}
.niche-tile h3{font-size:18px;font-family:var(--serif)}
.niche-tile p{font-size:13px;color:var(--muted);margin:0 0 6px}
.tile-count{font-size:12px;color:var(--pink);font-weight:700}
.niche-tile:hover{box-shadow:0 18px 36px rgba(217,123,140,.22)}
/* One pastel tint per niche — gradient from the tint to near-white. */
.niche-tile.cat-fashion-style,.mega-item.cat-fashion-style{background:linear-gradient(160deg,#F6D7E2,#FDF6F8)}
.niche-tile.cat-home-decor,.mega-item.cat-home-decor{background:linear-gradient(160deg,#FFE0CB,#FFF8F1)}
.niche-tile.cat-beauty-skincare,.mega-item.cat-beauty-skincare{background:linear-gradient(160deg,#E3DBF4,#F8F5FD)}
.niche-tile.cat-travel,.mega-item.cat-travel{background:linear-gradient(160deg,#D9E7F9,#F2F7FD)}
.niche-tile.cat-food-recipes,.mega-item.cat-food-recipes{background:linear-gradient(160deg,#DAF3DC,#F4FBF5)}
.niche-tile.cat-pets,.mega-item.cat-pets{background:linear-gradient(160deg,#FAEDCE,#FFFDF2)}
.niche-tile.cat-lifestyle-wellness,.mega-item.cat-lifestyle-wellness{background:linear-gradient(160deg,#F9E1E8,#FDF6F8)}
.niche-tile.cat-gifts-seasonal,.mega-item.cat-gifts-seasonal{background:linear-gradient(160deg,#E7DAF0,#F9F5FC)}
.niche-tile.cat-health-fitness,.mega-item.cat-health-fitness{background:linear-gradient(160deg,#DCF2DB,#F4FBF4)}
.niche-tile.cat-diy-crafts,.mega-item.cat-diy-crafts{background:linear-gradient(160deg,#FFE8D6,#FFF9F3)}
.niche-tile.cat-gardening-plants,.mega-item.cat-gardening-plants{background:linear-gradient(160deg,#E6EBE4,#F7F8F6)}
.niche-tile.cat-parenting-kids,.mega-item.cat-parenting-kids{background:linear-gradient(160deg,#F9EFCE,#FFFDF2)}
.niche-tile.cat-weddings-events,.mega-item.cat-weddings-events{background:linear-gradient(160deg,#F7DCE5,#FDF6F8)}
.motion-sway{animation:sway 3s ease-in-out infinite}
.motion-glow{animation:glow 2.6s ease-in-out infinite}
.motion-twinkle{animation:twinkle 2.2s ease-in-out infinite}
.motion-fly{animation:fly 4s ease-in-out infinite}
.motion-bounce{animation:bounce 2.4s ease-in-out infinite}
.motion-pulse{animation:pulse 2s ease-in-out infinite}
.motion-grow{animation:grow 3.4s ease-in-out infinite}
.motion-wiggle{animation:wiggle 2.8s ease-in-out infinite}
.motion-flutter{animation:flutter 3s ease-in-out infinite}
.motion-breathe{animation:breathe 4s ease-in-out infinite}
.motion-drift{animation:drift 5s ease-in-out infinite}
.motion-shimmer{animation:shimmer 3s ease-in-out infinite}
/* v1.6: motion amplitudes raised — v1.5's ±2–3° / 6–8px moves on a ~36px
   emoji measured only ~0.6% pixel change live over 4.5s, i.e. invisible.
   These keyframes are the tile-icon motions; the whole tile now ALSO bobs
   (tile-bob in motion.css). Amplitudes below are roughly doubled. */
@keyframes sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes glow{0%,100%{filter:drop-shadow(0 0 0 rgba(217,123,140,0))}50%{filter:drop-shadow(0 0 18px rgba(217,123,140,.85))}}
@keyframes twinkle{0%,100%{opacity:.55;transform:scale(.92)}50%{opacity:1;transform:scale(1.12)}}
@keyframes fly{0%,100%{transform:translate(0,0)}50%{transform:translate(14px,-14px)}}
@keyframes bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
@keyframes grow{0%,100%{transform:scale(.94)}50%{transform:scale(1.1)}}
@keyframes wiggle{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
@keyframes flutter{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(6deg)}}
@keyframes breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes drift{0%,100%{transform:translateX(0)}50%{transform:translateX(16px)}}
@keyframes shimmer{0%,100%{opacity:.6}50%{opacity:1}}
.motion-wall{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.motion-wall .niche-tile{min-height:150px}

/* v1.7: ROTATING ROUND WIDGET in "Every Niche, In Motion" — in the
   style of the v1.6 rotating hero badge (circular text on a ring).
   A 320px pastel dial; all 13 category names ride the ring on an SVG
   textPath and rotate slowly (dial-spin, 40s per turn). The centre does
   NOT rotate: it shows the currently active category (icon, name,
   one-line description, story count) and auto-cycles every 3s (main.js).
   Pause/play + prev/next controls, and chips for ALL 13 categories
   below so every category is visible at once; a chip jumps the centre
   to that category. Reduced-motion: rotation stops (see the
   prefers-reduced-motion block at the end of this file and motion.css);
   the centre still changes on click. */
.niche-dial-wrap{display:flex;flex-direction:column;align-items:center;gap:18px;margin:8px 0 28px;text-align:center}
.niche-dial{position:relative;width:320px;height:320px;max-width:90vw;border-radius:50%;background:radial-gradient(circle at 50% 35%,#FFFDF8,#FDEFF1 55%,#EFE6FF);box-shadow:0 18px 44px rgba(51,39,42,.12);border:1px solid #F6E3DE}
.niche-dial-ring{position:absolute;inset:0;animation:dial-spin 40s linear infinite}
/* v1.12.0 — Pause stops the ring too (main.js toggles .paused on
   #nicheDial): the ring's rotation pauses along with the 3s centre
   auto-cycle. Reduced-motion stops it in the media query below. */
.niche-dial.paused .niche-dial-ring{animation-play-state:paused}
.niche-dial-ring svg{display:block;width:100%;height:100%}
.niche-dial-ring svg text{fill:var(--pink);font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.12em}
@keyframes dial-spin{to{transform:rotate(360deg)}}
.niche-dial-centre{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:200px;height:200px;border-radius:50%;background:#fff;box-shadow:0 10px 28px rgba(51,39,42,.10);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:18px;text-align:center}
.niche-dial-centre .dial-icon{font-size:34px;line-height:1}
.niche-dial-centre h3{font-size:19px;margin:4px 0 2px}
.niche-dial-centre p{font-size:12px;color:var(--muted);margin:0;line-height:1.45}
.niche-dial-centre .tile-count{font-size:12px}
.niche-dial-centre a{color:var(--ink)}
.niche-dial-centre a:hover{color:var(--pink);text-decoration:none}
.niche-dial-controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.niche-dial-controls button{background:#fff;border:1px solid #EAD9D5;border-radius:999px;padding:8px 14px;font-family:var(--sans);font-size:13px;font-weight:700;color:var(--ink);cursor:pointer}
.niche-dial-controls button:hover{background:var(--pink-pale)}
.niche-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:900px}
.niche-chip{background:#fff;border:1px solid #EAD9D5;border-radius:999px;padding:7px 13px;font-family:var(--sans);font-size:13px;font-weight:600;color:var(--ink);cursor:pointer;text-decoration:none}
/* v1.11: chips are now real links to each category's page. */
.niche-chip:hover{background:var(--pink-pale);text-decoration:none}
.niche-chip.active{background:var(--pink);border-color:var(--pink);color:#fff}
/* Newsletter / footer — footer renders on every page */
.newsletter{background:linear-gradient(90deg,var(--pink-pale),#EFE6FF);border-radius:28px;padding:36px;text-align:center}
.newsletter form{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.newsletter input[type=email]{padding:12px 16px;border-radius:999px;border:1px solid #EAD9D5;min-width:260px}
.site-footer{background:#2E2326;color:#F7EDEA;margin-top:56px;padding:48px 0 24px;display:block}
.site-footer a{color:#F7EDEA}
.site-footer h3{color:#fff;font-size:18px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:28px}
.footer-bottom{margin-top:28px;padding-top:18px;border-top:1px solid rgba(255,255,255,.18);font-size:13px;opacity:.85}
.footer-newsletter input[type=email]{padding:10px 14px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:#fff;min-width:180px}
.post-content{max-width:760px;margin:0 auto}
.post-content img{border-radius:20px;object-fit:contain;background:var(--cream-2)}
.meta{color:var(--muted);font-size:14px}
.contact-form label{display:block;font-weight:700;margin:12px 0 4px}
.contact-form input,.contact-form textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid #EAD9D5;font-family:var(--sans);font-size:16px}
.form-success{background:var(--mint);border-radius:12px;padding:14px;margin:12px 0}

/* v1.5.0 — background image + motion in EVERY section.
   Honest note: the demo has NO full-bleed background photograph — photos
   are foreground/card images, backgrounds are cream / light-pink gradient
   / pink→lavender→pale-blue gradient. So each section below keeps its
   demo-exact gradient/cream AND adds that section's own demo photo as a
   FAINT background layer: a cream wash (rgba .86-.90) sits over the photo,
   so the photo reads at ~0.10-0.14 opacity, on the right edge only, never
   behind body text at full strength. Cards stay white with soft shadow.
   background-image is declared on every section class (gradient + photo),
   so each section visibly has a background image. .section children sit
   above the background (z-index 1). */
.section{position:relative;overflow:hidden;background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.88),rgba(255,252,247,.88)),url(assets/images/pattern.svg);background-size:auto,220px 220px;background-repeat:repeat,repeat}
.section>.wrap,.section>.hero-grid{position:relative;z-index:1}
.page-hero{position:relative;overflow:hidden;background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.86),rgba(255,252,247,.86)),url(assets/images/pattern.svg);background-size:auto,220px 220px}
.page-hero>.wrap{position:relative;z-index:1}
.hero{background-image:radial-gradient(circle at 12% 20%,#EFE9F5 0%,rgba(239,233,245,0) 42%),radial-gradient(circle at 88% 12%,#FFE0CB 0%,rgba(255,224,203,0) 38%),radial-gradient(circle at 92% 78%,#E6EBE4 0%,rgba(230,235,228,0) 40%),linear-gradient(180deg,#FDF4F2,#FAE9EC 55%,#F7D9E3)}
.marquee{background-image:linear-gradient(90deg,#F4D8E4,#E4DAF3,#D9E7F9)}
.section-categories{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.87),rgba(255,252,247,.87)),url(assets/images/section-fashion.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-motion-wall{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.88),rgba(255,252,247,.88)),url(assets/images/pattern.svg);background-size:auto,220px 220px}
.section-trending{background-color:#F4D7E4;background-image:linear-gradient(90deg,#F4D7E4 0%,#E7DAF0 50%,#DDE2F7 100%),url(assets/images/section-decor.jpg),url(assets/images/section-food.jpg),url(assets/images/section-wedding.jpg),url(assets/images/section-craft.jpg);background-position:0 0,right -40px top,left -60px bottom,right -40px bottom,left -40px top;background-size:auto,300px auto,300px auto,300px auto,300px auto;background-repeat:repeat,no-repeat,no-repeat,no-repeat,no-repeat}
/* v1.8.0 — GRADIENT ROOT CAUSE (Trending + Sunday, both 0.00% live):
   the v1.6 "fix" widened the gradient layer to 200% and animated
   background-position 0% → 100% HORIZONTALLY — but both gradients were
   VERTICAL (linear-gradient() with no angle = 180deg, top → bottom).
   A vertical gradient is uniform left-to-right, so sliding it sideways
   is pixel-identical at every position: 0.00% change in 5s AND in a 12s
   re-check, however wide the layer is. The fix is to make the gradient
   HORIZONTAL (90deg, pink → lavender → pale blue, demo-exact) so its
   colours actually vary left-to-right; only then can a horizontal
   position shift move pixels. motion.css keeps the 200% layer and now
   runs the shift faster (10s / 12s) so a 5s pixel check sees it move. */
/* v1.6: Fashion / Home photos were "not clearly discernible" live at
   ~0.13 opacity. The wash is now DIRECTIONAL: near-opaque cream on the
   left (where the text sits) fading to a lighter wash on the right edge,
   so the photo reads at ~0.20–0.22 on the right only and text stays
   fully readable. */
.section-fashion,.section-fashion-style{background-color:#FFFCF7;background-image:linear-gradient(90deg,rgba(255,252,247,.97) 0%,rgba(255,252,247,.97) 55%,rgba(255,252,247,.78) 100%),url(assets/images/section-fashion.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
/* v1.8.0 — FASHION SELECTOR FIX: front-page.php renders the Fashion row
   as class "section-fashion-style" (row slug 'fashion-style'), but every
   Fashion rule in style.css and motion.css used ".section-fashion" —
   a class that exists on NO element. So the Fashion background, hover
   lift, pink title AND the image zoom were all dead selectors, which is
   why the hover zoom measured 0.00% live (tested twice, 900ms wait).
   The row template now also adds the "section-fashion" alias class, and
   the rules below list both selectors, so either class matches. */
.section-home-decor{background-color:#FDF4F2;background-image:linear-gradient(90deg,rgba(253,244,242,.97) 0%,rgba(253,244,242,.97) 55%,rgba(247,220,229,.78) 100%),url(assets/images/section-decor.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-beauty-skincare{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.87),rgba(255,252,247,.87)),url(assets/images/section-beauty.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-travel{background-color:#FDF4F2;background-image:linear-gradient(rgba(253,244,242,.86),rgba(249,226,232,.86)),url(assets/images/section-travel.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-gallery{background-color:#FFFCF7;background-image:linear-gradient(90deg,rgba(255,252,247,.97) 0%,rgba(255,252,247,.97) 55%,rgba(255,252,247,.78) 100%),url(assets/images/section-travel.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-sunday{background-color:#F2D7E5;background-image:linear-gradient(90deg,#F2D7E5 0%,#E4DAF2 50%,#D9E5F8 100%),url(assets/images/pattern.svg);background-size:auto,220px 220px}
/* v1.8.0: same vertical-gradient root cause as Trending above — this
   gradient was also vertical (no angle), so its horizontal position
   shift was invisible (0.00%). Now horizontal, 90deg, pink → lavender
   → pale blue, matching the demo's Sunday Letter gradient. */
.section-gallery-page{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.87),rgba(255,252,247,.87)),url(assets/images/section-travel.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-categories-page{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.87),rgba(255,252,247,.87)),url(assets/images/section-fashion.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-about-page{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.87),rgba(255,252,247,.87)),url(assets/images/section-wedding.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-archive{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.87),rgba(255,252,247,.87)),url(assets/images/section-decor.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-search{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.87),rgba(255,252,247,.87)),url(assets/images/section-fashion.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-single{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.88),rgba(255,252,247,.88)),url(assets/images/section-beauty.jpg);background-position:0 0,right -60px center;background-size:auto,480px auto;background-repeat:repeat,no-repeat}
.section-page{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.88),rgba(255,252,247,.88)),url(assets/images/pattern.svg);background-size:auto,220px 220px}
.section-404{background-color:#FFFCF7;background-image:linear-gradient(rgba(255,252,247,.88),rgba(255,252,247,.88)),url(assets/images/pattern.svg);background-size:auto,220px 220px}
.site-footer{background-image:linear-gradient(rgba(46,35,38,.94),rgba(46,35,38,.94)),url(assets/images/pattern.svg);background-size:auto,220px 220px}

/* Responsive */
@media (max-width:900px){
  .card-grid,.card-grid.four,.gallery-grid,.niche-stage,.motion-wall{grid-template-columns:repeat(2,1fr)}
  .mega-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero-grid{grid-template-columns:1fr;gap:28px}
  .hero-photo-frame img{aspect-ratio:1033/745}
}
@media (max-width:640px){
  .main-nav{display:none}
  .nav-toggle{display:inline-block;margin-left:auto}
  .mega-menu{display:none !important}
  .niche-hero.niche-showcase{min-height:400px;padding:80px 0 28px}
  .niche-showcase-photo,.niche-showcase-overlay{top:80px}
  .niche-showcase-copy .section-title{font-size:34px}
  .mobile-drawer{display:block;background:#fff;border-top:1px solid #F3E3DE;padding:16px 20px}
  .mobile-drawer a{display:block;padding:10px 0;color:var(--ink);font-weight:600}
  .mobile-drawer-heading{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--pink);font-weight:700;margin:12px 0 4px}
  .card-grid,.card-grid.four,.gallery-grid,.niche-stage,.motion-wall{grid-template-columns:1fr}
  .hero-notes{grid-template-columns:repeat(5,1fr);gap:4px}
  .sticky-note{min-height:84px;padding:8px 6px;font-size:11px}
  .sticky-note p{font-size:13px}
  .sticky-note h3{font-size:12px}
  .hero-badge{width:76px;height:76px;font-size:10px}
  .niche-dial{width:240px;height:240px}
  .niche-dial-centre{width:150px;height:150px;padding:12px}
  .niche-dial-centre h3{font-size:16px}
  .niche-dial-centre p{font-size:11px}
  .mega-featured{flex-direction:column;align-items:flex-start}
  .mega-featured img{width:100%;height:120px}
  .footer-grid{grid-template-columns:1fr}
  .section{padding:72px 0 36px}
  .page-hero{padding:96px 0 8px;min-height:200px}
  .hero{padding-top:120px}
  .subscribe-pill{display:none}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important}
  /* v1.7: the dial ring stops rotating; the centre still changes on click (main.js). */
  .niche-dial-ring{animation:none !important}
}
