/* Ald Holland website stylesheet (Bidvise site asset "ald-holland").

   Mobile first. Type and colour follow design v4: headings Familjen Grotesk,
   text IBM Plex Sans, the wordmark Young Serif, accent gold.

   Order of this file:
     1. Tokens        every colour, font and size used below
     2. Base          plain elements
     3. Layout        the page container
     4. Utilities
     5. Shared parts  brand, label, button, link, section, or, placeholder, notes
     6. Site chrome   header, navigation, language switch, mobile menu,
                      contact buttons, footer
     7. Page parts    hero, intro, story, profiles, valuation, news, article
     8. Bidvise       the appointment widget ({% appointment_schedule %})

   Class names: ah-<part>, ah-<part>__<element>, ah-<part>--<variant>. */


/* 1. Tokens ------------------------------------------------------------- */

:root {
  /* Surfaces */
  --ah-paper: #F8F8F7;
  --ah-paper-translucent: rgba(248, 248, 247, .94);
  --ah-glass: rgba(248, 248, 247, .72);
  --ah-glass-edge: rgba(255, 255, 255, .7);
  --ah-surface: #FFFFFF;
  --ah-night: #222221;

  /* Text */
  --ah-ink: #2A2A29;
  --ah-ink-hover: #000000;
  --ah-ink-soft: #4A4741;
  --ah-ink-muted: #5E5A53;
  --ah-on-dark: #F7F4EE;
  --ah-night-text: #D9D3C7;
  --ah-night-muted: #8F897E;
  --ah-brown: #7A5A12;
  --ah-error: #A3341F;

  /* Lines */
  --ah-line: rgba(42, 42, 41, .12);
  --ah-line-strong: rgba(42, 42, 41, .22);
  --ah-night-line: rgba(247, 244, 238, .1);
  --ah-night-line-strong: rgba(247, 244, 238, .22);

  /* Accent */
  --ah-accent: #ECAE30;
  --ah-accent-soft: rgba(236, 174, 48, .35);

  /* WhatsApp */
  --ah-whatsapp: #25D366;
  --ah-whatsapp-ink: #0B2E1A;
  --ah-whatsapp-glow: rgba(37, 211, 102, .8);
  --ah-whatsapp-soft: #E3F0E6;
  --ah-whatsapp-line: #BCD9C3;
  --ah-whatsapp-label: #2F6B42;

  --ah-shadow: rgba(0, 0, 0, .45);

  /* Map card */
  --ah-map: #2E2D2B;
  --ah-map-road: #45433F;

  /* Type */
  --ah-font-text: "IBM Plex Sans", system-ui, sans-serif;
  --ah-font-heading: "Familjen Grotesk", system-ui, sans-serif;
  --ah-font-wordmark: "Young Serif", Georgia, serif;

  /* Space */
  --ah-width: 1280px;
  --ah-gutter: clamp(20px, 4vw, 48px);
  --ah-space: clamp(48px, 7vw, 104px);
  --ah-header-height: 84px;
  --ah-radius: 3px;
}


/* 2. Base --------------------------------------------------------------- */

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

body {
  margin: 0;
  background: var(--ah-paper);
  color: var(--ah-ink);
  font: 400 17px/1.6 var(--ah-font-text);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: var(--ah-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:focus-visible { outline: 2px solid var(--ah-accent); outline-offset: 4px; border-radius: 2px; }


/* 3. Layout ------------------------------------------------------------- */

.ah-container {
  max-width: var(--ah-width);
  margin-inline: auto;
  padding-inline: var(--ah-gutter);
}


/* 4. Utilities ---------------------------------------------------------- */

/* Read by screen readers, not shown. */
.ah-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* 5. Shared parts ------------------------------------------------------- */

/* Brand: the mark and the two-line wordmark */
.ah-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.ah-brand__mark { width: 50px; }

.ah-brand__name {
  font: 400 19px/0.98 var(--ah-font-wordmark);
  letter-spacing: -.005em;
}

.ah-brand__name span { display: block; }

/* Label: a small heading above a block */
.ah-label {
  margin: 0 0 8px;
  color: var(--ah-brown);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Button. The hero menu's links are buttons too: the menu tag prints plain
   links, so they share these rules by selector instead of by class. */
.ah-button,
.ah-hero__menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--ah-radius);
  font-weight: 600;
  text-decoration: none;
}

.ah-button--dark { background: var(--ah-ink); color: var(--ah-on-dark); }
.ah-button--dark:hover { background: var(--ah-ink-hover); }

.ah-button--outline,
.ah-hero__menu a { border: 1.5px solid var(--ah-ink); }

.ah-button--outline:hover,
.ah-hero__menu a:hover { background: var(--ah-ink); color: var(--ah-on-dark); }

.ah-button--gold,
.ah-hero__menu li:first-child a {
  background: var(--ah-accent);
  border-color: var(--ah-accent);
  color: var(--ah-ink);
}

.ah-button--gold:hover,
.ah-hero__menu li:first-child a:hover { filter: brightness(.95); }

.ah-button--whatsapp {
  background: var(--ah-whatsapp);
  border-radius: 999px;
  color: var(--ah-whatsapp-ink);
  box-shadow: 0 10px 24px -12px var(--ah-whatsapp-glow);
}

.ah-button--whatsapp::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.ah-button--whatsapp:hover { filter: brightness(.96); }

/* Link that leads on: bold, with a gold underline */
.ah-link {
  display: inline-block;
  margin-top: 8px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--ah-accent);
  font-weight: 600;
  text-decoration: none;
}

.ah-link:hover { border-bottom-color: var(--ah-ink); }

/* Section: a titled block of a page */
.ah-section { padding-block: 0 var(--ah-space); }

.ah-section__title {
  margin: 0 0 32px;
  font: 600 clamp(32px, 4vw, 48px)/1.08 var(--ah-font-heading);
}

/* Or: a short line of text between two rules */
.ah-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 20px;
  color: var(--ah-ink-soft);
  font-size: 15px;
}

.ah-or::before,
.ah-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ah-line);
}

/* The valuation form: a Bidvise form ({% form %}), so its markup is the
   platform's (.catadesk-form-field: a label and its input); this is the look.
   Two columns on wide screens for the short fields; the description and the
   photos take the whole row. */
.ah-valuation-form {
  padding: clamp(20px, 3vw, 40px);
  background: var(--ah-surface);
  border: 1px solid var(--ah-line);
}

.ah-valuation-form form {
  display: grid;
  gap: 20px 24px;
}

@media (min-width: 700px) {
  .ah-valuation-form form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ah-valuation-form .catadesk-form-field:has(textarea),
  .ah-valuation-form .catadesk-form-field:has(input[type="file"]),
  .ah-valuation-form .catadesk-form-submit-button,
  .ah-valuation-form .ah-local-note { grid-column: 1 / -1; }
}

.ah-valuation-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.ah-valuation-form input[type="text"],
.ah-valuation-form input[type="email"],
.ah-valuation-form input[type="number"],
.ah-valuation-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ah-line-strong);
  border-radius: var(--ah-radius);
  background: var(--ah-paper);
  color: var(--ah-ink);
  font: inherit;
}

.ah-valuation-form textarea { min-height: 132px; resize: vertical; }

.ah-valuation-form input:focus,
.ah-valuation-form textarea:focus { outline: 2px solid var(--ah-accent); outline-offset: 1px; border-color: var(--ah-ink); }

/* The photo field: the browser's own file picker, set in a dropping area */
.ah-valuation-form input[type="file"] {
  display: block;
  width: 100%;
  padding: 24px 16px;
  border: 1.5px dashed var(--ah-line-strong);
  border-radius: var(--ah-radius);
  background: var(--ah-paper);
  color: var(--ah-ink-soft);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.ah-valuation-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--ah-radius);
  background: var(--ah-ink);
  color: var(--ah-on-dark);
  font: 600 15px/1 var(--ah-font-text);
  cursor: pointer;
}

.ah-valuation-form .catadesk-form-submit-button {
  justify-self: start;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--ah-radius);
  background: var(--ah-ink);
  color: var(--ah-on-dark);
  font: 600 16px/1 var(--ah-font-text);
  cursor: pointer;
}

.ah-valuation-form .catadesk-form-submit-button:hover { background: var(--ah-ink-hover); }

/* Local server only (config-uploads.ru): says the captcha is stubbed there */
.ah-local-note { margin: 0; color: var(--ah-ink-muted); font-size: 13px; }

/* Notes: short tips in a column, ruled */
.ah-notes { border-top: 1.5px solid var(--ah-ink); }

.ah-notes__item {
  padding-block: 22px;
  border-bottom: 1px solid var(--ah-line);
}

.ah-notes__item:last-child { border-bottom: 0; }

.ah-notes__item p:not(.ah-label) {
  margin: 0;
  color: var(--ah-ink-soft);
  font-size: 16px;
}


/* 6. Site chrome -------------------------------------------------------- */

/* Header: stays at the top while scrolling, as frosted glass: the page shows
   through, blurred, with a light edge on top. Solid where blur is not
   supported. */
.ah-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ah-paper);
  border-bottom: 1px solid var(--ah-line);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ah-header {
    background: var(--ah-glass);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: inset 0 1px 0 var(--ah-glass-edge);
  }
}

.ah-header__inner {
  display: flex;
  align-items: center;
  height: var(--ah-header-height);
}

/* The header's one call to action: a dark button, a size smaller */
.ah-header__cta {
  margin-left: 28px;
  padding: 12px 20px;
  font-size: 15px;
  white-space: nowrap;
}

.ah-header__languages { margin-left: 20px; }

@media (max-width: 719px) {
  .ah-header__cta { margin-left: auto; padding: 11px 16px; font-size: 14.5px; }
}

/* Main navigation: the website menu "main" on wide screens */
.ah-nav { margin-left: auto; }

.ah-nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-nav a {
  display: block;
  padding-block: 6px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
}

.ah-nav a:hover,
.ah-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--ah-accent);
}

/* Language switch: one pill per language, the current one filled */
.ah-languages ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  list-style: none;
  border: 1px solid var(--ah-line-strong);
  border-radius: 999px;
}

.ah-languages a {
  display: block;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ah-ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  text-decoration: none;
}

.ah-languages a:hover { color: var(--ah-ink); }

.ah-languages a[aria-current] {
  background: var(--ah-ink);
  color: var(--ah-on-dark);
}

/* Mobile menu: a <details> whose <summary> is the button. The panel opens
   below the header; the icon turns into a cross. */
.ah-menu { display: none; margin-left: 10px; }

.ah-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ah-line-strong);
  border-radius: var(--ah-radius);
  list-style: none;
  cursor: pointer;
}

.ah-menu__toggle::-webkit-details-marker { display: none; }

.ah-menu__icon,
.ah-menu__icon::before {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ah-ink);
  transition: transform .2s ease;
}

.ah-menu__icon { position: relative; transform: translateY(-4px); }

.ah-menu__icon::before {
  content: "";
  position: absolute;
  top: 8px;
}

.ah-menu[open] .ah-menu__icon { transform: translateY(0) rotate(45deg); }
.ah-menu[open] .ah-menu__icon::before { top: 0; transform: rotate(-90deg); }

.ah-menu__panel {
  position: fixed;
  inset: calc(var(--ah-header-height) + 1px) 0 0; /* below the header's bottom line */
  z-index: 39;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  overflow-y: auto;
  padding: 16px var(--ah-gutter) 32px;
  background: var(--ah-paper);
  animation: ah-menu-in .2s ease-out;
}

@keyframes ah-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.ah-menu__nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-menu__nav a {
  display: inline-block;
  padding-block: 8px;
  font: 600 26px/1.2 var(--ah-font-heading);
  text-decoration: none;
}

.ah-menu__nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--ah-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.ah-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ah-menu__address {
  color: var(--ah-ink-soft);
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}

body:has(.ah-menu[open]) { overflow: hidden; }

@media (max-width: 719px) {
  .ah-nav,
  .ah-header__languages { display: none; }
  .ah-menu { display: block; }
}

/* Contact buttons: call, mail and WhatsApp.
   Small screens: a bar across the bottom with three labelled buttons.
   Wide screens: three round buttons at the bottom right; the label slides
   out on hover or keyboard focus. */
.ah-contact-bar ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-contact-bar a {
  display: flex;
  align-items: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.ah-contact-bar svg { flex: none; }

.ah-contact-bar__call { background: var(--ah-ink); color: var(--ah-on-dark); }
.ah-contact-bar__mail { background: var(--ah-accent); color: var(--ah-ink); }
.ah-contact-bar__whatsapp { background: var(--ah-whatsapp); color: var(--ah-whatsapp-ink); }

@media (max-width: 719px) {
  .ah-contact-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--ah-paper-translucent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--ah-line);
  }

  .ah-contact-bar li { flex: 1 1 0; min-width: 0; }

  .ah-contact-bar a {
    justify-content: center;
    gap: 7px;
    min-height: 48px;
  }

  /* Keep the end of the page clear of the bar. */
  body:has(.ah-contact-bar) .ah-footer__main { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (min-width: 720px) {
  .ah-contact-bar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 30;
  }

  .ah-contact-bar ul {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  /* The icon sits in a 56px circle on the right; the label is to its left. */
  .ah-contact-bar a {
    flex-direction: row-reverse;
    height: 56px;
    max-width: 56px;
    overflow: hidden;
    box-shadow: 0 14px 32px -14px var(--ah-shadow);
    transition: max-width .25s ease;
  }

  .ah-contact-bar svg {
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 16px;
  }

  .ah-contact-bar__label { padding-left: 20px; }

  .ah-contact-bar a:hover,
  .ah-contact-bar a:focus-visible { max-width: 220px; }
}

@media (min-width: 720px) and (prefers-reduced-motion: reduce) {
  .ah-contact-bar a { transition: none; }
}

/* A phone link shows its number once clicked (the script at the end of the
   layout), for where tel: does nothing. The floating button keeps its label
   open with the number in it; other links get the number next to them. */
@media (min-width: 720px) {
  .ah-contact-bar a.ah-phone--shown { max-width: 260px; }
}
.ah-phone-number {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ah-footer__icons li { position: relative; }
.ah-footer__icons .ah-phone-number {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  margin: 0;
  color: var(--ah-on-dark);
  white-space: nowrap;
}

/* Newsletter: a gold band above the footer with a one-field Bidvise form.
   The form is printed by {% form %}: .catadesk-form-field > label + input,
   then input.catadesk-form-submit-button. */
.ah-newsletter { background: var(--ah-accent); }

.ah-newsletter__inner {
  display: grid;
  gap: 24px 56px;
  align-items: center;
  padding-block: clamp(44px, 5vw, 72px);
}

.ah-newsletter__title {
  margin: 0;
  font: 600 clamp(30px, 3.4vw, 44px)/1.1 var(--ah-font-heading);
}

.ah-newsletter__text { margin: 8px 0 0; font-size: 17.5px; }

.ah-newsletter__form form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ah-newsletter__form .catadesk-form-field { flex: 1 1 220px; }

/* The field's label stays for screen readers; the placeholder says it. */
.ah-newsletter__form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ah-newsletter__form input[type="email"] {
  width: 100%;
  padding: 17px 18px;
  background: var(--ah-surface);
  border: 1.5px solid var(--ah-ink);
  border-radius: var(--ah-radius);
  color: var(--ah-ink);
  font: inherit;
}

.ah-newsletter__form input[type="email"]:focus { outline: 3px solid var(--ah-ink); outline-offset: 0; }

.ah-newsletter__form .catadesk-form-submit-button {
  padding: 17px 26px;
  background: var(--ah-ink);
  border: 0;
  border-radius: var(--ah-radius);
  color: var(--ah-on-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ah-newsletter__form .catadesk-form-submit-button:hover { background: var(--ah-ink-hover); }

/* reCAPTCHA's badge covered the contact buttons in the corner. Hidden: the form
   says it is protected (.ah-newsletter__recaptcha) and leads to the privacy
   statement, which names Google and links its privacy policy and terms. */
.grecaptcha-badge { visibility: hidden; }

.ah-newsletter__recaptcha { margin: 12px 0 0; font-size: 13px; }

.ah-newsletter__recaptcha a { color: inherit; }

@media (min-width: 900px) {
  .ah-newsletter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Footer: the wordmark and address, contact, the website menu "footer", and
   the social links (only when they are filled in) */
.ah-footer { font-size: 15.5px; }

.ah-footer__main {
  background: var(--ah-night);
  color: var(--ah-night-text);
}

/* The wordmark alone, in light: the mark is drawn for a light background */
.ah-footer__wordmark {
  color: var(--ah-on-dark);
  font: 400 26px/0.98 var(--ah-font-wordmark);
  letter-spacing: -.005em;
  text-decoration: none;
}

.ah-footer__wordmark span { display: block; }

.ah-footer__address {
  font-style: normal;
  line-height: 1.55;
}

.ah-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 40px;
  padding-block: clamp(48px, 5vw, 72px) 40px;
}

.ah-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.ah-footer__heading {
  margin: 0 0 4px;
  color: var(--ah-night-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ah-footer__icons {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ah-night-line-strong);
  border-radius: 50%;
}

.ah-footer__icon:hover { border-color: var(--ah-on-dark); color: var(--ah-on-dark); }

.ah-footer__menu ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-footer__menu a { text-decoration: none; }
.ah-footer__menu a:hover { color: var(--ah-on-dark); text-decoration: underline; text-decoration-color: var(--ah-accent); }

.ah-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--ah-night-line);
  color: var(--ah-night-muted);
  font-size: 13.5px;
}

.ah-footer__legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-footer__legal-nav a { color: var(--ah-night-text); text-decoration: none; }
.ah-footer__legal-nav a:hover { color: var(--ah-on-dark); text-decoration: underline; text-decoration-color: var(--ah-accent); }

/* Map card: a drawn map with a pin, leading to the route in Google Maps */
.ah-map-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ah-map);
  border: 1px solid var(--ah-night-line-strong);
  border-radius: 6px;
  color: var(--ah-on-dark);
  text-decoration: none;
}

.ah-map-card:hover { border-color: var(--ah-on-dark); }

.ah-map-card__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ah-map-road);
}

.ah-map-card__pin {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -100%);
  fill: var(--ah-accent);
}

.ah-map-card__pin circle { fill: var(--ah-map); }

.ah-map-card__caption {
  position: absolute;
  inset: auto 10px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.ah-map-card__route { font-weight: 600; white-space: nowrap; }


/* 7. Page parts --------------------------------------------------------- */

/* Hero: title and introduction beside a photo; stacked on small screens */
.ah-hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-block: var(--ah-space);
}

.ah-hero__title {
  margin: 0;
  font: 600 clamp(44px, 6.2vw, 88px)/1 var(--ah-font-heading);
  letter-spacing: -.015em;
  text-wrap: balance;
}

.ah-hero__lead {
  margin: 28px 0 0;
  max-width: 30em;
  color: var(--ah-ink-soft);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Hero menu: the website menu "hero" as buttons (see Button); the first is
   the main action. */
.ah-hero__menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ah-hero__menu a { padding: 16px 26px; }

.ah-hero__media { margin: 0; }

.ah-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 900px) {
  .ah-hero {
    grid-template-columns: 1fr 1fr;
    gap: clamp(36px, 5vw, 80px);
  }
}

/* Intro: the title and opening sentence of a page */
.ah-intro { padding-block: var(--ah-space) clamp(40px, 5vw, 72px); }

.ah-intro__title {
  margin: 0;
  max-width: 14em;
  font: 600 clamp(40px, 5.6vw, 80px)/1.02 var(--ah-font-heading);
  letter-spacing: -.015em;
  text-wrap: balance;
}

.ah-intro__lead {
  margin: 24px 0 0;
  max-width: 36em;
  color: var(--ah-ink-soft);
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Story: a photo beside a short text; stacked on small screens */
.ah-story {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-bottom: var(--ah-space);
}

.ah-story__media { margin: 0; }

.ah-story__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ah-story__text > .ah-label { margin-bottom: 18px; }

.ah-story__text p {
  margin: 0 0 1em;
  max-width: 32em;
  color: var(--ah-ink-soft);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  .ah-story {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: clamp(36px, 5vw, 80px);
  }
}

/* Profiles: a person's name and role beside their story */
.ah-profiles { padding-bottom: var(--ah-space); }

.ah-profile {
  display: grid;
  gap: 24px;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--ah-line);
}

.ah-profile__name {
  margin: 0;
  font: 600 clamp(26px, 2.6vw, 32px)/1.15 var(--ah-font-heading);
}

.ah-profile__role {
  margin: 6px 0 0;
  color: var(--ah-ink-soft);
  font-size: 15px;
}

.ah-profile__figure {
  margin: 20px 0 0;
  max-width: 200px;
}

.ah-profile__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ah-profile__body {
  max-width: 40em;
  font-size: 18px;
  line-height: 1.7;
}

.ah-profile__body p { margin: 0 0 1.1em; text-wrap: pretty; }
.ah-profile__body p:last-child { margin-bottom: 0; }

.ah-profile__lead {
  font: 600 clamp(21px, 2vw, 25px)/1.4 var(--ah-font-heading);
}

.ah-profile__closing {
  padding-left: 22px;
  border-left: 3px solid var(--ah-accent);
  font: 600 clamp(20px, 1.9vw, 23px)/1.4 var(--ah-font-heading);
}

@media (min-width: 900px) {
  .ah-profile {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(36px, 5vw, 80px);
  }

  .ah-profile__figure { margin-top: 28px; max-width: 320px; }
}

/* Valuation: the ways to get one, with tips beside them */
.ah-valuation {
  display: grid;
  gap: 40px;
  align-items: start;
  padding-bottom: var(--ah-space);
}

.ah-options {
  display: grid;
  gap: 16px;
}

.ah-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 32px);
  background: var(--ah-surface);
  border: 1px solid var(--ah-line);
}

.ah-option--whatsapp { background: var(--ah-whatsapp-soft); border-color: var(--ah-whatsapp-line); }
.ah-option--whatsapp .ah-label { color: var(--ah-whatsapp-label); }

.ah-option__title {
  margin: 0;
  font: 600 26px/1.15 var(--ah-font-heading);
}

.ah-option__text {
  margin: 10px 0 24px;
  color: var(--ah-ink-soft);
  font-size: 16px;
}

.ah-option .ah-button { margin-top: auto; }

.ah-option__call { margin-top: 14px; font-size: 15px; }

@media (min-width: 720px) {
  .ah-options { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .ah-valuation {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

/* News: post cards; the title link covers the whole card */
.ah-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 40px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ah-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ah-post-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ah-post-card__date,
.ah-article__date {
  color: var(--ah-ink-soft);
  font-size: 14px;
}

.ah-post-card__title {
  margin: 0;
  font: 600 24px/1.2 var(--ah-font-heading);
}

.ah-post-card__title a { text-decoration: none; }
.ah-post-card__title a::after { content: ""; position: absolute; inset: 0; }
.ah-post-card:hover .ah-post-card__title a { text-decoration: underline; text-decoration-color: var(--ah-accent); }

.ah-post-card__excerpt {
  margin: 0;
  color: var(--ah-ink-soft);
  font-size: 16px;
}

/* Article: one post, a readable column */
.ah-article {
  max-width: 820px;
  padding-block: var(--ah-space);
}

.ah-article__title {
  margin: 8px 0 0;
  font: 600 clamp(36px, 5vw, 64px)/1.05 var(--ah-font-heading);
  letter-spacing: -.01em;
  text-wrap: balance;
}

.ah-article__media { margin: 40px 0 0; }

.ah-article__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ah-article__body {
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.7;
}

.ah-article__body p { margin: 0 0 1.2em; }
/* The simple editor on the preview writes its paragraphs as <div> blocks. */
.ah-article__body > div { margin: 0 0 1.2em; }

/* Text written in the dashboard's editor: headings, lists and links in it */
.ah-article__body h2,
.ah-article__body h3 {
  margin: 1.8em 0 .5em;
  font: 600 24px/1.25 var(--ah-font-heading);
}

.ah-article__body h3 { font-size: 20px; }
.ah-article__body > :first-child { margin-top: 0; }
.ah-article__body ul,
.ah-article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.ah-article__body li { margin-bottom: .4em; }
.ah-article__body a { text-decoration-color: var(--ah-accent); }

/* Legal pages (Website › Pagina's): their text, and on the privacy statement
   the fixed part on Google reCAPTCHA */
.ah-legal__empty {
  margin: 40px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--ah-accent);
  background: var(--ah-surface);
  color: var(--ah-ink-soft);
}

.ah-legal__recaptcha {
  padding-top: 32px;
  border-top: 1px solid var(--ah-line);
  scroll-margin-top: calc(var(--ah-header-height) + 24px);
}


/* 8. Bidvise: the appointment widget ------------------------------------- */

/* {% appointment_schedule %} prints the markup and behaviour; these rules are
   Ald Holland's look. Stable hooks: docs/appointment-scheduling.md. */
.ah-booking { padding-bottom: var(--ah-space); }

.appointment-booking {
  padding: clamp(20px, 3vw, 40px);
  background: var(--ah-surface);
  border: 1px solid var(--ah-line);
  border-radius: 4px;
}

/* A display rule on a panel must not beat the hidden attribute. */
.appointment-booking [hidden] { display: none !important; }

.appointment-booking button { font: inherit; color: inherit; cursor: pointer; }
.appointment-booking button:disabled { cursor: default; }

.appointment-booking [aria-pressed="true"] {
  background: var(--ah-ink);
  border-color: var(--ah-ink);
  color: var(--ah-on-dark);
}

.appointment-booking__columns { display: grid; gap: 32px; }

@media (min-width: 900px) {
  .appointment-booking__columns {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .8fr);
    gap: clamp(32px, 4vw, 56px);
  }
}

/* Facts: how long, where.
   Left out: the widget names the account ("Ald Fryslân"), not this website,
   and the schedule's name cannot be translated; the page title says both. */
.appointment-booking__house-name,
.appointment-booking__title,
.appointment-booking__confirmation-house { display: none; }

.appointment-booking__duration {
  margin: 0;
  font: 600 22px/1.2 var(--ah-font-heading);
}

.appointment-booking__address,
.appointment-booking__description,
.appointment-booking__period {
  margin-top: 16px;
  color: var(--ah-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.appointment-booking__address p,
.appointment-booking__description p { margin: 0; }

/* Calendar */
.appointment-booking__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.appointment-booking__month { font-weight: 600; text-transform: capitalize; }

.appointment-booking__month-button {
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--ah-line);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.appointment-booking__month-button:hover:not(:disabled) { border-color: var(--ah-ink); }
.appointment-booking__month-button:disabled { opacity: .35; }

.appointment-booking__month-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
}

.appointment-booking__weekday {
  padding-bottom: 4px;
  color: var(--ah-ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.appointment-booking__day-cell { padding: 0; text-align: center; }

.appointment-booking__day {
  width: 100%;
  aspect-ratio: 1;
  max-height: 48px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 50%;
  font-weight: 600;
}

.appointment-booking__day:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--ah-ink); }
.appointment-booking__day:disabled { color: var(--ah-ink-soft); font-weight: 400; opacity: .4; }

/* Times */
.appointment-booking__selected-date {
  margin: 8px 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.appointment-booking__time-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}

.appointment-booking__time {
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--ah-line-strong);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.appointment-booking__time:hover:not([aria-pressed="true"]) { border-color: var(--ah-ink); }

/* Status lines */
.appointment-booking__status { margin: 20px 0 0; color: var(--ah-ink-soft); }
.appointment-booking__status:empty { display: none; }
.appointment-booking[data-state="error"] .appointment-booking__status { color: var(--ah-error); }
.appointment-booking__visitor-time { color: var(--ah-ink-soft); }

.appointment-booking__empty,
.appointment-booking__sign-in {
  margin: 20px 0 0;
  padding: 16px 20px;
  background: var(--ah-paper);
  border-radius: 4px;
}

.appointment-booking__retry {
  margin-left: 8px;
  padding: 6px 14px;
  background: none;
  border: 1px solid var(--ah-ink);
  border-radius: 999px;
}

/* Details form */
.appointment-booking__form {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--ah-line);
}

.appointment-booking__fields {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.appointment-booking__fields:disabled { opacity: .45; }

@media (min-width: 720px) {
  .appointment-booking__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.appointment-booking__legend {
  padding: 0 0 16px;
  font: 600 20px/1.2 var(--ah-font-heading);
}

.appointment-booking__field { min-width: 0; margin: 0; }
.appointment-booking__field[data-field="note"] { grid-column: 1 / -1; }

.appointment-booking__label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.appointment-booking__input,
.appointment-booking__textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  font: inherit;
  color: inherit;
  background: var(--ah-surface);
  border: 1px solid var(--ah-line-strong);
  border-radius: var(--ah-radius);
}

.appointment-booking__textarea { min-height: 110px; resize: vertical; }

.appointment-booking__input:focus,
.appointment-booking__textarea:focus {
  border-color: var(--ah-ink);
  outline: 3px solid var(--ah-accent-soft);
  outline-offset: 0;
}

.appointment-booking__submit {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 16px 26px;
  background: var(--ah-accent);
  border: 0;
  border-radius: var(--ah-radius);
  font-weight: 600;
}

.appointment-booking__submit:hover { filter: brightness(.95); }
.appointment-booking[data-state="submitting"] .appointment-booking__submit { opacity: .6; cursor: progress; }

/* Confirmation: replaces the booking once it is made */
.appointment-booking[data-state="confirmed"] .appointment-booking__columns,
.appointment-booking[data-state="confirmed"] .appointment-booking__form,
.appointment-booking[data-state="confirmed"] .appointment-booking__management { display: none; }

.appointment-booking__confirmation { padding: clamp(8px, 2vw, 24px) 0; }

.appointment-booking__confirmation-message {
  margin: 0 0 16px;
  font: 600 clamp(28px, 3vw, 38px)/1.15 var(--ah-font-heading);
}

.appointment-booking__confirmation-schedule { margin: 0; color: var(--ah-ink-soft); }
.appointment-booking__confirmation-summary { margin: 8px 0 16px; font-size: 20px; font-weight: 600; }
.appointment-booking__confirmation-address { color: var(--ah-ink-soft); }
.appointment-booking__confirmation-address-line { margin: 0; }

/* Visitor management (cancel / reschedule), when the widget offers it */
.appointment-booking__management {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ah-line);
}

.appointment-booking__management-title { margin: 0 0 8px; font: 600 20px/1.2 var(--ah-font-heading); }

.appointment-booking__cancel,
.appointment-booking__reschedule {
  margin: 4px 8px 4px 0;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--ah-ink);
  border-radius: 999px;
}
