/* centech — site styles. Tokens first, then base, layout and components. */

@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url("../fonts/sora-400.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 500; font-display: swap; src: url("../fonts/sora-500.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-600.woff2") format("woff2"); }

:root {
  --navy: #14245E;
  --navy-deep: #0F1B45;
  --ink: #0E1A1F;
  --muted: #4A5560;
  --faint: #5B6570;
  --ground: #F3F5F4;
  --surface: #FFFFFF;
  --line: rgba(20, 36, 94, 0.18);
  --line-strong: rgba(20, 36, 94, 0.28);
  --focus: #3B5BDB;
  --error: #A3261B;

  --font: "Sora", "Helvetica Neue", Arial, sans-serif;
  --container: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --draw: 1400ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --draw: 0ms; }
  * { scroll-behavior: auto !important; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--navy); color: #fff; padding: 0.75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.band-white { background: var(--surface); }
.band-navy { background: var(--navy); color: #fff; }

/* Type */
.h1 { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 3.75rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; }
.h1 span { display: block; }
.h2 { font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.lead { font-size: 1.25rem; max-width: 46ch; }
.text { max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; line-height: 1.5; color: var(--faint); max-width: 90ch; }
.tag { font-size: 0.875rem; font-weight: 500; color: var(--navy); }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-size: 1rem; font-weight: 500;
  padding: 0.8rem 1.35rem; border: 1.5px solid var(--navy); border-radius: 2px;
  text-decoration: none; cursor: pointer; line-height: 1.4;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: rgba(20, 36, 94, 0.06); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: rgba(255, 255, 255, 0.9); color: var(--navy-deep); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-header { border-bottom: 1px solid rgba(20, 36, 94, 0.14); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 32px; width: auto; }
.brand-mark { display: none; }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; font-size: 0.9375rem; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-actions .btn { color: #fff; }
.lang { display: flex; gap: 0.35rem; font-size: 0.875rem; color: var(--muted); }
.lang a { color: var(--muted); }
.lang [aria-current="true"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; padding: 0; background: transparent; border: 1.5px solid var(--line-strong); border-radius: 2px; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 1.375rem; height: 1.375rem; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }

@media (max-width: 52rem) {
  .site-header .wrap { gap: 0.75rem; padding-block: 1rem; }
  .nav-actions { gap: 0.75rem; }
  .btn-book { padding: 0.55rem 0.9rem; font-size: 0.875rem; }
  /* With JavaScript the links collapse behind the menu button; without it they stay visible below */
  .nav-links { order: 3; flex-basis: 100%; }
  .js .nav-toggle:not([hidden]) { display: inline-flex; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open { display: block; }
  .nav-links ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); margin-top: 0.25rem; }
  .nav-links li a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
}
.btn-book .label-short { display: none; }
@media (max-width: 27.5rem) {
  .brand-full { display: none; }
  .brand-mark { display: block; }
  .btn-book .label-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .btn-book .label-short { display: inline; }
}

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 3.5rem; padding-block: clamp(4rem, 8vw, 6rem) var(--section); }
.hero-copy { flex: 3 1 34rem; display: flex; flex-direction: column; gap: 1.75rem; }
.hero-mark { flex: 1 1 15rem; display: flex; justify-content: center; }
.hero-mark svg { width: min(260px, 70vw); height: auto; }
/* Logo intro: the ring spins into place while the square draws, then the arrow reaches the corner. Plays once. */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--draw) cubic-bezier(0.25, 0.7, 0.25, 1) forwards; }
.draw-arrow { animation-duration: calc(var(--draw) * 0.4); animation-delay: calc(var(--draw) * 0.9); }
.spin { transform-box: fill-box; transform-origin: center; animation: spin var(--draw) cubic-bezier(0.2, 0.75, 0.25, 1) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { from { transform: rotate(-360deg); opacity: 0; } 12% { opacity: 1; } to { transform: rotate(0deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .draw { stroke-dashoffset: 0; animation: none; }
  .spin { animation: none; }
}

/* Generic layouts */
.split { display: flex; flex-wrap: wrap; gap: 2rem 5rem; }
.split > * { flex: 1 1 22rem; }
.split .wide { flex: 2 1 30rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 3rem; }
.section-head .intro { display: flex; flex-direction: column; gap: 0.75rem; }
.columns { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.columns > * { flex: 1 1 17rem; }

.rule-item { border-top: 2px solid var(--navy); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.row-item { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.row-list > .row-item:last-child { border-bottom: 1px solid var(--line); }

.work-row { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.work-row .tag { flex: 0 0 13.5rem; padding-top: 0.25rem; }
.work-row .h3 { flex: 1 1 16rem; }
.work-row p { flex: 2 1 22rem; max-width: 60ch; color: var(--muted); }

.steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; counter-reset: step; }
.steps li { flex: 1 1 13rem; display: flex; flex-direction: column; gap: 0.75rem; }
.step-num { display: flex; align-items: center; gap: 0.85rem; font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.step-num::after { content: ""; flex: 1; height: 1.5px; background: var(--line-strong); }

.soon { font-size: 0.8125rem; color: var(--faint); }

/* Services page */
.service { display: flex; flex-wrap: wrap; gap: 2rem 5rem; padding-block: 3.5rem; border-top: 2px solid var(--navy); }
.service:first-of-type { margin-top: 0; }
.service-main { flex: 1 1 22rem; display: flex; flex-direction: column; gap: 1rem; }
.service-side { flex: 1 1 22rem; display: flex; flex-direction: column; gap: 1.5rem; }
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.checklist li { padding-left: 1.5rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.65rem; height: 1.5px; background: var(--navy); }
.start-with { background: var(--surface); border: 1.5px solid var(--line); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }

/* CTA band */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3rem; padding-block: clamp(4rem, 8vw, 6rem); }
.cta-copy { flex: 1 1 32rem; display: flex; flex-direction: column; gap: 1.25rem; }
.cta .h2 { color: #fff; max-width: 18ch; }
.cta p { color: rgba(255, 255, 255, 0.86); font-size: 1.125rem; max-width: 52ch; }
.cta-mark svg { width: 140px; height: auto; }
/* The CTA logo animates when the band scrolls into view (site.js adds .is-visible); without JavaScript it plays on load */
.js .cta:not(.is-visible) .draw, .js .cta:not(.is-visible) .spin { animation-play-state: paused; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field-row { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row .field { flex: 1 1 12.5rem; }
.field label, .field-label { font-size: 0.9375rem; font-weight: 500; }
.input {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 2px; padding: 0.75rem 0.9rem; width: 100%;
}
.input:focus-visible { outline-offset: 0; }
textarea.input { resize: vertical; min-height: 9rem; }
.field-error { font-size: 0.875rem; color: var(--error); }
.input[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 0.9375rem; }
.status.ok { color: var(--navy); font-weight: 500; }
.status.err { color: var(--error); }
.notice { display: none; border-left: 3px solid var(--navy); background: var(--surface); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice:target { display: block; }

/* Contact page */
.contact-grid { display: flex; flex-wrap: wrap; gap: 3.5rem; }
.contact-grid > section { flex: 1 1 24rem; display: flex; flex-direction: column; gap: 1.25rem; }
.panel-title { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.panel-title.quiet { border-top: 1px solid var(--line); padding-top: calc(1.5rem + 1px); }
.booking { background: var(--surface); border: 1.5px solid var(--line); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; }
.picker { display: grid; gap: 0.5rem; }
.picker.days { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.picker.times { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 30rem) { .picker.times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick {
  font: inherit; font-size: 0.875rem; padding: 0.6rem 0.25rem; text-align: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: 2px;
  display: flex; flex-direction: column; gap: 0.1rem; align-items: center;
}
.pick strong { font-weight: 600; }
.pick:hover { border-color: var(--navy); }
.pick[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.picker-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.picker-head .muted { font-size: 0.8125rem; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-block: 3.5rem 3rem; border-top: 1px solid rgba(20, 36, 94, 0.14); }
.footer-brand { flex: 1 1 17rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; }
.footer-brand img { height: 26px; width: auto; }
.footer-nav { flex: 0 1 11rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9375rem; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-meta { flex: 0 1 15rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9375rem; color: var(--muted); }
.footer-meta small { font-size: 0.875rem; margin-top: 0.75rem; }

@media (max-width: 30rem) {
  .picker.days .pick { font-size: 0.75rem; padding-inline: 0; }
  .picker.days .pick span { white-space: nowrap; }
}

/* Confirmation page */
.received-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem 3.5rem; }
.received-mark svg { width: 132px; height: auto; }
.received-copy { flex: 1 1 28rem; display: flex; flex-direction: column; gap: 1.25rem; }
.received-copy .h1 { max-width: 16ch; }
.received-copy .lead { max-width: 52ch; }

/* Booking loading state: the mark with a closed square, the arrow inside the ring, the ring spinning clockwise */
.booking-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; min-height: 22rem; color: var(--navy); text-align: center; }
.booking-loading .muted { font-size: 0.9375rem; }
.spinner { width: 72px; height: auto; }
.spinner-dial { transform-box: fill-box; transform-origin: center; animation: spinner-turn 1.1s linear infinite; }
@keyframes spinner-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner-dial { animation-duration: 3s; } }
.booking-unavailable { padding: 1.5rem; border-left: 3px solid var(--navy); background: var(--ground); }
.booking-body { display: flex; flex-direction: column; gap: 1.5rem; }


/* Mobile: hero and CTA */
@media (max-width: 48rem) {
  /* Hero: the headline on the left, the logo on the right, in one row; the logo centered on the headline.
     Sizes follow the screen width so each sentence of the headline stays on one line. */
  .hero-m-row .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.75rem 1rem; padding-block: 2.5rem 4rem; }
  .hero-m-row .hero-copy { display: contents; }
  .hero-m-row .h1 { grid-column: 1; grid-row: 1; font-size: clamp(1.375rem, 6.7vw, 1.75rem); }
  .hero-m-row .hero-mark { grid-column: 2; grid-row: 1; flex: none; }
  .hero-m-row .hero-mark svg { width: clamp(64px, 19.5vw, 84px); }
  .hero-m-row .lead, .hero-m-row .actions { grid-column: 1 / -1; }

  /* CTA: the logo, smaller, beside the heading, aligned with its last line */
  .cta .wrap { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 1.25rem 1rem; padding-block: 3.5rem; }
  .cta-copy { display: contents; }
  .cta .h2 { grid-column: 1; grid-row: 1; }
  .cta-mark { grid-column: 2; grid-row: 1; align-self: end; }
  .cta-mark svg { width: 64px; }
  .cta p, .cta .actions { grid-column: 1 / -1; }
}
