/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: Ink (deal 3/3, seed property-management-holiday-rental-homeowners-3e96·998e5723·2026-11-19·r0) · job: hire · draw: c1866f
 * hero: Index · nav: floating pill · footer: mast · imagery: photographs, the user's own 2, muted, the valuation photo at full colour by the owner's request · signature: the ruled index of the five services with their real prices · ink: paper
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: pass · fold: pass · brand: Cantabria Property Management (spec 2026-11-19, green and navy from the live site) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: S, the gallery of properties is cut because most of its pictures are generated; the stages carry the page with the owner's own prices instead */
/* Hallmark · answered F15 · the 24px gap lives inside each ruled row of a list, not between section columns, which all part at 96px */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule); border-radius: 10px;
  background: var(--color-paper-2); color: var(--color-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.btn:hover { border-color: var(--color-ink); }
.btn:active { background: var(--color-paper-3); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:active { background: var(--color-ink-2); border-color: var(--color-ink-2); }

a:not(.btn) { font-weight: 600; text-decoration-color: var(--color-rule); transition: text-decoration-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
a:not(.btn):hover { text-decoration-color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }

.tag { display: inline-flex; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.tag--in { background: var(--color-accent-soft); color: var(--color-accent-soft-ink); }

.ruled { border-top: var(--rule-hair) solid var(--color-ink); margin: 0; padding: 0; list-style: none; }
.ruled > * { border-bottom: var(--rule-hair) solid var(--color-rule); }

.photo { border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }

.note { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-md); }

/* ---------- nav: floating pill ---------- */
.nav-wrap { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding: var(--space-sm) var(--gutter); }
.nav {
  max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-lg);
  min-height: 64px; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
  background: var(--color-paper); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill);
}
.nav__brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; min-width: 0; }
.nav__brand img { width: 40px; height: 40px; flex-shrink: 0; }
.nav__brand span { font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.nav__links { display: flex; gap: var(--space-lg); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { display: inline-flex; white-space: nowrap; align-items: center; min-height: 44px; font-weight: 400; text-decoration: none; color: var(--color-ink-2); }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav__action { min-height: 44px; border-radius: var(--radius-pill); }

/* ---------- hero: index ---------- */
.hero { min-height: calc(100dvh - 88px); display: grid; align-items: center; padding-block: var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero h1 { max-width: 12ch; line-height: 1.0; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__index { margin: 0; }
.index li a {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; gap: var(--space-lg); align-items: center;
  min-height: 88px; padding-block: var(--space-sm); text-decoration: none; font-weight: 400; color: var(--color-ink-2);
}
.index li a:hover .index__name { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; }
.index__name { font-size: var(--text-title); font-weight: 700; letter-spacing: -0.02em; color: var(--color-ink); line-height: 1.15; }
.index__fig { font-weight: 600; color: var(--color-ink); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero__index figcaption { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-sm); }

/* ---------- stages ---------- */
.stages { list-style: none; margin: 0; padding: 0; }
.stage { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.stage h2 { max-width: 18ch; }
.stage .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.stage__head { max-width: 56rem; margin-bottom: var(--space-2xl); }

.stage__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.stage__link { margin-top: var(--space-xl); font-size: var(--text-lead); }
.stage__photo { aspect-ratio: 4 / 3; min-height: 440px; }
.stage__photo > img { object-position: 55% 50%; filter: none; }

.stage__rows { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-lg); align-items: baseline; padding-block: var(--space-xl); }
.rows dt { font-size: var(--text-title); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.rows dd { margin: 0; color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; max-width: 44ch; }

.stage--band { background: var(--color-paper-2); border-top: 0; padding-block: var(--section-gap); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.plan { border-top: var(--rule-hair) solid var(--color-ink); padding-top: var(--space-lg); }
.plan h3 { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); font-size: var(--text-section); max-width: none; line-height: 1.0; }
.plan__fig { font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; margin: var(--space-xl) 0 0; padding: 0; }
.plan li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }

.stage__table { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.stage__table .stage__head { margin-bottom: 0; }
.table-wrap { min-width: 0; }
table { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-ink); }
th, td { text-align: left; padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
thead th { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
tbody th { font-weight: 600; }
tbody td { font-size: var(--text-lead); color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
tbody tr { height: 64px; }

/* ---------- calculator ---------- */
.calc__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.calc .stage__head { margin-bottom: 0; }
.calc__wrap { min-width: 0; border-radius: var(--radius-card); }
.calc__wrap:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.calc__frame { display: block; width: 100%; height: 680px; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); }

/* ---------- technology ---------- */
.tech { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.tech__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.tech .stage__head { margin-bottom: 0; }

.logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin-bottom: var(--space-xs); }
.logos img { height: 48px; width: auto; flex-shrink: 0; border-radius: 8px; }
.logo-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: 10px; background: var(--color-paper); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; }
.logo-link:hover { border-color: var(--color-ink); }

/* ---------- group ---------- */
.group { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.group__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.group__list li { display: grid; gap: var(--space-xs); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-ink); }
.group__list a { display: grid; gap: var(--space-md); justify-items: start; text-decoration: none; }
.group__list img { height: 96px; width: auto; }
.group__list a:hover .group__name { text-decoration: underline; text-decoration-color: var(--color-accent); }
.group__name { font-size: var(--text-title); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.group__line { color: var(--color-ink-2); }

/* ---------- voices ---------- */
.voices { padding-block: var(--section-gap-l) var(--section-gap); }
.voices__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.voices__quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.voices blockquote { margin: 0; }
.voices blockquote p { font-size: var(--text-section); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
.voices h2 { max-width: 24ch; }
blockquote { margin: var(--space-xl) 0 0; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
blockquote p { font-size: var(--text-xl); line-height: 1.35; letter-spacing: -0.01em; color: var(--color-ink); }
@media (min-width: 60rem) { blockquote p { text-indent: -0.4em; } }
blockquote footer { margin-top: var(--space-sm); color: var(--color-muted); }

/* ---------- close ---------- */
.close { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.close__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-3xl); align-items: start; }
.close .rows > div { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.contact { font-style: normal; display: grid; gap: var(--space-md); margin-top: var(--space-3xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-ink); }
.contact__head { font-size: var(--text-lead); color: var(--color-ink-2); }
.contact__mail { font-size: var(--text-display-s); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; text-decoration-thickness: 2px; overflow-wrap: break-word; min-width: 0; }
.fill { justify-self: start; padding: var(--space-2xs) var(--space-xs); color: var(--color-muted); outline: var(--rule-hair) dashed var(--color-muted); outline-offset: 0; border-radius: 4px; }

/* ---------- footer: mast ---------- */
.footer { padding-block: var(--space-3xl) var(--space-2xl); background: var(--color-ink); color: var(--color-paper); }
.footer__mark { font-size: var(--text-display-s); font-weight: 700; letter-spacing: -0.04em; line-height: 1.0; max-width: 16ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.footer__links a { font-weight: 400; color: var(--color-paper); text-decoration-color: var(--color-muted); }
.footer__links a:hover { text-decoration-color: var(--color-paper); }
.footer a:focus-visible { outline-color: var(--color-paper); }
.footer__legal { margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-paper-3); max-width: 60ch; }

/* ---------- under 80rem ---------- */
@media (max-width: 80rem) {
  .nav__links { display: none; }
  .nav__action { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); }
  .hero h1 { font-size: clamp(2.75rem, 4.4vw, 5.25rem); }
  .index li a { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); }
  .index__line { grid-column: 1; grid-row: 2; font-size: var(--text-sm); }
  .index__fig { grid-row: 1 / span 2; grid-column: 2; }
}

/* ---------- under 60rem ---------- */
@media (max-width: 60rem) {
  .nav__links { display: none; }
  .nav__action { margin-left: auto; }
  .hero { min-height: auto; }
  .calc__frame { height: 820px; }
  .hero__grid, .stage__grid, .stage__rows, .stage__table, .calc__grid, .tech__grid, .voices__grid, .close__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .plans, .group__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .stage__photo { min-height: 0; }
  .voices__quotes { grid-template-columns: minmax(0, 1fr); }
  .rows > div, .close .rows > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .contact { margin-top: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .nav__brand span { display: none; }
  .index li a { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md); }
  .index__line { grid-column: 1; grid-row: 2; font-size: var(--text-sm); }
  .index__fig { grid-row: 1 / span 2; grid-column: 2; }
  .actions .btn { flex: 1 1 100%; }
  th, td { white-space: normal; }
  .contact__mail { font-size: clamp(1rem, 5.2vw, 1.5625rem); letter-spacing: -0.02em; }
}
