/*
Theme Name: School of Sensual Massage
Theme URI: https://schoolofsensulmassage.co.uk
Author: StaffMate.io
Author URI: https://staffmate.io
Description: Custom classic WordPress theme for the School of Sensual Massage. Migrated from a 14-page static HTML site. Designed for non-technical editing via ACF fields and Gutenberg blocks.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: ssm
*/

/* ══════════════════════════════════════════════
   SCHOOL OF SENSUAL MASSAGE
   Design: V5 light/airy editorial + SSM logo accents
   Font: Montserrat (Colin's preference)
   ══════════════════════════════════════════════ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --cream:#EDF1F5;--warm:#E3E8EE;--blush:#EDE5DC;
  --red:#B8433A;--red-soft:#D4706A;
  --teal:#6BA5A0;--teal-soft:#A3CBC7;--teal-light:#E4F0EE;
  --gold:#C9A055;--gold-soft:#E2C98A;--gold-light:#F5EDD8;
  --navy:#2E3A50;--navy-soft:#4A5568;
  --text:#2E3A50;--text-mid:#4A5568;--text-soft:#7A8599;--text-light:#A0AABB;
  --border:rgba(46,58,80,0.06);
  --font:'Montserrat',sans-serif;
  --gutter:clamp(1.5rem,5vw,4rem);
}

html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--text);background:var(--cream);font-size:16px;line-height:1.75;font-weight:300;-webkit-font-smoothing:antialiased;overflow-x:hidden}
::selection{background:var(--teal);color:#fff}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

h1,h2,h3{font-family:var(--font);color:var(--navy)}
h1{font-weight:600;font-size:clamp(2.4rem,6vw,4rem);line-height:1.05;letter-spacing:-0.02em}
h2{font-weight:500;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.1}
h3{font-weight:500;font-size:clamp(1.2rem,2vw,1.6rem);line-height:1.25}

.wrap{max-width:1100px;margin:0 auto;padding:0 var(--gutter)}
.wrap-wide{max-width:1400px;margin:0 auto;padding:0 var(--gutter)}
.wrap-narrow{max-width:720px;margin:0 auto;padding:0 var(--gutter)}

/* ─── BUTTONS ─── */
.btn{display:inline-flex;align-items:center;gap:0.5rem;font-family:var(--font);font-weight:500;font-size:0.82rem;letter-spacing:0.04em;padding:0.9rem 2rem;border:none;cursor:pointer;border-radius:100px;transition:transform 0.2s,box-shadow 0.2s,background 0.2s;text-decoration:none}
.btn:active{transform:scale(0.97)}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-soft);box-shadow:0 8px 30px rgba(46,58,80,0.18)}
.btn-teal{background:var(--teal);color:#fff}
.btn-teal:hover{background:var(--teal-soft);box-shadow:0 8px 30px rgba(107,165,160,0.25)}
.btn-soft{background:none;color:var(--text-mid);border-bottom:1px solid var(--border);border-radius:0;padding:0.5rem 0}
.btn-soft:hover{color:var(--teal);border-color:var(--teal)}
.btn-white{background:#fff;color:var(--navy);box-shadow:0 2px 12px rgba(46,58,80,0.08)}
.btn-white:hover{box-shadow:0 6px 24px rgba(46,58,80,0.12)}
.btn-outline{background:transparent;color:var(--teal);border:2px solid var(--teal)}
.btn-outline:hover{background:var(--teal);color:#fff}

/* ─── PLACEHOLDERS ─── */
.ph{background:linear-gradient(135deg,var(--warm) 0%,var(--teal-light) 50%,var(--gold-light) 100%);display:flex;align-items:center;justify-content:center;color:var(--text-light);font-size:0.75rem;font-weight:400;letter-spacing:0.06em;text-transform:uppercase;position:relative;overflow:hidden}
.ph span{position:relative;z-index:2;text-align:center;padding:1rem}

/* ─── SCROLL REVEAL ─── */
.sr{opacity:0;transform:translateY(22px);transition:opacity 0.8s cubic-bezier(0.22,1,0.36,1),transform 0.8s cubic-bezier(0.22,1,0.36,1)}
.sr.v{opacity:1;transform:none}
.curtain{clip-path:inset(100% 0 0 0);transition:clip-path 1s cubic-bezier(0.77,0,0.175,1)}
.curtain.v{clip-path:inset(0)}
.curtain-r{clip-path:inset(0 100% 0 0);transition:clip-path 1s cubic-bezier(0.77,0,0.175,1)}
.curtain-r.v{clip-path:inset(0)}
.line-draw{width:0;transition:width 0.8s cubic-bezier(0.77,0,0.175,1)}
.line-draw.v{width:50px}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important}
  .sr,.curtain,.curtain-r{opacity:1!important;clip-path:none!important;transform:none!important}
  .line-draw{width:50px!important}
}

/* ─── HEADER ─── */
.header{position:fixed;top:0;left:0;right:0;z-index:100;padding:1rem 0;transition:padding 0.4s,background 0.4s,box-shadow 0.4s}
.header.pin{padding:0.6rem 0;background:rgba(237,241,245,0.95);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 1px 0 var(--border)}
.header.pin .logo img{height:70px}
.header-inner{max-width:1400px;margin:0 auto;padding:0 var(--gutter);display:flex;align-items:center;justify-content:space-between}
.logo{display:flex;align-items:center;gap:0.7rem}
.logo img{height:110px;width:auto;transition:height 0.4s}
.nav-links{display:flex;align-items:center;gap:clamp(1rem,2vw,2rem);list-style:none}
.nav-links a{font-size:0.72rem;font-weight:500;letter-spacing:0.05em;text-transform:uppercase;color:var(--text-mid);transition:color 0.2s}
.nav-links a:hover,.nav-links a.active,.nav-links .current-menu-item>a,.nav-links .current-menu-ancestor>a{color:var(--teal)}
.burger{display:none;background:none;border:none;cursor:pointer;padding:6px}
.burger span{display:block;width:22px;height:1.5px;background:var(--navy);margin:5px 0;transition:all 0.3s}
.mob-menu{display:none;position:fixed;inset:0;z-index:200;background:var(--cream);flex-direction:column;align-items:center;justify-content:center;gap:2rem}
.mob-menu.on{display:flex}
.mob-menu a{font-size:1.5rem;font-weight:500;color:var(--navy)}
.mob-menu a:hover{color:var(--teal)}
.mob-x{position:absolute;top:1.5rem;right:1.5rem;background:none;border:none;cursor:pointer;font-size:2rem;color:var(--navy);line-height:1}

/* ─── NAV DROPDOWN ─── */
.nav-links .menu-item-has-children{position:relative}
.nav-links .menu-item-has-children .sub-menu{display:none;position:absolute;top:100%;left:-12px;background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(46,58,80,0.12);padding:8px 0;z-index:50;min-width:200px;list-style:none}
.nav-links .menu-item-has-children:hover .sub-menu{display:block}
.nav-links .sub-menu a{display:block;padding:8px 16px;font-size:0.72rem;white-space:nowrap;color:var(--text-mid);letter-spacing:0.04em;text-transform:uppercase;font-weight:500;transition:color 0.2s}
.nav-links .sub-menu a:hover{color:var(--teal)}

/* ─── HERO (Homepage) ─── */
.hero{min-height:100vh;display:flex;align-items:center;padding:120px 0 80px;position:relative;overflow:hidden}
.hero-blob{position:absolute;border-radius:50%;pointer-events:none;opacity:0;animation:blobIn 1.5s ease-out forwards}
.hero-blob-1{width:450px;height:450px;top:-8%;right:0;background:var(--teal-light);filter:blur(80px);animation-delay:0.2s}
.hero-blob-2{width:300px;height:300px;bottom:10%;left:5%;background:var(--gold-light);filter:blur(90px);animation-delay:0.5s}
.hero-blob-3{width:200px;height:200px;top:30%;right:25%;background:rgba(184,67,58,0.06);filter:blur(70px);animation-delay:0.7s}
@keyframes blobIn{to{opacity:1}}
.hero-content{max-width:1400px;margin:0 auto;padding:0 var(--gutter);display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,5rem);align-items:center;position:relative;z-index:2;width:100%}
.hero-text{max-width:540px}
.hero-tag{display:inline-flex;align-items:center;gap:0.6rem;font-size:0.72rem;font-weight:500;letter-spacing:0.12em;text-transform:uppercase;color:var(--teal);margin-bottom:2rem;background:var(--teal-light);padding:0.5rem 1.2rem;border-radius:100px;opacity:0;animation:fadeIn 0.5s ease 0.3s forwards}
@keyframes fadeIn{to{opacity:1}}
.hero h1 em{font-style:italic;color:var(--teal)}
.hero-word{display:inline-block;clip-path:inset(0 100% 0 0);animation:wdR 0.8s cubic-bezier(0.77,0,0.175,1) forwards}
.hero-word:nth-child(1){animation-delay:0.5s}
.hero-word:nth-child(2){animation-delay:0.62s}
.hero-word:nth-child(3){animation-delay:0.74s}
.hero-word:nth-child(4){animation-delay:0.86s}
@keyframes wdR{to{clip-path:inset(0 0% 0 0)}}
.hero-desc{font-size:1.05rem;color:var(--text-mid);line-height:1.85;max-width:440px;margin:2rem 0 2.5rem;opacity:0;transform:translateY(14px);animation:rise 0.7s ease-out 1.2s forwards}
@keyframes rise{to{opacity:1;transform:none}}
.hero-ctas{display:flex;gap:1rem;flex-wrap:wrap;opacity:0;animation:fadeIn 0.5s ease 1.5s forwards}
.hero-visual{position:relative}
.hero-img{border-radius:24px;aspect-ratio:4/5;width:100%;overflow:hidden;clip-path:inset(100% 0 0 0);animation:imgUp 1s cubic-bezier(0.77,0,0.175,1) 0.5s forwards}
@keyframes imgUp{to{clip-path:inset(0)}}
.hero-float{position:absolute;bottom:30px;left:-20px;background:#fff;padding:1rem 1.5rem;border-radius:16px;box-shadow:0 8px 32px rgba(46,58,80,0.08);z-index:3;opacity:0;transform:translateY(16px);animation:rise 0.5s ease-out 1.6s forwards}
.hero-float-n{font-size:2rem;font-weight:600;color:var(--red);line-height:1}
.hero-float-l{font-size:0.7rem;color:var(--text-soft);text-transform:uppercase;letter-spacing:0.06em}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero{padding:140px 0 60px;position:relative;overflow:hidden}
.page-hero .hero-blob{opacity:0;animation:blobIn 1.5s ease-out forwards}
.page-hero .hero-blob-1{width:350px;height:350px;top:-5%;right:5%;background:var(--teal-light);filter:blur(80px);animation-delay:0.2s}
.page-hero .hero-blob-2{width:250px;height:250px;bottom:0;left:10%;background:var(--gold-light);filter:blur(80px);animation-delay:0.4s}

/* ─── SECTIONS ─── */
.sec{padding:clamp(5rem,12vw,8rem) 0}
.label{font-size:0.72rem;font-weight:500;letter-spacing:0.14em;text-transform:uppercase;color:var(--teal);margin-bottom:1.2rem;display:flex;align-items:center;gap:0.8rem}
.label-line{height:1px;background:var(--teal)}

/* ─── ABOUT ─── */
.about-split{display:grid;grid-template-columns:0.82fr 1.18fr;min-height:65vh}
.about-img-col{position:relative;overflow:hidden}
.about-img-col .ph{width:100%;height:100%;min-height:480px}
.about-text-col{display:flex;flex-direction:column;justify-content:center;padding:clamp(3rem,6vw,5rem) clamp(2rem,5vw,4rem);background:var(--warm)}
.about-text-col h2{margin-bottom:1.2rem}
.about-text-col p{color:var(--text-mid);margin-bottom:1rem;max-width:none;line-height:1.85}
.about-text-col p:first-of-type{color:var(--navy);font-size:1.02rem;font-weight:400}
.about-creds{display:flex;gap:0.6rem;margin-top:1.5rem;flex-wrap:wrap}
.about-cred{font-size:0.75rem;color:var(--text-mid);padding:0.4rem 0.9rem;background:var(--teal-light);border-radius:100px}
a.about-cred{text-decoration:none}

/* ─── COURSE CARDS (stacked vertically) ─── */
.course-card{background:#fff;border:1px solid var(--border);border-radius:20px;padding:clamp(1.5rem,3vw,2.5rem);margin-bottom:1.5rem;transition:transform 0.3s,box-shadow 0.3s}
.course-card:hover{transform:translateY(-4px);box-shadow:0 12px 40px rgba(46,58,80,0.08)}
.course-card h3{margin-bottom:0.5rem}
.course-card p{margin-bottom:0.8rem;max-width:600px}
.course-meta{font-size:0.82rem;color:var(--text-soft);margin-bottom:1.2rem}
.course-tag{display:inline-block;padding:0.3rem 0.9rem;border-radius:100px;font-size:0.68rem;letter-spacing:0.08em;text-transform:uppercase;font-weight:600;color:#fff;margin-bottom:1rem}
.tag-personal{background:var(--teal)}
.tag-pro{background:var(--red)}
.tag-couples{background:var(--gold)}
.tag-online{background:var(--navy)}

/* ─── STATS ─── */
.stats-bar{padding:clamp(3rem,6vw,5rem) 0;background:var(--navy);color:#fff}
.stats-row{display:flex;justify-content:space-between;text-align:center}
.stat-n{font-size:clamp(2.2rem,5vw,3.2rem);font-weight:500;line-height:1;margin-bottom:0.3rem}
.stat-n.c-teal{color:var(--teal-soft)}
.stat-n.c-gold{color:var(--gold-soft)}
.stat-n.c-red{color:var(--red-soft)}
.stat-l{font-size:0.72rem;color:rgba(255,255,255,0.5);text-transform:uppercase;letter-spacing:0.08em;font-weight:500}

/* ─── EVENTS ─── */
.event-item{padding:1.5rem 0;border-bottom:1px solid var(--border)}
.event-item:last-child{border-bottom:none}
.event-date{font-size:1.6rem;font-weight:600;color:var(--red);line-height:1;margin-bottom:0.4rem}
.event-name{font-size:1.15rem;font-weight:500;color:var(--navy);margin-bottom:0.4rem}
.event-desc{font-size:0.9rem;color:var(--text-mid);line-height:1.7}

/* ─── COMMUNITY ─── */
.comm-layout{display:grid;grid-template-columns:1.2fr 0.8fr;gap:clamp(2rem,5vw,5rem);align-items:center}
.comm-feat{font-size:0.9rem;color:var(--text-mid);padding-left:1.2rem;position:relative;margin-bottom:0.6rem}
.comm-feat::before{content:'';position:absolute;left:0;top:0.55em;width:5px;height:5px;border-radius:50%;background:var(--teal)}
.comm-panel{background:var(--warm);border-radius:24px;padding:3rem 2rem;text-align:center;border:1px solid var(--border)}
.comm-big{font-size:4rem;font-weight:500;color:var(--teal);line-height:1}
.comm-big-sub{font-size:0.75rem;color:var(--text-soft);text-transform:uppercase;letter-spacing:0.08em;margin-top:0.4rem}
.comm-quote{font-style:italic;font-size:1rem;color:var(--text-mid);margin-top:2rem;padding-top:2rem;border-top:1px solid var(--border);line-height:1.6}

/* ─── CTA BAND ─── */
.cta-band{padding:clamp(4rem,8vw,6rem) 0;background:var(--navy);color:#fff;text-align:center;position:relative;overflow:hidden}
.cta-band::before{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:500px;height:500px;border-radius:50%;background:radial-gradient(circle,rgba(107,165,160,0.12) 0%,transparent 60%)}
.cta-band h2,.cta-band h3{position:relative;color:#fff}
.cta-band p{position:relative;color:rgba(255,255,255,0.6);max-width:420px;margin:0 auto 2rem}

/* ─── CONTACT ─── */
.contact-split{display:grid;grid-template-columns:1fr 1fr;background:var(--warm)}
.contact-left{padding:clamp(3rem,6vw,5rem) clamp(2rem,5vw,4rem);display:flex;flex-direction:column;justify-content:center}
.contact-left h2{margin-bottom:1rem}
.contact-left>p{color:var(--text-mid);margin-bottom:1.5rem;max-width:400px}
.c-m{display:flex;align-items:center;gap:1rem;margin-bottom:1.2rem}
.c-icon{width:44px;height:44px;flex-shrink:0;background:var(--teal-light);border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--teal)}
.c-icon svg{width:18px;height:18px}
.c-label{font-size:0.82rem;font-weight:500;color:var(--navy)}
.c-val{font-size:0.9rem;color:var(--teal)}
.contact-img .ph{width:100%;height:100%;min-height:450px}

/* ─── BOOKING INFO ─── */
.booking-info{background:var(--warm);border-radius:20px;padding:clamp(1.5rem,3vw,2.5rem);margin:2.5rem 0}
.booking-info h3{margin-bottom:0.8rem}
.booking-info p{margin-bottom:0.6rem}

/* ─── SECTION BACKGROUNDS ─── */
.bg-warm{background:var(--warm);padding:clamp(4rem,8vw,6rem) 0}
.bg-teal{background:var(--teal-light);padding:clamp(4rem,8vw,6rem) 0}

/* ─── EXPERT PROFILES ─── */
.expert-profile{display:flex;gap:clamp(2rem,4vw,3rem);margin-bottom:clamp(3rem,6vw,5rem);align-items:flex-start}
.expert-profile.reverse{flex-direction:row-reverse}
.expert-profile img{width:clamp(180px,30%,260px);aspect-ratio:1/1;object-fit:cover;border-radius:20px;flex-shrink:0}
.expert-profile .label{margin-bottom:0.6rem}
.expert-profile h2{margin-bottom:0.8rem}
.expert-profile p{color:var(--text-mid);line-height:1.8;margin-bottom:0.6rem}

/* ─── LEGAL PAGES ─── */
.legal-hero{padding:140px 0 60px;background:var(--warm)}
.legal-hero h1{margin-bottom:0.8rem}
.legal-hero p{color:var(--text-mid);font-size:0.95rem}
.legal-content{padding:clamp(2rem,5vw,4rem) 0 clamp(4rem,8vw,6rem)}
.legal-content h2{font-size:clamp(1.2rem,2.6vw,1.5rem);color:var(--navy);margin:2.4rem 0 0.9rem}
.legal-content p{color:var(--text-mid);font-size:0.95rem;line-height:1.75;margin:0 0 1rem}
.legal-content ul{color:var(--text-mid);font-size:0.95rem;line-height:1.7;padding-left:1.2rem;margin:0 0 1rem}
.legal-content li{margin-bottom:0.4rem}
.legal-contact-box{background:var(--warm);border-radius:14px;padding:clamp(1.5rem,3vw,2rem);margin-top:3rem;text-align:center}
.legal-contact-box p{margin:0}

/* ─── VIDEO EMBED ─── */
.video-embed{max-width:820px;margin:1.5rem auto 0}
.video-embed h3{text-align:center;margin-bottom:1rem;color:var(--navy)}

/* ─── GUTENBERG OVERRIDES ─── */
.entry-content h2{font-size:clamp(1.2rem,2.6vw,1.5rem);color:var(--navy);margin:2.4rem 0 0.9rem}
.entry-content p{color:var(--text-mid);font-size:0.95rem;line-height:1.75;margin:0 0 1rem}
.entry-content ul,.entry-content ol{color:var(--text-mid);font-size:0.95rem;line-height:1.7;padding-left:1.2rem;margin:0 0 1rem}
.entry-content li{margin-bottom:0.4rem}
.entry-content strong{color:var(--navy)}

/* ─── FOOTER ─── */
.footer{padding:2.5rem 0 1.5rem;border-top:1px solid var(--border)}
.footer-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:1.5rem;margin-bottom:1.5rem;border-bottom:1px solid var(--border)}
.footer-logo{font-size:1rem;font-weight:600;color:var(--navy)}
.f-social{display:flex;gap:0.5rem}
.f-social a{width:32px;height:32px;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--text-soft);transition:color 0.2s,border-color 0.2s}
.f-social a:hover{color:var(--teal);border-color:var(--teal)}
.f-social a svg{width:14px;height:14px}
.f-links{display:flex;gap:1.5rem;justify-content:center;flex-wrap:wrap;margin-bottom:1rem}
.f-links a{font-size:0.75rem;color:var(--text-soft);transition:color 0.2s}
.f-links a:hover{color:var(--teal)}
.f-copy{text-align:center;font-size:0.7rem;color:var(--text-light)}

/* ─── WP ADMIN BAR FIX ─── */
.admin-bar .header{top:32px}
@media(max-width:782px){.admin-bar .header{top:46px}}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px){
  .hero-content{grid-template-columns:1fr}
  .hero-visual{max-width:400px;margin-top:2rem}
  .about-split,.contact-split,.comm-layout{grid-template-columns:1fr}
  .about-img-col img,.about-img-col .ph,.contact-img .ph{min-height:320px}
  .expert-profile{flex-direction:column}
  .expert-profile.reverse{flex-direction:column}
  .expert-profile img{width:100%;max-width:300px}
}
@media(max-width:768px){
  .nav-links{display:none}.burger{display:block}
  .stats-row{flex-wrap:wrap;gap:2rem;justify-content:center}.stat{flex:0 0 45%}
  .footer-top{flex-direction:column;gap:1rem}
  .hero-float,.hero-blob{display:none}
}
