/* Mac Smart — site stylesheet
   Colours come from the logo: navy #0B497B and cyan #00A1E4.
   Type is the visitor's own system face: San Francisco on Apple devices. */

:root {
  --navy: #0B497B;
  --cyan: #00A1E4;
  --ink: #0A2A45;
  --muted: #456079;
  --sky: #E4F4FC;
  --rule: #C5DBE8;
  --paper: #FFFFFF;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);

  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font: 1.125rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--navy); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 38rem; }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.5; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: 0.6rem 1rem; border-radius: 0.5rem;
  background: var(--navy); color: #fff;
}
.skip:focus { top: 1rem; }

/* Buttons are pills: the logo is made of circles */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: 0.65rem 1.5rem;
  border: 2px solid var(--navy); border-radius: 999px;
  font: 600 1.0625rem/1.2 var(--font-display);
  text-decoration: none; text-align: center;
}
.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--line { background: transparent; color: var(--navy); }
.btn--line:hover { background: var(--sky); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-block: 0.6rem;
}
.site-header__logo { margin-right: auto; }
.site-header__logo img { width: 8.28rem; height: 3rem; }
.site-header__phone .wide { display: none; }
@media (min-width: 30rem) {
  .site-header__logo img { width: 9.65rem; height: 3.5rem; }
  .site-header__phone .wide { display: inline; }
  .site-header__phone .narrow { display: none; }
}
.site-header__phone {
  font: 700 1.0625rem/1 var(--font-display);
  padding: 0.7rem 1.1rem; border: 2px solid var(--navy); border-radius: 999px;
  text-decoration: none; white-space: nowrap;
}
.site-header__phone:hover { background: var(--sky); }

.nav-toggle {
  display: none;
  font: 600 1.0625rem/1 var(--font-display); color: var(--navy);
  padding: 0.8rem 1.1rem; border: 0; border-radius: 999px; background: var(--sky);
  cursor: pointer;
}

.site-nav { flex: 1 0 100%; order: 3; }
.site-nav a, .site-nav summary {
  display: block; padding: 0.7rem 0;
  font: 600 1.0625rem/1.2 var(--font-display);
  color: var(--navy); text-decoration: none;
}
.site-nav a:hover, .site-nav summary:hover { text-decoration: underline; text-decoration-thickness: 0.12em; }
.site-nav > ul > li { border-top: 1px solid var(--rule); }
.site-nav summary { cursor: pointer; list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after {
  content: ""; display: inline-block; margin-left: 0.45em;
  width: 0.45em; height: 0.45em; vertical-align: 0.15em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.site-nav details[open] > summary::after { transform: rotate(225deg); vertical-align: -0.1em; }
.site-nav__more ul { padding: 0 0 0.6rem 1rem; }
.site-nav__more ul a { font-weight: 500; padding-block: 0.5rem; }

/* Small screens with JavaScript: the menu folds behind a button */
.js .nav-toggle { display: inline-block; }
.js .site-nav { display: none; }
.js .nav-open .site-nav { display: block; }

@media (min-width: 62rem) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex: 0 1 auto; order: 1; }
  .site-header__phone { order: 2; margin-left: 0.5rem; }
  .site-nav > ul { display: flex; align-items: center; gap: 0.25rem 1.6rem; }
  .site-nav > ul > li { border: 0; position: relative; }
  .site-nav__more ul {
    position: absolute; z-index: 10; top: calc(100% + 0.35rem); left: -1.25rem;
    width: 30rem; padding: 1rem 1.25rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem;
    background: var(--paper); border: 1px solid var(--rule); border-radius: 1.25rem;
    box-shadow: 0 1.1rem 2.5rem -1rem rgba(10, 42, 69, 0.35);
  }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 11.5em; }
.hero .lead { margin-top: 1.5rem; max-width: 34rem; }
.hero .btn-row { margin-top: 2rem; }

/* The logo's two discs and ring, drawn large, holding the phone name people remember */
.orbit {
  position: relative; container-type: inline-size;
  width: min(100%, 24rem); margin-inline: auto;
}
.orbit svg { width: 100%; }
.orbit__call {
  position: absolute; left: 0.76%; top: 15.8%; width: 76.3%; aspect-ratio: 1;
  display: grid; place-content: center; padding: 4%;
  border-radius: 50%;
  text-align: center; text-decoration: none; color: #fff;
}
.orbit__name {
  font: 700 2.6rem/0.98 var(--font-display); letter-spacing: -0.03em;
}
@supports (font-size: 1cqi) {
  .orbit__name { font-size: 11.8cqi; }
}
.orbit__call span { white-space: nowrap; }
.orbit__call:hover .orbit__name { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }

@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; }
  .orbit { width: min(100%, 35rem); margin-right: -2.5rem; }
}

/* ---------- Who we help ---------- */

.who { padding-bottom: var(--section); }
.who__grid { display: grid; gap: 2.5rem; }
.who__work > * + h2 { margin-top: 2.75rem; }
.who h2 + p { margin-top: 0.9rem; }
.who__more { margin-top: 1.25rem; font-weight: 600; }
.who__home {
  align-self: start;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--sky); border-radius: 2rem;
}
@media (min-width: 62rem) {
  .who__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4.5rem; }
}

/* ---------- Services index ---------- */

.services { padding-bottom: var(--section); }
.index { margin-top: 2rem; display: grid; border-bottom: 1px solid var(--rule); }
.index li { border-top: 1px solid var(--rule); }
.index a {
  display: block; height: 100%;
  padding: 1.2rem 0.75rem 1.35rem; margin-inline: -0.75rem;
  border-radius: 0.9rem; text-decoration: none; color: var(--ink);
}
.index a:hover { background: var(--sky); }
.index a:hover h3 { text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.16em; }
.index p { margin-top: 0.3rem; color: var(--muted); }
@media (min-width: 48rem) {
  .index { grid-template-columns: 1fr 1fr; column-gap: 4.5rem; }
}

/* ---------- How we work ---------- */

.how { padding-block: var(--section); background: var(--navy); color: #fff; }
.how h2 { color: #fff; }
.how__grid { display: grid; gap: 2.5rem; align-items: center; }
.how__list { margin-top: 2.25rem; display: grid; gap: 1.5rem; }
.how__list li {
  position: relative; padding-left: 1.6rem;
  font: 500 clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem)/1.35 var(--font-display);
}
.how__list li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--cyan);
}
@media (min-width: 62rem) {
  .how__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4.5rem; }
}

/* ---------- Photographs ---------- */

.photo { width: 100%; height: auto; border-radius: 1.5rem; object-fit: cover; }
.who__home .photo { margin-bottom: 1.75rem; }

/* Hero with a photograph in the large disc: the phone name moves to the small disc */
.orbit--photo .orbit__call { left: 66.07%; top: 0.8%; width: 33.13%; padding: 2%; }
.orbit--photo .orbit__name { font-size: 1.05rem; line-height: 1.02; letter-spacing: -0.02em; }
@supports (font-size: 1cqi) {
  .orbit--photo .orbit__name { font-size: 5cqi; }
}

/* ---------- Photo slots (draft only) ---------- */

.photo-slot {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  padding: 1.25rem; border-radius: 1.5rem;
  border: 2px dashed currentColor;
  text-align: center; font-size: 1rem; line-height: 1.45;
}
.who__home .photo-slot { aspect-ratio: 16 / 10; margin-bottom: 1.75rem; background: var(--paper); color: var(--muted); border-color: var(--rule); }
.how .photo-slot { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); }
.photo-slot small { font-size: 0.9rem; }

/* ---------- Testimonials ---------- */

.voices { padding-block: var(--section); }
.voices__grid { display: grid; gap: 2rem; }
.voices__all { margin-top: 1.25rem; font-weight: 600; }
.voice { display: none; margin: 0; }
.voice.is-active { display: block; }
.voice blockquote { margin: 0; }
.voice__lead {
  font: 700 clamp(1.5rem, 1.1rem + 1.7vw, 2.2rem)/1.15 var(--font-display);
  letter-spacing: -0.015em; color: var(--navy); text-wrap: balance;
}
.voice__body { margin-top: 1.1rem; max-width: 40rem; }
.voice__body p + p { margin-top: 0.8rem; }
.voice figcaption {
  margin-top: 1.5rem; color: var(--muted); line-height: 1.4;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
}
.voice__who { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.voice__photo { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.voice__logo { flex: none; width: auto; height: auto; max-width: min(11.9rem, 100%); max-height: 2.9rem; }
.voice figcaption strong { color: var(--ink); }

.voices__controls { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; }
.voices__controls[hidden] { display: none; }
.voices__controls button {
  font: 600 1rem/1 var(--font-display); color: var(--navy);
  min-height: 2.75rem; padding: 0.55rem 1.1rem;
  border: 2px solid var(--rule); border-radius: 999px; background: var(--paper);
  cursor: pointer;
}
.voices__controls button:hover { border-color: var(--navy); }
.voices__count { color: var(--muted); font-size: 1rem; margin-inline: 0.35rem; font-variant-numeric: tabular-nums; }

@media (min-width: 62rem) {
  .voices__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .voice.is-active { animation: voice-in 0.45s ease-out; }
  @keyframes voice-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Closing call ---------- */

.contact-band { padding-bottom: var(--section); }
.contact-band__panel {
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--sky); border-radius: 2rem;
}
.contact-band p { margin-top: 0.9rem; }
.contact-band .btn-row { margin-top: 1.75rem; }

/* ---------- Footer ---------- */

.site-footer { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; background: var(--navy); color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.25rem 2rem; }
.site-footer__logo img { width: 11rem; height: 4rem; }
.site-footer__about p { margin-top: 1rem; max-width: 22rem; }
.site-footer h2 {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; color: #fff;
  margin-bottom: 0.6rem;
}
.site-footer li { padding-block: 0.22rem; }
.site-footer__contact a { text-decoration: underline; }
.site-footer__legal {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between;
  font-size: 0.95rem;
}
@media (min-width: 40rem) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 62rem) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; }
}

/* ================= Inner pages ================= */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.14em; text-underline-offset: 0.32em; }

.page-head { padding-block: clamp(1.75rem, 4vw, 3.25rem) clamp(2.5rem, 6vw, 4.5rem); }
.page-head__grid { display: grid; gap: 2.25rem; align-items: center; }
.page-head h1 { font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.25rem); max-width: 15em; }
.page-head .lead { margin-top: 1.25rem; max-width: 36rem; }
.page-head .btn-row { margin-top: 1.75rem; }
.page-head__media { max-width: 34rem; }
.page-head__media--portrait { max-width: 19rem; }
.page-head__media--square { max-width: 21rem; }
.page-head__media--motif { display: none; }
@media (min-width: 62rem) {
  .page-head__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 4rem; }
  .page-head__media { justify-self: end; width: 100%; }
  .page-head__media--motif { display: block; max-width: 15rem; }
}

.crumbs { margin-bottom: 1.1rem; font-size: 1rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.1rem 0.55rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.55rem; color: #8FAEC4; }

.block { padding-bottom: var(--section); }
.block h2 + * { margin-top: 1.4rem; }
.block p + .ticks { margin-top: 1.25rem; }
.block .wrap > p + p, .prose p + p { margin-top: 1rem; }
.prose { max-width: 42rem; font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem); }
.wide-figure { margin-top: 2rem; max-width: 56rem; }
.badge { width: auto; height: auto; max-width: min(19rem, 100%); }

.ticks { display: grid; gap: 0.95rem 4.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--cyan);
}
@media (min-width: 48rem) {
  .ticks { grid-template-columns: 1fr 1fr; }
}

/* Two options side by side: the lead offer in navy, the alternative in sky */
.pair { display: grid; gap: 1.5rem; }
.pair > div { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 2rem; background: var(--sky); }
.pair > div:first-child { background: var(--navy); color: #fff; }
.pair > div:first-child h2 { color: #fff; }
.pair h2 + p { margin-top: 0.9rem; }
.pair--plain > div, .pair--plain > div:first-child { background: none; color: inherit; padding: 0; border-radius: 0; }
.pair--plain > div:first-child h2 { color: var(--navy); }
@media (min-width: 48rem) {
  .pair { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .pair--plain { gap: 4.5rem; }
}

.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3.25rem; margin-top: 1.9rem; }
.logo-row img { width: auto; height: auto; max-width: 11.9rem; max-height: 3.5rem; }

.rates { width: 100%; max-width: 48rem; border-collapse: collapse; border-bottom: 1px solid var(--rule); }
.rates th, .rates td { padding: 1.05rem 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.rates th { width: 38%; padding-right: 1.5rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); }

.faq { max-width: 46rem; }
.faq > div + div { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.faq h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); line-height: 1.2; }
.faq h2 + p { margin-top: 0.7rem; }

.quotes .voice { display: block; padding-block: 2.25rem; border-top: 1px solid var(--rule); }
.quotes .voice:last-child { border-bottom: 1px solid var(--rule); }
.quotes .voice__lead { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem); }
.quotes--one .voice, .quotes--one .voice:last-child { border: 0; padding-block: 0; }

.contact-grid { display: grid; gap: 3rem; }
.details dt { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.details dd { margin: 0.15rem 0 1.25rem; }
@media (min-width: 62rem) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; }
}

.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--sky); border-radius: 2rem; }
.form h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); }
.form__row { display: grid; gap: 1.1rem; }
.form label { display: block; margin-bottom: 0.35rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.form__opt { font-weight: 400; color: var(--muted); }
.form input, .form textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--rule); border-radius: 0.75rem;
}
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--navy); }
.form textarea { resize: vertical; min-height: 9rem; }
.form button { cursor: pointer; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 40rem) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

/* Message shown by the form handler when something needs fixing */
.notice { max-width: 40rem; padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--sky); border-radius: 1.5rem; }
.notice ul { margin-top: 0.9rem; padding-left: 1.2rem; list-style: disc; }
.notice li + li { margin-top: 0.4rem; }

.block--tight { padding-bottom: clamp(2rem, 5vw, 3rem); }
.form__note { font-size: 0.9rem; color: var(--muted); }
.ticks.ticks--one { grid-template-columns: 1fr; columns: auto; max-width: 46rem; }
