/* Selah Aria · site-wide styles: loader, phone menu, scroll reveals, responsive layout */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;overflow-x:hidden;overflow-x:clip}
body{margin:0;background:#F5F0E8;overflow-x:hidden;overflow-x:clip;width:100%;max-width:100%}
/* the page wrapper never lets anything spill sideways (iPhone Safari ignores body overflow) */
body>div:not(.sa-loader),body>main{overflow-x:hidden;overflow-x:clip;max-width:100%}
section,footer,header{max-width:100%}
img{max-width:100%}
svg{max-width:100%}
:focus-visible{outline:2px solid #A4553B;outline-offset:3px}

/* Hide Netlify's badge and drawer if they ever appear */
#netlify-modal-root,.netlify-badge,iframe[src*="netlify"]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important}

/* Loading screen: the seal pulses while the page loads */
.sa-loader{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:#F5F0E8;transition:opacity .7s ease,visibility .7s ease}
html.is-loaded .sa-loader{opacity:0;visibility:hidden;pointer-events:none}
html:not(.js) .sa-loader{display:none}
.sa-loader-seal{position:relative;width:120px;height:120px}
.sa-loader-seal img{position:relative;width:120px;height:120px;object-fit:contain;animation:sa-l-pulse 1.8s ease-in-out infinite}
.sa-loader-seal span{position:absolute;inset:0;border-radius:50%;border:1.5px solid #D18C74;animation:sa-l-ring 2.4s ease-out infinite}
.sa-loader-seal span+span{border-color:#A7B49B;animation-delay:1.2s}
.sa-loader p{margin:0;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:26px;color:#5F5A53;animation:sa-l-breathe 2.4s ease-in-out infinite}
@keyframes sa-l-pulse{0%,100%{transform:scale(.94)}50%{transform:scale(1.06)}}
@keyframes sa-l-ring{0%{transform:scale(.8);opacity:.8}100%{transform:scale(1.9);opacity:0}}
@keyframes sa-l-breathe{0%,100%{opacity:.45}50%{opacity:1}}

/* Drawings and motion play once a section scrolls into view */
html.js .will-reveal:not(.in-view) *{animation-play-state:paused!important}

/* Booking messages */
.bk-msg{margin:10px 0 0;min-height:1em;font-size:14px;color:#A4553B}
.bk-card button[disabled]{opacity:.6;cursor:wait}

/* Phone menu button (added by site.js) */
.sa-menu-btn{display:none}

/* Thank-you and 404 pages */
.ty{min-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px 22px;font-family:Inter,sans-serif;color:#333}
.ty-seal{width:110px;height:auto;animation:sa-l-pulse 3s ease-in-out infinite}
.ty-k{margin:26px 0 0;font-size:13px;letter-spacing:.3em;text-transform:uppercase;color:#5F5A53}
.ty h1{margin:14px 0 0;font-family:'Cormorant Garamond',serif;font-weight:300;font-size:clamp(56px,12vw,120px);line-height:.95}
.ty h1 em{color:#A4553B}
.ty-p{max-width:520px;margin:20px 0 0;font-size:18px;line-height:1.7;color:#5F5A53}
.ty-btn{display:inline-flex;align-items:center;gap:10px;min-height:56px;margin-top:34px;padding:0 30px;border-radius:999px;background:#A4553B;color:#F5F0E8;text-decoration:none}
.ty-btn:hover{background:#7E3F2B;color:#F5F0E8}

/* ---------- Laptop ---------- */
@media (max-width:1280px){
[style*="font-size: 150px"],
[style*="font-size: 140px"],
[style*="font-size: 128px"],
[style*="font-size: 120px"],
[style*="font-size: 118px"],
[style*="font-size: 110px"]{font-size:clamp(64px,9vw,118px)!important}
}

/* ---------- Responsive layout ----------
   Sizes, spacing and type already scale fluidly (see _build/build.py).
   These rules only change how columns stack. */
@media (max-width:1100px){
  .rg-many{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rg-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
}
@media (max-width:900px){
  .rg-2{grid-template-columns:minmax(0,1fr)!important}
  .rg-row{grid-template-columns:minmax(0,1fr)!important}
  [style*="display: flex"][style*="justify-content: space-between"]{flex-wrap:wrap!important}
  [style*="padding: clamp(21px, 4.167vw, 60px) clamp(21px, 4.167vw, 60px) clamp(21px, 4.167vw, 60px) 0"]{padding:24px 0!important;border-right:0!important}
  [style*="padding: clamp(21px, 4.167vw, 60px) 0 clamp(21px, 4.167vw, 60px) clamp(21px, 4.167vw, 60px)"]{padding:24px 0!important}
}
/* four project steps: 4 across, then 2 by 2, then one column (never 3 + 1) */
@media (max-width:1100px){[style*="repeat(auto-fit, minmax(220px, 1fr))"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:560px){[style*="repeat(auto-fit, minmax(220px, 1fr))"]{grid-template-columns:minmax(0,1fr)!important}}
/* a row of exactly three stays three across until phone size: no lonely last card */
@media (max-width:1100px) and (min-width:641px){
  .rg-many:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:640px){
  .rg-many{grid-template-columns:minmax(0,1fr)!important}
  .sa-swatches{flex-wrap:wrap!important}
  .sa-swatches>div{flex:1 1 calc(50% - 18px)!important;height:150px!important}
}

/* ---------- Phone ---------- */
@media (max-width:760px){
  header{padding:16px 20px!important;flex-wrap:nowrap!important;position:relative!important}
  header>a span{display:none}
  header nav[aria-label="Main"]{gap:10px!important;flex-wrap:nowrap!important}
  header nav[aria-label="Main"]::after{display:none!important;content:none!important}
  header nav[aria-label="Main"] a:not(:last-child){display:none!important}
  .sa-menu-btn{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:none;width:46px;height:46px;border:1px solid #D8CEC1;border-radius:50%;background:transparent;cursor:pointer;margin-left:10px}
  .sa-menu-btn span{display:block;width:18px;height:1.5px;background:#333;transition:transform .3s ease}
  header.nav-open .sa-menu-btn span:first-child{transform:translateY(3.75px) rotate(45deg)}
  header.nav-open .sa-menu-btn span:last-child{transform:translateY(-3.75px) rotate(-45deg)}
  header.nav-open nav[aria-label="Main"]{position:absolute!important;top:100%;left:12px;right:12px;z-index:50;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:10px 18px 18px;border-radius:18px;background:#FBF8F3;border:1px solid #D8CEC1;box-shadow:0 24px 50px rgba(43,43,43,.14)}
  header.nav-open nav[aria-label="Main"] a{display:flex!important;align-items:center;min-height:52px;border-bottom:1px solid #EFE8DD;font-size:18px!important}
  header.nav-open nav[aria-label="Main"] a:last-child{justify-content:center;margin-top:14px;border:0}
  footer{padding-left:22px!important;padding-right:22px!important}
  footer nav{gap:32px!important}
}
/* long words never push past the edge */
h1,h2,h3,h4,p,li,a,span,label{overflow-wrap:break-word}

/* stacked layouts: the breathing rings stay inside their own space */
@keyframes sa-ripple-sm{0%{transform:scale(.7);opacity:.6}100%{transform:scale(1.3);opacity:0}}
@media (max-width:900px){[style*="animation: sa-ripple"]{animation-name:sa-ripple-sm!important}}
/* phones: calmer type so pages don't feel zoomed in */
@media (max-width:600px){
  [style*="letter-spacing: 0.34em"]:not([data-fitw] *){letter-spacing:.22em!important}
  [style*="font-size: 18px"]:not([data-fitw] *){font-size:16px!important}
  [style*="font-size: 17px"]:not([data-fitw] *){font-size:15.5px!important}
  [style*="font-size: 16px"]:not([data-fitw] *){font-size:15px!important}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.sa-loader{display:none}}
