/* shiftedtech · components
   Buttons, header, hero skyline, floors, cards, chips and footer, copied from
   the portfolio (reference/portfolio/assets/site.css) or built in its style.
   The portfolio's .lobby is .hero here. */

/* --------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: var(--r-sm); border: 1.5px solid var(--green);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out),
              border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--green); }
.btn--ghost:hover { background: var(--green-light); color: var(--green-dark); }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn--whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--black); }
.btn--whatsapp:hover { background: color-mix(in oklab, var(--whatsapp) 85%, var(--black)); border-color: color-mix(in oklab, var(--whatsapp) 85%, var(--black)); color: var(--black); }
.btn--whatsapp svg { fill: currentColor; flex: none; }

/* ----------------------------------------------------------- header ---- */
.bar { position: relative; z-index: 5; }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--bar-h); }
.bar__logo { display: flex; align-items: center; min-height: 48px; border-radius: var(--r-sm); }
.bar__logo img { width: auto; height: 46px; }
/* Text logo until shiftedtech has an image logo (STATUS.md open question 1). */
.logo-text { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--black); text-decoration: none; }
.logo-text:hover { color: var(--black); }
.logo-text span { color: var(--green); }

/* ------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--bar-h));
  padding-top: calc(var(--bar-h) + clamp(1.5rem, 5vh, 4rem));
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 38%, var(--green-light) 100%);
  overflow: clip;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.75rem);
  font-weight: 700; line-height: .98; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__headline {
  margin: .55rem 0 0;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--green);
}
.hero__sub { margin: 1rem 0 0; max-width: 44ch; color: var(--grey-600); font-size: 1.125rem; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------------------------------------------------------- skyline ---- */
.skyline {
  position: relative; z-index: 1;
  margin-top: auto;
  height: clamp(220px, 40vh, 420px);
  min-height: 0;
  pointer-events: none;
}
.skyline__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.skyline__label {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(.75rem, 2.5vh, 1.5rem);
  margin: 0 auto; width: 100%; max-width: 72rem; padding-inline: clamp(1rem, 5vw, 4.5rem);
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grey-600);
  font-variant-numeric: tabular-nums;
}

/* skyline planes: transform only, driven from skyline.js */
.sk-layer { will-change: transform; }
.sk-far { fill: var(--grey-200); }
.sk-flyer { transform-box: view-box; transform-origin: 1012px 198px; animation: sk-turn 90s linear infinite; }
.sk-flyer circle[r="4"] { fill: var(--white); }
.win--a { fill: var(--amber); }
.win--g { fill: var(--green); }
.win { animation: sk-twinkle var(--tw, 5s) ease-in-out var(--td, 0s) infinite alternate; }
.glow { animation: sk-glow var(--gl, 4.5s) ease-in-out var(--gd, 0s) infinite alternate; transform-box: fill-box; transform-origin: 50% 50%; }
.hero.is-offscreen :is(.sk-flyer, .win, .glow) { animation-play-state: paused; }
@keyframes sk-turn { to { transform: rotate(360deg); } }
@keyframes sk-twinkle { 0%, 55% { opacity: 1; } 100% { opacity: .18; } }
@keyframes sk-glow { from { opacity: .45; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .sk-flyer, .win, .glow { animation: none; }
  .sk-layer { will-change: auto; }
}

/* ----------------------------------------------------------- floors ---- */
/* One section per lift floor. Basement floors stay light (DESIGN.md §7). */
.floor { --floor-bg: var(--white); position: relative; padding-block: clamp(4.5rem, 9vw, 8.5rem); background: var(--floor-bg); }
.floor--basement { --floor-bg: var(--light-grey); }
.floor--alt { --floor-bg: var(--off-white); border-top: 1px solid var(--grey-100); }
.floor--roof { --floor-bg: var(--green-light); }

.floor__title { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.5rem); margin: 0 0 clamp(2rem, 4vw, 3.25rem); }
/* the landing sign: big outlined floor number beside the title. Decorative
   (aria-hidden) because the heading's tag line already says the floor. */
.floor__num {
  flex: none;
  font-size: clamp(3.5rem, 2rem + 6vw, 7rem); font-weight: 700; line-height: .9; letter-spacing: -0.04em;
  /* Inter's glyphs overlap inside, so a plain outline shows stray inner lines.
     Draw the stroke first, then fill with the floor's own background on top. */
  color: var(--floor-bg); -webkit-text-stroke: 3px var(--grey-300); paint-order: stroke fill;
  font-variant-numeric: tabular-nums;
}
.floor__tag { margin: 0 0 .35rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.h2 {
  margin: 0;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance;
}
.floor__lede { margin: -1.25rem 0 clamp(1.75rem, 3.5vw, 2.5rem); max-width: 60ch; color: var(--grey-600); font-size: 1.05rem; text-wrap: pretty; }
.prose { max-width: 60ch; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.1rem; }
.lede { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; }
.lede .num { color: var(--green); }

.floor__note { margin: 1.75rem 0 .6rem; color: var(--grey-600); font-size: .95rem; }
.prose .floor__note { margin: 0; }
.floor__ask { margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0; font-weight: 600; }
.floor__ask a { display: inline-flex; align-items: center; min-height: 44px; }

/* floor 2: escalator (SEO, grey + soft green) vs express lift (Ads, green) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); max-width: 48rem; }
.compare__h { margin: 0 0 .75rem; font-size: 1.25rem; letter-spacing: -0.015em; }
.compare__h span { font-weight: 500; color: var(--grey-600); }
.compare__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.compare__list li { padding-top: .5rem; border-top: 1px solid var(--grey-200); }
.compare__col--esc { background: var(--green-light); border-color: var(--grey-200); }
.compare__col--esc .compare__h { color: var(--grey-600); }
.compare__col--lift { border: 2px solid var(--green); }
.compare__col--lift .compare__h { color: var(--green-dark); }
.compare__both { margin: 1rem 0 0; font-weight: 600; }

/* --------------------------------------------------- package cards ---- */
.packages { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; max-width: 40rem; }
.pkg { display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid var(--green); }
.pkg__name { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.pkg__for { margin: 0 0 .5rem; color: var(--grey-600); }
.pkg__price { margin: 0; display: flex; align-items: baseline; gap: .15rem; }
.pkg__amount { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.pkg__ask { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); }
.pkg__per { color: var(--grey-600); font-weight: 500; }
.pkg__adnote { margin: .25rem 0 .75rem; font-size: .95rem; color: var(--grey-600); }
.pkg__h { margin: .75rem 0 .25rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.pkg__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.pkg__list li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .4rem; line-height: 1.45; }
.pkg__list--in .pkg__mark { color: var(--green); font-weight: 700; }
.pkg__list--out li { color: var(--grey-600); }
.pkg__go { margin-top: 1.25rem; align-self: flex-start; }
.pkg__fallback { font-weight: 600; }

/* ------------------------------------------------- free-check form ---- */
/* single column, labels above fields, 48px inputs (DESIGN.md §6) */
.form { max-width: 36rem; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); display: grid; gap: .25rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; }
.field__opt { font-weight: 400; color: var(--grey-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem;
  font: inherit; font-size: 1rem; color: var(--black); background: var(--white);
  border: 1.5px solid var(--grey-500); border-radius: var(--r-sm);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: var(--red); background: var(--red-light); }
.field__err { margin: 0; min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--red-dark); }
.field__err:not(:empty)::before { content: "⚠ "; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; align-items: start; margin-top: .5rem; }
.check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--green); }
.check label { line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: 1rem; justify-self: start; }
.form__status { margin: .75rem 0 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--ok { padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--green-light); color: var(--green-dark); }
.form__status--err { padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--red-light); color: var(--red-dark); }
.form__status .btn { margin-top: .5rem; }
.form__or { margin: 2rem 0 0; font-weight: 600; }

/* ------------------------------------------- plain pages (privacy, 404) ---- */
.page { min-height: 60svh; }
.page__body { margin-top: 1.5rem; }
.page__body h2 { margin: 2rem 0 0; font-size: 1.3rem; letter-spacing: -0.015em; }
.page__body h2 + p { margin-top: .5rem; }
.page__updated { color: var(--grey-600); font-size: .95rem; }

/* --------------------------------------------------------------- FAQ ---- */
.faq { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: 48rem; }
.faq__h { margin: 0 0 1rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.02em; }
.faq details { border-top: 1px solid var(--grey-200); }
.faq details:last-child { border-bottom: 1px solid var(--grey-200); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding-block: .75rem; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.4rem; font-weight: 500; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1rem; max-width: 62ch; color: var(--grey-600); }

/* ------------------------------------------------------------ cards ---- */
.card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }

/* ------------------------------------------------------------ chips ---- */
/* static tags (e.g. service types) */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .95rem; line-height: 1.3; padding: .45rem .8rem;
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--r-sm);
}
/* pressable filter chips (portfolio badge-wall filters); state shown by fill AND aria-pressed */
.chip-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .9rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--grey-300); color: var(--black);
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.chip-btn:hover { border-color: var(--green); }
.chip-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }

/* ----------------------------------------------------------- footer ---- */
/* social links: brand marks in the site green, not each brand's own colour */
.social { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.social__link {
  display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 60px;
  color: var(--grey-600); text-decoration: none; font-size: .8125rem; font-weight: 600;
}
.social__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--green-dark);
  border: 1px solid color-mix(in oklab, var(--green) 22%, transparent);
  box-shadow: 0 1px 2px hsl(0 0% 7% / .06), 0 8px 18px -10px hsl(152 100% 12% / .35);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.social__icon svg { fill: currentColor; }
.social__link:hover { color: var(--green-dark); }
.social__link:hover .social__icon { background: var(--green); color: var(--white); transform: translateY(-2px); }
.social__link:active .social__icon { transform: translateY(0); }
.social__link:focus-visible { outline: none; }
.social__link:focus-visible .social__icon { outline: 2px solid var(--green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .social__link:hover .social__icon { transform: none; } }

.foot { border-top: 1px solid color-mix(in oklab, var(--green) 20%, transparent); }
.foot__in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.25rem; }
.foot img { width: auto; height: 34px; }
.foot p { margin: 0; font-size: .9rem; color: var(--grey-600); }
.foot__links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ------------------------------------------------ the floor indicator ---- */
/* Copied from the portfolio. Fixed to the right edge; text columns reserve
   room for it (see .wrap below), so it never sits on top of words. */
.lift-nav { position: fixed; z-index: 60; right: 14px; top: 50%; translate: 0 -50%; }
/* With JS, the indicator rides the right edge like the browser's scrollbar
   thumb: top of the page = top of the screen, bottom = bottom. */
.lift-nav.is-tracking { top: 0; translate: none; will-change: transform; }
.lift-nav.is-tracking[data-half="top"] .lift-nav__panel { top: 0; translate: none; }
.lift-nav.is-tracking[data-half="bottom"] .lift-nav__panel { top: auto; bottom: 0; translate: none; }
.lift-nav__display {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .7rem .45rem .9rem;
  background: var(--white); color: var(--black);
  border: 1px solid var(--grey-300); border-radius: var(--r);
  box-shadow: 0 2px 4px hsl(0 0% 7% / .08), 0 10px 24px -10px hsl(0 0% 7% / .28);
  font: inherit; cursor: pointer; font-weight: 600;
  transition: border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.lift-nav__display:hover { border-color: var(--green); }
.lift-nav__display:active { transform: translateY(1px); }
.lift-nav__floor {
  display: grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding-inline: .3rem;
  border-radius: var(--r-sm); background: var(--green-light); color: var(--green-dark);
  font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.lift-nav__floor.is-ding { animation: ding 700ms var(--ease-out); }
@keyframes ding { 0% { background: var(--green); color: var(--white); } 100% { background: var(--green-light); color: var(--green-dark); } }
.lift-nav__name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .875rem; letter-spacing: .02em; }

/* the lift icon: frame, call arrows, two doors. The arrow for the direction of
   travel lights up while you scroll; the doors part on hover. */
.lift-nav__icon { display: grid; place-items: center; }
.lift-nav__icon svg { display: block; overflow: visible; }
.li-frame { fill: none; stroke: var(--green-dark); stroke-width: 1.7; stroke-linejoin: round; }
.li-up, .li-down { fill: var(--grey-300); transition: fill 160ms var(--ease-out); }
.lift-nav[data-dir="up"] .li-up, .lift-nav[data-dir="down"] .li-down { fill: var(--green); }
.li-door { fill: var(--green-light); stroke: var(--green); stroke-width: 1; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lift-nav__display:hover .li-door--l { transform: translateX(-1.5px); }
  .lift-nav__display:hover .li-door--r { transform: translateX(1.5px); }
}
@media (prefers-reduced-motion: reduce) { .li-door { transition: none; } .lift-nav__floor.is-ding { animation: none; } }

.lift-nav__panel {
  position: absolute; right: calc(100% + .6rem); top: 50%; translate: 0 -50%;
  list-style: none; margin: 0; padding: .6rem;
  background: var(--white); border: 1px solid var(--grey-300); border-radius: var(--r);
  box-shadow: 0 4px 8px hsl(0 0% 7% / .08), 0 22px 44px -16px hsl(0 0% 7% / .3);
  min-width: 13.5rem;
}
.lift-nav__panel[hidden] { display: none; }
.lift-nav__panel a {
  display: flex; align-items: center; gap: .8rem; min-height: 46px; padding: .3rem .6rem .3rem .35rem;
  border-radius: var(--r-sm); color: var(--black); text-decoration: none; font-weight: 500;
}
.lift-nav__panel a:hover { background: var(--light-grey); color: var(--black); }
.key {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--grey-400); background: var(--off-white);
  font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 0 var(--grey-200);
}
.lift-nav__panel a[aria-current="true"] .key { border-color: var(--green); background: var(--green-light); color: var(--green-dark); box-shadow: 0 0 0 3px color-mix(in oklab, var(--green) 22%, transparent); }
.lift-nav__panel a[aria-current="true"] { font-weight: 700; }

/* reserve the right edge for the indicator wherever the margin is too thin */
@media (max-width: 1279px) {
  .wrap { padding-right: max(clamp(1rem, 5vw, 4.5rem), 84px); }
}

/* sticky WhatsApp (phones only; desktop has the header button). Hidden on the
   rooftop, which has its own big WhatsApp button. */
.wa-float { display: none; }

/* ------------------------------------------------------------ phone ---- */
@media (max-width: 700px) {
  .bar__logo img { height: 38px; }
  .hero { min-height: 0; padding-top: calc(var(--bar-h) + 1rem); }
  .hero__ctas .btn { flex: 1 1 auto; }
  .skyline { height: 195px; margin-top: 1.5rem; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .compare { grid-template-columns: 1fr; }
  /* phone: the indicator is a slim tab on the right edge, icon and floor only */
  .wrap { padding-right: 52px; }
  .lift-nav { right: 0; }
  .lift-nav__display { border-right: 0; border-radius: var(--r) 0 0 var(--r); padding: .55rem .4rem .65rem .45rem; gap: .4rem; min-width: 46px; }
  .lift-nav__name { display: none; }
  .lift-nav__icon svg { width: 18px; height: 23px; }
  .lift-nav__floor { min-width: 1.75rem; height: 1.75rem; font-size: 1rem; }
  .wa-float {
    display: inline-flex; position: fixed; z-index: 55; left: 1rem; bottom: 1rem;
    box-shadow: 0 2px 4px hsl(0 0% 7% / .12), 0 12px 24px -10px hsl(0 0% 7% / .35);
    transition: opacity 200ms var(--ease-out), visibility 200ms;
  }
  .wa-float.is-hidden { opacity: 0; visibility: hidden; }
  .foot { padding-bottom: 5rem; } /* room so the float never covers the footer text */
  .social { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem .25rem; }
  .social__link { min-width: 0; font-size: .7rem; }
  .social__icon { width: 50px; height: 50px; }
}
