/* cfmechanics.com: the company's look (black glass), the same family as Service Master and the customer site: a near-black page
   with a soft glow, dark glassy cards, pill buttons, and ONE accent colour used for the thing we want pressed.
   The public site is always dark: it is the company's face, and the shop's photos sit best on black.
   Brand values live here, in :root. A rebrand changes these lines (and the logo file), not the pages.
   The typefaces are served from this site; nothing is fetched from anywhere else. */
@font-face { font-family: "Sora"; src: url("/static/fonts/sora-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/open-sans-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 800; font-display: swap; }

:root {
  color-scheme: dark;
  --accent: #e88850; --accent-hover: #f0a066; --on-accent: #1a0e05;
  --shell: #0b0b0d; --shell-edge: rgba(255, 255, 255, .08);
  --page: #070708; --card: #0f0f11; --line: rgba(255, 255, 255, .085); --soft: rgba(255, 255, 255, .055); --soft-strong: rgba(255, 255, 255, .13);
  --glow: rgba(255, 255, 255, .17); --sheen: rgba(255, 255, 255, .06);
  --heading: #f6f6f7; --text: #dcdce0; --muted: #9a9ca5;
  --green: #4cc38a; --green-bg: rgba(76, 195, 138, .13); --amber: #f0b45a; --amber-bg: rgba(240, 180, 90, .13);
  --display: "Sora", "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --width: 1120px; --gutter: 24px;
}

* { box-sizing: border-box; }
html { font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--page); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: radial-gradient(1100px 520px at 50% -140px, var(--glow), transparent 68%) no-repeat; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--heading); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
a { color: var(--heading); text-decoration: underline; text-decoration-color: var(--soft-strong); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 36rem; }
.eyebrow { font-family: var(--display); font-size: .8rem; font-weight: 500; color: var(--accent); margin: 0 0 .7rem; }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: .5rem .9rem; border-radius: 0 0 10px 0; z-index: 30; }
.skip:focus { left: 0; }

/* ---- the bar across the top: stays with you as you scroll ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 13, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--shell-edge); }
.top-inner { max-width: var(--width); margin: 0 auto; padding: .7rem var(--gutter); display: flex; align-items: center; gap: 1.6rem; }
.brand img { height: 40px; width: auto; }
.menu { display: flex; gap: .25rem; }
.menu a { font-family: var(--display); font-size: .86rem; font-weight: 500; color: rgba(255, 255, 255, .72); text-decoration: none; padding: .42rem .8rem; border-radius: 999px; white-space: nowrap; }
.menu a:hover { color: #fff; background: var(--soft); }
.menu a[aria-current] { color: #fff; background: var(--soft-strong); }
.doors { margin-left: auto; display: flex; gap: .6rem; }

/* ---- buttons: pills; the coloured one is the thing to press ---- */
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); border: 1px solid transparent; border-radius: 999px;
  padding: .58rem 1.15rem; font-family: var(--display); font-weight: 600; font-size: .86rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.button:hover { background: var(--accent-hover); }
.button.quiet { background: rgba(255, 255, 255, .07); color: #fff; border-color: var(--soft-strong); font-weight: 500; }
.button.quiet:hover { background: rgba(255, 255, 255, .14); }
.button.big { padding: .85rem 1.55rem; font-size: .98rem; }

/* ---- sections ---- */
.section { padding: 4.2rem 0 0; }
.section.tight { padding-top: 2.6rem; }
.section h2 { margin-bottom: 1.8rem; max-width: 40rem; }
.after { margin: 1.8rem 0 0; }

/* ---- the top of the home page ---- */
.hero { padding: 4.2rem 0 1rem; }
.hero-grid, .page-head-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3.2rem; align-items: center; }
.hero .lead, .page-head .lead { margin-top: 1.3rem; }
.hero-doors { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hero-call { margin-top: 1.1rem; }

/* a photo in its frame */
.frame { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); aspect-ratio: 1 / 1; }
.frame.wide { aspect-ratio: 4 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .5)); pointer-events: none; }
.frame-note { position: absolute; z-index: 1; left: 1rem; bottom: 1rem; margin: 0; padding: .55rem .95rem; border-radius: 999px; font-family: var(--display); font-size: .8rem; color: #fff;
  background: rgba(11, 11, 13, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--soft-strong); }
.frame-note strong { color: var(--accent); font-weight: 600; }

/* ---- the top of every other page ---- */
.page-head { padding: 3.6rem 0 1rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 44rem; }

/* ---- cards ---- */
.card { background: linear-gradient(150deg, var(--sheen) 0%, transparent 52%), var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.5rem 1.4rem; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text); font-size: .96rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
a.card.door { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card.door:hover { border-color: var(--soft-strong); transform: translateY(-2px); }
.door .more { margin-top: auto; padding-top: .9rem; font-family: var(--display); font-size: .84rem; font-weight: 600; color: var(--accent); }
.door .more::after { content: " \2192"; }
.kind-number { display: block; font-family: var(--display); font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 1.6rem; }

/* ---- what stands behind the work: one quiet line of ticks ---- */
.proof { list-style: none; margin: 0 0 1rem; padding: .95rem 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1.6rem; border: 1px solid var(--line);
  border-radius: 18px; background: var(--soft); font-family: var(--display); font-size: .88rem; font-weight: 500; color: var(--heading); }
.proof li { position: relative; padding-left: 1.45rem; }
.proof li::before { content: ""; position: absolute; left: .1rem; top: .48em; width: .6rem; height: .32rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.page-head .proof { margin: 1.6rem 0 0; justify-content: flex-start; }
.saving { display: flex; align-items: center; gap: 1.8rem; margin-top: 1rem; padding: 1.5rem 1.8rem; border-color: var(--soft-strong); }
.card .saving-figure { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.04em; line-height: 1; color: var(--accent); white-space: nowrap; }
.saving h3 { margin-bottom: .35rem; }

/* ---- what we work on: the shop's photos, each one a door ---- */
.shots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.shot { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.shot:hover img { transform: scale(1.04); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .86)); }
.shot span { position: absolute; z-index: 1; left: .95rem; right: .95rem; bottom: .85rem; font-family: var(--display); font-weight: 600; font-size: .98rem; line-height: 1.2; letter-spacing: -.015em; color: #fff; }
.shots.rent { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shots.rent .shot { aspect-ratio: 4 / 3.4; }
.shots.rent .shot span { font-size: 1.15rem; left: 1.2rem; bottom: 1.05rem; }

/* ---- how it works ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.step { position: relative; background: linear-gradient(150deg, var(--sheen) 0%, transparent 52%), var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.4rem 1.3rem; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--display); font-weight: 600; font-size: .95rem; margin-bottom: 1.1rem; }
.step h3 { margin-bottom: .45rem; }
.step p { margin: 0; font-size: .95rem; }

/* ---- your account ---- */
.account { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 3.2rem; align-items: center; }
.account h2 { margin-bottom: 1rem; }
.account .muted { margin-top: 1.1rem; }
.peek { background: linear-gradient(150deg, var(--sheen) 0%, transparent 52%), var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 1.3rem 1.4rem .6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.peek-title { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--display); font-size: .82rem; color: var(--muted); margin-bottom: .4rem; }
.peek-title span { font-size: .72rem; opacity: .8; }
.peek-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.peek-row strong { display: block; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--heading); letter-spacing: -.015em; }
.peek-row small { color: var(--muted); font-size: .78rem; }
.pill { display: inline-block; border-radius: 999px; padding: .2rem .7rem; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--soft); color: var(--text); }
.pill.work { background: var(--amber-bg); color: var(--amber); }
.pill.ready { background: var(--green-bg); color: var(--green); }
.pill.wait { background: rgba(232, 136, 80, .16); color: var(--accent); }

/* ---- the makers and suppliers ---- */
.trust { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; padding: 2rem; }
.trust h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: .45rem 1rem; font-family: var(--display); font-size: .86rem; font-weight: 500; color: var(--heading); }

/* ---- the machines, one by one (the service page) ---- */
.machines { display: grid; gap: 1rem; }
.machine { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; align-items: center; background: linear-gradient(150deg, var(--sheen) 0%, transparent 52%), var(--card);
  border: 1px solid var(--line); border-radius: 26px; padding: 1rem 1.8rem 1rem 1rem; }
.machine .frame { border-radius: 18px; }
.machine h3 { font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: .5rem; }
.ticks { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.4rem; font-size: .93rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .6rem; height: .32rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.4rem; align-items: center; padding: 2.2rem; }
.plan h2 { margin-bottom: .9rem; }
.plan .ticks { grid-template-columns: 1fr; gap: .85rem; font-size: 1rem; margin: 0; }

/* ---- the last word on every page ---- */
.closing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; border-radius: 28px; padding: 2.6rem;
  border: 1px solid var(--soft-strong); background: radial-gradient(520px 260px at 100% 0%, rgba(232, 136, 80, .2), transparent 70%), linear-gradient(150deg, var(--sheen) 0%, transparent 52%), var(--card); }
.closing h2 { margin: 0 0 .7rem; }
.closing .lead { margin: 0; }
.closing-doors { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; }
.closing-doors .muted { width: 100%; text-align: right; margin: .4rem 0 0; }

/* ---- contact ---- */
.reach { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.4rem; margin: .4rem 0 0; }
.reach dt { color: var(--muted); font-size: .9rem; }
.reach dd { margin: 0; color: var(--heading); }

/* ---- the foot of the page ---- */
.foot { margin-top: 4.5rem; border-top: 1px solid var(--shell-edge); background: var(--shell); padding: 2.6rem 0 1.6rem; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr .9fr; gap: 2rem; }
.foot img { height: 40px; width: auto; margin-bottom: .9rem; }
.foot h3 { font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem; letter-spacing: 0; }
.foot p { line-height: 1.9; margin: 0; }
.foot .muted { line-height: 1.6; max-width: 22rem; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-end { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--shell-edge); font-size: .8rem; }

/* the two things under a thumb: only on a phone */
.thumb { display: none; }

/* ---- smaller screens ---- */
@media (max-width: 980px) {
  .top-inner { gap: .9rem; }
  .menu a { padding: .42rem .6rem; }
  .four, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shots .shot:nth-child(n+4) { aspect-ratio: 3 / 2.6; }
  .shots .shot:nth-child(4) { grid-column: span 1; }
  .proof { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  html { font-size: 16px; scroll-padding-top: 7rem; }
  body { padding-bottom: 4.6rem; }                          /* room for the two buttons under the thumb */
  .top-inner { flex-wrap: wrap; gap: .5rem .8rem; padding-top: .55rem; padding-bottom: .45rem; }
  .brand img { height: 34px; }
  .doors .request { display: none; }                        /* it is under the thumb instead */
  .menu { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); width: calc(100% + var(--gutter) * 2); }
  .menu::-webkit-scrollbar { display: none; }
  .hero { padding-top: 2.2rem; }
  .page-head { padding-top: 2rem; }
  .hero-grid, .page-head-grid, .account, .trust, .plan, .closing, .machine { grid-template-columns: 1fr; gap: 1.6rem; }
  .frame { border-radius: 22px; aspect-ratio: 4 / 3; }
  .section { padding-top: 3rem; }
  .section.tight { padding-top: 2rem; }
  .section h2 { margin-bottom: 1.3rem; }
  .three, .two, .four, .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .shots .shot, .shots .shot:nth-child(n+4) { aspect-ratio: 1 / 1.1; }
  .shots .shot:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .shot span { font-size: .9rem; left: .75rem; right: .75rem; bottom: .7rem; }
  .shots.rent { grid-template-columns: 1fr; }
  .shots.rent .shot, .shots.rent .shot:first-child { grid-column: auto; aspect-ratio: 16 / 10; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; padding: .9rem 1rem; font-size: .84rem; }
  .saving { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.4rem; }
  .hero-doors .button { flex: 1 1 100%; min-height: 3rem; }
  .machine { padding: .8rem .8rem 1.3rem; }
  .machine > div:last-child { padding: 0 .5rem; }
  .ticks { grid-template-columns: 1fr; }
  .trust, .plan, .closing { padding: 1.5rem; }
  .closing-doors { justify-content: flex-start; }
  .closing-doors .button { flex: 1 1 100%; min-height: 3rem; }
  .closing-doors .muted { text-align: left; }
  .peek { padding: 1.1rem 1.1rem .4rem; }
  .peek-row { flex-wrap: wrap; gap: .4rem .8rem; }
  .foot { margin-top: 3rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .foot-grid > div:first-child { grid-column: span 2; }
  .thumb { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(11, 11, 13, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--shell-edge); }
  .thumb .button { flex: 1 1 0; min-height: 2.9rem; font-size: .86rem; padding-left: .6rem; padding-right: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img, a.card.door, .button { transition: none; }
}
