/* Site-wide typography (v3): one family, Manrope, for headings and body text.
   Headings go thin with a bold key phrase (see sd-hero-sky.css on the homepage);
   body text uses Manrope 400 instead of DM Sans. Loaded after smartdivs-home.css. */
:root{--sd-body:'Manrope',system-ui,sans-serif;--body:'Manrope',system-ui,sans-serif}
body{font-family:var(--sd-body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* header: official SmartDivs wordmark (text follows the header colour, cube stays red) */
.hd__brand .hd__logo{display:block;height:28px;width:auto;flex:none}
@media (max-width:900px){.hd__brand .hd__logo{height:24px}}

/* ===== footer (v3): the original red gradient, contact-first layout ===== */
.fx{position:relative;overflow:visible;color:#fff;padding:clamp(110px,10vw,150px) 0 56px;
  background:linear-gradient(180deg,var(--sd-bg) 0%,#F0D3CF 10%,#E2655D 26%,#C3221F 42%,#6A1414 64%,#1A0809 82%,#0B0B0E 100%)}
html[data-theme="dark"] .fx{background:linear-gradient(180deg,var(--sd-bg) 0%,#3A1112 18%,#A81F1C 40%,#5A1112 64%,#140708 84%,#0B0B0E 100%)}
.fx a{color:inherit;text-decoration:none}
.fx__wrap{position:relative;z-index:1}
.fx__h{margin:0 0 16px;font:500 11px/1 var(--sd-mono);letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.fx__h--gap{margin-top:26px}
/* top: email and phone as large links. The cube is taken out of the flow (absolute), so the footer's height
   depends only on its content: it stands on the top hairline and rises up out of the footer, floating gently. */
.fx__top{position:relative;padding-bottom:clamp(36px,4vw,56px)}
.fx__big{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.fx__link{display:inline-flex;align-items:center;gap:20px;font:200 clamp(34px,4.6vw,74px)/1.1 var(--sd-display);letter-spacing:-.04em;color:#fff}
.fx__link span{background:linear-gradient(currentColor,currentColor) 0 100%/0 1px no-repeat;transition:background-size .45s cubic-bezier(.2,.7,.2,1)}
.fx__link:hover span{background-size:100% 1px}
.fx__link i{display:grid;place-items:center;width:clamp(36px,3vw,48px);height:clamp(36px,3vw,48px);border:1px solid rgba(255,255,255,.35);border-radius:50%;transition:background .3s,border-color .3s,transform .3s}
.fx__link i svg{width:45%;height:45%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fx__link:hover i{background:#fff;color:#C3221F;border-color:#fff;transform:rotate(45deg)}
.fx__cube{position:absolute;right:0;bottom:clamp(36px,4vw,56px);z-index:2;pointer-events:none;animation:fxFloat 6s ease-in-out infinite}
.fx__cube .cbh--fs{position:relative;height:clamp(220px,25vw,370px);width:auto;aspect-ratio:1;color:#fff;opacity:.92;--sw:1.4;transform:none!important;filter:drop-shadow(0 30px 40px rgba(60,0,0,.35))}
.fx__cube .cbh--fs svg{height:100%;width:auto}
.fx__cube .cbh--fs path{stroke:#fff}
@keyframes fxFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@media (prefers-reduced-motion:reduce){.fx__cube{animation:none}}
.cbh--fs path{transition:none;animation:cbLoop 9s cubic-bezier(.65,0,.35,1) infinite}
.cbh--fs path:nth-child(2){animation-delay:.6s}
.cbh--fs path:nth-child(3){animation-delay:1.2s}
/* middle: one hairline row with WhatsApp + address, navigation, social */
.fx__row{display:grid;grid-template-columns:1fr 1.6fr 1fr;border-top:1px solid rgba(255,255,255,.22)}
.fx__col{padding:28px 28px 32px;border-right:1px solid rgba(255,255,255,.12)}
.fx__col:first-child{padding-left:0}
.fx__col:last-child{border-right:0}
.fx__a,.fx__p{margin:0;font-size:16px;color:#fff}
.fx__a{border-bottom:1px solid rgba(255,255,255,.4);padding-bottom:2px;transition:border-color .25s}
.fx__a:hover{border-color:#fff}
.fx__nav{display:flex;flex-wrap:wrap;gap:12px 28px}
.fx__soc{display:flex;flex-wrap:wrap;gap:12px 24px}
.fx__nav a,.fx__soc a{font-size:16px;color:rgba(255,255,255,.85);transition:color .25s}
.fx__nav a:hover,.fx__soc a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px}
/* bottom line (extra space below keeps it clear of the floating back-to-top button) */
.fx__base{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 0;border-top:1px solid rgba(255,255,255,.22)}
.fx__logo{display:flex;align-items:center;gap:12px;color:rgba(255,255,255,.65);font-size:13.5px}
.fx__logo b{color:#fff}
.fx__legal{display:flex;gap:22px;margin:0}
.fx__legal a{color:rgba(255,255,255,.65);font-size:13.5px}
.fx__legal a:hover{color:#fff}
.fx__copy{margin:0;font-size:13.5px;color:rgba(255,255,255,.5)}
/* big cube on the right, spanning the contact block and the columns; the columns stop short of it so nothing overlaps and the footer height stays the same */
@media (min-width:901px){
  .fx{--cube:clamp(300px,29vw,440px)}
  .fx__cube{top:0;bottom:auto}
  .fx__cube .cbh--fs{height:var(--cube)}
  .fx__top{padding-right:calc(var(--cube) + 40px)}
  .fx__row{margin-right:calc(var(--cube) + 40px);grid-template-columns:1fr 1.3fr 1fr}
}
@media (max-width:900px){.fx__cube{display:none}.fx__row{grid-template-columns:1fr}.fx__col,.fx__col:first-child{padding:24px 0;border-right:0;border-bottom:1px solid rgba(255,255,255,.12)}.fx__col:last-child{border-bottom:0}.fx__base{flex-direction:column;align-items:flex-start}}

/* back to top: fixed bottom right, appears after scrolling down */
/* red on light backgrounds; white (with a red arrow) on dark or red backgrounds (class set by the script in Footer.astro) */
.totop{position:fixed;right:clamp(16px,2vw,28px);bottom:clamp(16px,2vw,28px);z-index:90;display:grid;place-items:center;width:48px;height:48px;background:#D92D29;color:#fff;border:0;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .3s,transform .3s,visibility .3s,background .3s,color .3s}
.totop.on{opacity:1;visibility:visible;transform:none}
.totop:hover{background:#B8231F}
.totop--inv{background:#fff;color:#D92D29}
.totop--inv:hover{background:#F4F3F0}
.totop svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html.bk-open .totop{opacity:0;visibility:hidden}

/* ===== mobile bottom menu: square, full width, fixed to the bottom, always visible =====
   (it used to float with rounded corners and slide away on scroll, which left an empty strip under the footer) */
@media (max-width:767px){
  /* app-style tab bar, refreshed: frosted light bar with a hairline, thin icons, active tab = red icon + short red
     line on top, compact red square for "Let's talk" in the middle (dark bar in night mode) */
  .tb{left:0;right:0;bottom:0;height:calc(62px + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom);border-radius:0;transform:none!important;background:rgba(250,249,246,.9);-webkit-backdrop-filter:saturate(1.8) blur(20px);backdrop-filter:saturate(1.8) blur(20px);box-shadow:0 -1px 0 rgba(20,20,20,.09);grid-template-columns:1fr 1fr 64px 1fr 1fr}
  html[data-theme="dark"] .tb{background:rgba(14,14,17,.88);box-shadow:0 -1px 0 rgba(255,255,255,.09)}
  .tb__ink{top:0;width:28px!important;height:2px;border-radius:0;background:#D92D29;transform:translateX(calc(var(--ix,6px) + var(--iw,60px) / 2 - 14px))}
  .tb__item{height:62px;gap:5px;color:#8A8D94;font:600 10.5px/1 var(--sd-body);letter-spacing:.01em}
  .tb__item svg{width:22px;height:22px;stroke-width:1.6}
  .tb__item.is-on{color:#141414}
  html[data-theme="dark"] .tb__item.is-on{color:#fff}
  .tb__item.is-on svg{stroke:#D92D29;transform:none}
  .tb__talk{width:46px;height:46px;margin:0;border-radius:0;background:#D92D29;box-shadow:0 8px 20px rgba(217,45,41,.32)!important}
  .tb__talk:active{transform:scale(.94);background:#B8231F}
  .tb__talk svg{width:22px;height:22px}
  .tb__talk::before{display:none}
  .tb__hint{border-radius:0}
  body{padding-bottom:0!important}
  .fx{padding-bottom:calc(40px + 62px + env(safe-area-inset-bottom))}
  .totop{bottom:calc(76px + env(safe-area-inset-bottom))}
  .tray{bottom:calc(76px + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.cbh--fs path{animation:none;stroke-dashoffset:0}}
