/*
Theme Name: Smalviya
Theme URI: https://smalviya.com/
Author: EvenDigit
Description: Custom theme for Sandeep Malviya - growth consulting site.
Version: 1.0.0
Text Domain: smalviya
*/

:root{
  --black:#000000;
  --ink:#1a1a1a;
  --grey:#6b6b6b;
  --grey-light:#8a8a8a;
  --line:#ececec;
  --yellow:#FFC61A;
  --yellow-soft:#FFF4D6;
  --orange:#F59E0B;
  --pink:#EC4899;
  --purple:#A855F7;
  --cream:#FFFBF0;
  --grey-bg:#F4F4F4;
  --maxw:1400px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
h1,h2,h3,.logo,.stat-num,.btn{font-family:'Poppins','Inter',sans-serif}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 40px;width:100%}

/* ---------- gradient text ---------- */
.grad{
  background:linear-gradient(90deg,var(--orange) 0%,var(--pink) 55%,var(--purple) 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;
  background:var(--yellow);
  color:#111;
  font-weight:600;
  font-size:16px;
  padding:16px 32px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}
.btn:hover{background:#FFB800;transform:translateY(-1px)}
.btn:focus-visible{outline:3px solid var(--purple);outline-offset:3px}

/* ---------- header ---------- */
.site-header{background:var(--black);padding:26px 0}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{color:#fff;font-weight:700;font-size:19px;letter-spacing:.13em}
.nav{display:flex;gap:38px}
.nav a{color:#fff;font-size:15px;font-weight:500;opacity:.9;transition:color .2s}
.nav a:hover,.nav a.is-active{color:var(--yellow);opacity:1}
.nav-toggle{display:none;background:none;border:0;color:#fff;font-size:24px;cursor:pointer}

/* ---------- hero ---------- */
.hero{background:var(--black);color:#fff;overflow:hidden}
.hero-inner{
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:end;
  min-height:580px;
}
.hero-copy{padding:48px 0 100px}
.hero h1{
  font-size:clamp(38px,4.4vw,68px);
  font-weight:800;
  line-height:1.08;
  letter-spacing:-.02em;
  margin-bottom:26px;
}
.hero p{color:#b9b9b9;font-size:16.5px;max-width:36em;margin-bottom:18px}
.hero .accent-line{color:var(--yellow);font-weight:600}
.hero .plain-line{color:#fff}
.hero .btn{margin-top:14px}
.hero-media{position:relative;align-self:end;min-height:490px}
.hero-media img{
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  max-height:600px;width:auto;
}
.hero-media .photo-placeholder{
  position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  width:380px;height:490px;max-width:100%;border:1px dashed #444;border-radius:6px;
  display:flex;align-items:center;justify-content:center;text-align:center;
  color:#666;font-size:13px;padding:20px;
}

/* ---------- section shell ---------- */
.section{padding:96px 0}
.section-cream{background:linear-gradient(180deg,#FFFDF6 0%,#FFF9EA 100%)}
.section-grey{background:var(--grey-bg)}
.section-head{text-align:center;max-width:780px;margin:0 auto 58px}
.section-head h2{
  font-size:clamp(28px,3.3vw,40px);
  font-weight:700;
  line-height:1.22;
  letter-spacing:-.015em;
  margin-bottom:14px;
}
.section-head p{color:var(--grey);font-size:15.5px;max-width:42em;margin:0 auto}
.rule{width:56px;height:3px;background:var(--yellow);border-radius:2px;margin:26px auto 0}

/* ---------- stat cards ---------- */
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;max-width:1240px;margin:0 auto}
.stat-card{
  background:#fff;
  border:1px solid var(--line);
  border-top:3px solid var(--yellow);
  border-radius:8px;
  padding:26px 24px 28px;
}
.stat-icon{
  width:38px;height:38px;border-radius:8px;background:var(--yellow-soft);
  display:flex;align-items:center;justify-content:center;margin-bottom:22px;
}
.stat-icon svg{width:18px;height:18px;stroke:var(--orange);fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.stat-num{font-size:34px;font-weight:700;color:var(--orange);line-height:1.1;margin-bottom:10px}
.stat-card p{color:var(--grey);font-size:14px;line-height:1.55}
.note{text-align:center;color:var(--grey);font-size:14.5px;margin-top:44px}

/* ---------- pain points ---------- */
.eyebrow-bold{text-align:center;font-weight:600;font-size:15.5px;margin-bottom:26px}
.pain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;max-width:1080px;margin:0 auto}
.pain{
  background:#fff;border:1px solid var(--line);border-left:3px solid var(--yellow);
  border-radius:6px;padding:20px 22px;display:flex;gap:14px;align-items:flex-start;
  font-size:15px;line-height:1.5;
}
.dot{width:8px;height:8px;border-radius:50%;background:var(--yellow);flex:none;margin-top:7px}
.closing{text-align:center;margin-top:48px}
.closing .l1{font-weight:600;font-size:16px;margin-bottom:10px}
.closing .l2{font-weight:600;font-size:16px;color:var(--orange);margin-bottom:30px}

/* ---------- dark insight panel ---------- */
.panel{
  background:#0d0d0d;border-radius:16px;padding:44px 44px 40px;
  max-width:1000px;margin:0 auto;color:#fff;
}
.panel-lead{text-align:center;color:#cfcfcf;font-size:15px;margin-bottom:28px}
.panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.panel-item{
  background:#1a1a1a;border-left:3px solid var(--yellow);border-radius:6px;
  padding:18px 20px;font-weight:600;font-size:15px;
}
.panel hr{border:0;border-top:1px solid #2a2a2a;margin:32px 0 26px}
.panel-close{text-align:center}
.panel-close .p1{color:#c9b8ff;font-size:15.5px;margin-bottom:12px}
.panel-close .p2{color:var(--yellow);font-weight:600;font-size:15.5px}
.center-cta{text-align:center;margin-top:44px}

/* ---------- focus + motion ---------- */
a:focus-visible{outline:3px solid var(--purple);outline-offset:3px;border-radius:4px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ================= EXPERIENCE / CLARITY ================= */
.clarity-grid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:64px;align-items:center;max-width:1180px;margin:0 auto;
}
.book{display:flex;flex-direction:column;align-items:center;gap:30px}
.book > img{max-height:520px;width:auto;filter:drop-shadow(0 24px 40px rgba(0,0,0,.22))}
.book-placeholder{
  width:320px;height:440px;border:1px dashed #c9c9c9;border-radius:6px;background:#fff;
  display:flex;align-items:center;justify-content:center;text-align:center;
  color:#9a9a9a;font-size:13px;padding:22px;line-height:1.5;
}
.cred-list{display:flex;flex-direction:column;gap:16px}
.cred{
  background:#fff;border:1px solid var(--line);border-radius:10px;
  padding:18px 22px;display:flex;gap:16px;align-items:center;
  font-weight:600;font-size:15.5px;line-height:1.45;
}
.cred-icon{
  width:36px;height:36px;border-radius:9px;background:var(--yellow-soft);flex:none;
  display:flex;align-items:center;justify-content:center;
}
.cred-icon svg{width:17px;height:17px;stroke:var(--orange);fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.italic-note{text-align:center;color:var(--grey);font-size:15px;font-style:italic;margin-top:48px}

/* ================= G.R.O.W.T.H. FRAMEWORK ================= */
.section-dark{background:#0a0a0a;color:#fff}
.section-dark .section-head h2{color:#fff}
.section-dark .section-head p{color:#a5a5a5}
.section-dark .italic-note{color:#a5a5a5}
.growth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;max-width:1240px;margin:0 auto}
.growth-card{
  background:#141414;border:1px solid #262626;border-radius:12px;
  padding:24px;display:flex;gap:18px;align-items:flex-start;
}
.growth-badge{
  width:44px;height:44px;flex:none;border-radius:10px;
  background:linear-gradient(150deg,var(--yellow) 0%,#F5A623 100%);
  color:#111;font-family:'Poppins',sans-serif;font-weight:700;font-size:19px;
  display:flex;align-items:center;justify-content:center;
}
.growth-body h3{
  font-size:15.5px;font-weight:700;color:#fff;margin-bottom:8px;
  display:flex;align-items:center;gap:8px;
}
.growth-body h3 svg{width:15px;height:15px;stroke:var(--yellow);fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;flex:none}
.growth-body p{color:#a0a0a0;font-size:13.5px;line-height:1.55}

/* ================= TESTIMONIALS ================= */
.slider{position:relative;max-width:1180px;margin:0 auto;overflow:hidden}
.slider-track{display:flex;transition:transform .45s cubic-bezier(.4,0,.2,1)}
.slide{flex:0 0 33.3333%;padding:0 13px;box-sizing:border-box}
.quote-card{
  background:#fff;border:1px solid var(--line);border-top:3px solid var(--yellow);
  border-radius:10px;padding:26px 26px 24px;height:100%;position:relative;
  display:flex;flex-direction:column;
}
.stars{color:var(--yellow);font-size:16px;letter-spacing:2px;margin-bottom:16px}
.quote-mark{
  position:absolute;top:22px;right:24px;font-family:'Poppins',serif;
  font-size:34px;line-height:1;color:#ededed;font-weight:700;
}
.quote-card blockquote{font-size:15px;line-height:1.62;color:var(--ink);margin-bottom:22px;flex:1}
.quote-by{display:flex;align-items:center;gap:12px;margin-top:auto}
.avatar{
  width:32px;height:32px;border-radius:50%;background:var(--yellow-soft);flex:none;
  display:flex;align-items:center;justify-content:center;
  color:var(--orange);font-weight:700;font-size:13px;
}
.quote-by span{font-size:13px;color:var(--grey);font-weight:500}
.dots{display:flex;justify-content:center;gap:9px;margin-top:30px}
.dots button{
  width:9px;height:9px;border-radius:50%;border:0;padding:0;cursor:pointer;
  background:#d4d4d4;transition:background .2s,width .2s;
}
.dots button[aria-current="true"]{background:var(--yellow);width:22px;border-radius:5px}
.dots button:focus-visible{outline:3px solid var(--purple);outline-offset:3px}

/* ================= GOOD FIT ================= */
.fit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;max-width:1060px;margin:0 auto}
.fit-card{border-radius:12px;padding:28px 30px 32px;border:1px solid}
.fit-yes{background:#F6FEF9;border-color:#BBF7D0}
.fit-no{background:#FFF7F7;border-color:#FECACA}
.fit-head{display:flex;align-items:center;gap:14px;margin-bottom:26px}
.fit-badge{width:34px;height:34px;border-radius:9px;flex:none;display:flex;align-items:center;justify-content:center}
.fit-yes .fit-badge{background:#DCFCE7}
.fit-no .fit-badge{background:#FEE2E2}
.fit-badge svg{width:17px;height:17px;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.fit-yes .fit-badge svg{stroke:#16A34A}
.fit-no .fit-badge svg{stroke:#DC2626}
.fit-head h3{font-size:16.5px;font-weight:700}
.fit-card ul{list-style:none;display:flex;flex-direction:column;gap:20px}
.fit-card li{display:flex;gap:14px;align-items:flex-start;font-size:15px;line-height:1.5}
.tick{width:19px;height:19px;border-radius:50%;flex:none;margin-top:2px;display:flex;align-items:center;justify-content:center}
.fit-yes .tick{background:#DCFCE7}
.fit-no .tick{background:#FEE2E2}
.tick svg{width:11px;height:11px;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.fit-yes .tick svg{stroke:#16A34A}
.fit-no .tick svg{stroke:#DC2626}
.fit-no li{color:var(--grey)}

/* ================= CONTACT ================= */
.contact{background:var(--black);color:#fff;padding:110px 0}
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:70px;align-items:center;max-width:1180px;margin:0 auto}
.contact h2{font-family:'Poppins',sans-serif;font-size:clamp(30px,3.4vw,44px);font-weight:700;line-height:1.15;letter-spacing:-.02em;margin-bottom:26px}
.contact p{color:#bdbdbd;font-size:16px;margin-bottom:18px;max-width:34em}
.assure{
  background:#171717;border-radius:10px;padding:20px 22px;
  display:flex;gap:16px;align-items:flex-start;margin-top:14px;
}
.assure-icon{width:38px;height:38px;border-radius:9px;background:#262626;flex:none;display:flex;align-items:center;justify-content:center}
.assure-icon svg{width:17px;height:17px;stroke:var(--yellow);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.assure strong{display:block;font-size:15.5px;font-weight:700;margin-bottom:4px}
.assure span{color:#9e9e9e;font-size:13.5px}

.form-card{background:#fff;border-radius:14px;padding:32px;color:var(--ink)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.field{display:flex;flex-direction:column}
.field label{font-size:13.5px;font-weight:600;margin-bottom:8px}
.field input,.field select,.field textarea{
  font-family:inherit;font-size:14.5px;color:var(--ink);
  background:#F4F4F5;border:1px solid #F4F4F5;border-radius:8px;
  padding:12px 14px;width:100%;transition:border-color .15s,background .15s;
}
.field textarea{min-height:104px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:#a1a1a1}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;background:#fff;border-color:var(--yellow);
}
.form-card .btn{width:100%;margin-top:20px;font-size:16.5px;padding:17px 24px}
.form-note{font-size:12.5px;color:var(--grey);text-align:center;margin-top:14px}

/* ================= FOOTER ================= */
.site-footer{background:#FDF6E6;padding:38px 0}
.footer-inner{display:grid;grid-template-columns:1fr auto 1fr;gap:28px;align-items:center}
.footer-brand .logo-grad{
  font-family:'Poppins',sans-serif;font-weight:700;font-size:21px;letter-spacing:.02em;
  background:linear-gradient(90deg,var(--orange) 0%,var(--pink) 55%,var(--purple) 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.footer-brand p{color:var(--grey);font-size:13px;margin-top:4px}
.socials{display:flex;gap:12px;justify-content:center}
.socials a{
  width:34px;height:34px;border-radius:50%;background:#EFE6D0;
  display:flex;align-items:center;justify-content:center;transition:background .2s;
}
.socials a:hover{background:var(--yellow)}
.socials svg{width:15px;height:15px;fill:#4a4a4a}
.footer-meta{text-align:right;font-size:14px;color:var(--grey)}
.footer-meta a:hover{color:var(--orange)}
.footer-meta .sep{margin:0 10px;color:#c8bda3}

/* ---------- responsive ---------- */
@media (max-width:1280px){
  .wrap{padding:0 32px}
  .hero-inner{gap:44px}
}
@media (max-width:1024px){
  .hero-inner{grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:32px;min-height:0}
  .hero h1{font-size:clamp(34px,5vw,50px)}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .wrap{padding:0 24px}
  .hero-inner{grid-template-columns:1fr}
  .hero-copy{padding:34px 0 44px}
  .hero-media{min-height:380px}
  .panel{padding:34px 26px 32px}
}
@media (max-width:720px){
  .section{padding:64px 0}
  .wrap{padding:0 20px}
  .nav{display:none}
  .nav.open{display:flex;flex-direction:column;position:absolute;top:70px;left:0;right:0;
    background:#000;padding:20px 24px;gap:18px;z-index:20}
  .nav-toggle{display:block}
  .header-inner{position:relative}
  .stat-grid{grid-template-columns:1fr}
  .pain-grid{grid-template-columns:1fr}
  .panel-grid{grid-template-columns:1fr}
}

/* --- new sections: responsive --- */
@media (max-width:1024px){
  .growth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .slide{flex:0 0 50%}
  .clarity-grid{gap:40px}
  .contact-grid{gap:44px}
}
@media (max-width:860px){
  .clarity-grid{grid-template-columns:1fr;gap:40px}
  .book > img{max-height:400px}
  .contact{padding:72px 0}
  .contact-grid{grid-template-columns:1fr;gap:38px}
  .fit-grid{grid-template-columns:1fr;gap:22px}
  .footer-inner{grid-template-columns:1fr;text-align:center;gap:22px}
  .footer-meta{text-align:center}
}
@media (max-width:720px){
  .growth-grid{grid-template-columns:1fr}
  .slide{flex:0 0 100%;padding:0 6px}
  .field-row{grid-template-columns:1fr;gap:16px}
  .form-card{padding:24px 20px}
  .fit-card{padding:24px 22px 28px}
}

/* =========================================================
   SCROLL REVEAL + MICRO-INTERACTIONS
   ---------------------------------------------------------
   Hidden state applies only when JS is running (html.js-anim),
   so the page stays fully readable without JavaScript.
   ========================================================= */
:root{
  --ease-out:cubic-bezier(.22,.61,.36,1);
  --rv-time:.7s;
}

.js-anim [data-rv]{
  opacity:0;
  transform:translate3d(0,30px,0);
  transition:opacity var(--rv-time) var(--ease-out),
             transform var(--rv-time) var(--ease-out);
  transition-delay:var(--rv-delay,0ms);
  will-change:opacity,transform;
}
.js-anim [data-rv="left"]{transform:translate3d(-38px,0,0)}
.js-anim [data-rv="right"]{transform:translate3d(38px,0,0)}
.js-anim [data-rv="zoom"]{transform:scale(.93)}
.js-anim [data-rv="fade"]{transform:none}
.js-anim [data-rv].is-in{opacity:1;transform:none}

/* underline rule draws itself out from the centre */
.js-anim [data-rv="line"]{
  opacity:0;width:0;
  transition:opacity var(--rv-time) var(--ease-out),
             width var(--rv-time) var(--ease-out);
  transition-delay:var(--rv-delay,0ms);
}
.js-anim [data-rv="line"].is-in{opacity:1;width:56px}

/* ---------- buttons: light sweep + press ---------- */
.btn{position:relative;overflow:hidden;isolation:isolate;
  transition:background .2s ease,transform .25s var(--ease-out),box-shadow .25s var(--ease-out)}
.btn::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.7) 50%,transparent 80%);
  transform:translateX(-110%);
  transition:transform .65s var(--ease-out);
}
.btn:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(255,184,0,.35)}
.btn:hover::after{transform:translateX(110%)}
.btn:active{transform:translateY(-1px) scale(.985)}

/* ---------- nav link underline ---------- */
.nav a{position:relative}
.nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;
  background:var(--yellow);border-radius:2px;
  transform:scaleX(0);transform-origin:left center;
  transition:transform .3s var(--ease-out);
}
.nav a:hover::after,.nav a.is-active::after{transform:scaleX(1)}
.logo{transition:opacity .2s ease}
.logo:hover{opacity:.82}

/* ---------- hero image gentle float ---------- */
@keyframes smv-float{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-14px)}
}
.hero-media img{animation:smv-float 7s ease-in-out 1.2s infinite}

/* ---------- card hover lifts ---------- */
.stat-card,.pain,.cred,.growth-card,.quote-card,.fit-card,.panel-item{
  transition:transform .3s var(--ease-out),
             box-shadow .3s var(--ease-out),
             border-color .3s var(--ease-out);
}
.stat-card:hover{transform:translateY(-7px);box-shadow:0 16px 34px rgba(0,0,0,.09);border-color:#e2e2e2}
.pain:hover{transform:translateX(6px);box-shadow:0 10px 24px rgba(0,0,0,.07)}
.cred:hover{transform:translateY(-4px);box-shadow:0 12px 26px rgba(0,0,0,.08)}
.quote-card:hover{transform:translateY(-6px);box-shadow:0 16px 32px rgba(0,0,0,.08)}
.fit-card:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(0,0,0,.07)}
.panel-item:hover{transform:translateX(6px);background:#212121}
.growth-card:hover{transform:translateY(-7px);border-color:#3a3a3a;box-shadow:0 18px 36px rgba(0,0,0,.45)}

/* icon + badge flourishes */
.stat-icon,.cred-icon,.growth-badge,.stat-num{transition:transform .3s var(--ease-out)}
.stat-card:hover .stat-icon{transform:scale(1.12) rotate(-6deg)}
.cred:hover .cred-icon{transform:scale(1.12)}
.growth-card:hover .growth-badge{transform:rotate(-7deg) scale(1.08)}
.pain .dot{transition:transform .3s var(--ease-out),box-shadow .3s var(--ease-out)}
.pain:hover .dot{transform:scale(1.5);box-shadow:0 0 0 4px rgba(255,198,26,.25)}
.book > img{transition:transform .5s var(--ease-out)}
.book:hover > img{transform:translateY(-10px) rotate(-1.5deg)}
.socials a{transition:background .2s ease,transform .25s var(--ease-out)}
.socials a:hover{transform:translateY(-3px)}
.fit-card li .tick{transition:transform .25s var(--ease-out)}
.fit-card li:hover .tick{transform:scale(1.18)}

/* ---------- reduced motion: show everything, move nothing ---------- */
@media (prefers-reduced-motion:reduce){
  .js-anim [data-rv]{opacity:1!important;transform:none!important}
  .js-anim [data-rv="line"]{width:56px!important}
  .hero-media img{animation:none!important}
  .btn::after{display:none}
}

/* the sliding underline only reads well on the horizontal desktop nav */
@media (max-width:720px){
  .nav a::after{display:none}
}

/* =========================================================
   CONTACT FORM 7
   CF7 renders each field as a bare <p><label>, so the theme's
   .field-row / .field styles no longer apply. These rules
   re-apply the card design and put the fields on a 2-col grid:
     row 1  Name | Email
     row 2  Company / Business name | Your role
     full   Message, Submit
   ========================================================= */
.form-card .wpcf7{margin:0}
.form-card .wpcf7 .screen-reader-response{position:absolute;width:1px;height:1px;
  overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

.form-card .wpcf7-form{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.form-card .wpcf7-form > p{margin:0;min-width:0}

/* Message + submit run the full width. The :has() rules keep working
   if the field order changes; the nth-of-type pair is the fallback
   for browsers without :has(). */
.form-card .wpcf7-form > p:nth-of-type(5),
.form-card .wpcf7-form > p:nth-of-type(6){grid-column:1 / -1}
.form-card .wpcf7-form > p:has(textarea),
.form-card .wpcf7-form > p:has(.wpcf7-submit){grid-column:1 / -1}

/* ---------- labels + controls ---------- */
.form-card .wpcf7-form label{
  display:block;font-size:13.5px;font-weight:600;line-height:1.4;color:var(--ink);
}
.form-card .wpcf7-form label br{display:none}
.form-card .wpcf7-form-control-wrap{display:block;margin-top:8px}

.form-card .wpcf7-form input[type=text],
.form-card .wpcf7-form input[type=email],
.form-card .wpcf7-form input[type=tel],
.form-card .wpcf7-form input[type=url],
.form-card .wpcf7-form select,
.form-card .wpcf7-form textarea{
  font-family:inherit;font-size:14.5px;font-weight:400;color:var(--ink);
  background:#F4F4F5;border:1px solid #F4F4F5;border-radius:8px;
  padding:12px 14px;width:100%;
  transition:border-color .15s,background .15s,box-shadow .15s;
}
.form-card .wpcf7-form textarea{min-height:104px;height:104px;resize:vertical;display:block}
.form-card .wpcf7-form select{height:45px;cursor:pointer}
.form-card .wpcf7-form ::placeholder{color:#a1a1a1;font-family:inherit}
.form-card .wpcf7-form input:focus,
.form-card .wpcf7-form select:focus,
.form-card .wpcf7-form textarea:focus{
  outline:none;background:#fff;border-color:var(--yellow);
  box-shadow:0 0 0 3px rgba(255,198,26,.18);
}

/* ---------- submit ---------- */
.form-card .wpcf7-form > p:has(.wpcf7-submit){display:block;position:relative}
.form-card .wpcf7-submit{
  font-family:'Poppins','Inter',sans-serif;
  background:var(--yellow);color:#111;font-weight:600;font-size:16.5px;
  padding:17px 24px;width:100%;border:0;border-radius:8px;cursor:pointer;
  margin-top:2px;
  transition:background .2s ease,transform .25s var(--ease-out),box-shadow .25s var(--ease-out);
}
.form-card .wpcf7-submit:hover{
  background:#FFB800;transform:translateY(-3px);box-shadow:0 10px 22px rgba(255,184,0,.35);
}
.form-card .wpcf7-submit:active{transform:translateY(-1px) scale(.985)}
.form-card .wpcf7-submit:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.form-card .wpcf7-spinner{position:absolute;right:20px;top:50%;transform:translateY(-50%);margin:0}

/* ---------- validation + response ---------- */
.form-card .wpcf7-not-valid-tip{
  color:#DC2626;font-size:12.5px;font-weight:500;margin-top:6px;display:block;
}
.form-card .wpcf7-form input.wpcf7-not-valid,
.form-card .wpcf7-form select.wpcf7-not-valid,
.form-card .wpcf7-form textarea.wpcf7-not-valid{border-color:#FCA5A5;background:#FFF7F7}
.form-card .wpcf7 form .wpcf7-response-output{
  grid-column:1 / -1;
  margin:0;padding:12px 16px;
  border-width:1px;border-radius:8px;
  font-size:13.5px;line-height:1.5;
}
.form-card .wpcf7-form.invalid .wpcf7-response-output,
.form-card .wpcf7-form.unaccepted .wpcf7-response-output,
.form-card .wpcf7-form.failed .wpcf7-response-output{
  border-color:#FECACA;background:#FFF7F7;color:#B91C1C;
}
.form-card .wpcf7-form.sent .wpcf7-response-output{
  border-color:#BBF7D0;background:#F6FEF9;color:#15803D;
}

@media (max-width:720px){
  .form-card .wpcf7-form{grid-template-columns:1fr;gap:16px}
}

/* =========================================================
   INNER PAGES (Privacy Policy, posts, archives, 404)
   ========================================================= */
.page-hero{background:var(--black);color:#fff;padding:66px 0 58px;text-align:center}
.page-title{
  font-family:'Poppins','Inter',sans-serif;
  font-size:clamp(30px,3.6vw,46px);font-weight:700;
  line-height:1.16;letter-spacing:-.02em;
}
.page-meta{color:#9e9e9e;font-size:14px;margin-top:12px}
.page-hero .rule{margin-top:22px}

.page-article{padding:72px 0 92px;background:#fff}
.page-article .wrap{max-width:900px}
.entry-thumb{margin-bottom:36px}
.entry-thumb img{border-radius:12px}
.entry-content-center{text-align:center}

/* ---------- long-form content typography ---------- */
.entry-content{font-size:16px;line-height:1.75;color:#333}
.entry-content > *:first-child{margin-top:0}
.entry-content p{margin-bottom:20px}
.entry-content h2,
.entry-content h3,
.entry-content h4{
  font-family:'Poppins','Inter',sans-serif;color:var(--ink);
  line-height:1.3;letter-spacing:-.01em;margin:40px 0 14px;
}
.entry-content h2{font-size:25px;font-weight:700}
.entry-content h3{font-size:20px;font-weight:700}
.entry-content h4{font-size:17px;font-weight:600}
.entry-content a:not(.btn){color:#B45309;text-decoration:underline;text-underline-offset:3px;
  transition:color .2s ease}
.entry-content a:not(.btn):hover{color:var(--orange)}
.entry-content ul,
.entry-content ol{margin:0 0 20px 22px}
.entry-content li{margin-bottom:10px}
.entry-content ul{list-style:disc}
.entry-content ol{list-style:decimal}
.entry-content ul li::marker{color:var(--yellow)}
.entry-content strong{font-weight:600;color:var(--ink)}
.entry-content img{border-radius:10px;margin:8px 0}
.entry-content hr{border:0;border-top:1px solid var(--line);margin:36px 0}
.entry-content blockquote{
  border-left:3px solid var(--yellow);background:#FFFBF0;
  padding:16px 22px;margin:0 0 22px;border-radius:0 8px 8px 0;
}
.entry-content blockquote p:last-child{margin-bottom:0}
.entry-content code{
  background:#F4F4F5;border-radius:4px;padding:2px 6px;font-size:14px;
}
.entry-content pre{
  background:#141414;color:#eaeaea;border-radius:10px;
  padding:18px 20px;overflow-x:auto;margin-bottom:22px;font-size:14px;
}
.entry-content pre code{background:none;padding:0;color:inherit}
.entry-content table{
  width:100%;border-collapse:collapse;margin-bottom:22px;font-size:15px;
}
.entry-content th,
.entry-content td{border:1px solid var(--line);padding:11px 14px;text-align:left}
.entry-content th{background:var(--yellow-soft);font-weight:600}
.entry-content .wp-block-image,
.entry-content figure{margin:0 0 22px}
.entry-content figcaption{font-size:13px;color:var(--grey);margin-top:8px;text-align:center}

/* ---------- post list (blog index / archives / search) ---------- */
.post-list{display:grid;gap:24px}
.post-card{
  background:#fff;border:1px solid var(--line);border-top:3px solid var(--yellow);
  border-radius:10px;padding:26px 28px 24px;
  transition:transform .3s var(--ease-out),box-shadow .3s var(--ease-out);
}
.post-card:hover{transform:translateY(-5px);box-shadow:0 16px 32px rgba(0,0,0,.08)}
.post-card-title{font-family:'Poppins','Inter',sans-serif;font-size:21px;font-weight:700;line-height:1.3}
.post-card-title a:hover{color:var(--orange)}
.post-card-meta{font-size:13px;color:var(--grey);margin:8px 0 12px}
.post-card-excerpt{font-size:15px;line-height:1.65;color:#444}
.post-card-link{display:inline-block;margin-top:14px;font-weight:600;font-size:14.5px;color:#B45309}
.post-card-link:hover{color:var(--orange)}

/* ---------- pagination + post nav ---------- */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:44px;flex-wrap:wrap}
.pagination .page-numbers{
  min-width:38px;height:38px;padding:0 12px;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);font-size:14.5px;font-weight:500;
  transition:background .2s ease,border-color .2s ease;
}
.pagination .page-numbers:hover{background:var(--yellow-soft);border-color:var(--yellow)}
.pagination .page-numbers.current{background:var(--yellow);border-color:var(--yellow);font-weight:600}
.post-nav{
  display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;
  margin-top:48px;padding-top:26px;border-top:1px solid var(--line);
  font-size:14.5px;font-weight:500;
}
.post-nav a:hover{color:var(--orange)}
.page-links{margin-top:24px;font-size:14.5px;font-weight:500}

@media (max-width:720px){
  .page-hero{padding:48px 0 42px}
  .page-article{padding:48px 0 64px}
  .entry-content{font-size:15.5px}
  .entry-content h2{font-size:22px}
  .post-card{padding:22px 20px}
}

/* ---------- Buy on Amazon button (book section) ---------- */
.book-buy{
  display:inline-block;line-height:0;border-radius:8px;
  transition:transform .28s var(--ease-out),filter .28s var(--ease-out);
}
.book-buy img{
  width:200px;max-width:100%;height:auto;
  filter:drop-shadow(0 0px 10px rgba(0,0,0,.1));
  border-radius:10px;
}
.book-buy:hover{transform:translateY(-4px)}
.book-buy:hover img{filter:drop-shadow(0 14px 26px rgba(0,0,0,.24))}
.book-buy:active{transform:translateY(-1px)}
.book-buy:focus-visible{outline:3px solid var(--purple);outline-offset:4px}

@media (max-width:860px){
  .book{gap:24px}
  .book-buy img{width:210px}
}
