/*
Theme Name: NeckPal
Theme URI: https://example.com/neckpal
Author: NeckPal
Author URI: https://example.com
Description: A one-page product store theme built for NeckPal, the massager with hands. Designed for a single hero product with a warm, tactile, spa-at-home feel. Set your buy link and price in Appearance > Customize > NeckPal Store.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: neckpal
*/

/* ---------------------------------------------------
   0. Tokens
--------------------------------------------------- */
:root{
  --ink:        #1B231A;
  --paper:      #F6F1E6;
  --paper-dim:  #EFE8D8;
  --forest:     #2F3E2C;
  --forest-2:   #3E4F3A;
  --sage:       #8A9B7E;
  --sage-soft:  #C9D3BC;
  --blush:      #E14F63;
  --blush-dark: #B93A4C;
  --blush-soft: #F6D3D6;
  --line:       #D9D0BC;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans:  "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad:  clamp(20px, 5vw, 64px);
}

/* ---------------------------------------------------
   1. Reset & base
--------------------------------------------------- */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; height:auto; }
a{ color:inherit; }
h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.08;
  margin:0 0 .5em;
  color:var(--forest);
  letter-spacing:-0.01em;
}
p{ margin:0 0 1.1em; max-width:62ch; }
ul{ margin:0; padding:0; }
.container{
  max-width:var(--wrap);
  margin:0 auto;
  padding-left:var(--pad);
  padding-right:var(--pad);
}
:focus-visible{
  outline:3px solid var(--blush);
  outline-offset:3px;
}
.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--forest); color:#fff; padding:12px 18px; z-index:1000;
}
.skip-link:focus{ left:12px; top:12px; }

/* ---------------------------------------------------
   2. Buttons
--------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:var(--sans);
  font-weight:600;
  font-size:.98rem;
  padding:.95em 1.7em;
  border-radius:100px;
  border:2px solid transparent;
  cursor:pointer;
  text-decoration:none;
  transition:transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{ background:var(--blush); color:#fff; }
.btn-primary:hover{ background:var(--blush-dark); }
.btn-ghost{
  background:transparent;
  border-color:var(--forest);
  color:var(--forest);
}
.btn-ghost:hover{ background:var(--forest); color:var(--paper); }
.btn-block{ width:100%; justify-content:center; }
.btn-lg{ padding:1.1em 2.1em; font-size:1.05rem; }

/* ---------------------------------------------------
   3. Header
--------------------------------------------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(246,241,230,.92);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--line);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:16px;
  padding-bottom:16px;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:.6em;
  font-family:var(--serif);
  font-size:1.5rem;
  font-weight:600;
  color:var(--forest);
  text-decoration:none;
}
.brand img{ height:34px; width:auto; }
.brand .paw{
  width:1.2em; height:1.2em;
  display:inline-block;
  color:var(--blush);
}
.primary-nav ul{
  display:flex;
  gap:2em;
  list-style:none;
}
.primary-nav a{
  text-decoration:none;
  font-weight:500;
  font-size:.98rem;
  color:var(--forest-2);
  border-bottom:2px solid transparent;
  padding-bottom:2px;
}
.primary-nav a:hover{ border-color:var(--blush); }
.header-actions{ display:flex; align-items:center; gap:16px; }
.header-price{
  font-family:var(--serif);
  font-size:1.05rem;
  color:var(--forest);
  white-space:nowrap;
}
.nav-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:40px; height:40px;
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:22px; height:2px; background:var(--forest);
  position:relative; transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }

@media (max-width: 780px){
  .primary-nav{
    position:absolute; left:0; right:0; top:100%;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    padding:8px var(--pad) 20px;
    display:none;
  }
  .primary-nav.is-open{ display:block; }
  .primary-nav ul{ flex-direction:column; gap:0; }
  .primary-nav li{ border-top:1px solid var(--line); }
  .primary-nav a{ display:block; padding:14px 0; }
  .nav-toggle{ display:flex; }
  .header-price{ display:none; }
  .header-actions{ gap:8px; }
  .header-actions .btn{ padding:.8em 1.2em; font-size:.9rem; }
  .brand span{ font-size:1.25rem; }
}
@media (max-width: 400px){
  .header-actions .btn{ padding:.7em .9em; font-size:.85rem; }
}

/* ---------------------------------------------------
   4. Hero
--------------------------------------------------- */
.hero{
  padding:clamp(40px,7vw,90px) 0 clamp(50px,8vw,110px);
  overflow:hidden;
}
.hero .container{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:clamp(30px,5vw,70px);
  align-items:center;
}
.hero-eyebrow{
  font-family:var(--serif);
  font-style:italic;
  color:var(--blush-dark);
  font-size:1.1rem;
  margin-bottom:.6em;
}
.hero h1{
  font-size:clamp(2.4rem, 4.6vw, 4rem);
  max-width:14ch;
}
.hero-sub{
  font-size:1.15rem;
  color:var(--forest-2);
  max-width:42ch;
}
.hero-buybar{
  display:flex;
  align-items:center;
  gap:1.4em;
  flex-wrap:wrap;
  margin-top:1.6em;
}
.price-row{ display:flex; align-items:baseline; gap:.6em; }
.price-now{ font-family:var(--serif); font-size:1.9rem; color:var(--forest); }
.price-was{
  font-size:1.05rem; color:var(--forest-2); opacity:.6;
  text-decoration:line-through;
}
.hero-badge{
  margin-top:1.4em;
  font-size:.92rem;
  color:var(--forest-2);
  display:flex;
  align-items:center;
  gap:.55em;
}
.hero-badge svg{ width:1.1em; height:1.1em; flex:none; color:var(--sage); }

.hero-art{
  position:relative;
  aspect-ratio:1/1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-blob{
  position:absolute;
  inset:4%;
  background:var(--sage-soft);
  border-radius:62% 38% 55% 45% / 48% 45% 55% 52%;
  z-index:0;
}
.hero-blob.two{
  inset:12%;
  background:var(--blush-soft);
  border-radius:40% 60% 45% 55% / 55% 40% 60% 45%;
  mix-blend-mode:multiply;
}
.hero-art figure{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  margin:0;
  border-radius:28px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--paper-dim);
}
.hero-art img{ width:100%; height:100%; object-fit:cover; }
.hero-art .placeholder-illustration{ width:70%; height:70%; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-art{ order:-1; max-width:420px; margin:0 auto; aspect-ratio:1/1; }
}

/* ---------------------------------------------------
   5. Feature strip
--------------------------------------------------- */
.feature-strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--paper-dim);
}
.feature-strip .container{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(24px,4vw,10px);
  padding-top:clamp(34px,5vw,48px);
  padding-bottom:clamp(34px,5vw,48px);
}
.feature-item{
  display:flex;
  gap:1em;
  padding:0 1.2em;
  border-left:1px solid var(--line);
}
.feature-item:first-child{ border-left:none; padding-left:0; }
.feature-item svg{
  width:34px; height:34px; flex:none; color:var(--blush);
}
.feature-item h3{ font-size:1.08rem; margin-bottom:.25em; }
.feature-item p{ font-size:.95rem; color:var(--forest-2); margin:0; }

@media (max-width: 860px){
  .feature-strip .container{ grid-template-columns:1fr; }
  .feature-item{ border-left:none; border-top:1px solid var(--line); padding:24px 0 0; }
  .feature-item:first-child{ border-top:none; padding-top:0; }
}

/* ---------------------------------------------------
   6. Story sections (alternating image/text)
--------------------------------------------------- */
.story{
  padding:clamp(70px,9vw,120px) 0;
}
.story-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(30px,6vw,80px);
  align-items:center;
}
.story-row:not(:last-child){ margin-bottom:clamp(60px,9vw,110px); }
.story-row.reverse .story-media{ order:2; }
.story-row.reverse .story-copy{ order:1; }
.story-media{
  position:relative;
  border-radius:24px;
  overflow:hidden;
  aspect-ratio:4/3;
  background:var(--forest);
}
.story-media img{ width:100%; height:100%; object-fit:cover; }
.story-media .story-media-fallback{
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  color:var(--sage-soft);
}
.story-media .story-media-fallback svg{ width:44%; height:44%; }
.story-num{
  font-family:var(--serif);
  font-style:italic;
  color:var(--blush);
  font-size:1.05rem;
  margin-bottom:.5em;
  display:block;
}
.story-copy h2{ font-size:clamp(1.7rem,2.6vw,2.3rem); max-width:16ch; }
.story-copy p{ color:var(--forest-2); font-size:1.05rem; }

@media (max-width: 780px){
  .story-row, .story-row.reverse{
    grid-template-columns:1fr;
  }
  .story-row.reverse .story-media,
  .story-row.reverse .story-copy{ order:initial; }
}

/* ---------------------------------------------------
   7. How to use
--------------------------------------------------- */
.howto{
  background:var(--forest);
  color:var(--paper);
  padding:clamp(70px,9vw,110px) 0;
}
.howto h2{ color:var(--paper); max-width:18ch; }
.howto .section-lede{ color:var(--sage-soft); }
.howto-steps{
  margin-top:clamp(40px,6vw,60px);
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(28px,4vw,40px);
}
.howto-step{
  border-top:1px solid rgba(246,241,230,.25);
  padding-top:1.4em;
}
.howto-step .step-index{
  font-family:var(--serif);
  font-style:italic;
  font-size:2.2rem;
  color:var(--blush);
  display:block;
  margin-bottom:.3em;
}
.howto-step h3{ color:var(--paper); font-size:1.15rem; }
.howto-step p{ color:var(--sage-soft); margin:0; }

@media (max-width: 780px){
  .howto-steps{ grid-template-columns:1fr; }
}

/* ---------------------------------------------------
   8. Reviews
--------------------------------------------------- */
.reviews{ padding:clamp(70px,9vw,110px) 0; }
.reviews-head{ max-width:46ch; margin-bottom:clamp(30px,5vw,50px); }
.review-rail{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  border-top:1px solid var(--line);
}
.review{
  padding:2em 1.6em 2em 0;
  border-right:1px solid var(--line);
}
.review:last-child{ border-right:none; }
.review:first-child{ padding-left:0; }
.review-stars{ color:var(--blush); font-size:1.05rem; letter-spacing:.15em; margin-bottom:.6em; }
.review p{ font-family:var(--serif); font-size:1.15rem; color:var(--forest); line-height:1.4; }
.review cite{
  font-style:normal;
  display:block;
  margin-top:1em;
  font-size:.9rem;
  color:var(--forest-2);
}
@media (max-width: 860px){
  .review-rail{ grid-template-columns:1fr; }
  .review{ border-right:none; border-bottom:1px solid var(--line); padding:2em 0; }
  .review:first-child{ padding-top:0; }
}

/* ---------------------------------------------------
   9. FAQ (native details/summary — no JS needed)
--------------------------------------------------- */
.faq{ background:var(--paper-dim); padding:clamp(70px,9vw,110px) 0; }
.faq-list{ max-width:760px; margin-top:clamp(30px,5vw,50px); }
.faq-item{
  border-top:1px solid var(--line);
}
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-item summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1em;
  padding:1.3em 0;
  font-family:var(--serif);
  font-size:1.2rem;
  color:var(--forest);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .plus{
  flex:none;
  width:26px; height:26px;
  border-radius:50%;
  border:1.5px solid var(--forest);
  position:relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after{
  content:"";
  position:absolute; left:50%; top:50%;
  background:var(--forest);
  transform:translate(-50%,-50%);
}
.faq-item summary .plus::before{ width:12px; height:1.5px; }
.faq-item summary .plus::after{ width:1.5px; height:12px; transition:transform .2s ease; }
.faq-item[open] summary .plus::after{ transform:translate(-50%,-50%) rotate(90deg); opacity:0; }
.faq-item p{ padding-bottom:1.4em; color:var(--forest-2); margin:0; max-width:60ch; }

/* ---------------------------------------------------
   10. Final CTA banner
--------------------------------------------------- */
.final-cta{
  background:var(--blush);
  color:#fff;
  padding:clamp(60px,8vw,90px) 0;
}
.final-cta .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
}
.final-cta h2{ color:#fff; max-width:16ch; margin-bottom:.2em; }
.final-cta p{ color:rgba(255,255,255,.85); margin:0; }
.final-cta .btn-primary{ background:var(--ink); }
.final-cta .btn-primary:hover{ background:#000; }

/* ---------------------------------------------------
   11. Footer
--------------------------------------------------- */
.site-footer{
  background:var(--ink);
  color:var(--sage-soft);
  padding:clamp(50px,6vw,70px) 0 30px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
  padding-bottom:36px;
  border-bottom:1px solid rgba(246,241,230,.15);
}
.footer-brand{
  font-family:var(--serif);
  font-size:1.4rem;
  color:var(--paper);
}
.footer-brand p{ color:var(--sage-soft); font-size:.95rem; margin-top:.6em; max-width:34ch; }
.footer-nav ul{ list-style:none; display:flex; gap:2em; flex-wrap:wrap; }
.footer-nav a{ text-decoration:none; font-size:.95rem; color:var(--sage-soft); }
.footer-nav a:hover{ color:var(--paper); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  padding-top:22px;
  font-size:.85rem;
  color:rgba(246,241,230,.5);
}

/* ---------------------------------------------------
   12. Page (non front page) content styling
--------------------------------------------------- */
.page-content{
  padding:clamp(60px,8vw,100px) 0;
}
.page-content .entry-title{ font-size:clamp(2rem,4vw,2.8rem); }
.page-content .entry-content{ max-width:70ch; }
.page-content .entry-content h2{ margin-top:1.4em; }
.page-content .entry-content img{ border-radius:16px; margin:1.4em 0; }
.page-content .entry-content blockquote{
  font-family:var(--serif);
  font-size:1.3rem;
  color:var(--forest);
  border-left:3px solid var(--blush);
  padding-left:1em;
  margin:1.6em 0;
}
