/*
Theme Name: Topman Studio
Theme URI: https://topmanhealth.com
Author: Topman Personal Training & Rehab Studio
Description: Custom theme for Topman Studio hourly rental — Home, The Space, Rates, How It Works, Workshops, Register, Contact. Pages are built into the theme; import topman-pages.xml to create them.
Version: 1.3
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: topman-studio
*/

/* ---------- Tokens ---------- */
:root{
  --base:#ECEDE8;      /* rubber-mat grey paper */
  --base-2:#E2E4DD;
  --ink:#17191B;       /* rack steel black */
  --steel:#565B5F;
  --steel-light:#8B9094;
  --line:#C7CAC2;
  --turf:#3F6B34;      /* turf lane green */
  --turf-bright:#5C9A3F;
  --white:#FFFFFF;
  --max:1120px;
  --read:68ch;
  --radius:2px;
}
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  margin:0;background:var(--base);color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--turf);text-underline-offset:3px;}
a:hover{color:var(--ink);}
:focus-visible{outline:3px solid var(--turf-bright);outline-offset:2px;}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}

h1,h2,h3,.display{
  font-family:'Bebas Neue','Arial Narrow',Impact,sans-serif;
  font-weight:400;letter-spacing:.01em;line-height:.95;margin:0 0 .4em;color:var(--ink);
}
h1{font-size:clamp(54px,9vw,112px);}
h2{font-size:clamp(38px,5.5vw,60px);}
h3{font-size:clamp(24px,3vw,30px);}
p{margin:0 0 1em;max-width:var(--read);}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px;}
.lede{font-size:19px;color:var(--steel);max-width:52ch;}
.muted{color:var(--steel);}
.small{font-size:14px;color:var(--steel);}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:8px 14px;z-index:100;}
.skip:focus{left:8px;}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:var(--base);border-bottom:1px solid var(--line);}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;max-width:var(--max);margin:0 auto;}
.brand{font-family:'Bebas Neue',Impact,sans-serif;font-size:26px;letter-spacing:.03em;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:10px;white-space:nowrap;}
.brand .dot{width:10px;height:10px;background:var(--turf);display:inline-block;}
.brand small{font-family:'Inter',sans-serif;font-size:12px;color:var(--steel);letter-spacing:0;}
.menu{display:flex;gap:20px;list-style:none;margin:0;padding:0;}
.menu a{color:var(--steel);text-decoration:none;font-size:15px;}
.menu a:hover,.menu a[aria-current="page"]{color:var(--ink);}
.menu a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--turf);}
.nav-cta{background:var(--ink);color:var(--base)!important;padding:10px 18px;font-weight:600;font-size:14px;text-decoration:none;white-space:nowrap;}
.nav-cta:hover{background:var(--turf);}
.menu-toggle{display:none;background:none;border:1px solid var(--ink);padding:8px 12px;font:inherit;font-size:14px;cursor:pointer;}

/* ---------- Buttons ---------- */
.btn{display:inline-block;padding:15px 26px;font-weight:700;font-size:15px;text-decoration:none;border:1px solid var(--turf);background:var(--turf);color:var(--white);}
.btn:hover{background:var(--turf-bright);border-color:var(--turf-bright);color:var(--white);}
.btn-ghost{background:transparent;color:var(--ink);border-color:var(--ink);}
.btn-ghost:hover{background:var(--ink);color:var(--base);border-color:var(--ink);}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0;}

/* ---------- Page head ---------- */
.page-head{padding:64px 0 40px;border-bottom:1px solid var(--line);}
.page-head .crumb{font-size:14px;color:var(--steel);margin-bottom:14px;}
.page-head .crumb a{color:var(--steel);}

/* ---------- Sections ---------- */
.section{padding:64px 0;border-bottom:1px solid var(--line);}
.section.alt{background:var(--base-2);}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:36px;}
.section-head p{margin:0;color:var(--steel);max-width:44ch;}

/* ---------- Home hero ---------- */
.hero{padding:56px 0 0;border-bottom:1px solid var(--line);}
.hero h1 .turf{color:var(--turf);}
.hero-photo{margin-top:40px;position:relative;}
.hero-photo img{width:100%;max-height:560px;object-fit:cover;}
.stat-bar{display:grid;grid-template-columns:repeat(4,1fr);background:var(--ink);}
.stat-bar div{padding:20px 22px;border-right:1px solid rgba(255,255,255,.14);color:var(--steel-light);font-size:13px;}
.stat-bar div:last-child{border-right:none;}
.stat-bar strong{display:block;font-family:'Bebas Neue',Impact,sans-serif;font-weight:400;font-size:32px;line-height:1;color:var(--turf-bright);margin-bottom:4px;}
/* the signature motif: rack-hole rule */
.rack-rule{height:12px;background:
  radial-gradient(circle at 50% 50%,var(--line) 2.5px,transparent 3px) 0 0/28px 12px repeat-x;}

/* ---------- Zones ---------- */
.zone{display:grid;grid-template-columns:48px 280px 1fr;gap:28px;padding:28px 0;border-top:1px solid var(--line);align-items:start;}
.zone:first-of-type{border-top:none;}
.zone .mark{font-family:'Bebas Neue',Impact,sans-serif;font-size:40px;line-height:1;color:var(--turf);}
.zone img{width:100%;height:190px;object-fit:cover;}
.zone h3{margin-bottom:6px;}
.zone .for{color:var(--steel);margin-bottom:10px;}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto;}
table{width:100%;border-collapse:collapse;font-size:15px;min-width:560px;}
th{text-align:left;font-size:13px;font-weight:600;color:var(--steel);padding:10px 12px;border-bottom:2px solid var(--ink);}
td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top;}
td.rate{font-family:'Bebas Neue',Impact,sans-serif;font-size:24px;color:var(--turf);white-space:nowrap;line-height:1.1;}
td.keep{font-weight:700;color:var(--ink);}
tr.highlight td{background:var(--white);}

/* ---------- Two-col / lists ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;}
.kit h3{font-family:'Inter',sans-serif;font-weight:700;font-size:17px;line-height:1.3;margin:0 0 10px;}
.kit ul{margin:0 0 28px;padding-left:18px;}
.kit li{margin-bottom:6px;}
.checklist{list-style:none;padding:0;margin:0;}
.checklist li{display:grid;grid-template-columns:1fr auto;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);}
.tag{font-size:12px;font-weight:700;padding:4px 10px;white-space:nowrap;align-self:start;}
.tag.req{background:var(--turf);color:var(--white);}
.tag.rec{border:1px solid var(--line);color:var(--steel);}

/* ---------- Steps (true sequence) ---------- */
.steps{display:grid;grid-template-columns:repeat(5,1fr);}
.step{padding:0 20px;border-left:1px solid var(--line);}
.step:first-child{padding-left:0;border-left:none;}
.step .n{font-family:'Bebas Neue',Impact,sans-serif;font-size:48px;line-height:1;color:var(--line);margin-bottom:12px;}
.step h3{font-family:'Inter',sans-serif;font-weight:700;font-size:17px;line-height:1.3;margin-bottom:6px;}
.step p{font-size:15px;color:var(--steel);}
a.step{text-decoration:none;color:inherit;}
a.step:hover .n{color:var(--turf);}

/* ---------- Gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;}
.gallery img{width:100%;height:240px;object-fit:cover;}
.gallery .wide{grid-column:span 2;}

/* ---------- Callout / quote ---------- */
.callout{background:var(--ink);color:var(--base);padding:40px;}
.callout h2{color:var(--base);}
.callout p{color:#C9CCC3;}
.callout .btn{background:var(--turf-bright);border-color:var(--turf-bright);}
.note{border-left:3px solid var(--turf);background:var(--white);padding:16px 20px;font-size:15px;margin:24px 0;}

/* ---------- FAQ ---------- */
.faq details{border-bottom:1px solid var(--line);padding:16px 0;}
.faq summary{cursor:pointer;font-weight:600;list-style:none;}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:'+';float:right;color:var(--turf);font-weight:700;}
.faq details[open] summary::after{content:'–';}
.faq details p{margin:10px 0 0;color:var(--steel);}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink);color:#B9BDB5;padding:48px 0 32px;font-size:15px;}
.site-footer a{color:#E8EAE3;text-decoration:none;}
.site-footer a:hover{color:var(--turf-bright);}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;}
.foot-grid h3{color:var(--base);font-size:26px;}
.foot-grid ul{list-style:none;padding:0;margin:0;}
.foot-grid li{margin-bottom:6px;}
.foot-base{margin-top:36px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);font-size:13px;color:var(--steel-light);}

/* ---------- Floating WhatsApp ---------- */
.wa-float{position:fixed;right:18px;bottom:18px;z-index:60;background:#25D366;color:#fff;border-radius:999px;padding:13px 18px;font-weight:700;font-size:15px;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.18);}
.wa-float:hover{color:#fff;background:#1EBE59;}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .menu-toggle{display:inline-block;}
  .menu{display:none;position:absolute;left:0;right:0;top:100%;background:var(--base);flex-direction:column;gap:0;border-bottom:1px solid var(--line);padding:8px 24px 16px;}
  .menu.open{display:flex;}
  .menu a{display:block;padding:10px 0;font-size:17px;}
  .nav{position:relative;}
  .nav-cta{display:none;}
  .steps{grid-template-columns:1fr 1fr;row-gap:28px;}
  .step{border-left:none;padding-left:0;}
  .split{grid-template-columns:1fr;gap:24px;}
  .zone{grid-template-columns:1fr;gap:12px;}
  .zone img{height:220px;}
  .foot-grid{grid-template-columns:1fr;}
}
@media (max-width:640px){
  body{font-size:16px;}
  .stat-bar{grid-template-columns:1fr 1fr;}
  .stat-bar div:nth-child(2){border-right:none;}
  .stat-bar div{border-bottom:1px solid rgba(255,255,255,.14);}
  .steps{grid-template-columns:1fr;}
  .gallery{grid-template-columns:1fr 1fr;}
  .gallery .wide{grid-column:span 2;}
  .gallery img{height:160px;}
  .actions .btn{flex:1 1 100%;text-align:center;}
  .callout{padding:28px 22px;}
}

/* ---------- Fixes: tables and photos inside two-column layouts ---------- */
.split table{min-width:0;}
.split > img{width:100%;max-height:460px;object-fit:cover;}
.callout .btn-ghost{background:transparent;}
.callout .btn-ghost:hover{background:var(--base);color:var(--ink)!important;}

/* ---------- Funnel: promo bar, forms, cards ---------- */
.promo-bar{background:var(--turf);color:var(--white);font-size:14px;padding:9px 0;text-align:center;}
.promo-bar a{color:var(--white);font-weight:700;margin-left:6px;}
.pack-cover{max-width:280px;box-shadow:0 10px 30px rgba(0,0,0,.18);margin-bottom:24px;}
.ticks{list-style:none;padding:0;margin:0 0 20px;}
.ticks li{padding:8px 0 8px 26px;border-bottom:1px solid var(--line);position:relative;}
.ticks li::before{content:"";position:absolute;left:4px;top:15px;width:10px;height:6px;border-left:2px solid var(--turf);border-bottom:2px solid var(--turf);transform:rotate(-45deg);}
.form-card{background:var(--white);border:1px solid var(--line);padding:28px;}
.tm-form label{display:block;font-size:14px;font-weight:600;margin-bottom:14px;color:var(--ink);}
.tm-form input[type=text],.tm-form input[type=email],.tm-form input[type=tel],.tm-form select,.tm-form textarea{
  display:block;width:100%;margin-top:6px;padding:12px;font:inherit;font-weight:400;border:1px solid var(--line);background:var(--base);color:var(--ink);border-radius:var(--radius);}
.tm-form label.check{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:13.5px;color:var(--steel);}
.tm-form label.check input{margin-top:3px;}
.tm-form .btn{width:100%;cursor:pointer;font-family:inherit;}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.form-error{background:#FBE9E7;border-left:3px solid #B23F2C;padding:10px 14px;font-size:14px;}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.card{background:var(--white);border:1px solid var(--line);padding:32px;display:flex;flex-direction:column;}
.card .btn{margin-top:auto;text-align:center;}
.card-dark{background:var(--ink);color:#C9CCC3;border-color:var(--ink);}
.card-dark h2,.card-dark .price{color:var(--base);}
.card-dark .ticks li{border-color:rgba(255,255,255,.12);}
.card-dark .small{color:var(--steel-light);}
.price{font-family:'Bebas Neue',Impact,sans-serif;font-size:48px;line-height:1;color:var(--turf);margin:4px 0 6px;}
.price span{font-family:'Inter',sans-serif;font-size:14px;color:var(--steel-light);}
@media (max-width:960px){.cards{grid-template-columns:1fr;}}
.menu a{white-space:nowrap;}
.menu{gap:16px;}
.card h2{font-size:34px;}
@media (max-width:1180px){
  .menu-toggle{display:inline-block;}
  .menu{display:none;position:absolute;left:0;right:0;top:100%;background:var(--base);flex-direction:column;gap:0;border-bottom:1px solid var(--line);padding:8px 24px 16px;}
  .menu.open{display:flex;}
  .menu a{display:block;padding:10px 0;font-size:17px;}
  .nav{position:relative;}
}

/* ---------- Book sales page ---------- */
.book-hero{padding:56px 0;border-bottom:1px solid var(--line);}
.kicker{color:var(--turf);font-weight:700;font-size:15px;margin-bottom:10px;}
.book-mock{text-align:center;}
.book-mock img{max-width:340px;margin:0 auto;box-shadow:18px 22px 40px rgba(0,0,0,.28);border-radius:2px 6px 6px 2px;}
.price-row{display:flex;align-items:baseline;gap:14px;margin-top:8px;}
.price-now{font-family:'Bebas Neue',Impact,sans-serif;font-size:64px;line-height:1;color:var(--turf);}
.price-was{font-size:20px;color:var(--steel-light);text-decoration:line-through;}
.price-tag{background:var(--ink);color:var(--base);font-size:12px;font-weight:700;padding:4px 10px;}
.book-stats{margin:0;}
.h3-sans{font-family:'Inter',sans-serif;font-weight:700;font-size:18px;line-height:1.3;margin-bottom:10px;}
.cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.cards-5{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));}
.cards-5 .card{padding:22px;}
.book-hero .split{grid-template-columns:1.35fr .65fr;}
.book-hero h1{font-size:clamp(46px,6vw,78px);}
.callout .btn-ghost{color:var(--base);border-color:var(--base);}
@media (max-width:960px){.book-hero .split{grid-template-columns:1fr;}}

/* ---------- Shop ---------- */
.products{display:grid;gap:28px;}
.product{display:grid;grid-template-columns:420px 1fr;gap:32px;background:var(--white);border:1px solid var(--line);padding:24px;}
.product-main img{width:100%;height:320px;object-fit:contain;background:#f6f6f3;}
.product-thumbs{display:flex;gap:8px;margin-top:8px;}
.product-thumbs .thumb{border:1px solid var(--line);background:#fff;padding:0;width:72px;height:72px;cursor:pointer;}
.product-thumbs .thumb img{width:100%;height:100%;object-fit:cover;}
.product-placeholder{height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:var(--base-2);color:var(--steel);font-weight:600;}
.product-placeholder span{font-weight:400;font-size:13px;}
.product-body h2{font-size:36px;margin-bottom:6px;}
.stock{font-size:13px;font-weight:700;color:var(--turf);margin-bottom:6px;}
.product-price{font-family:'Bebas Neue',Impact,sans-serif;font-size:44px;line-height:1;color:var(--ink);margin-bottom:10px;}
.product-price span{font-family:'Inter',sans-serif;font-size:14px;color:var(--steel);}
@media (max-width:960px){.product{grid-template-columns:1fr;}.product-main img,.product-placeholder{height:260px;}}

/* ---------- Policy pages ---------- */
.policy{max-width:760px;}
.policy h2{font-family:'Inter',sans-serif;font-weight:700;font-size:21px;line-height:1.3;margin:32px 0 10px;}
.policy ul{padding-left:20px;margin:0 0 16px;}
.policy li{margin-bottom:8px;}
.foot-base a{color:var(--steel-light);}
.foot-base a:hover{color:var(--turf-bright);}

.price-note{font-size:14px;color:var(--steel);}

a.dl{display:inline-block;margin-top:8px;font-size:14px;font-weight:700;color:var(--turf);border:1px solid var(--turf);padding:6px 12px;text-decoration:none;}
a.dl:hover{background:var(--turf);color:var(--white);}
