/* Hasland Chiropody: one motif, the arch from the clinic's own mark */

:root {
  --ground: #f2f5f3;
  --ink: #15231e;
  --ink-soft: #46564f;
  --deep: #1e3a33;
  --on-deep: #e8f1ee;
  --teal: #6fa9a5;
  --teal-strong: #4e8d89;
  --pale: #dbe9e5;
  --pale-strong: #c9ddd8;
  --white: #ffffff;

  --step-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --step-hero: 5.2vw;

  --margin: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(88px, 6.5vw, 96px);
  --arch: 100vmax 100vmax 0 0;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
address { font-style: normal; }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-strong); outline-offset: 3px; }

h1, h2 {
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
h2 { font-size: var(--step-head); }
h3 { font-weight: 500; font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; }
.lead { font-size: var(--step-lead); line-height: 1.35; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 8px; z-index: 30; background: var(--white); padding: 8px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The arch: every photograph stands in it, every button is cut to it */
.arch-frame { border-radius: var(--arch); overflow: hidden; background: var(--pale); }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 30px 12px;
  border: 0; border-radius: 40px 40px 0 0;
  background: var(--deep); color: var(--on-deep);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 240ms ease, color 240ms ease;
}
.button:active { transform: scale(0.97); }
.button-small { min-height: 44px; padding: 10px 20px 8px; font-size: var(--step-small); }
.button-light { background: var(--teal); color: var(--ink); }
.button-full { width: 100%; }
.text-link {
  font-weight: 500; text-decoration: underline; text-underline-offset: 0.25em;
  text-decoration-thickness: 2px; text-decoration-color: var(--teal);
  transition: text-decoration-color 240ms ease, color 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--teal-strong); color: var(--white); }
  .button-light:hover { background: var(--on-deep); color: var(--ink); }
  .text-link:hover { text-decoration-color: var(--ink); }
}

/* Header */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 12px var(--margin);
  background: var(--ground);
}
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.03em; }
.wordmark-arch { width: 40px; height: 24px; fill: var(--deep); }
.bar-links { display: flex; gap: 28px; margin-left: auto; }
.bar-links a { text-decoration: none; font-size: var(--step-small); font-weight: 500; padding: 8px 0; }
.bar-links a:hover { color: var(--teal-strong); }

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: 0 var(--margin);
  overflow: hidden;
}
.hero-text { grid-column: 1 / 8; align-self: center; position: relative; z-index: 2; padding: 48px 0 64px; }
.hero h1 { font-size: var(--step-hero); }
.hero-lead { margin-top: 36px; max-width: 27em; font-size: var(--step-lead); line-height: 1.35; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.open-status { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: var(--step-small); font-weight: 500; color: var(--ink-soft); }
.open-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); flex: none; }
.open-status.is-open::before { background: #2f8a5b; }
.open-status.is-open { color: var(--ink); }

.hero-visual {
  grid-column: 8 / 13; align-self: center; justify-self: end;
  position: relative; width: 100%; max-width: 448px;
  padding: 0 0 32px 32px;
}
.hero-visual::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 72%; height: 64%;
  background: var(--pale); border-radius: 40px 40px 0 0;
}
.hero-photo {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5; max-height: 520px;
  overflow: hidden; border-radius: 40px 40px 0 0; background: var(--pale);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; filter: saturate(0.85) brightness(1.02); }

/* Treatments */
.treatments {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: var(--section) var(--margin) 0;
}
.treatments-text { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.treatments-head { grid-column: 1 / 5; align-self: stretch; display: flex; flex-direction: column; padding-right: var(--gap); }
.treatments-text h2 { max-width: 6em; }
.hcpc-badge { margin-top: auto; display: flex; align-items: center; gap: 18px; padding: 16px 20px 16px 16px; background: var(--white); border-radius: 40px 40px 0 0; max-width: 22rem; }
.hcpc-badge img { width: 72px; height: auto; flex: none; }
.hcpc-badge p { font-size: var(--step-small); line-height: 1.4; color: var(--ink-soft); }
.hcpc-badge strong { display: block; font-weight: 500; font-size: var(--step-body); color: var(--ink); margin-bottom: 2px; }
.treatments-text .menu { grid-column: 5 / 13; margin-top: 0; }
.menu { margin-top: 32px; display: grid; gap: 6px; }
.menu-row {
  display: grid; grid-template-columns: 1fr 9.5em; column-gap: 28px; row-gap: 4px; align-items: start;
  padding: 16px 22px 18px;
  background: var(--white);
  transition: background-color 240ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .menu-row:hover { background: var(--pale); }
}
.menu-row h3 { grid-column: 1; grid-row: 1; font-size: var(--step-body); letter-spacing: -0.01em; }
.menu-row p:last-child { grid-column: 1; grid-row: 2; max-width: 40em; font-size: var(--step-small); line-height: 1.45; color: var(--ink-soft); }
.menu-price {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.menu-cost { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.menu-from { font-size: var(--step-small); font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.menu-time { font-size: var(--step-small); color: var(--ink-soft); }
figcaption { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }

/* About */
.about { padding-top: var(--section); }
.about-panel {
  margin: 0 20px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  padding: clamp(40px, 4vw, 56px) var(--margin) 0;
  background: var(--deep); color: var(--on-deep);
  overflow: hidden;
}
.about-left { grid-column: 1 / 8; display: flex; flex-direction: column; }
.about h2 { max-width: 8em; }
.about-photo { margin-top: 40px; width: min(100%, 34vw); aspect-ratio: 1 / 0.82; margin-bottom: 0; }
.about-photo img { object-position: 45% 30%; }
.about-right { grid-column: 8 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 12px 0 0; }
.about-right .button { margin-top: auto; }
.about-lead { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.01em; }

.team { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.team-head { grid-column: 1 / 5; align-self: start; padding-right: var(--gap); }
.team-head p { margin-top: 20px; max-width: 24em; }
.team-list { grid-column: 5 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.person .arch-frame { aspect-ratio: 3 / 4; margin-bottom: 16px; }
.person h3 { font-size: var(--step-body); letter-spacing: -0.01em; }
.person-role { color: var(--deep); font-weight: 500; font-size: var(--step-small); margin-top: 2px; }
.person p:not(.person-role) { color: var(--ink-soft); font-size: var(--step-small); line-height: 1.45; margin-top: 8px; }

/* Reviews */
.reviews { padding: var(--section) var(--margin) 0; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.rating { font-weight: 500; }
.review-list { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review blockquote { height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--pale); border-radius: 40px 40px 0 0; }
.review p { font-size: var(--step-body); line-height: 1.45; }
.review footer { margin-top: auto; font-size: var(--step-small); color: var(--ink-soft); }
.review-name { font-weight: 500; color: var(--ink); }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--teal-strong); }
.reviews .text-link { display: inline-block; margin-top: 28px; }

/* Find us */
.find { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: stretch; }
.find-map { grid-column: 1 / 8; min-height: 340px; border-radius: 64px 64px 0 0; overflow: hidden; background: var(--pale); }
.find-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.find-text { grid-column: 8 / 13; align-self: center; }
.find address { margin-top: 16px; font-size: var(--step-lead); line-height: 1.3; }
.open-status-large { margin-top: 16px; font-size: var(--step-body); }
.hours { margin-top: 12px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 5px 0; font-weight: 400; border-bottom: 1px solid var(--pale-strong); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 500; }
.find .button { margin-top: 20px; }

/* Booking card */
.book { padding: var(--section) var(--margin) 64px; }
.card {
  --notch: 18px;
  display: grid; grid-template-columns: 5fr 7fr;
  max-width: 1200px; margin: 0 auto;
  background: var(--teal);
  border-radius: 64px 64px 0 0;
  position: relative;
}
.card::before, .card::after {
  content: ""; position: absolute; z-index: 1;
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  border-radius: 50%; background: var(--ground);
  left: calc(41.666% - var(--notch));
}
.card::before { top: calc(var(--notch) * -1); }
.card::after { bottom: calc(var(--notch) * -1); }
.card-stub { padding: 36px 40px 32px; display: flex; flex-direction: column; gap: 10px; }
.card-stub h2 { font-size: var(--step-head); max-width: 7em; margin-bottom: 12px; }
.card-phone { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.card-phone a, .card-email a { text-decoration: none; }
.card-email a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--deep); }
.card-stub p:last-child { margin-top: auto; padding-top: 16px; max-width: 22em; }
.card-form { padding: 32px 40px; display: grid; gap: 10px; background: var(--pale); }
.field { display: grid; gap: 6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.field label { font-size: var(--step-small); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 0; border-radius: 0; background: var(--white); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2315231e' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 44px; }
.field textarea { resize: vertical; }
.field-detail { font-size: var(--step-small); font-weight: 500; color: var(--deep); }
.card-form .button { margin-top: 6px; }
.form-note { font-size: var(--step-small); font-weight: 500; color: var(--deep); }

/* Footer */
.footer { background: var(--deep); color: var(--on-deep); padding: 40px var(--margin) 24px; }
.footer-name { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.footer-cols { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.footer-cols h2 { font-size: var(--step-body); letter-spacing: -0.01em; line-height: 1.5; color: var(--teal); margin-bottom: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-last { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--step-small); }
.footer-last .button { background: var(--teal); color: var(--ink); }

/* Tablet */
@media (max-width: 1024px) {
  .bar-links { display: none; }
  .bar .button-small { margin-left: auto; }
  .hero-text { grid-column: 1 / 8; }
  .card::before, .card::after { left: calc(50% - var(--notch)); }
  .hero { display: block; min-height: 0; padding-bottom: 0; }
  .hero-text { max-width: none; padding: 48px 0 40px; }
  .hero h1 { font-size: 7.5vw; }
  .hero-visual { max-width: 520px; justify-self: start; margin-bottom: 8px; padding: 0 0 24px 24px; }
  .hero-photo { aspect-ratio: 1 / 1; max-height: none; }
  .hero-photo img { object-position: 55% 64%; }
  .treatments-text { display: block; }
  .treatments-text h2 { max-width: none; }
  .treatments-head { padding-right: 0; }
  .hcpc-badge { margin-top: 24px; max-width: none; }
  .treatments-text .menu { margin-top: 32px; }
  .about-left { grid-column: 1 / -1; }
  .about-right { grid-column: 1 / -1; grid-row: 2; padding: 32px 0 0; gap: 20px; }
  .about-right .button { margin-top: 12px; }
  .about-photo { grid-row: 3; grid-column: 1 / -1; width: 70%; margin-top: 48px; }
  .about-left { display: contents; }
  .about h2 { grid-column: 1 / -1; }
  .about-panel { min-height: 0; }
  .team-head { grid-column: 1 / -1; margin-bottom: 36px; padding-right: 0; }
  .team-head p { max-width: 34em; }
  .team-list { grid-column: 1 / -1; }
  .review-list { grid-template-columns: 1fr; gap: 12px; }
  .find-map { grid-column: 1 / -1; min-height: 320px; }
  .find-map iframe { min-height: 320px; }
  .find-text { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); margin-top: 32px; }
  .find-text h2, .find-text .button { grid-column: 1 / -1; }
  .find-text .button { justify-self: start; }
  .card { grid-template-columns: 1fr 1fr; }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .field-pair .field:last-child { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 680px) {
  .wordmark { font-size: 1.0625rem; }
  .wordmark-arch { width: 32px; height: 19px; }
  .hero-text { padding: 40px 0 24px; }
  .hero h1 { font-size: 10vw; }
  h2 { font-size: 9vw; }
  .hero-lead { margin-top: 20px; font-size: 1.0625rem; }
  .hero-actions { margin-top: 24px; }
  .open-status { margin-top: 18px; }
  .hero-visual { padding: 0 0 18px 18px; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .hero-photo img { object-position: 55% 70%; }
  .menu-row { padding: 14px 16px 16px; grid-template-columns: 1fr auto; column-gap: 16px; }
  .about-panel { margin: 0 10px; padding: 40px 18px 0; }
  .about-right { gap: 18px; }
  .about-photo { width: 92%; margin-left: auto; margin-right: auto; }
  .team-list { grid-template-columns: 1fr; gap: 20px; }
  .person { display: grid; grid-template-columns: 112px 1fr; column-gap: 18px; align-items: start; }
  .person .arch-frame { grid-row: 1 / span 4; margin-bottom: 0; }
  .person h3 { margin-top: 4px; }
  .find-text { grid-template-columns: 1fr; }
  .find-map, .find-map iframe { min-height: 280px; }
  .card { grid-template-columns: 1fr; border-radius: 48px 48px 0 0; }
  .card::before, .card::after { left: auto; top: calc(var(--stub-h, 340px) - var(--notch)); }
  .card::before { left: calc(var(--notch) * -1); }
  .card::after { right: calc(var(--notch) * -1); bottom: auto; }
  .card-stub { padding: 48px 22px 32px; }
  .card-form { padding: 32px 22px 28px; }
  .field-pair { grid-template-columns: 1fr; }
  .field-pair .field:last-child { grid-column: auto; }
  .book { padding-bottom: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .footer-last { flex-wrap: wrap; }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .menu-row.reveal { transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out), background-color 240ms ease; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }

  .js .shutter { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out) 150ms; }
  .js .shutter img { transform: scale(1.08); transform-origin: 50% 50%; transition: transform 1500ms var(--ease-soft) 150ms; }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  .arch-frame img { transition: transform 700ms var(--ease-out); }
  @media (hover: hover) and (pointer: fine) {
    .person:hover .arch-frame img { transform: scale(1.04); }
  }

  @supports (animation-timeline: view()) {
    .drift { animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.02) translateY(3%); } }
  }
}
