/*
Theme Name: Bodywhere
Theme URI: https://bodywhere.com
Author: Eveshoyan for Dr. Ewoma Ukeleghe
Description: Custom editorial theme for Bodywhere, doctor-founded clinical bodycare. Bespoke single-page pre-launch layout with an admin-editable front page, a self-contained waitlist (private storage plus CSV export), and self-hosted fonts. No commercial plugins required.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bodywhere
*/

/* ============================================================
   Self-hosted fonts (GDPR-friendly, no external CDN)
   Swap the display family here + drop new woff2 files into
   assets/fonts/ once Dr. Ewoma's Wix font is confirmed.
   ============================================================ */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/inter-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:400;font-display:swap;src:url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2")}

/* ============================================================
   Bodywhere Editorial — layout styles (from approved mockup)
   ============================================================ */
:root{
  --paper:#FAF6EC; --paper-2:#F1EADB; --ink:#2A201D; --heading:#5A1620;
  --muted:#6E5A52; --accent:#9A7B33; --red:#D93A31; --line:rgba(42,32,29,.14);
  --display:"Cormorant Garamond",Georgia,serif;
  --sans:"Inter",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.5}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.wrap{max-width:1200px;margin:0 auto;padding:0 clamp(1.25rem,5vw,3.5rem)}
.eyebrow{font-size:.68rem;font-weight:600;letter-spacing:.32em;text-transform:uppercase;color:var(--accent)}
.serif{font-family:var(--display);font-weight:400}

/* promo bar + masthead */
.promo{background:var(--heading);color:var(--paper);text-align:center;font-size:.66rem;
  letter-spacing:.28em;text-transform:uppercase;padding:.55rem 1rem}
.mast{border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40;background:rgba(250,246,236,.92);backdrop-filter:blur(8px)}
.mast-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;
  padding:1.15rem clamp(1.25rem,5vw,3.5rem)}
.mast nav{display:none;gap:1.8rem}
.mast nav.right{justify-content:flex-end}
@media(min-width:900px){.mast nav{display:flex}}
.mast nav a{font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--ink);opacity:.82}
.mast nav a:hover{opacity:1;color:var(--heading)}
.mast .logo{height:22px;margin:0 auto}
.mast .cta{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--red);font-weight:600}

/* hero */
.hero{text-align:center;padding:clamp(3.5rem,7vw,6rem) 0 clamp(2.5rem,5vw,4rem)}
.hero h1{font-family:var(--display);font-weight:400;color:var(--heading);
  font-size:clamp(2.6rem,6.5vw,5.4rem);line-height:1.02;letter-spacing:.005em;margin:1rem auto 1.2rem;max-width:16ch}
.hero h1 em{font-style:italic}
.hero p{max-width:52ch;margin:0 auto;color:var(--muted);font-size:clamp(1rem,1.4vw,1.12rem);line-height:1.65}
.hero .btn{margin-top:1.9rem}
.btn{display:inline-block;font-family:var(--sans);font-weight:600;font-size:.7rem;letter-spacing:.16em;
  text-transform:uppercase;cursor:pointer;border:none;background:var(--red);color:#fff;padding:.85rem 1.7rem;border-radius:1px}
.btn:hover{filter:brightness(.92)}
.btn.line{background:transparent;color:var(--heading);border:1px solid var(--heading);padding:.8rem 1.6rem}
.btn.line:hover{background:var(--heading);color:var(--paper)}

.hero-trio{display:flex;align-items:flex-end;justify-content:center;gap:clamp(.5rem,3vw,2.5rem);
  height:clamp(300px,42vh,440px);margin-top:clamp(2rem,4vw,3rem)}
.hero-trio .b{position:relative;height:100%;display:flex;align-items:flex-end}
.hero-trio img{width:auto;filter:drop-shadow(0 24px 22px rgba(90,22,32,.16))}
.hero-trio .wash img{height:91.7%}.hero-trio .serum img{height:100%}.hero-trio .cream img{height:68.8%}

/* as seen in */
.press{border-block:1px solid var(--line);padding:clamp(2rem,4vw,3rem) 0}
.press .lbl{text-align:center;font-size:.66rem;letter-spacing:.34em;text-transform:uppercase;color:var(--muted);margin-bottom:1.5rem}
.press-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:1.4rem clamp(1.6rem,3vw,3rem)}
.press-row span{font-family:var(--display);font-size:clamp(1rem,1.5vw,1.35rem);letter-spacing:.05em;
  color:var(--heading);opacity:.72;white-space:nowrap}

/* section shell */
section{padding:clamp(4rem,8vw,7rem) 0}
.sec-top{text-align:center;max-width:60ch;margin:0 auto clamp(2.5rem,5vw,3.5rem)}
.sec-top h2{font-family:var(--display);font-weight:400;color:var(--heading);
  font-size:clamp(2rem,4.4vw,3.4rem);line-height:1.06;margin:.7rem 0 .8rem}
.sec-top p{color:var(--muted);font-size:1.02rem;line-height:1.65;max-width:52ch;margin:0 auto}

/* wardrobe editorial tiles */
.tiles{display:grid;gap:clamp(1.5rem,3vw,2.5rem);grid-template-columns:1fr}
@media(min-width:760px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tile{text-align:center}
.tile .frame{background:var(--paper-2);border:1px solid var(--line);height:380px;display:flex;
  align-items:flex-end;justify-content:center;overflow:hidden;transition:background .4s}
.tile:hover .frame{background:#EEE6D4}
.tile img{width:auto;max-height:80%;margin-bottom:7%;filter:drop-shadow(0 20px 18px rgba(90,22,32,.16));
  transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.tile:hover img{transform:translateY(-8px)}
.tile .brand{font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:var(--accent);margin:1.3rem 0 .5rem}
.tile h3{font-family:var(--display);font-weight:500;color:var(--heading);font-size:1.7rem;line-height:1}
.tile .desc{color:var(--muted);font-size:.92rem;margin:.6rem auto 0;max-width:26ch;line-height:1.55}
.tile .row{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1rem}
.tile .price{font-size:.85rem;color:var(--ink)}
.tile .look{font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;color:var(--heading);border-bottom:1px solid var(--heading);padding-bottom:2px}

/* editorial FILE feature */
.file{background:var(--paper-2)}
.file-grid{display:grid;grid-template-columns:1fr;gap:clamp(2rem,4vw,3.5rem);align-items:center}
@media(min-width:860px){.file-grid{grid-template-columns:1fr 1fr}}
.file-visual{height:clamp(360px,50vh,540px);display:flex;align-items:center;justify-content:center;
  background:radial-gradient(ellipse 60% 55% at 50% 45%, #FFFDF7, var(--paper-2) 72%)}
.file-visual img{height:88%;width:auto;filter:drop-shadow(0 28px 26px rgba(90,22,32,.18))}
.file-text .tagfile{font-size:.66rem;letter-spacing:.28em;text-transform:uppercase;color:var(--accent)}
.file-text h2{font-family:var(--display);font-weight:400;color:var(--heading);
  font-size:clamp(2rem,4vw,3.2rem);line-height:1.08;margin:.8rem 0 1.1rem}
.file-text p{color:var(--muted);font-size:1.04rem;line-height:1.7;max-width:46ch}
.file-text .read{display:inline-block;margin-top:1.5rem;font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--heading);border-bottom:1px solid var(--heading);padding-bottom:3px}

/* the standard (violet code analog) */
.standard{text-align:center}
.seal{width:120px;height:120px;margin:0 auto 1.6rem;border:1px solid var(--accent);border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem}
.seal img{height:34px}
.seal span{font-size:.5rem;letter-spacing:.24em;text-transform:uppercase;color:var(--accent)}
.standard-grid{display:grid;grid-template-columns:1fr;gap:2rem;margin-top:clamp(2rem,4vw,3rem)}
@media(min-width:760px){.standard-grid{grid-template-columns:repeat(3,1fr)}}
.standard-grid .col{padding:0 1rem}
.standard-grid h4{font-family:var(--display);font-weight:500;color:var(--heading);font-size:1.35rem;margin-bottom:.5rem}
.standard-grid p{color:var(--muted);font-size:.94rem;line-height:1.6}

/* founder */
.founder{background:var(--heading);color:var(--paper);text-align:center}
.founder blockquote{font-family:var(--display);font-style:italic;font-weight:400;
  font-size:clamp(1.8rem,4vw,3rem);line-height:1.28;max-width:20ch;margin:0 auto;color:#F3E7CF}
.founder .attr{font-size:.66rem;letter-spacing:.28em;text-transform:uppercase;color:#C9A96A;margin-top:1.4rem}
.founder .who{margin-top:clamp(2.5rem,5vw,3.5rem)}
.founder .who .name{font-family:var(--display);font-size:clamp(1.8rem,3.4vw,2.6rem);color:var(--paper)}
.founder .who p{max-width:54ch;margin:1rem auto 0;color:#D9C9B4;font-size:1rem;line-height:1.65}
.stats{display:flex;flex-wrap:wrap;justify-content:center;gap:2rem clamp(2rem,5vw,4rem);margin-top:2.4rem}
.stats .n{font-family:var(--display);font-size:1.8rem;color:#E9CE9C}
.stats .l{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:#C9A98F;margin-top:.3rem}

/* waitlist */
.waitlist{text-align:center}
.waitlist h2{font-family:var(--display);font-weight:400;color:var(--heading);font-size:clamp(2rem,4.6vw,3.4rem);margin-bottom:.9rem}
.waitlist p{color:var(--muted);max-width:44ch;margin:0 auto 2rem;font-size:1.02rem}
.form{display:flex;gap:0;max-width:26rem;margin:0 auto;border:1px solid var(--heading)}
.form input{flex:1;min-width:0;padding:.9rem 1rem;border:none;background:transparent;font-family:var(--sans);font-size:.9rem;color:var(--ink)}
.form input:focus{outline:none}
.form button{border:none;background:var(--heading);color:var(--paper);font-family:var(--sans);font-weight:600;
  font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;padding:0 1.3rem;cursor:pointer}
.confirm{font-family:var(--display);font-style:italic;color:var(--heading);font-size:1.2rem;min-height:1.5rem;margin-top:1rem}

/* footer */
footer{border-top:1px solid var(--line);padding:clamp(3rem,5vw,4rem) 0 2.2rem}
.foot-grid{display:grid;grid-template-columns:1fr;gap:2rem;margin-bottom:2.5rem}
@media(min-width:700px){.foot-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}}
.foot-grid .logo{height:20px;margin-bottom:1rem}
.foot-grid .blurb{color:var(--muted);font-size:.9rem;line-height:1.6;max-width:32ch}
.foot-grid h5{font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--heading);margin-bottom:1rem}
.foot-grid a{display:block;color:var(--muted);font-size:.86rem;margin-bottom:.55rem}
.foot-grid a:hover{color:var(--heading)}
.foot-bottom{border-top:1px solid var(--line);padding-top:1.4rem;display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;
  justify-content:space-between;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

.reveal{opacity:0;transform:translateY(18px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}
  .tile:hover img{transform:none}}

/* waitlist ajax states */
.form.is-loading button{opacity:.6;pointer-events:none}
.bw-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}

/* back-to-top */
.bw-top{position:fixed;right:clamp(16px,3vw,34px);bottom:clamp(16px,3vw,34px);
  width:46px;height:46px;border-radius:50%;border:1px solid var(--line);
  background:var(--heading);color:var(--paper);display:grid;place-items:center;
  cursor:pointer;z-index:60;padding:0;
  opacity:0;visibility:hidden;transform:translateY(10px);
  box-shadow:0 8px 22px rgba(42,32,29,.20);
  transition:opacity .3s ease,transform .3s ease,background-color .2s ease}
.bw-top.is-visible{opacity:1;visibility:visible;transform:none}
.bw-top:hover{background:var(--ink)}
.bw-top:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.bw-top svg{width:19px;height:19px;display:block}
@media (prefers-reduced-motion:reduce){.bw-top{transition:opacity .3s ease}}

/* tile links (keep editorial styling, not default link blue) */
.tile .frame a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.tile h3 a{color:inherit;text-decoration:none}
.tile h3 a:hover{color:var(--red)}
.tile .look{display:inline-block;cursor:pointer}
.tile .look:hover{color:var(--red);border-bottom-color:var(--red)}

/* single product page */
.bw-product{padding:clamp(2.4rem,6vw,5rem) 0}
.bw-product-grid{display:grid;grid-template-columns:1fr;gap:clamp(1.6rem,4vw,3.4rem);align-items:center}
@media(min-width:860px){.bw-product-grid{grid-template-columns:1fr 1fr}}
.bw-product-media{background:var(--paper-2);border:1px solid var(--line);border-radius:2px;
  min-height:clamp(320px,52vh,560px);display:flex;align-items:center;justify-content:center;padding:2rem}
.bw-product-media img{max-width:100%;max-height:52vh;height:auto;object-fit:contain}
.bw-product-info .brand{font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:var(--accent);margin-bottom:.9rem}
.bw-product-info h1{font-family:var(--display);font-weight:500;color:var(--heading);
  font-size:clamp(2.2rem,5vw,3.4rem);line-height:1.02;margin:0}
.bw-product-price{font-size:1.35rem;color:var(--ink);margin:1.1rem 0 1.3rem}
.bw-product-desc{color:var(--muted);max-width:46ch;line-height:1.7;margin:0 0 1.8rem}
.bw-product-back{font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--heading);border-bottom:1px solid var(--line);padding-bottom:3px}
.bw-product-back:hover{border-bottom-color:var(--heading)}
