/*
 * Atelier 212 — mobile-first refinement v2.9.27
 * The desktop visual identity is preserved; below 900px the theme behaves
 * like a purpose-built mobile product rather than a shrunk WordPress theme.
 */

.header-account__icon{display:grid;width:1.1rem;height:1.1rem;place-items:center}.header-account__icon svg,.mobile-dock__icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.mobile-dock{display:none}

@media (max-width:900px){
  :root{--mobile-gutter:16px;--mobile-header:64px;--mobile-dock:66px;--a212-radius:16px}
  html{scroll-padding-top:calc(var(--mobile-header) + 12px)}
  body{font-size:15px;line-height:1.55;padding-bottom:calc(var(--mobile-dock) + env(safe-area-inset-bottom))}
  .container{width:calc(100% - (var(--mobile-gutter) * 2))!important;max-width:none!important}
  .site-main{overflow:clip}

  /* Header: compact, app-like, deliberately simple. */
  .site-header{height:var(--mobile-header);background:rgba(8,8,9,.92)!important;border-bottom:1px solid rgba(198,166,106,.18)!important;box-shadow:none!important;-webkit-backdrop-filter:blur(18px) saturate(135%);backdrop-filter:blur(18px) saturate(135%)}
  .site-header.is-scrolled{background:rgba(7,7,8,.98)!important;box-shadow:0 8px 28px rgba(0,0,0,.22)!important}
  .header__inner{min-height:var(--mobile-header)!important;height:var(--mobile-header);gap:8px!important}
  .brand{margin-right:auto}
  .brand__logo.brand__logo--atelier-official{width:52px!important;min-width:52px!important;height:46px!important;min-height:46px!important}
  .brand__logo.brand__logo--atelier-official img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain}
  .header__status{display:none!important}
  .header-account{width:40px;height:40px;min-width:40px;padding:0!important;margin:0!important;justify-content:center;border-color:rgba(244,241,234,.12)!important;background:rgba(255,255,255,.025)!important;color:#e9d6a3!important;border-radius:50%!important}
  .header-account__label{display:none!important}
  .header-account__icon{width:18px;height:18px}
  .menu-toggle{display:grid!important;width:40px!important;height:40px!important;margin:0!important;padding:0!important;place-items:center;border:1px solid rgba(198,166,106,.28)!important;border-radius:50%!important;background:rgba(198,166,106,.055)!important;box-shadow:none!important}
  .menu-toggle__icon{width:17px!important;height:12px!important}
  .menu-toggle__icon span{width:17px!important;background:#e8d3a1!important}

  /* Full-screen navigation. It reads like an editorial index, not a drawer. */
  .site-nav{top:0!important;right:0!important;bottom:0!important;left:0!important;width:100%!important;height:100svh!important;padding:0!important;border:0!important;background:radial-gradient(circle at 92% 7%,rgba(198,166,106,.12),transparent 22rem),linear-gradient(180deg,#0d0d0f,#080809)!important;box-shadow:none!important;transform:translate3d(0,-18px,0)!important;opacity:0!important}
  .nav-open .site-nav{transform:none!important;opacity:1!important}
  .site-nav__head{min-height:76px;padding:max(14px,env(safe-area-inset-top)) 18px 12px!important;border-bottom:1px solid rgba(198,166,106,.16)!important}
  .site-nav__eyebrow{margin:0 0 4px!important;color:#b99a5c!important;font-size:.56rem!important;letter-spacing:.18em!important}
  .site-nav__head strong{font-size:1.55rem!important;line-height:1!important}
  .site-nav__close{width:40px!important;height:40px!important;border-color:rgba(244,241,234,.13)!important;font-size:1.55rem!important}
  .site-nav__scroll{padding:10px 18px 90px!important}
  .primary-menu{counter-reset:a212-mobile-menu;gap:0!important}
  .primary-menu>.menu-item{counter-increment:a212-mobile-menu;position:relative;grid-template-columns:32px minmax(0,1fr) 42px!important;border-bottom:1px solid rgba(244,241,234,.09)!important}
  .primary-menu>.menu-item::before{grid-column:1;grid-row:1;align-self:center;color:rgba(198,166,106,.7);content:counter(a212-mobile-menu,decimal-leading-zero);font-size:.56rem;font-weight:800;letter-spacing:.08em}
  .primary-menu>.menu-item>a{grid-column:2!important;min-height:58px!important;padding:12px 0!important;color:#f0ece4!important;font-family:var(--font-display)!important;font-size:1.32rem!important;font-weight:400!important;letter-spacing:-.025em!important;line-height:1.05!important;text-transform:none!important}
  .primary-menu>.menu-item-has-children>.submenu-toggle,.primary-menu .menu-item-has-children>.submenu-toggle{grid-column:3!important;width:36px!important;height:36px!important;border-color:rgba(198,166,106,.2)!important;border-radius:50%!important;color:#d2b36d!important;background:rgba(198,166,106,.04)!important}
  .primary-menu .sub-menu{grid-column:1/-1!important;margin:0 0 10px 32px!important;padding:4px 0 8px 12px!important;border-left:1px solid rgba(198,166,106,.34)!important;background:transparent!important}
  .primary-menu .sub-menu a{min-height:38px!important;padding:8px 10px!important;border-radius:8px!important;color:rgba(244,241,234,.66)!important;font-size:.78rem!important;letter-spacing:.01em!important;line-height:1.3!important}
  .site-nav__footer{padding:13px 18px max(14px,env(safe-area-inset-bottom))!important;border-top:1px solid rgba(198,166,106,.14)!important}
  .nav-backdrop{display:none!important}

  /* Global mobile typography and rhythm. */
  .section{padding-block:38px!important}
  .section+.section{border-top-color:rgba(17,17,15,.07)}
  .page-hero,.page-hero--section{min-height:0!important;padding:calc(var(--mobile-header) + 34px) 0 30px!important}
  .page-hero .container,.page-hero--section .container{display:block!important}
  .page-hero h1,.page-hero--section h1,.display-title{max-width:12ch!important;font-size:clamp(2.35rem,10.8vw,3.35rem)!important;line-height:.94!important;letter-spacing:-.045em!important;text-wrap:balance}
  .page-hero__lead,.lead{max-width:35rem!important;margin-top:14px!important;font-size:.94rem!important;line-height:1.55!important}
  .eyebrow{gap:9px!important;margin-bottom:12px!important;font-size:.57rem!important;letter-spacing:.16em!important;line-height:1.25!important}
  .eyebrow::before{width:18px!important}
  .section-heading,.section-heading--split,.section-heading--portfolio{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-bottom:20px!important}
  .section-heading__aside{max-width:none!important;margin:0!important;font-size:.86rem!important;line-height:1.5!important}
  .section-heading__aside p{margin:0!important}
  h2,h3{scroll-margin-top:calc(var(--mobile-header) + 18px)}
  p{overflow-wrap:break-word;word-break:normal}

  /* Buttons feel native to the layout, not generic full-width WP buttons. */
  .button{width:auto!important;min-height:44px;padding:.76rem 1rem!important;border-radius:999px!important;font-size:.68rem!important;letter-spacing:.08em!important;justify-content:center!important;box-shadow:none!important}
  .page-actions,.hero__actions,.construction-card__actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:18px!important}
  .page-actions .button,.hero__actions .button{flex:1 1 150px!important}

  /* Homepage: one strong first screen, then fast routes. */
  .hero{display:block!important;min-height:auto!important;padding:calc(var(--mobile-header) + 34px) 0 30px!important;background-image:linear-gradient(180deg,rgba(9,9,11,.76),rgba(9,9,11,.93)),var(--hero-image)!important;background-position:center!important}
  .hero__grid{display:block!important;width:calc(100% - (var(--mobile-gutter) * 2))!important;min-width:0!important;flex:none!important;margin-inline:auto!important}
  .hero__content{max-width:none!important}
  .hero h1{max-width:10.5ch!important;font-size:clamp(3rem,14vw,4.25rem)!important;line-height:.88!important;letter-spacing:-.06em!important}
  .hero__lead{max-width:32rem!important;margin-top:16px!important;font-size:.94rem!important;line-height:1.55!important;color:rgba(244,241,234,.73)!important}
  .hero__actions{margin-top:18px!important}
  .hero__visual{display:none!important}
  .hero__footer{position:static!important;width:calc(100% - (var(--mobile-gutter) * 2))!important;margin:24px auto 0!important}
  .hero__scroll{display:none!important}
  .hero__facts{display:flex!important;justify-content:flex-start!important;gap:8px 16px!important;flex-wrap:wrap!important;font-size:.54rem!important;letter-spacing:.09em!important}
  .hero__facts span:not(:last-child)::after,.hero__facts a:not(:last-child)::after{display:none!important}
  .hero__orb{opacity:.45!important}

  .home-entry{padding:34px 0 28px!important;background:linear-gradient(145deg,#ead5a6,#c8a662 64%,#b18a49)!important}
  .home-entry__grid{grid-template-columns:1fr!important;gap:18px!important}
  .home-entry__grid .display-title{font-size:2.45rem!important}
  .home-member-access__card{padding:18px!important;border:1px solid rgba(17,17,15,.16)!important;border-radius:16px!important;box-shadow:none!important;background:rgba(255,255,255,.16)!important}
  .home-member-access__card strong{font-size:1.12rem!important}
  .home-member-access__card p{margin:.45rem 0 0!important;font-size:.82rem!important;line-height:1.45!important}
  .home-member-access__card .button{margin-top:12px!important}
  .home-entry__routes{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-top:18px!important;border:1px solid rgba(17,17,15,.18)!important;border-radius:16px!important;overflow:hidden!important}
  .home-entry__route,.home-entry__route:nth-child(2){min-height:96px!important;padding:13px!important;border-right:1px solid rgba(17,17,15,.16)!important;border-bottom:1px solid rgba(17,17,15,.16)!important;grid-template-columns:auto 1fr auto!important;column-gap:7px!important}
  .home-entry__route:nth-child(2n){border-right:0!important}
  .home-entry__route:nth-child(n+3){border-bottom:0!important}
  .home-entry__route strong{font-size:1.15rem!important;line-height:1!important}
  .home-entry__route small{font-size:.62rem!important}
  .home-entry__secondary{justify-content:flex-start!important;margin-top:10px!important;font-size:.7rem!important}

  .home-updates__baroque-frame{padding:18px 0!important;border-right:0!important;border-left:0!important;border-radius:0!important}
  .home-updates__ornament{display:none!important}
  .portfolio-section--compact{padding-block:38px!important}
  .portfolio-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:18px!important}
  .portfolio-card__media{border-radius:12px!important;box-shadow:none!important}
  .portfolio-card h3{margin-top:8px!important;font-size:1rem!important;line-height:1.12!important}
  .portfolio-card__meta{font-size:.56rem!important}
  .home-projects-empty{display:block!important;margin-top:18px!important;padding:18px 0!important;border-right:0!important;border-left:0!important;background:transparent!important}

  /* Navigation inside long pages becomes a horizontal utility rail. */
  .quick-nav{position:sticky!important;z-index:25!important;top:var(--mobile-header)!important;display:flex!important;width:calc(100% + (var(--mobile-gutter) * 2))!important;margin:0 calc(var(--mobile-gutter) * -1) 22px!important;padding:8px var(--mobile-gutter)!important;overflow-x:auto!important;flex-wrap:nowrap!important;gap:6px!important;border:0!important;border-top:1px solid rgba(198,166,106,.16)!important;border-bottom:1px solid rgba(198,166,106,.16)!important;border-radius:0!important;background:rgba(246,242,234,.94)!important;box-shadow:0 8px 24px rgba(0,0,0,.06)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);scrollbar-width:none}
  .quick-nav::-webkit-scrollbar{display:none}
  .quick-nav a,.quick-nav button{flex:0 0 auto!important;min-height:34px!important;padding:7px 11px!important;border:1px solid rgba(17,17,15,.1)!important;border-radius:999px!important;background:rgba(255,255,255,.45)!important;font-size:.62rem!important;letter-spacing:.05em!important;white-space:nowrap!important}
  .quick-nav a.is-active,.quick-nav button.is-active{border-color:#161616!important;background:#161616!important;color:#fff!important}

  /* Replace the “box after box” feeling with editorial separators. */
  .editorial-intro{display:block!important;margin:0 0 24px!important;padding:18px 0!important;border:0!important;border-top:1px solid rgba(17,17,15,.13)!important;border-bottom:1px solid rgba(17,17,15,.13)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .editorial-intro h2{font-size:2.15rem!important;line-height:.96!important}
  .editorial-intro__aside{margin-top:14px!important;padding:15px!important;border-radius:14px!important}
  .info-steps,.project-guide,.care-journey,.contact-route-grid,.booking-types,.knowledge-sections,.product-facts,.icon-grid,.shop-landing-grid,.project-categories{gap:10px!important;margin-block:16px 22px!important}
  .info-step,.project-guide>div,.care-step,.contact-route,.booking-type,.knowledge-card,.product-facts>div,.icon-card,.project-category,.shop-landing-card,.info-card,.account-card,.member-panel,.reward-card,.casino-card,.event-pack-card,.event-extra-card{padding:15px!important;border-radius:14px!important;box-shadow:none!important}
  .project-guide>div{border-left:2px solid var(--color-gold)!important;border-radius:0!important;background:rgba(255,255,255,.56)!important}
  .knowledge-card h2,.info-card h2,.booking-type strong,.contact-route strong{margin-top:0!important}
  .soft-callout{margin:16px 0!important;padding:14px 15px!important;border-radius:0 12px 12px 0!important}
  .a212-smart-copy__text{-webkit-line-clamp:3!important}
  .a212-smart-copy__toggle{padding:.45rem 0!important}

  /* Forms: dense enough for a phone, still comfortable to tap. */
  .atelier-form{gap:10px!important}
  .form-section{padding:14px!important;border-radius:14px!important;box-shadow:none!important}
  .form-section legend{font-size:1rem!important}
  .form-grid{grid-template-columns:1fr!important;gap:9px!important}
  .field input,.field textarea,.field select{min-height:44px!important;padding:.7rem .75rem!important;border-radius:10px!important;font-size:16px!important}
  .field textarea{min-height:84px!important}
  .check-grid,.consent-checklist{grid-template-columns:1fr!important;gap:7px!important}
  .check-grid label,.consent-checklist label,.choice-row label,.checkbox-field{padding:9px 10px!important;border-radius:10px!important;font-size:.8rem!important;line-height:1.38!important}
  .signature-pad-wrap{padding:9px!important;border-radius:12px!important}
  .signature-pad{height:145px!important}
  .form-required-note,.field-help{font-size:.69rem!important;line-height:1.4!important}

  /* Member / loyalty / casino data blocks are concise, not dashboards squeezed down. */
  .account-grid,.loyalty-layout,.member-dashboard-grid,.project-payment-layout,.contact-form-grid{grid-template-columns:1fr!important;gap:12px!important}
  .member-list-panel,.member-actions,.loyalty-panel,.loyalty-balance,.signal-panel,.live-game-panel,.live-game-info{padding:15px!important;border-radius:14px!important;box-shadow:none!important}
  .section-heading--compact h2{font-size:1.75rem!important}
  .member-panel-intro{font-size:.82rem!important;line-height:1.45!important}
  .reward-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .reward-card__visual{aspect-ratio:1.35!important;border-radius:10px!important}
  .reward-card h2{font-size:1.15rem!important}
  .casino-card h2{font-size:1.3rem!important}

  /* Boutique: browsing stays fast, product pages stay explicit. */
  .shop-landing-grid,.project-categories,.icon-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .shop-landing-card{min-height:170px!important;justify-content:flex-end!important}
  .shop-landing-card h2{font-size:1.32rem!important;line-height:1!important}
  .shop-landing-card p{font-size:.76rem!important;line-height:1.4!important}
  .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:8px 8px 12px!important;border-radius:12px!important;box-shadow:none!important}
  .woocommerce ul.products li.product img{margin-bottom:8px!important;border-radius:9px!important}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.98rem!important;line-height:1.12!important}
  .woocommerce ul.products li.product .price{font-size:.85rem!important}
  .woocommerce ul.products li.product .button{width:100%!important;min-height:38px!important;margin-top:8px!important;padding:.6rem .65rem!important;font-size:.6rem!important}
  .woocommerce div.product{display:block!important}
  .woocommerce div.product .summary{position:static!important;margin-top:18px!important}
  .woocommerce div.product .product_title{font-size:2rem!important;line-height:.96!important}
  .woocommerce div.product .price{font-size:1.1rem!important}
  .a212-buy-facts{margin:14px 0!important;padding:12px 0!important}
  .a212-buy-facts__grid{grid-template-columns:1fr!important}
  .a212-buy-facts__grid>div{padding:9px 0!important}

  /* Footer is secondary information on mobile. */
  .site-footer{padding:34px 0 24px!important}
  .footer__grid{grid-template-columns:1fr!important;gap:24px!important}
  .footer__brand p{max-width:28rem!important}
  .footer__bottom{display:block!important;padding-top:14px!important;font-size:.58rem!important}
  .footer__bottom p+p{margin-top:5px!important}

  /* Mobile action dock: four destinations cover the majority of visits. */
  .mobile-dock{position:fixed;z-index:70;right:8px;bottom:max(8px,env(safe-area-inset-bottom));left:8px;display:grid;height:58px;grid-template-columns:repeat(4,1fr);align-items:center;padding:5px;border:1px solid rgba(198,166,106,.22);border-radius:18px;background:rgba(11,11,13,.94);box-shadow:0 16px 45px rgba(0,0,0,.3);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
  .mobile-dock a{display:grid;min-width:0;height:48px;place-items:center;align-content:center;gap:2px;border-radius:13px;color:rgba(244,241,234,.58);font-size:.54rem;font-weight:700;letter-spacing:.02em;line-height:1;text-align:center;text-decoration:none;transition:.2s ease}
  .mobile-dock__icon{display:grid;width:18px;height:18px;place-items:center}
  .mobile-dock a.is-active{color:#f0d99e;background:rgba(198,166,106,.09)}
  .mobile-dock__primary{color:#111!important;background:linear-gradient(135deg,#dfc27d,#b99148)!important}
  .client-help{right:12px!important;bottom:calc(var(--mobile-dock) + 12px + env(safe-area-inset-bottom))!important}

  /* Motion is tactile, not decorative. */
  .reveal-ready [data-reveal]{transform:translateY(10px)!important;transition-duration:.42s!important}
  .button:hover,.info-card:hover,.shop-landing-card:hover,.contact-route:hover,.woocommerce ul.products li.product:hover{transform:none!important;box-shadow:none!important}
}

@media (max-width:520px){
  :root{--mobile-gutter:14px}
  .page-hero h1,.page-hero--section h1,.display-title{font-size:clamp(2.15rem,10.5vw,2.9rem)!important}
  .hero h1{font-size:clamp(2.8rem,14vw,3.7rem)!important}
  .home-entry__route strong{font-size:1.03rem!important}
  .home-entry__route{min-height:88px!important}
  .reward-grid{grid-template-columns:1fr!important}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.91rem!important}
  .woocommerce ul.products li.product .button{font-size:.56rem!important;letter-spacing:.04em!important}
}

@media (max-width:370px){
  .home-entry__routes,.shop-landing-grid,.project-categories,.icon-grid,.woocommerce ul.products{grid-template-columns:1fr!important}
  .home-entry__route,.home-entry__route:nth-child(2n),.home-entry__route:nth-child(n+3){border-right:0!important;border-bottom:1px solid rgba(17,17,15,.16)!important}
  .home-entry__route:last-child{border-bottom:0!important}
  .portfolio-grid{grid-template-columns:1fr!important}
}

@media (prefers-reduced-motion:reduce){
  .site-nav,.mobile-dock a,.reveal-ready [data-reveal]{transition:none!important}
}
@media (max-width:900px){
  .mobile-dock[aria-hidden="true"]{opacity:0;pointer-events:none;transform:translateY(12px)}
  body.woocommerce-checkout,body.woocommerce-cart{padding-bottom:0}
  body.woocommerce-checkout .mobile-dock,body.woocommerce-cart .mobile-dock{display:none!important}
}
