/* Ελευθερία Τρανουλίδη — shared styles.
   Calm private-practice site: cool near-white ground, the logo's dark teal as the one brand colour,
   warm room tones (oak, bouclé) as quiet secondary fields. One typeface: Commissioner (Greek + Latin). */

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/commissioner-greek-wght-normal.woff2") format("woff2-variations"),
       url("assets/fonts/commissioner-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/commissioner-latin-wght-normal.woff2") format("woff2-variations"),
       url("assets/fonts/commissioner-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* colour */
  --bg: #FAFBFA;
  --field: #F0F3F1;
  --boucle: #F1EEE8;
  --ink: #1B2523;
  --muted: #4E5A57;
  --brand: #0A2F2F;
  --brand-hover: #174747;
  --brand-soft: #E3ECEA;
  --line: #D8DEDB;
  --on-brand: #FFFFFF;
  --on-dark: #DCE7E5;
  --on-dark-line: rgb(255 255 255 / 0.18);
  --focus: #1F6B66;
  --oak-ink: #8A5229;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* type */
  --font: "Commissioner", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  --step-3: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);

  /* space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 3rem + 6vw, 8rem);

  --radius: 10px;
  --wrap: 72rem;
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--line) var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, p, li, dd, address { overflow-wrap: break-word; }
address { font-style: normal; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:where(:not(.btn, .action)):active { color: var(--brand-hover); }
.site-footer a:active { color: var(--on-brand); opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
  a:where(:not(.btn, .action)):hover { color: var(--brand-hover); text-decoration-thickness: 2px; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Skip link */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 0.75rem 1rem; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); left: calc(1rem + env(safe-area-inset-left, 0px)); }
.skip-link:hover { color: var(--on-brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 500; text-decoration: none; line-height: 1.2; text-align: center;
  border: 1.5px solid var(--brand); transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn, .action, .nav-toggle { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.more, .nav-list a { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }

.btn-quiet { background: transparent; color: var(--brand); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
  .btn-quiet:hover { background: var(--brand-soft); color: var(--brand); }
}
.btn-primary:active { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-quiet:active { background: var(--brand-soft); }
.btn-lg { min-height: 56px; padding: 0.9rem 1.75rem; font-size: var(--step-1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header { background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(140%) blur(10px); } }
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: 68px; padding-top: env(safe-area-inset-top, 0px); }
.brand { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; min-width: 0; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 21px; height: 32px; }
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name { overflow-wrap: anywhere; text-wrap: balance; }
.brand-name { font-weight: 600; font-size: 1.0625rem; }
.nowrap { white-space: nowrap; }
@media (max-width: 35em) {
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 26.25em) {
  .header-inner { gap: var(--space-2); }
  .brand-name { font-size: 1rem; }
  .brand-title { font-size: 0.75rem; }
  .btn-lg { font-size: var(--step-0); padding-inline: 1.25rem; }
}
.brand-title { font-size: 0.8125rem; color: var(--muted); }
/* Very narrow screens or very large text: the name gets the room (wraps between words, two lines). */
@media (max-width: 18em) {
  .brand-title, .brand-mark { display: none; }
  .header-inner { gap: var(--space-1); }
  .brand-name { font-size: 0.875rem; }
}

.site-nav { display: flex; align-items: center; }
.nav-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav-list a { display: block; padding: 0.6rem 0.8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 450; }
@media (hover: hover) and (pointer: fine) { .nav-list a:hover { background: var(--field); color: var(--brand); } }
.nav-list a[aria-current="page"] { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.nav-list a:active { background: var(--brand-soft); color: var(--brand); }
.header-call { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9375rem; }

@media (max-width: 60em) {
  .header-call { display: none; }
}
@media (max-width: 54em) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.9rem;
    font: inherit; font-weight: 500; color: var(--brand); background: transparent;
    border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
    min-width: 8.5rem; justify-content: center; transition: transform 160ms var(--ease-out), border-color 160ms ease;
  }
  .js .nav-toggle:active { transform: scale(0.97); }
  .js .nav-toggle { flex: none; }
  .js .nav-toggle .icon-close { display: none; }
  .js .nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .js .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  .js .nav-toggle[aria-expanded="true"] { border-color: var(--brand); }
  .js .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 0.5rem max(1.25rem, env(safe-area-inset-left, 0px)) 1.25rem;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgb(10 47 47 / 0.25);
    /* Short screens (phone in landscape): the panel scrolls instead of running under the action bar. */
    max-height: calc(100vh - 68px - var(--bar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100svh - 68px - var(--bar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto; overscroll-behavior: contain;
  }
  .js .nav-list.is-open {
    display: flex; opacity: 1; transform: none;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  }
  @starting-style { .js .nav-list.is-open { opacity: 0; transform: translateY(-6px); } }
  .js .nav-list a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.125rem; }
  .js .nav-list li:last-child a { border-bottom: 0; }
  /* Without JS the list stays visible and wraps under the brand. */
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

@media (max-width: 26.25em) {
  .js .nav-toggle { min-width: 44px; padding-inline: 0.6rem; }
  .js .nav-toggle .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Sections */
.section { padding-block: var(--space-6); }
.section-field { background: var(--field); }
.section-boucle { background: var(--boucle); }
.section-head { display: grid; gap: var(--space-2); max-width: 44rem; margin-bottom: var(--space-4); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 500; }
.more .icon { width: 1.1em; height: 1.1em; transition: transform 160ms var(--ease-out); }
.more:active .icon { transform: translateX(3px); }
@media (hover: hover) and (pointer: fine) { .more:hover .icon { transform: translateX(3px); } }

/* Hero */
.hero { padding-block: var(--space-4) var(--space-5); }
.hero-grid { display: grid; gap: var(--space-4); align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy { display: grid; gap: var(--space-3); max-width: 36rem; }
.hero-role { display: block; margin-top: var(--space-2); font-size: var(--step-1); line-height: 1.4; letter-spacing: 0; color: var(--brand); font-weight: 500; }
.hero-statement { font-size: var(--step-1); line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding-top: var(--space-1); }
.hero-photo { border-radius: calc(var(--radius) * 1.6); overflow: hidden; aspect-ratio: 4 / 3; background: var(--boucle); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-portrait { aspect-ratio: 1 / 1; max-width: 26rem; background: var(--field); }
.hero-portrait img { object-position: 50% 20%; }

@media (min-width: 900px) {
  .hero { padding-block: var(--space-4); }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); }
  .hero-photo { aspect-ratio: 5 / 4; }
  .hero-portrait { aspect-ratio: 4 / 5; max-width: 22.5rem; justify-self: end; width: 100%; }
}

/* Practical facts strip */
.facts { border-block: 1px solid var(--line); background: var(--bg); }
.facts-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 0.9rem; padding-block: var(--space-3); border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact .icon { grid-row: span 2; color: var(--brand); width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; }
.fact dt { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.fact dd { margin: 0; }
.fact-main { display: block; font-weight: 500; }
.open-state { font-weight: 600; color: var(--brand); }
.js [data-today] { min-height: 1.65em; }
html:not(.js) [data-today] { display: none; }
@media (min-width: 56em) {
  .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { border-top: 0; padding-inline: var(--space-3); border-left: 1px solid var(--line); }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* Approach */
.approach-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.approach-text { display: grid; gap: var(--space-3); max-width: 40rem; }
.approach-text p { font-size: var(--step-1); line-height: 1.6; }
.approach-text p + p { font-size: var(--step-0); color: var(--muted); }
@media (min-width: 900px) {
  .approach-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); }
}

/* Services list */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service { display: grid; gap: var(--space-1) var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
.service h3 { font-size: var(--step-1); }
.service p { color: var(--muted); max-width: 40rem; }
.service-meta { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--oak-ink); }
@media (min-width: 47.5em) {
  .service { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  .service h3 { grid-column: 1; grid-row: 1; }
  .service p:not(.service-meta) { grid-column: 1; grid-row: 2; }
  .service-meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; white-space: nowrap; }
}
@media (min-width: 64em) {
  .service-list--wide .service { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 15rem; }
  .service-list--wide .service h3, .service-list--wide .service p:not(.service-meta), .service-list--wide .service-meta { grid-column: auto; grid-row: auto; }
  .service-list--wide .service-meta { text-align: left; }
}
.services-foot { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: center; }

/* Room */
.room-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.room-grid picture { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--field); }
.room-grid img { width: 100%; height: 100%; object-fit: cover; }
.room-grid .room-wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.room-layout .section-head { margin-bottom: 0; }
.room-layout--single .room-grid { grid-template-columns: minmax(0, 1fr); }
.room-layout { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .room-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); }
  .room-grid { gap: var(--space-3); }
  .room-layout .section-head { position: sticky; top: 6.5rem; }
  .room-layout--single .section-head { position: static; }
}

/* Training */
.training-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.training-list li { padding-block: var(--space-2); border-bottom: 1px solid var(--line); display: grid; gap: 0.1rem; grid-template-columns: minmax(0, 1fr); }
.training-list li:first-child { border-top: 1px solid var(--line); }
.training-list .where { color: var(--muted); font-size: var(--step--1); }

/* Closing */
.closing-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); align-items: end; }
.closing-copy { display: grid; gap: var(--space-3); max-width: 36rem; grid-template-columns: minmax(0, 1fr); }
.closing .hero-actions { padding-top: 0; }
.first-call { list-style: none; margin: 0; padding: 0; max-width: 28rem; }
.first-call li { padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.first-call li:first-child { border-top: 1px solid var(--line); }
.hours-table { border-collapse: collapse; width: 100%; max-width: 26rem; font-variant-numeric: tabular-nums; }
.hours-table th, .hours-table td { text-align: left; padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table td { text-align: right; }
.hours-table tr.is-today th, .hours-table tr.is-today td { font-weight: 600; color: var(--brand); }
.hours-table caption { text-align: left; font-weight: 500; padding-bottom: 0.5rem; }
@media (min-width: 900px) {
  .closing-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--space-5); }
}

/* Contact page */
.page-head { padding-block: var(--space-4); }
.page-head-inner { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.page-head-inner h1 { overflow-wrap: anywhere; }
.page-head-inner .lede { max-width: 38rem; }
.visit { border-top: 1px solid var(--line); padding-block: var(--space-4) var(--space-6); }
.visit-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.visit-block { display: grid; gap: var(--space-2); align-content: start; margin: 0; }
.office-address { font-size: var(--step-1); line-height: 1.5; }
.office-street { display: block; font-weight: 500; }
.map-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.map-links .icon { width: 1.25em; height: 1.25em; }
.map-links .more:hover .icon { transform: none; }
.directions { display: grid; gap: 0.25rem; margin-top: var(--space-1); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.directions h3 { font-size: var(--step-0); font-weight: 500; }
.entrance { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-3); }
.entrance picture { flex: 0 0 9rem; }
.entrance figcaption { flex: 1 1 9rem; }
.entrance picture { width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--field); }
.entrance img { width: 100%; height: 100%; object-fit: cover; }
.entrance figcaption { font-size: var(--step--1); color: var(--muted); max-width: 16rem; }
.visit-hours .hours-table { margin-top: var(--space-1); }
.hours-table th { font-weight: 400; }
.hours-table td .range { white-space: nowrap; }
.hours-table tr:first-child th, .hours-table tr:first-child td { border-top: 1px solid var(--line); }

.map { position: relative; display: grid; min-height: 20rem; border-radius: var(--radius); overflow: hidden; background: var(--field); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 180ms ease; }
.map iframe.is-loaded { opacity: 1; }
.map iframe:focus-visible { outline-offset: -3px; }
.map-facade { grid-area: 1 / 1; position: relative; display: grid; place-items: center; padding: var(--space-2); text-align: center; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.map-lines .road-main { stroke-width: 12; stroke: color-mix(in srgb, var(--line) 70%, var(--bg)); }
.map-facade-inner { position: relative; display: grid; justify-items: center; gap: var(--space-2); max-width: 22rem; padding: var(--space-3); background: color-mix(in srgb, var(--field) 88%, transparent); border-radius: var(--radius); }
.map-pin { width: 2rem; height: 2rem; color: var(--brand); }
.map-place { font-weight: 500; line-height: 1.45; }
.map-note { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.js .map-note.no-js, html:not(.js) .map-note.js-only { display: none; }
.map-load { background: var(--bg); }
.map-load[aria-disabled="true"] { cursor: progress; opacity: 0.75; }
.map-error { font-size: var(--step--1); color: var(--ink); font-weight: 500; line-height: 1.5; }
.map-error:empty { display: none; }
.map-fallback { margin-top: var(--space-1); font-size: var(--step--1); color: var(--muted); }
@media (max-width: 30em) { .map-facade-inner { padding: var(--space-2); } }

.ways { margin: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); }
.way { display: grid; gap: 0.15rem; padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
.way dt { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.way dd { margin: 0; font-size: var(--step-1); line-height: 1.45; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; }
.way dd a { display: inline-block; padding-block: 0.5rem; margin-block: -0.5rem; overflow-wrap: anywhere; }

@media (min-width: 47.5em) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "address hours" "entrance entrance" "map map"; column-gap: var(--space-5); }
  .visit-address { grid-area: address; }
  .entrance { grid-area: entrance; }
  .visit-hours { grid-area: hours; }
  .visit-map { grid-area: map; }
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "address map" "hours map" "entrance map"; gap: var(--space-5); align-items: start; }
  .visit-map { position: sticky; top: 6.5rem; }
  .entrance picture { flex-basis: 12rem; }
  .map { height: min(36rem, calc(100vh - 9rem)); height: min(36rem, calc(100svh - 9rem)); min-height: 24rem; }
}

/* Owner-review markers (removed before launch) */
.todo { display: inline-block; margin-top: 0.35rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: #7A4300; background: #FFF1D6; border: 1px dashed #C98A2B; border-radius: 4px; padding: 0.1rem 0.45rem; }

/* Services page */
.groups { padding-block: var(--space-5) var(--space-6); }
.group { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.group + .group { margin-top: var(--space-5); }
.group-head { display: grid; gap: var(--space-1); max-width: 36rem; grid-template-columns: minmax(0, 1fr); }
.group-head .lede { font-size: var(--step-0); }
.group-note { font-size: var(--step--1); color: var(--ink); max-width: 30rem; padding-top: var(--space-1); }
.group .service { padding-block: 1.1rem; }
.start-list { list-style: none; margin: 0; padding: 0; max-width: 40rem; border-top: 1px solid var(--line); }
.start-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.15rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.start-label { color: var(--muted); font-size: var(--step--1); font-weight: 500; }
@media (min-width: 47.5em) {
  .start-list li { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
}
@media (min-width: 900px) {
  .group { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
}

/* About page */
.about-head { padding-block: var(--space-4) var(--space-5); }
.about-grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "photo" "intro"; }
.about-grid h1 { grid-area: title; overflow-wrap: anywhere; }
.about-portrait { grid-area: photo; aspect-ratio: 1 / 1; width: 100%; max-width: 26rem; background: var(--field); }
.about-portrait img { object-position: 50% 20%; }
.about-intro { grid-area: intro; display: grid; gap: var(--space-2); max-width: 38rem; grid-template-columns: minmax(0, 1fr); }
.about-intro .hero-actions { padding-top: var(--space-2); }
.about-lead { font-size: var(--step-1); line-height: 1.55; }
.section-ruled { border-top: 1px solid var(--line); }
.prose { display: grid; gap: var(--space-2); max-width: 40rem; grid-template-columns: minmax(0, 1fr); }
.prose-lead { font-size: var(--step-1); line-height: 1.6; }
.prose p + .training-list { margin-top: var(--space-2); }
@media (min-width: 900px) {
  .about-head { padding-block: var(--space-5); }
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; grid-template-areas: "title photo" "intro photo"; column-gap: var(--space-5); }
  .about-portrait { aspect-ratio: 4 / 5; max-width: 22.5rem; justify-self: end; align-self: start; }
}

/* Gallery page */
.gallery-lede > span { display: block; text-wrap: balance; }
.gallery-section { padding-top: var(--space-4); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4) var(--space-3); grid-template-columns: minmax(0, 1fr); }
.gallery-item { margin: 0; display: grid; gap: 0.75rem; }
.gallery-link { display: block; border-radius: var(--radius); color: var(--muted); text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.gallery-link:focus-visible { border-radius: calc(var(--radius) + 3px); }
.gallery-link picture { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--field); }
.gallery-wide .gallery-link picture { aspect-ratio: 4 / 3; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; font-size: var(--step--1); transition: opacity 160ms var(--ease-out); }
.gallery-link:active img { opacity: 0.88; }
@media (hover: hover) and (pointer: fine) { .gallery-link:hover img { opacity: 0.92; } }
.gallery-item figcaption, .entrance-section .entrance figcaption { font-size: var(--step-0); color: var(--muted); max-width: 36rem; text-wrap: pretty; }
.entrance-section .section-head { margin-bottom: 0; }
.entrance-body { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr); }
.entrance-section .entrance { margin: 0; grid-area: auto; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.entrance-section .entrance picture { flex: 0 0 auto; width: min(14rem, 100%); }
.entrance-section .entrance figcaption { flex: none; } /* Contact sets a flex-basis that would become a height in this column */
@media (min-width: 37.5em) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-link picture { aspect-ratio: 4 / 5; }
  .gallery > .gallery-wide { grid-column: 1 / -1; }
  .gallery-wide .gallery-link picture { aspect-ratio: 3 / 2; }
  /* A photo left alone in the last row keeps its pair size, centred (never stretched and cropped). */
  .gallery > .gallery-wide:first-child ~ li:nth-child(even):last-child,
  .gallery > li:not(.gallery-wide):first-child ~ li:nth-child(odd):last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--space-3)) / 2); }
  .entrance-section .entrance picture { width: max(14rem, calc((min(var(--wrap), 100vw) - 2.5rem - var(--space-3)) / 3)); }
}
@media (min-width: 900px) {
  .gallery { row-gap: var(--space-5); }
}

/* Footer */
.site-footer { background: var(--brand); color: var(--on-dark); padding-top: var(--space-5); }
.site-footer a, .site-footer a:hover { color: var(--on-brand); }
.site-footer a[aria-current="page"] { font-weight: 600; }
.site-footer :focus-visible { outline-color: var(--on-brand); }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-4); }
.footer-grid p + p { margin-top: 0.35rem; }
.footer-id img { width: 27px; height: 40px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: var(--space-2); }
.footer-name { color: var(--on-brand); font-weight: 600; font-size: var(--step-1); }
.footer-role { font-size: var(--step--1); }
.footer-head { font-size: var(--step--1); font-weight: 600; color: var(--on-brand); letter-spacing: 0.02em; margin-bottom: 0.6rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-3); border-top: 1px solid var(--on-dark-line); font-size: var(--step--1); }
@media (min-width: 47.5em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 65em) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 60em) {
  body { padding-bottom: var(--bar-space, calc(var(--bar-h) + env(safe-area-inset-bottom, 0px))); }
  .action-bar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgb(10 47 47 / 0.35);
  }
  .action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem; min-height: var(--bar-h); color: var(--brand); text-decoration: none; font-size: 0.8125rem; font-weight: 500; }
  .action .icon { width: 1.4rem; height: 1.4rem; }
  .action-call { background: var(--brand); color: var(--on-brand); }
  .action-call:hover { color: var(--on-brand); }
  .action { transition: background-color 120ms ease; }
  .action:active { background: var(--brand-soft); }
  .action-call:active { background: var(--brand-hover); }
  .action:focus-visible { outline-offset: -4px; }
  .action-call:focus-visible { outline-color: var(--on-brand); }
}

/* Privacy page */
.policy-date { font-size: var(--step--1); color: var(--muted); }
.policy-section { padding-block: var(--space-4); border-top: 1px solid var(--line); }
.policy-summary { background: var(--field); border-top: 0; }
.policy-section .approach-grid { gap: var(--space-3); }
.policy-basis { font-size: var(--step--1); color: var(--muted); }
.policy-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.policy-links li { border-bottom: 1px solid var(--line); }
.policy-links a { display: inline-block; padding-block: 0.7rem; }
.policy-section:last-child { padding-bottom: var(--space-6); }
@media (min-width: 900px) {
  .policy-section { padding-block: var(--space-5); }
  .policy-section .approach-grid { gap: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active, .js .nav-toggle:active { transform: none; }
  .more .icon { transition: none; }
  .more:hover .icon, .more:active .icon { transform: none; }
  .js .nav-list.is-open { transform: none; }
  @starting-style { .js .nav-list.is-open { transform: none; } }
}
