/*
Theme Name: FM Fashion
Description: Single-page denim manufacturer and wholesale catalog theme.
Version: 1.5.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: fm-fashion
*/
:root{--ink:#142b42;--muted:#465e72;--blue:#174d73;--sky:#eaf5fc;--line:#d4e5f0;--white:#fff;--header:76px;color:var(--ink);background:#fafdff;font:16px/1.6 system-ui,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0}
img{display:block;max-width:100%;height:auto}
figure,p,h1,h2,h3{margin:0}
a{color:inherit}
button{font:inherit}
p{color:var(--muted)}
section[id]{scroll-margin-top:calc(var(--header) + 36px)}
.wrap{width:min(1280px,calc(100% - 96px));margin-inline:auto}
.skip{position:fixed;z-index:100;top:8px;left:8px;background:white;padding:8px 16px;transform:translateY(-150%)}
.skip:focus{transform:none}
:focus-visible{outline:3px solid #287cb6;outline-offset:4px}
.site-header{position:sticky;top:0;z-index:20;background:#10273c;color:#f2f9ff;border-bottom:1px solid #2b4860;box-shadow:0 5px 18px #0d243326}
.admin-bar .site-header{top:32px}
.masthead,.social,.actions{display:flex;align-items:center}
.masthead a{text-decoration:none}
.masthead{min-height:75px;justify-content:space-between;gap:24px}
.brand{flex:none}
.brand img{width:181px}
#primary-nav,.social{display:flex;align-items:center;gap:clamp(16px,3vw,42px)}
#primary-nav > a{font-weight:650;font-size:.93rem;white-space:nowrap}
.social{gap:10px}
.social a{display:grid;place-items:center;border:1px solid var(--line);width:38px;height:38px;border-radius:50%}
.social a:hover{background:var(--sky)}
.menu-toggle{display:none}
.eyebrow{font-size:.76rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--blue);margin-bottom:14px}
h1,h2,h3{line-height:1.04;letter-spacing:-.045em}
h1{font-size:clamp(3.7rem,7.5vw,7.1rem);font-weight:760}
h1 em{font-family:Georgia,serif;font-weight:400;color:#39749e}
h2{font-size:clamp(2.5rem,5vw,4.7rem);font-weight:740}
h3{font-size:clamp(1.4rem,3vw,2.25rem);font-weight:720}
.intro{font-size:clamp(1rem,1.45vw,1.2rem);max-width:36ch;margin-top:24px}
.actions{gap:12px;flex-wrap:wrap;margin-top:28px}
.button{display:inline-flex;gap:12px;align-items:center;justify-content:center;min-height:51px;padding:11px 19px;border-radius:7px;border:1px solid transparent;text-decoration:none;font-size:.9rem;font-weight:750;transition:background .2s,color .2s}
.primary{background:#153b58;color:white}
.primary:hover{background:#21638e}
.outline{border-color:#a6c3d8;background:#ffffffb0}
.outline:hover{background:var(--sky)}
figcaption{font-size:.74rem;color:var(--muted);margin-top:9px}
.section{padding-block:clamp(65px,9vw,130px)}
.section-intro{max-width:690px;margin-bottom:40px}
.section-intro>p:last-child,.two-columns h2+p{margin-top:19px;max-width:50ch}
.products{background:#edf6fd}
.stack{display:grid;gap:18px;padding-bottom:28px}
.fit{position:sticky;top:calc(var(--header) + 14px + var(--index)*5px);display:grid;grid-template-columns:1fr 1.08fr;align-items:stretch;background:#fff;border:1px solid #c9deeb;border-radius:15px;overflow:hidden;box-shadow:0 4px 22px #193e581a;min-height:300px}
.fit-copy{align-self:center;padding:clamp(22px,5vw,68px)}
.fit-copy h3{font-size:clamp(2rem,4vw,3.9rem)}
.fit-copy p{margin:14px 0 19px}
.fit-image{background:#e0eaf4;height:clamp(285px,34vw,430px)}
.fit-image img{width:100%;height:100%;object-fit:contain}
.text-link{font-weight:750;color:var(--blue);text-decoration:none;display:inline-flex;gap:10px}
.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,6vw,86px);align-items:center}
.two-columns .text-link{margin-top:20px}
.workshop img{width:100%;aspect-ratio:1.45;object-fit:cover;border-radius:14px;background:var(--sky)}
.wholesale{background:var(--sky)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:26px}
.steps article,.contact-card{background:white;border:1px solid var(--line);border-radius:12px;padding:clamp(20px,3vw,35px)}
.steps h3{font-size:clamp(1.25rem,2vw,1.75rem);margin-bottom:10px}
.social-list{display:grid;gap:8px}
.social-list a{min-height:54px;display:flex;align-items:center;gap:12px;text-decoration:none;border-bottom:1px solid var(--line);font-weight:700}
.social-list a:hover{color:#2976a7}
.social-list span{margin-left:auto}
.contact{background:#deeffb}
.contact-card{font-style:normal;display:grid;gap:10px}
.contact-card strong{font-size:1.3rem}
.contact-card a{width:fit-content;overflow-wrap:anywhere}
.float-wa{position:fixed;z-index:25;display:grid;place-items:center;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));background:#067345;width:53px;height:53px;border-radius:50%;box-shadow:0 6px 18px #12352641}
.float-wa:hover{background:#045b37}
@media(prefers-reduced-motion:no-preference){
  .motion .hero-line{animation:enter .65s both}
  .motion .hero-line:nth-child(2){animation-delay:.10s}
  .motion .hero-line:nth-child(3){animation-delay:.20s}
  .motion .hero-line:nth-child(4){animation-delay:.30s}
  .motion .reveal{opacity:0;transform:translateY(22px);transition:opacity .65s ease,transform .65s ease}
  .motion .reveal.visible,.motion .reveal:focus-within{opacity:1;transform:none}
  .motion .steps .reveal:nth-child(2){transition-delay:.10s}
  .motion .steps .reveal:nth-child(3){transition-delay:.20s}
  @keyframes enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
}
@media(max-width:850px){
  .wrap{width:calc(100% - 48px)}
  #primary-nav{gap:16px}
  .brand img{width:150px}
}
@media(max-width:700px){
  :root{--header:64px}
  .wrap{width:calc(100% - 34px)}
  .masthead{min-height:63px;gap:8px}
  .masthead .brand{margin-right:auto}
  .brand img{width:140px}
  .social{gap:5px}
  .social a{width:32px;height:32px}
  .social img{width:16px}
  .js .menu-toggle{display:inline-flex;align-items:center;gap:6px;order:2;background:#eaf5fc;border:1px solid var(--line);border-radius:7px;padding:5px 8px;min-height:38px;font-weight:750;font-size:.8rem;color:var(--ink)}
  .js #primary-nav{display:none;position:absolute;left:17px;right:17px;top:calc(100% + 8px);padding:10px;background:#eef7fbdc;color:#142b42;backdrop-filter:blur(25px) saturate(145%);max-height:calc(100dvh - var(--header) - 20px);overflow:auto;border:1px solid #c8e0ef;box-shadow:0 14px 30px #24456425;border-radius:12px}
  .js #primary-nav.open{display:grid;gap:2px}
  .js #primary-nav > a{padding:10px 12px;border-radius:6px}
  .js #primary-nav a:hover{background:#e0f0fa}
  html:not(.js) .masthead{flex-wrap:wrap}
  html:not(.js) #primary-nav{order:3;width:100%;flex-wrap:wrap;padding-bottom:8px}
  .two-columns{grid-template-columns:1fr}
  h1{font-size:clamp(3.35rem,13vw,5.8rem)}
  .intro{margin-top:16px}
  .fit{grid-template-columns:1fr;min-height:auto}
  .fit-copy{padding:20px}
  .fit-copy p{margin:8px 0 10px}
  .fit-image{height:clamp(174px,49vw,295px)}
  .fit-image img{object-fit:contain}
  .steps{grid-template-columns:1fr}
  .contact .actions{margin-top:18px}
  .admin-bar .site-header{top:46px}
}
@media(max-height:550px){.fit{position:relative;top:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.fit{position:static}}
.arrow-out{display:inline-block;width:.83em;height:.83em;position:relative;flex:none;align-self:center}
.arrow-out::before,.arrow-out::after{content:"";position:absolute}
.arrow-out::before{width:.62em;height:1.5px;background:currentColor;top:.38em;left:.04em;transform:rotate(-45deg)}
.arrow-out::after{width:.39em;height:.39em;border-top:1.5px solid;border-right:1.5px solid;top:.05em;right:.09em}

#primary-nav > a{color:#e8f4ff}
#primary-nav > a:hover{color:#a0dcff;text-decoration:underline;text-underline-offset:.35em}
.site-header .social a,.footer-social a{background:#f7fbff;border-color:#b9d5e8}
.site-header .social a:hover,.footer-social a:hover{background:#dfefff}
.mobile-social{display:none}
.social-section h2{color:#142f49}
.social-section .eyebrow{color:#20587f}
.social-list a{color:#173955}
.social-list a:hover{color:#24658f}
.site-footer{background:#10273c;color:#f2f9ff}
.site-footer a{color:#e3eff8;text-decoration:none}
.site-footer a:hover{color:#a6dcff;text-decoration:underline;text-underline-offset:.25em}
.footer-grid{display:grid;grid-template-columns:1fr .7fr 1.35fr;gap:clamp(25px,4vw,64px);padding-block:55px}
.footer-brand{display:inline-block}
.footer-brand img{width:186px}
.site-footer p,.footer-bottom{color:#bfd3e3}
.footer-contact address{display:grid;gap:7px;font-style:normal;margin:16px 0 19px}
.footer-contact address p{max-width:31ch}
.footer-contact address a{width:fit-content;overflow-wrap:anywhere}
.footer-social{gap:7px;flex-wrap:wrap}
.footer-social a{width:35px;height:35px}
.footer-nav{display:grid;align-content:start;gap:8px}
.footer-nav a{width:fit-content}
.footer-nav h2,.footer-location h2{font-size:1.1rem;letter-spacing:-.01em;margin-bottom:10px}
.footer-map{background:#19384f;border:1px solid #3b627e;border-radius:12px;padding:5px;overflow:hidden}
.footer-map iframe{display:block;width:100%;height:265px;border:0;border-radius:8px;background:#d9eaf5}
.footer-bottom{display:flex;flex-wrap:wrap;gap:10px 24px;padding:17px 54px 21px 0;border-top:1px solid #324c62;font-size:.88rem}
@media(max-width:700px){
  .js #primary-nav > a{color:#142b42}
  .js #primary-nav > a:hover{color:#174d73}
  .mobile-social{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:5px;padding-top:9px;border-top:1px solid #a8c7d9}
  .mobile-social p{grid-column:1/-1;padding-inline:10px;color:#174d73;font-weight:750}
  .mobile-social a{display:flex;align-items:center;gap:7px;padding:8px;border-radius:7px;font-size:.82rem;font-weight:650;line-height:1.25}
  .mobile-social img{flex:none}
  .mobile-social a:hover{background:#dceefa}
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px 14px;padding-block:35px}
  .footer-location{grid-column:1/-1}
}
@media(max-width:370px){
  .footer-grid{grid-template-columns:1fr}
}
.masthead .brand img{width:58px;height:58px;object-fit:cover;border-radius:50%;border:1px solid #4c6173}
.gallery-jump{margin:-20px 0 24px}
.gallery-group + .gallery-group{margin-top:35px}
.gallery-group h3{font-size:clamp(1.35rem,2.5vw,1.85rem);margin-bottom:14px}
.gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.gallery-photo{display:grid;place-items:center;aspect-ratio:1;background:#e9f0f6;border:1px solid #d4e2ed;border-radius:10px;overflow:hidden}
.gallery-photo img{width:100%;height:100%;min-height:0;object-fit:contain}
.gallery-photo:hover{border-color:#6097bc}
.gallery-contact{margin-top:35px}
.menu-bars{display:block;width:21px;height:2px;border-radius:2px;background:currentColor;box-shadow:0 -6px currentColor,0 6px currentColor}
@media(max-width:850px){.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){
  .masthead .brand img{width:49px;height:49px}
  .js .menu-toggle{width:44px;height:44px;justify-content:center}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}
.video-section{background:#eaf5fc}
.video-layout{display:grid;grid-template-columns:minmax(0,370px) minmax(0,1fr);gap:clamp(16px,4vw,48px);align-items:start}
.short-player{aspect-ratio:9/16;background:#10273c;border-radius:14px;overflow:hidden;display:grid;place-items:center;color:#fff}
.short-player iframe{width:100%;height:100%;border:0}
.short-start{display:flex;align-items:center;gap:10px;padding:12px 17px;border:1px solid #7493aa;border-radius:8px;color:#fff;text-decoration:none;font-weight:750}
.short-start[hidden]{display:none}
.short-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.short-option{display:grid;gap:6px;border:2px solid #d3e5ef;border-radius:9px;overflow:hidden;background:#fff;color:#173955;text-decoration:none;font-weight:750}
.short-option img{width:100%;aspect-ratio:16/9;background:#18344e;object-fit:cover}
.short-option span{padding:1px 9px 8px}
.short-option:hover,.short-option[aria-current]{border-color:#236890}
.video-links{margin-top:17px}
@media(max-width:850px){.short-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .video-layout{grid-template-columns:1fr}
  .short-player{width:min(100%,320px);margin-inline:auto}
  .short-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  #primary-nav > a{white-space:normal}
}

.masthead .brand{display:inline-flex;align-items:center;gap:clamp(8px,1.2vw,15px)}
.brand-wordmark{position:relative;padding-bottom:6px;color:#e1e8f0;font-size:clamp(1.1rem,2.45vw,1.75rem);font-weight:800;letter-spacing:.035em;line-height:1.1;white-space:nowrap}
.brand-wordmark::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;border-radius:2px;background:linear-gradient(90deg,#5d9fff 0 47%,#ff5b65 53%)}

.hero{display:block;min-height:0;padding-block:clamp(24px,4vw,49px)}
.hero-copy{text-align:center}
.hero h1{font-size:clamp(1.45rem,6.7vw,3.35rem);color:#184f83;white-space:nowrap;letter-spacing:-.04em}
.hero h1 em{color:#b32134;font-style:normal;font-family:inherit;font-weight:inherit}
.hero .intro{margin:12px auto 0;max-width:55ch}
.hero .actions{justify-content:center;margin-top:16px;gap:8px}
.hero-carousel{position:relative;margin-top:clamp(17px,3vw,30px)}
.hero-track{display:flex;width:100%;height:clamp(300px,54vw,620px);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;border-radius:15px;background:#13283b}
.js .hero-track{scrollbar-width:none}
.hero-slide{flex:0 0 100%;min-width:0;display:grid;grid-template-rows:minmax(0,1fr);place-items:center;scroll-snap-align:start;background:linear-gradient(110deg,#152a3d,#243d56 50%,#142939)}
.hero-slide img{width:100%;height:100%;min-height:0;object-fit:cover}
.hero-controls{display:none}
.js .hero-controls{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:9px}
.hero-control{display:inline-grid;place-items:center;min-width:44px;min-height:42px;border:1px solid #aac6da;border-radius:7px;background:#fff;color:#173c59;cursor:pointer;font-weight:750}
.hero-prev,.hero-next{font-size:1.5rem}
.hero-count{min-width:3.3rem;text-align:center;font-variant-numeric:tabular-nums}
.button-icon{width:19px;height:19px;flex:none}
.button-wa{background:#08763f;color:#fff}
.button-wa:hover{background:#065e33}
.button-explore{background:#b51e34;color:#fff}
.button-explore:hover{background:#971526}
.hero-control:hover{background:#e2f1fc}
@media(max-width:480px){
  .hero-track{height:clamp(280px,110vw,440px)}
  .hero .button{padding-inline:12px;gap:6px;font-size:.82rem;min-height:44px}
}
@media(prefers-reduced-motion:no-preference){
  .button,button,.float-wa{transition:background .2s,color .2s,box-shadow .2s,transform .2s}
  .button:hover,button:hover,.float-wa:hover{transform:translateY(-2px);box-shadow:0 6px 14px #17354b43}
  .button:active,button:active,.float-wa:active{transform:translateY(0) scale(.98)}
}

.brand-wordmark{color:#dbe0e8;letter-spacing:.065em}
@supports (background-clip:text){
  .brand-wordmark{background:linear-gradient(#fff 8%,#e7ebf2 36%,#aab5c4 65%,#e5eaf1 87%);background-clip:text;color:transparent}
}
#primary-nav > a{color:#e1e6ed}
#primary-nav > a:hover,#primary-nav > a:focus-visible{color:#ff777f}
@media(max-width:700px){
  .js #primary-nav > a{color:#526274}
  .js #primary-nav > a:hover,.js #primary-nav > a:focus-visible{color:#ac1f32;background:#f6e5e9}
}
.js .hero-controls{position:absolute;inset:0;margin:0;display:block;pointer-events:none}
.hero-controls .hero-control{position:absolute;top:50%;translate:0 -50%;pointer-events:auto;background:#10273c66;border-color:#ffffff9c;color:white}
.hero-controls .hero-control:hover{background:#10273cc4}
.hero-prev{left:12px}
.hero-next{right:12px}
.hero-count{position:absolute;bottom:10px;left:50%;translate:-50% 0;padding:2px 7px;border-radius:5px;background:#10273cb8;color:white;font-size:.8rem}
.inquiry-form{display:none}
.inquiry-form.ready{display:grid;gap:15px;margin-top:clamp(24px,5vw,53px);padding:clamp(18px,4vw,36px);background:white;border:1px solid var(--line);border-radius:12px}
.inquiry-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.inquiry-fields label{display:grid;gap:5px;font-weight:700}
.inquiry-fields input,.inquiry-fields textarea{width:100%;font:inherit;font-weight:400;color:var(--ink);padding:9px 11px;border:1px solid #9ebcd0;border-radius:6px;background:#fafdff}
.inquiry-fields textarea{resize:vertical}
.inquiry-wide{grid-column:1/-1}
.inquiry-form button{justify-self:start;cursor:pointer}
@media(max-width:540px){.inquiry-fields{grid-template-columns:1fr}}
