/*
 * Ariol Auto — design system: the site-wide tokens, the components of pages built from native
 * Elementor widgets (body class `aa-ds`; plain classes set in Elementor → Advanced → CSS Classes),
 * the booking popup and the mobile navigation drawer. The header, footer and cookie notice
 * (ariol-site.css) read the same tokens. Loaded on every page (functions.php, ARIOL_SITE_ASSETS).
 *
 * Breakpoints: 1100 (wide hero), 900 (contact grid), 800 (single column),
 * 767 (mobile, matches the Elementor mobile breakpoint).
 */

/* ---------- Tokens: one set for the whole site ----------
 * The pages, header, footer, mobile menu, booking popup and cookie notice all read these; no
 * component keeps its own colours. Brand colours come from Elementor → Site Settings → Global
 * Colors ("Ariol: …"), which the header/footer/menu widgets use too, so a colour changed there
 * changes everything at once; the fallbacks are the same values. Declared on body (not :root)
 * because Elementor declares the global colours on body (.elementor-kit-*). */

body {
  /* Colours */
  --aa-dark: var(--e-global-color-ariodark, #1b242b);           /* header, footer, menus, dark panels */
  --aa-dark-raised: var(--e-global-color-arioraise, #26313a);   /* round icons and controls on dark */
  --aa-accent: var(--e-global-color-arioacc, #f7a801);
  --aa-accent-hover: var(--e-global-color-arioacch, #ffce27);
  --aa-text: var(--e-global-color-ariotext, #586875);
  --aa-text-on-dark: var(--e-global-color-ariomuted, #aeb8bf);  /* secondary text on dark */
  --aa-white: var(--e-global-color-ariowhite, #ffffff);
  --aa-surface: var(--e-global-color-ariosurf, #f5f6f8);
  --aa-border: var(--e-global-color-arioborder, #e3e7e9);
  --aa-line-dark: var(--e-global-color-arioline, rgba(255, 255, 255, .12)); /* dividers and borders on dark */
  --aa-copy-on-dark: rgba(255, 255, 255, .84);   /* body copy on dark */
  --aa-note-on-dark: rgba(255, 255, 255, .68);   /* small print on dark */
  --aa-fill-dark: rgba(255, 255, 255, .04);      /* tiles on dark */
  --aa-hover-dark: rgba(255, 255, 255, .08);     /* item hover on dark */
  --aa-outline-dark: rgba(255, 255, 255, .45);   /* outline button on dark */
  --aa-accent-soft: rgba(247, 168, 1, .10);
  --aa-accent-line: rgba(247, 168, 1, .30);
  --aa-field-border: #87939c; /* 3.1:1 on white (WCAG 1.4.11) */
  --aa-field-focus: #c08100;  /* brand amber darkened to 3.3:1 on white */
  --aa-error: #c83b32;
  --aa-error-soft: rgba(200, 59, 50, .12);

  /* Type: families and the button style come from Elementor → Site Settings → Global Fonts
   * (Primary = headings, Text = body, "Ariol: кнопка"), which the header/footer widgets use too. */
  --aa-font-heading: var(--e-global-typography-primary-font-family, Montserrat), Arial, sans-serif;
  --aa-font-body: var(--e-global-typography-text-font-family, "Open Sans"), Arial, sans-serif;
  --aa-button-font: var(--e-global-typography-ariobtn-font-weight, 700) var(--e-global-typography-ariobtn-font-size, 16px)/var(--e-global-typography-ariobtn-line-height, 20px) var(--aa-font-heading); /* every button; the header button is "Ariol: кнопка компактная" */
  --aa-menu-font: 600 14px/22px var(--aa-font-heading);      /* header items and the language switcher */
  --aa-menu-item-font: 500 14px/20px var(--aa-font-heading); /* dropdown items */
  --aa-small-font: 500 12px/20px var(--aa-font-heading);     /* footer small print */

  /* Shape */
  --aa-radius-control: 4px;  /* buttons, fields, small controls */
  --aa-radius-menu: 6px;     /* dropdown panels */
  --aa-radius-sm: 9px;       /* tiles, FAQ items */
  --aa-radius-md: 12px;      /* cards, panels, media */
  --aa-radius-lg: 14px;      /* CTA, dialogs, cookie notice */
  --aa-radius-xl: 18px;      /* page hero */

  /* Elevation */
  --aa-shadow-card: 0 8px 30px rgba(27, 36, 43, .05);
  --aa-shadow-menu: 0 16px 38px rgba(0, 0, 0, .34);
  --aa-shadow-dialog: 0 24px 64px rgba(0, 0, 0, .35);
  --aa-shadow-drawer: 18px 0 45px rgba(0, 0, 0, .35);
  --aa-backdrop: rgba(10, 14, 17, .68);

  /* Focus: on dark surfaces the accent ring, on light surfaces the dark one (>= 3:1 either way). */
  --aa-focus-ring: 3px solid var(--aa-accent-hover);
  --aa-focus-ring-light: 2px solid var(--aa-dark);
  --aa-focus-offset: 3px;

  /* Motion */
  --aa-duration: .3s;
  --aa-ease: cubic-bezier(.48, .01, .5, .99);

  /* Layout */
  --aa-content-width: 1170px;
  --aa-hero-pad-x: 50px;       /* side padding of the page title + hero panel (one dark block) */
  --aa-section-space: 62px;
  --aa-drawer-pad: 20px;

  /* Header bar: the dropdown position is derived from these, so item text stays under its label. */
  --aa-header-pad-y: 17px;     /* = the header container's vertical padding (Elementor setting) */
  --aa-menu-pad-x: 12px;       /* top-level item side padding */
  --aa-panel-pad: 6px;         /* dropdown panel padding */
  --aa-panel-item-pad-x: 14px; /* dropdown item side padding */
  --aa-panel-gap: 8px;         /* bar bottom → panel top */
  --aa-panel-offset: calc(var(--aa-header-pad-y) + 1px + var(--aa-panel-gap)); /* + the bar's 1 px border */
}

@media (max-width: 800px) {
  body { --aa-section-space: 42px; --aa-hero-pad-x: 22px; }
}

@media (max-width: 767px) {
  body { --aa-radius-md: 10px; --aa-radius-lg: 12px; --aa-radius-xl: 11px; }
}

/* One grid with the global header and footer (1170 px, 15 px gutters): the
 * theme otherwise narrows the content wrapper to 940/640 px on tablets. */
.aa-ds .site-content__wrap { max-width: 1200px; }

/* ---------- Page title (theme page header joined to the hero) ---------- */

.aa-ds .page-header {
  max-width: var(--aa-content-width);
  margin: 30px auto 0;
  padding: 42px var(--aa-hero-pad-x) 10px;
  background: var(--aa-dark);
  border-radius: var(--aa-radius-xl) var(--aa-radius-xl) 0 0;
}

/* The container sets the vertical rhythm; the title itself has no spacing of its own (the
 * Customizer's legacy title padding is scoped to non-design-system pages). */
.aa-ds .page-header .page-title {
  margin: 0;
  padding: 0;
  color: var(--aa-white);
  font-family: var(--aa-font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  text-align: left;
}

@media (max-width: 767px) {
  .aa-ds .page-header {
    margin: 30px 0 0;
    padding: 25px var(--aa-hero-pad-x) 8px;
  }
  .aa-ds .page-header .page-title {
    font-size: 28px; /* mobile scale: H1 28 > H2 24 > H3 18 */
    line-height: 1.25;
    letter-spacing: -.3px;
  }
}

/* ---------- Base: neutralise Elementor spacing, set typography ---------- */

.aa-ds :is(.aa-service, .aa-contact) {
  --kit-widget-spacing: 0px;
  --widgets-spacing: 0px 0px;
  color: var(--aa-dark);
  font-family: var(--aa-font-heading);
}

/* Zero-specificity reset so component spacing below always wins. */
/* Elementor's own `.e-con .elementor-widget.elementor-widget` rule removes
 * widget margins; component widgets that need spacing below use the equally
 * specific `.elementor-element.aa-…` selector, which comes later. */
.aa-ds :where(.aa-service, .aa-contact) .elementor-widget {
  margin-block-end: 0;
}

.aa-ds :is(.aa-service, .aa-contact) .elementor-heading-title {
  color: var(--aa-dark);
  font-family: var(--aa-font-heading);
  font-weight: 800;
}

.aa-ds :is(.aa-service, .aa-contact) h2.elementor-heading-title {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.aa-ds :is(.aa-service, .aa-contact) h3.elementor-heading-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.aa-ds .aa-service .elementor-widget-text-editor {
  color: var(--aa-text);
  font-family: var(--aa-font-body);
  font-size: 16px;
  line-height: 1.75;
}

.aa-ds .aa-service .elementor-widget-text-editor p {
  margin: 0 0 16px;
}

/* The last text block of any container closes without trailing space. */
.aa-ds .aa-service .elementor-widget-text-editor:last-child p:last-child {
  margin-bottom: 0;
}

/* Links in body copy: dark and underlined on light surfaces (the accent is 2:1 on white), the accent
 * on the dark panel; the focus ring follows the surface. */
.aa-ds .aa-service .elementor-widget-text-editor a {
  color: var(--aa-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--aa-duration) ease;
}

.aa-ds .aa-service .elementor-widget-text-editor a:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.aa-ds .aa-service .aa-panel .elementor-widget-text-editor a { color: var(--aa-accent); }
.aa-ds .aa-service .aa-panel .elementor-widget-text-editor a:focus-visible { outline: var(--aa-focus-ring); }

@media (hover: hover) {
  .aa-ds .aa-service .elementor-widget-text-editor a:hover { color: var(--aa-text); }
  .aa-ds .aa-service .aa-panel .elementor-widget-text-editor a:hover { color: var(--aa-accent-hover); }
}

@media (max-width: 800px) {
  .aa-ds :is(.aa-service, .aa-contact) h2.elementor-heading-title { font-size: 27px; }
}

@media (max-width: 767px) {
  .aa-ds :is(.aa-service, .aa-contact) h2.elementor-heading-title { font-size: 24px; }
  .aa-ds :is(.aa-service, .aa-contact) h3.elementor-heading-title { font-size: 18px; }
}

/* Long words in headings (RU «конфиденциальности», ET compounds) are wider than a phone screen or a
 * 820–1024 px column: hyphenate them by the page language instead of overflowing. Only words of 14+
 * letters are split, so ordinary headings keep whole words; break-word is the fallback for words
 * the browser has no dictionary for. */
@media (max-width: 1024px) {
  .aa-ds .page-header .page-title,
  .aa-ds :is(.aa-service, .aa-contact) :is(h1, h2, h3).elementor-heading-title {
    hyphens: auto;
    -webkit-hyphenate-limit-before: 6;
    -webkit-hyphenate-limit-after: 5;
    hyphenate-limit-chars: 14 6 5;
    overflow-wrap: break-word;
  }
}

/* ---------- Layout ---------- */

.aa-ds .aa-service {
  margin: 0;
}

.aa-ds .aa-section {
  width: 100%;
  max-width: var(--aa-content-width);
  margin-inline: auto;
  padding: var(--aa-section-space) 0;
}

/* Full-width tinted band; content keeps the page grid. */
.aa-ds :is(.aa-section--soft, .aa-contact) {
  background: var(--aa-surface);
  box-shadow: 0 0 0 100vmax var(--aa-surface);
  clip-path: inset(0 -100vmax);
}

.aa-ds .aa-section__head {
  margin-bottom: 30px;
}

.aa-ds .aa-grid {
  display: grid;
  gap: 20px;
}

.aa-ds .aa-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.aa-ds .aa-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.aa-ds .aa-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}

.aa-ds .aa-feature {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .aa-ds :is(.aa-grid--2, .aa-grid--3, .aa-split, .aa-feature) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .aa-ds .aa-section__head { margin-bottom: 22px; }
  .aa-ds .aa-grid--3 { gap: 12px; }
  .aa-ds .aa-grid--2 { gap: 9px; }
  .aa-ds .aa-split { gap: 24px; }
  .aa-ds .aa-feature { gap: 11px; }
}

/* ---------- Eyebrow ---------- */

.aa-ds .elementor-element.aa-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-block-end: 15px;
}

/* The eyebrow's accent stripe — one rule for the page sections and the booking popup. */
.aa-ds :is(.aa-eyebrow, .ariol-booking__eyebrow)::before {
  content: "";
  flex: 0 0 26px;
  height: 2px;
  background: var(--aa-accent);
}

.aa-ds .aa-eyebrow .elementor-heading-title {
  color: var(--aa-text);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* ---------- Button ---------- */

.aa-ds .aa-button .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 20px;
  background: var(--aa-accent);
  color: var(--aa-dark);
  border: 0;
  border-radius: var(--aa-radius-control);
  font: var(--aa-button-font);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: background-color .3s, color .3s;
}

/* Focus rings: accent on the dark hero/CTA panels, --aa-dark on light surfaces (>= 3:1 either way). */
.aa-ds .aa-button .elementor-button:focus-visible {
  outline: var(--aa-focus-ring);
  outline-offset: 3px;
}

@media (hover: hover) {
  .aa-ds .aa-button .elementor-button:hover {
    background: var(--aa-accent-hover);
    color: var(--aa-dark);
  }
}

/* Secondary action on the dark hero: outline, so the primary button keeps priority. */
.aa-ds .aa-button--secondary .elementor-button {
  background: transparent;
  color: var(--aa-white);
  box-shadow: inset 0 0 0 1px var(--aa-outline-dark);
}

@media (hover: hover) {
  .aa-ds .aa-button--secondary .elementor-button:hover {
    background: transparent;
    color: var(--aa-accent);
    box-shadow: inset 0 0 0 1px var(--aa-accent);
  }
}

.aa-ds .aa-actions {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
  margin-top: 27px;
}

.aa-ds .aa-actions > .elementor-widget {
  width: auto;
}

@media (max-width: 800px) {
  .aa-ds .aa-actions > .elementor-widget,
  .aa-ds .aa-actions .elementor-button { width: 100%; }
}

@media (max-width: 767px) {
  .aa-ds .aa-actions { gap: 9px; margin-top: 20px; }
}

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

.aa-ds .aa-hero {
  max-width: var(--aa-content-width);
  margin-inline: auto;
  padding: 12px var(--aa-hero-pad-x) 48px;
  overflow: hidden;
  background: var(--aa-dark);
  border-radius: 0 0 var(--aa-radius-xl) var(--aa-radius-xl);
}

.aa-ds .aa-hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: 36px;
  align-items: center;
}

.aa-ds .aa-service .aa-hero__lead {
  max-width: 790px;
  color: var(--aa-copy-on-dark);
  font-size: 18px;
}

.aa-ds .aa-service .aa-hero__lead p { margin-bottom: 0; }

.aa-ds .aa-hero__media {
  aspect-ratio: 1500 / 925;
  overflow: hidden;
  border-radius: var(--aa-radius-md);
}

.aa-ds .aa-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aa-ds .aa-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.aa-ds .aa-fact {
  padding: 14px 16px;
  background: var(--aa-fill-dark);
  border: 1px solid var(--aa-line-dark);
  border-radius: var(--aa-radius-sm);
}

.aa-ds .elementor-element.aa-fact__label {
  margin-block-end: 4px;
}

.aa-ds .aa-fact__label .elementor-heading-title {
  display: block;
  color: var(--aa-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.aa-ds .aa-service .aa-fact__value {
  color: var(--aa-white);
  font-family: var(--aa-font-heading);
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 1101px) {
  .aa-ds .aa-hero__main { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
}

@media (max-width: 900px) {
  .aa-ds .aa-hero__main { grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); gap: 24px; }
}

@media (max-width: 800px) {
  .aa-ds .aa-hero { padding-bottom: 32px; }
  .aa-ds .aa-service .aa-hero__lead { font-size: 16px; }
  .aa-ds .aa-hero__facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .aa-ds .aa-hero { padding-top: 14px; padding-bottom: 24px; }
  .aa-ds .aa-hero__main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .aa-ds .aa-service .aa-hero__lead { font-size: 15.5px; line-height: 1.65; }
}

/* ---------- Cards ---------- */

.aa-ds .aa-card {
  padding: 25px;
  background: var(--aa-white);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius-md);
  box-shadow: var(--aa-shadow-card);
}

.aa-ds .aa-grid--numbered { counter-reset: aa-card; }

.aa-ds .aa-grid--numbered > .aa-card > .elementor-widget:first-child::before {
  counter-increment: aa-card;
  content: counter(aa-card, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  background: var(--aa-accent-soft);
  border-radius: var(--aa-radius-sm);
  color: var(--aa-dark);
  font-family: var(--aa-font-heading);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 767px) {
  .aa-ds .aa-card { padding: 18px; }
  .aa-ds .aa-grid--numbered > .aa-card > .elementor-widget:first-child::before { width: 32px; height: 32px; margin-bottom: 13px; }
}

/* ---------- Brand logos (links to the other brand pages) ---------- */

/* Native Image widgets linked to the brand pages; the tile is the card surface, the logo is
 * centred and capped at 56 px. Hover: accent border; focus: the light-surface ring. */
.aa-ds .aa-brands {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.aa-ds .aa-brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 12px;
  background: var(--aa-white);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius-md);
  box-shadow: var(--aa-shadow-card);
  transition: border-color var(--aa-duration) ease;
}

.aa-ds .aa-brand img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.aa-ds .aa-brand a:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: var(--aa-focus-offset);
}

@media (hover: hover) {
  .aa-ds .aa-brand a:hover { border-color: var(--aa-accent); }
}

@media (max-width: 1024px) {
  .aa-ds .aa-brands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .aa-ds .aa-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .aa-ds .aa-brand a { height: 72px; padding: 10px; border-radius: var(--aa-radius-sm); }
}

/* ---------- Checklist item (symptoms) ---------- */

.aa-ds .aa-service .aa-check-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 18px;
  background: var(--aa-white);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius-sm);
  font-size: 15px;
}

.aa-ds .aa-check-item::before {
  content: "\2713";
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  height: 24px;
  background: var(--aa-accent-soft);
  border-radius: 50%;
  color: var(--aa-dark);
  font-family: var(--aa-font-heading);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.aa-ds .aa-service .aa-check-item p { margin: 0; }
.aa-ds .aa-check-item strong { font-weight: 700; }

@media (max-width: 767px) {
  .aa-ds .aa-service .aa-check-item { gap: 10px; padding: 13px 14px; font-size: 14.5px; line-height: 1.58; }
  .aa-ds .aa-check-item::before { flex-basis: 22px; height: 22px; }
}

/* ---------- Bullet list ---------- */

.aa-ds .aa-list ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.aa-ds .aa-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 27px;
}

.aa-ds .aa-list li:last-child { margin-bottom: 0; }

/* Same rhythm as paragraphs: a list that closes its container has no trailing space. */
.aa-ds .aa-list:last-child ul { margin-bottom: 0; }

.aa-ds .aa-list li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--aa-accent);
  border-radius: 50%;
}

/* ---------- Dark panel ---------- */

.aa-ds .aa-panel {
  padding: 30px;
  background: var(--aa-dark);
  border-radius: var(--aa-radius-md);
}

.aa-ds .aa-service .aa-panel h3.elementor-heading-title {
  color: var(--aa-white);
  font-size: 23px;
}

.aa-ds .aa-service .aa-panel .elementor-widget-text-editor { color: var(--aa-copy-on-dark); }

.aa-ds .aa-service .aa-panel .aa-note {
  color: var(--aa-note-on-dark);
  font-size: 13px;
}

@media (max-width: 767px) {
  .aa-ds .aa-panel { padding: 21px; }
  .aa-ds .aa-service .aa-panel h3.elementor-heading-title { font-size: 21px; }
}

/* ---------- Process steps ---------- */

.aa-ds .aa-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: aa-step;
}

.aa-ds .aa-step {
  padding: 20px 12px 0;
  border-top: 3px solid var(--aa-accent);
}

.aa-ds .aa-step > .elementor-widget:first-child::before {
  counter-increment: aa-step;
  content: counter(aa-step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--aa-text);
  font-family: var(--aa-font-heading);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.aa-ds .aa-service .aa-step .elementor-widget-text-editor { font-size: 14px; }

/* Four ~190 px columns are too narrow for long Estonian titles ("Kooskõlastamine"). */
@media (max-width: 900px) {
  .aa-ds .aa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
}

@media (max-width: 800px) {
  .aa-ds .aa-steps { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
}

@media (max-width: 767px) {
  .aa-ds .aa-steps { gap: 10px; }
  .aa-ds .aa-step { padding-top: 14px; }
}

/* ---------- Feature pair (maintenance) ---------- */

.aa-ds :is(.aa-feature__main, .aa-feature__aside) {
  padding: 30px;
  border-radius: var(--aa-radius-md);
}

.aa-ds .aa-feature__main {
  background: linear-gradient(135deg, var(--aa-accent-soft), var(--aa-white));
  border: 1px solid var(--aa-accent-line);
}

.aa-ds .aa-feature__aside {
  background: var(--aa-white);
  border: 1px solid var(--aa-border);
}

@media (max-width: 767px) {
  .aa-ds :is(.aa-feature__main, .aa-feature__aside) { padding: 21px; }
}

/* ---------- FAQ (Elementor Nested Accordion: <details>/<summary>) ---------- */

.aa-ds .aa-faq .e-n-accordion {
  display: flex;
  flex-direction: column;
  gap: 13px; /* 11 px visible between the 1 px outlines */
}

/* The outline is a box-shadow, not a border: Elementor animates <details> from its
 * offsetHeight to the <summary> height, so a border would make every item jump 2 px. */
.aa-ds .aa-faq .e-n-accordion-item {
  overflow: hidden;
  margin-inline: 1px;
  background: var(--aa-white);
  border: 0;
  border-radius: var(--aa-radius-sm);
  box-shadow: 0 0 0 1px var(--aa-border);
}

.aa-ds .aa-faq .e-n-accordion-item-title {
  position: relative;
  display: block;
  margin: 0;
  padding: 17px 54px 17px 20px;
  background: transparent;
  border: 0;
  list-style: none;
  cursor: pointer;
}

.aa-ds .aa-faq .e-n-accordion-item-title::-webkit-details-marker { display: none; }

.aa-ds .aa-faq .e-n-accordion-item-title:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: -2px;
  border-radius: var(--aa-radius-sm);
}

.aa-ds .aa-faq .e-n-accordion-item-title-text {
  margin: 0;
  color: var(--aa-dark);
  font-family: var(--aa-font-heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 22px; /* whole-pixel title height: Elementor animates in integer offsetHeight */
}

/* One indicator: a horizontal bar, plus a vertical bar while closed. */
.aa-ds .aa-faq .e-n-accordion-item-title::before,
.aa-ds .aa-faq .e-n-accordion-item-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  background: var(--aa-dark);
  border-radius: 1px;
}

.aa-ds .aa-faq .e-n-accordion-item-title::after {
  transform: rotate(90deg);
}

.aa-ds .aa-faq .e-n-accordion-item[open] > .e-n-accordion-item-title::after {
  transform: rotate(0deg);
}

.aa-ds .aa-faq .e-n-accordion-item-title { transition: background-color .2s; }
.aa-ds .aa-faq .e-n-accordion-item-title::before { transition: background-color .2s; }
/* Same 300 ms as the widget's Animation Duration, so the icon turns with the panel. */
.aa-ds .aa-faq .e-n-accordion-item-title::after { transition: transform .3s ease-out, background-color .2s; }

@media (prefers-reduced-motion: reduce) {
  .aa-ds .aa-faq .e-n-accordion-item-title::after { transition: none; }
}

@media (hover: hover) {
  .aa-ds .aa-faq .e-n-accordion-item-title:hover { background: var(--aa-surface); }
  .aa-ds .aa-faq .e-n-accordion-item-title:hover::before,
  .aa-ds .aa-faq .e-n-accordion-item-title:hover::after { background: var(--aa-accent); }
}

.aa-ds .aa-faq .aa-faq__answer {
  padding: 0 20px 17px;
  border: 0;
}

.aa-ds .aa-service .aa-faq__answer .elementor-widget-text-editor {
  font-size: 15px;
  line-height: 26px; /* whole pixels (was 1.75 = 26.25) so the open animation ends without a jump */
}

@media (max-width: 767px) {
  .aa-ds .aa-faq .e-n-accordion-item-title-text { font-size: 15px; line-height: 22px; }
}

/* ---------- Final call to action ---------- */

.aa-ds .aa-cta {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--aa-content-width);
  margin-inline: auto;
  padding: 36px 40px;
  background: var(--aa-dark);
  border-radius: var(--aa-radius-lg);
}

.aa-ds .aa-cta__body { flex: 1 1 auto; min-width: 0; }

.aa-ds .aa-service .aa-cta h2.elementor-heading-title {
  margin-bottom: 8px;
  color: var(--aa-white);
  font-size: 28px;
}

.aa-ds .aa-service .aa-cta .elementor-widget-text-editor {
  max-width: 680px;
  color: var(--aa-copy-on-dark);
}

.aa-ds .aa-cta > .aa-button { flex: 0 0 auto; width: auto; }

@media (max-width: 800px) {
  .aa-ds .aa-cta { flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 22px; }
  .aa-ds .aa-cta > .aa-button,
  .aa-ds .aa-cta .elementor-button { width: 100%; }
}

/* ---------- Contact block ---------- */

.aa-ds .aa-contact {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  align-items: start;
  max-width: var(--aa-content-width);
  margin: 68px auto 0;
  padding: 80px 0;
}

.aa-ds .aa-contact .aa-contact__title .elementor-heading-title { margin-bottom: 12px; }

.aa-ds .elementor-element.aa-contact__lead {
  margin-block-end: 28px;
  color: var(--aa-text);
  font-family: var(--aa-font-body);
  font-size: 16px;
  line-height: 1.75;
}

.aa-ds .aa-contact__lead p { margin: 0; }

.aa-ds .aa-contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aa-ds .aa-contact-item .elementor-icon-box-wrapper {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  text-align: left;
}

.aa-ds .aa-contact-item .elementor-icon-box-icon {
  display: flex;
  flex: 0 0 42px;
  margin: 0;
}

.aa-ds .aa-contact-item .elementor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--aa-accent-soft);
  border: 1px solid var(--aa-accent-line);
  border-radius: var(--aa-radius-sm);
  color: var(--aa-accent);
  font-size: 16px;
}

.aa-ds .aa-contact-item .elementor-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.aa-ds .aa-contact-item .elementor-icon-box-content { min-width: 0; }

.aa-ds .aa-contact-item .elementor-icon-box-title {
  display: block;
  margin: 0 0 2px;
  color: var(--aa-text);
  font-family: var(--aa-font-heading);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .8px;
  text-transform: uppercase;
}

/* One value style for phone, address and hours; the phone is a link in the same type. */
.aa-ds .aa-contact-item .elementor-icon-box-description {
  margin: 0;
  color: var(--aa-dark);
  font: 700 16px/24px var(--aa-font-heading);
}

.aa-ds .aa-contact-item .elementor-icon-box-description a {
  display: inline-block; /* full line box: 24 px tap target (WCAG 2.5.8) */
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.aa-ds .aa-contact-item .elementor-icon-box-description a:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: 2px;
}

@media (hover: hover) {
  .aa-ds .aa-contact-item .elementor-icon-box-description a:hover { text-decoration: underline; }
}

@media (max-width: 900px) {
  .aa-ds .aa-contact { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 50px 0; }
}

@media (max-width: 800px) {
  .aa-ds .aa-contact { margin-top: 0; }
}

/* ---------- Contact Form 7 card ---------- */

.aa-ds .aa-form-card {
  padding: 28px;
  background: var(--aa-white);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius-md);
}

.aa-ds .aa-form-card .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

.aa-ds .aa-form-card .aa-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.aa-ds .aa-form-card .aa-form__field {
  display: grid;
  grid-template-rows: auto auto;
  gap: 7px;
  align-content: start;
  margin: 0;
  color: var(--aa-text);
  font-family: var(--aa-font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .045em;
  text-transform: uppercase;
}

/* Paired fields share one label row (subgrid) so a long label never shifts its neighbour. */
@media (min-width: 901px) {
  .aa-ds .aa-form-card .aa-form__grid { grid-template-rows: auto auto; row-gap: 7px; }
  .aa-ds .aa-form-card .aa-form__grid .aa-form__field { grid-row: span 2; grid-template-rows: subgrid; }
}

/* "(optional)" after an optional field's label: quieter than the label itself. */
.aa-ds .aa-form-card .aa-form__optional {
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.aa-ds .aa-form-card .wpcf7-form-control-wrap {
  display: block;
}

.aa-ds .aa-form-card :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 14px;
  background: var(--aa-white);
  color: var(--aa-dark);
  border: 1px solid var(--aa-field-border);
  border-radius: var(--aa-radius-control);
  font-family: var(--aa-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color .2s, box-shadow .2s;
}

.aa-ds .aa-form-card :is(input[type="text"], input[type="email"], input[type="tel"], select) { height: 48px; }

.aa-ds .aa-form-card select {
  padding-right: 42px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aa-ds .aa-form-card textarea {
  height: 120px;
  min-height: 120px;
  resize: vertical;
}

@media (hover: hover) {
  .aa-ds .aa-form-card :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea):hover { border-color: var(--aa-text); }
}

/* Same specificity as the field rules above, so it wins over idle and hover; focus (below) still shows the accent. */
.aa-ds .aa-form-card :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea).wpcf7-not-valid {
  border-color: var(--aa-error);
  box-shadow: 0 0 0 2px var(--aa-error-soft);
}

.aa-ds .aa-form-card :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea):focus {
  border-color: var(--aa-field-focus);
  outline: 0;
  box-shadow: 0 0 0 1px var(--aa-field-focus); /* one solid 2 px ring, no layout shift */
}

.aa-ds .aa-form-card .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--aa-error);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}

.aa-ds .aa-form-card .aa-form__privacy {
  margin: 0;
  color: var(--aa-text);
  font-family: var(--aa-font-body);
  font-size: 12px;
  line-height: 1.55;
}

.aa-ds .aa-form-card .aa-form__privacy a {
  color: var(--aa-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .aa-ds .aa-form-card .aa-form__privacy a:hover { color: var(--aa-dark); }
}

.aa-ds .aa-form-card .aa-form__privacy a:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Consent checkbox (CF7 acceptance): the whole row is the target, text at body size. */
.aa-ds .aa-form-card .wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
}

.aa-ds .aa-form-card .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start; /* box on the first line when the text wraps (box 20 = line 20) */
  gap: 10px;
  min-height: 24px;
  color: var(--aa-text);
  font-family: var(--aa-font-body);
  font-size: 13px; /* the phrase stays on one line from 390 px phones up */
  line-height: 20px;
  cursor: pointer;
}

@media (hover: hover) {
  .aa-ds .aa-form-card .wpcf7-acceptance label:hover input[type="checkbox"] {
    outline: 2px solid var(--aa-border);
    outline-offset: 1px;
  }
}

.aa-ds .aa-form-card .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--aa-dark);
  cursor: pointer;
}

.aa-ds .aa-form-card .wpcf7-acceptance input[type="checkbox"]:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: 2px;
}

.aa-ds .aa-form-card .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] {
  outline: 2px solid var(--aa-error);
  outline-offset: 1px;
}

.aa-ds .aa-form-card .wpcf7-acceptance a {
  padding-block: 3px; /* 24 px tall target (WCAG 2.5.8) — inline padding, the line does not move */
  color: var(--aa-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aa-ds .aa-form-card .wpcf7-acceptance a:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: 2px;
  border-radius: 2px;
}

.aa-ds .aa-form-card .wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 18px 20px;
  background: var(--aa-accent);
  color: var(--aa-dark);
  border: 1px solid var(--aa-accent);
  border-radius: var(--aa-radius-control);
  font: var(--aa-button-font);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}

@media (hover: hover) {
  .aa-ds .aa-form-card .wpcf7-submit:hover {
    background: var(--aa-accent-hover);
    border-color: var(--aa-accent-hover);
    color: var(--aa-dark);
  }
}

.aa-ds .aa-form-card .wpcf7-submit:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: 3px;
}

/* The idle spinner would hold an empty row under the button; show it only while sending. */
.aa-ds .aa-form-card .wpcf7-spinner {
  display: none;
  margin: 0 auto;
}

.aa-ds .aa-form-card .wpcf7-form.submitting .wpcf7-spinner { display: inline-block; }

.aa-ds .aa-form-card .wpcf7-response-output {
  margin: 0;
  padding: 12px 14px;
  border-width: 1px;
  border-radius: var(--aa-radius-control);
  font-family: var(--aa-font-body);
  font-size: 14px;
  line-height: 1.5;
}

/* CF7 colours validation errors #ffb900, too close to the brand accent; match the field errors. */
.aa-ds .aa-form-card .wpcf7-form:is(.invalid, .unaccepted, .payment-required, .failed, .aborted, .spam) .wpcf7-response-output {
  border-color: var(--aa-error);
}

@media (max-width: 900px) {
  .aa-ds .aa-form-card { padding: 22px 20px; }
  .aa-ds .aa-form-card .aa-form__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Elementor responsive visibility ----------
 * Component display values above would otherwise override the
 * Advanced → Responsive "Hide on" switches; restate them last.
 */

@media (min-width: 1025px) {
  .aa-ds .elementor-element.elementor-hidden-desktop { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .aa-ds .elementor-element.elementor-hidden-tablet { display: none; }
}

@media (max-width: 767px) {
  .aa-ds .elementor-element.elementor-hidden-mobile { display: none; }
}

/* ---------- Booking popup (site-wide <dialog>, rendered by functions.php) ----------
 * The dialog itself carries .aa-ds, so tokens and the form styles above apply inside it
 * on every page. Opened by any element with the class `ariol-booking-open`. */

.aa-ds.ariol-booking {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--aa-white);
  color: var(--aa-dark);
  border: 0;
  border-radius: var(--aa-radius-lg);
  box-shadow: var(--aa-shadow-dialog);
}

.aa-ds.ariol-booking::backdrop { background: var(--aa-backdrop, rgba(10, 14, 17, .68)); } /* older engines: no inheritance into ::backdrop */

.aa-ds.ariol-booking[open] { animation: aa-booking-in .22s ease-out; }
.aa-ds.ariol-booking[open]::backdrop { animation: aa-booking-fade .22s ease-out; }

@keyframes aa-booking-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes aa-booking-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .aa-ds.ariol-booking[open],
  .aa-ds.ariol-booking[open]::backdrop { animation: none; }
}

html:has(.ariol-booking[open]) { overflow: hidden; }

.aa-ds .ariol-booking__head {
  position: relative;
  padding: 34px 34px 0;
  background: var(--aa-white);
}

.aa-ds .ariol-booking__body {
  padding: 22px 34px 30px;
}

.aa-ds .ariol-booking__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--aa-text);
  font-family: var(--aa-font-heading);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.aa-ds .ariol-booking__title {
  margin: 0 48px 10px 0;
  color: var(--aa-dark);
  font-family: var(--aa-font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.4px;
}

.aa-ds .ariol-booking__lead {
  margin: 0;
  color: var(--aa-text);
  font-family: var(--aa-font-body);
  font-size: 15px;
  line-height: 1.6;
}

/* The form card is the dialog itself: no second frame inside. */
.aa-ds.ariol-booking .aa-form-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.aa-ds .ariol-booking__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .2s;
}

.aa-ds .ariol-booking__close::before,
.aa-ds .ariol-booking__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: var(--aa-dark);
  border-radius: 1px;
  transform: rotate(45deg);
}

.aa-ds .ariol-booking__close::after { transform: rotate(-45deg); }

@media (hover: hover) {
  .aa-ds .ariol-booking__close:hover { background: var(--aa-surface); }
}

.aa-ds .ariol-booking__close:focus-visible {
  outline: var(--aa-focus-ring-light);
  outline-offset: 2px;
}

/* Phones: a full-screen sheet (Material full-screen dialog / Apple sheet). The head — title and
 * close — stays pinned while the form scrolls; the eyebrow and lead are dropped to fit the form on
 * one screen (the lead remains the dialog's description for screen readers). */
@media (max-width: 767px) {
  .aa-ds.ariol-booking {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    scroll-padding-top: 64px; /* a focused field is never hidden under the pinned head (WCAG 2.4.11) */
  }
  .aa-ds.ariol-booking[open] { animation-name: aa-booking-sheet; }
  .aa-ds .ariol-booking__head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 6px 60px 6px 16px;
    border-bottom: 1px solid var(--aa-border);
  }
  .aa-ds :is(.ariol-booking__eyebrow, .ariol-booking__lead) { display: none; }
  .aa-ds .ariol-booking__title { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.2px; }
  .aa-ds .ariol-booking__close { top: 6px; right: 8px; }
  .aa-ds .ariol-booking__body { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .aa-ds.ariol-booking :is(.wpcf7-form, .aa-form__grid) { gap: 8px; }
  .aa-ds.ariol-booking .aa-form__field { gap: 5px; }
  /* 44 px fields (Apple's minimum touch size) and a two-line, resizable message: the whole form with
   * its button fits a 390 × 664 Safari viewport. */
  .aa-ds.ariol-booking :is(input[type="text"], input[type="email"], input[type="tel"], select) { height: 44px; padding-block: 10px; }
  .aa-ds.ariol-booking textarea { height: 70px; min-height: 70px; padding-block: 10px; }
}

@keyframes aa-booking-sheet { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Mobile navigation drawer (site-wide <dialog>, ARIOL_MOBILE_NAV_V1) ----------
 * Same palette and type as the header bar and its dropdown panels. */

.aa-ds.ariol-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(360px, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--aa-dark);
  color: var(--aa-white);
  border: 0;
  box-shadow: var(--aa-shadow-drawer);
}

.aa-ds.ariol-nav::backdrop { background: var(--aa-backdrop, rgba(10, 14, 17, .68)); } /* older engines: no inheritance into ::backdrop */
.aa-ds.ariol-nav[open] { animation: aa-nav-in .25s ease-out; }
.aa-ds.ariol-nav[open]::backdrop { animation: aa-booking-fade .25s ease-out; }
@keyframes aa-nav-in { from { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  .aa-ds.ariol-nav[open],
  .aa-ds.ariol-nav[open]::backdrop { animation: none; }
}

html:has(.ariol-nav[open]) { overflow: hidden; }

.aa-ds .ariol-nav__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.aa-ds .ariol-nav__top {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 12px 10px var(--aa-drawer-pad);
  border-bottom: 1px solid var(--aa-line-dark);
}

.aa-ds .ariol-nav__logo { display: inline-flex; align-items: center; min-height: 44px; }
.aa-ds .ariol-nav__logo img { display: block; width: 195px; max-width: 100%; height: auto; }

.aa-ds .ariol-nav__close {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--aa-radius-control);
  cursor: pointer;
}

.aa-ds .ariol-nav__close::before,
.aa-ds .ariol-nav__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  background: var(--aa-white);
  border-radius: 1px;
  transform: rotate(45deg);
}

.aa-ds .ariol-nav__close::after { transform: rotate(-45deg); }

.aa-ds .ariol-nav__menu { flex: 1 0 auto; padding: 8px var(--aa-drawer-pad); }

.aa-ds .ariol-nav__list,
.aa-ds .ariol-nav__sublist { margin: 0; padding: 0; list-style: none; }

.aa-ds .ariol-nav__item { border-bottom: 1px solid var(--aa-line-dark); }

.aa-ds .ariol-nav__row { display: flex; align-items: stretch; }

.aa-ds .ariol-nav__link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-height: 52px;
  padding: 14px 0;
  color: var(--aa-white);
  font: 600 16px/22px var(--aa-font-heading);
  text-decoration: none;
  transition: color .2s;
}

.aa-ds .ariol-nav__toggle {
  position: relative;
  flex: 0 0 52px;
  margin: 0 -12px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--aa-radius-control);
  color: var(--aa-text-on-dark);
  cursor: pointer;
}

/* Same chevron as the header dropdowns. */
.aa-ds .ariol-nav__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -6px 0 0 -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.aa-ds .ariol-nav__item.is-open .ariol-nav__toggle::after { transform: translateY(4px) rotate(225deg); }

/* Accordion: height animates from 0 to auto; closed content is hidden from focus and screen readers. */
.aa-ds .ariol-nav__sub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .25s ease, visibility 0s linear .25s;
}

.aa-ds .ariol-nav__item.is-open .ariol-nav__sub {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .25s ease, visibility 0s;
}

.aa-ds .ariol-nav__sublist { overflow: hidden; min-height: 0; padding: 0; }
/* Bottom space lives inside the collapsing area, so a closed accordion takes no height. */
.aa-ds .ariol-nav__sublist > li:last-child { padding-bottom: 10px; }

.aa-ds .ariol-nav__sublink {
  display: block;
  padding: 10px 0 10px 14px;
  color: var(--aa-text-on-dark);
  font: 500 15px/22px var(--aa-font-heading);
  text-decoration: none;
  border-left: 2px solid var(--aa-line-dark);
  transition: color .2s, border-color .2s;
}

.aa-ds .ariol-nav [aria-current="page"],
.aa-ds .ariol-nav__item.is-current > .ariol-nav__row .ariol-nav__link { color: var(--aa-accent); }
.aa-ds .ariol-nav__sublink[aria-current="page"] { border-left-color: var(--aa-accent); }

@media (hover: hover) {
  .aa-ds :is(.ariol-nav__link, .ariol-nav__sublink, .ariol-nav__toggle):hover { color: var(--aa-accent); }
  .aa-ds .ariol-nav__close:hover { background: var(--aa-hover-dark); }
}

.aa-ds .ariol-nav :is(a, button):focus-visible { outline: var(--aa-focus-ring); outline-offset: 2px; }

.aa-ds .ariol-nav__footer {
  flex: 0 0 auto;
  padding: 20px var(--aa-drawer-pad) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--aa-line-dark);
}

@media (prefers-reduced-motion: reduce) {
  .aa-ds :is(.ariol-nav__sub, .ariol-nav__toggle::after) { transition: none; }
}

/* ---------- Price tables (TablePress in a Shortcode widget `.aa-table`) ----------
 * The owner edits prices in TablePress (single source); the page embeds each table with
 * [table id=N use_datatables=false /], so the markup is a plain <table> with <thead>/<th>.
 * TablePress's default.css is themed through its own custom properties, so its rules stay
 * in charge of borders, striping and hover and no !important is needed.
 * Rows the table data uses as group titles (bold first cell, other cells empty) become
 * sub-heading bands; fully empty spacer rows are hidden (the band replaces them).
 * Tables too wide for a phone (`.aa-table--stack`: long service names plus price columns)
 * stack there: the service on its own line, its prices below in equal columns that line up
 * with the column titles of the header row, so nothing scrolls sideways and a column added
 * in TablePress still fits. */

.aa-ds .aa-tables {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aa-ds .aa-table {
  overflow: hidden; /* clips the table to the card radius */
  background: var(--aa-white);
  border: 1px solid var(--aa-border);
  border-radius: var(--aa-radius-md);
  box-shadow: var(--aa-shadow-card);
}

.aa-ds .aa-table .tablepress {
  --text-color: var(--aa-dark);
  --head-bg-color: var(--aa-dark);
  --head-text-color: var(--aa-white);
  --odd-bg-color: transparent;
  --even-bg-color: transparent;
  --hover-bg-color: var(--aa-accent-soft);
  --border-color: var(--aa-border);
  --padding: 13px 20px;
  margin: 0;
  font-family: var(--aa-font-body);
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.aa-ds .aa-table .tablepress > * > tr {
  content-visibility: visible; /* TablePress defers off-screen rows; the rows here are few */
}

.aa-ds .aa-table .tablepress > * > tr > * {
  vertical-align: middle;
}

.aa-ds .aa-table .tablepress thead th {
  font-family: var(--aa-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .3px;
}

.aa-ds .aa-table .tablepress thead strong { font-weight: inherit; }

/* Service names in the body copy colour; prices dark, aligned and never split over lines. */
.aa-ds .aa-table .tablepress tbody td.column-1 { color: var(--aa-text); }

.aa-ds .aa-table .tablepress :is(th, td):not(.column-1) {
  text-align: right;
  white-space: nowrap;
}

.aa-ds .aa-table .tablepress tbody td:not(.column-1) { font-weight: 600; }

/* A price the service does not have (e.g. a rim size): a quiet dash instead of a blank cell (not read out). */
.aa-ds .aa-table .tablepress tbody tr:not(:has(> td.column-1 > strong)) > td:not(.column-1):empty::before {
  content: "—";
  content: "—" / "";
  color: var(--aa-text);
  font-weight: 400;
}

/* Group title rows: bold first cell, every other cell empty. */
.aa-ds .aa-table .tablepress tbody tr:has(> td.column-1 > strong):not(:has(> td:not(.column-1):not(:empty))) > td {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--aa-surface);
  color: var(--aa-dark);
  font-family: var(--aa-font-heading);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .3px;
}

.aa-ds .aa-table .tablepress tbody tr:has(> td.column-1 > strong):not(:has(> td:not(.column-1):not(:empty))) strong {
  font-weight: 700;
}

/* Spacer rows (all cells empty). */
.aa-ds .aa-table .tablepress tbody tr:not(:has(> td:not(:empty))) { display: none; }

@media (max-width: 767px) {
  .aa-ds .aa-tables { gap: 14px; }

  .aa-ds .aa-table .tablepress {
    --padding: 11px 12px;
    font-size: 14px;
  }

  .aa-ds .aa-table .tablepress thead th { font-size: 12px; letter-spacing: .2px; }

  .aa-ds .aa-table .tablepress tbody tr:has(> td.column-1 > strong):not(:has(> td:not(.column-1):not(:empty))) > td {
    font-size: 12.5px;
  }

  /* Stacked rows. */
  .aa-ds .aa-table--stack .tablepress,
  .aa-ds .aa-table--stack .tablepress > :is(thead, tbody) { display: block; }

  .aa-ds .aa-table--stack .tablepress > * > tr {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--aa-border);
  }

  .aa-ds .aa-table--stack .tablepress > :is(thead, tbody) > tr:first-child { border-top: 0; }

  .aa-ds .aa-table--stack .tablepress > * > tr > * {
    flex: 1 1 0;
    min-width: 0;
    padding: 2px 4px 11px;
    border-top: 0;
    text-align: center;
  }

  .aa-ds .aa-table--stack .tablepress > * > tr > .column-1 {
    flex: 0 0 100%;
    padding: 11px 12px 4px;
    text-align: left;
  }

  /* A group title row is its title only. */
  .aa-ds .aa-table--stack .tablepress tbody tr:has(> td.column-1 > strong):not(:has(> td:not(.column-1):not(:empty))) > td:not(.column-1) { display: none; }
  .aa-ds .aa-table--stack .tablepress tbody tr:has(> td.column-1 > strong):not(:has(> td:not(.column-1):not(:empty))) > td.column-1 { padding-bottom: 11px; }
}

/* ---------- Dark panel: eyebrow and button (price list: ESTO) ---------- */

/* The eyebrow's light-surface grey is under 3:1 on the dark panel. */
.aa-ds .aa-panel .aa-eyebrow .elementor-heading-title { color: var(--aa-text-on-dark); }

.aa-ds .aa-panel > .elementor-element.aa-button { margin-block-start: 24px; }

@media (max-width: 767px) {
  .aa-ds .aa-panel > .elementor-element.aa-button { margin-block-start: 18px; }
  .aa-ds .aa-panel .aa-button .elementor-button { width: 100%; }
}
/* A trailing column whose header cell is empty holds no data (the ET tyre table has one): hide it. */
.aa-ds .aa-table table:has(thead tr > :last-child:empty) tr > :last-child { display: none; }
