/* webahsan — shared styles and motion (HANDOFF.md §3–4). One curve everywhere: cubic-bezier(.2,.7,.2,1). */

:root{--accent:#D93B1E;--ease:cubic-bezier(.2,.7,.2,1)}
body{margin:0;background:#F5F4F0;color:#121212;font-family:'Urbanist',system-ui,sans-serif;font-size:17px;line-height:normal;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:#121212}a:hover{color:#C2361A}
img{max-width:100%}
.wa-accent{color:var(--accent)}
.wa-nowrap{white-space:nowrap}
.wa-part,.wp-block-webahsan-site-header{display:contents}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{clip:auto!important;clip-path:none;height:auto;width:auto;z-index:100000;background:#121212;color:#fff;padding:12px 18px;border-radius:999px;left:12px;top:12px}

@keyframes rise{from{opacity:0;transform:translateY(48px)}to{opacity:1;transform:none}}
@keyframes zoomOut{from{transform:scale(1.18)}to{transform:scale(1)}}
@keyframes slide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes growY{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes fillText{from{background-position:100% 0}to{background-position:0 0}}
@keyframes drop{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(31,157,85,.55)}100%{box-shadow:0 0 0 12px rgba(31,157,85,0)}}

/* page load */
.line{display:block;overflow:hidden;padding-bottom:.06em}
.line>span{display:block;animation:rise 1s var(--ease) both}
.l2>span{animation-delay:.12s}.l3>span{animation-delay:.24s}
.fadein{animation:rise 1s var(--ease) .4s both}
.heroimg{animation:zoomOut 1.8s var(--ease) both}
.dot{animation:pulse 1.6s ease-out infinite}

/* marquees */
.mq:hover .marquee{animation-play-state:paused}
.marquee{animation:slide 32s linear infinite}

/* buttons, links */
.btn{transition:transform .25s ease,box-shadow .25s ease}
.btn:hover{transform:translateY(-3px);box-shadow:0 14px 30px -12px var(--accent)}
.btn .arr{display:inline-block;transition:transform .25s ease}
.btn:hover .arr{transform:translateX(5px)}
.navlink{background:linear-gradient(currentColor,currentColor) no-repeat 0 100%/0 2px;transition:background-size .3s ease}
.navlink:hover,.navlink.on{background-size:100% 2px}

/* cards */
.card .pic{transition:transform .8s var(--ease)}
.card:hover .pic{transform:scale(1.07)}
.card .more{max-height:0;opacity:0;overflow:hidden;transition:max-height .35s ease,opacity .35s ease}
.card:hover .more{max-height:30px;opacity:1}
.card .tagrow{transition:opacity .35s ease}
.lift{transition:transform .35s ease,box-shadow .35s ease}
.lift:hover{transform:translateY(-8px);box-shadow:0 30px 60px -30px rgba(0,0,0,.45)}
.tile .ext{display:inline-block;transition:transform .3s ease}
.tile:hover .ext{transform:translate(3px,-3px)}

/* chips, fields, accordions */
.chip{transition:background .25s ease,color .25s ease,border-color .25s ease,transform .25s ease}
.chip:hover{transform:translateY(-2px);border-color:#121212!important}
.fchip{transition:background .25s ease,color .25s ease,border-color .25s ease,transform .25s ease}
.fchip:hover{transform:translateY(-2px)}
.fld{transition:border-color .25s ease,box-shadow .25s ease}
.fld:focus{outline:none;border-color:var(--accent)!important;box-shadow:0 0 0 4px rgba(217,59,30,.14)}
.ans{animation:drop .35s ease both}

/* scroll-driven (only where supported — elsewhere content simply shows) */
@supports (animation-timeline: view()){
  .reveal{animation:rise linear both;animation-timeline:view();animation-range:entry 0% cover 28%}
  .zoom .pic{animation:zoomOut linear both;animation-timeline:view();animation-range:entry 0% cover 55%}
  .progress{animation:grow linear both;animation-timeline:scroll(root)}
  .fill{background:linear-gradient(90deg,#121212 50%,#C9C6BD 50%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:fillText linear both;animation-timeline:view();animation-range:cover 15% cover 60%}
  .tl-fill{animation:growY linear both;animation-timeline:view();animation-range:cover 15% cover 85%}
}

/* ---------- header + phone menu ---------- */
.wa-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:20}
.mnav{display:none;position:static}
.mnav>summary{list-style:none;cursor:pointer;border-radius:50%}
.mnav>summary::-webkit-details-marker{display:none}
.burger{width:46px;height:46px;border-radius:50%;background:#121212;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.burger i{display:block;width:18px;height:2px;border-radius:2px;background:#F5F4F0;transition:transform .35s var(--ease)}
.mnav[open] .burger{background:var(--accent)}
.mnav[open] .burger i:first-child{transform:translateY(4px) rotate(45deg)}
.mnav[open] .burger i:last-child{transform:translateY(-4px) rotate(-45deg)}
.mpanel{position:fixed;left:0;right:0;top:calc(70px + var(--wp-admin--admin-bar--height,0px));bottom:0;background:#F5F4F0;overflow-y:auto;padding:12px 16px 32px;z-index:40;border-top:1px solid rgba(18,18,18,.08)}
.mlink{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #D9D7D0;text-decoration:none;color:#121212;font-size:34px;font-weight:800;letter-spacing:-0.035em;line-height:1.1}
.mlink small{font-size:13px;font-weight:800;color:#8A887F;letter-spacing:0;margin-right:12px;vertical-align:middle}
.mlink .ar{font-size:22px;color:#8A887F;transition:transform .3s ease,color .3s ease}
.mlink:hover .ar,.mlink[aria-current] .ar{color:var(--accent);transform:translateX(4px)}
.mlink[aria-current]{color:var(--accent)}
.mnav[open] .mlink{animation:rise .6s var(--ease) both}
.mnav[open] .mlink:nth-child(2){animation-delay:.04s}.mnav[open] .mlink:nth-child(3){animation-delay:.08s}.mnav[open] .mlink:nth-child(4){animation-delay:.12s}.mnav[open] .mlink:nth-child(5){animation-delay:.16s}.mnav[open] .mlink:nth-child(6){animation-delay:.2s}.mnav[open] .mlink:nth-child(7){animation-delay:.24s}.mnav[open] .mlink:nth-child(8){animation-delay:.28s}
.wa-header:has(.mnav[open]){backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#F5F4F0!important}
html:has(.mnav[open]){overflow:hidden}

/* ---------- floating WhatsApp ---------- */
.wafloat{position:fixed;right:20px;bottom:20px;z-index:35;display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 16px;border-radius:999px;background:#121212;color:#FFFFFF!important;text-decoration:none;font-weight:800;box-shadow:0 18px 40px -16px rgba(0,0,0,.55);transition:transform .25s ease,background .25s ease}
.wafloat:hover{transform:translateY(-3px);background:var(--accent)}
.wafloat svg{flex:0 0 24px}
body:has(.mnav[open]) .wafloat{display:none}

/* ---------- footer ---------- */
.mfoot{display:none}
.macc>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:60px;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#BDBCB6}
.macc>summary::-webkit-details-marker{display:none}
.macc>summary .pm{width:32px;height:32px;border-radius:50%;border:1.5px solid #3A3A38;display:inline-flex;align-items:center;justify-content:center;color:#F5F4F0;font-size:18px;transition:transform .35s ease,background .35s ease}
.macc[open]>summary .pm{transform:rotate(45deg);background:var(--accent);border-color:var(--accent)}
.macc a{color:#F5F4F0;text-decoration:none;display:flex;align-items:center;min-height:44px;font-size:17px}
.mrow{transition:background .3s ease}
.mrow:hover{background:#2A2A28!important}

@media (max-width:880px){
  .wline{display:block}
  .wbr{display:none}
  .hnav,.hcall{display:none!important}
  .hbar{flex-wrap:nowrap!important;padding:12px 16px!important;gap:10px!important}
  .hquote{min-height:42px!important;padding:0 16px!important;font-size:15px!important}
  .mnav{display:block}
}
@media (max-width:700px){
  .wafloat{width:56px;padding:0;justify-content:center}
  .wafloat .t{display:none}
  .dfoot{display:none!important}
  .mfoot{display:block}
  .flegal{flex-direction:column;align-items:flex-start!important}
}
@media (max-width:600px){
  /* WordPress admin bar is taller and scrolls away on phones */
  .wa-header{top:0}
  .mpanel{top:70px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .fill{color:#121212!important;background:none!important}
}
