/*
 * Dubai Birth Certificates — UAE Design System aligned edition.
 * Tokens and component dimensions follow the published UAE Design System.
 * This independent website does not use UAE government identity marks.
 */
:root {
  --aegold-50: #f9f7ed;
  --aegold-100: #f2eccf;
  --aegold-200: #e6d7a2;
  --aegold-300: #d7bc6d;
  --aegold-400: #cba344;
  --aegold-500: #b68a35;
  --aegold-600: #92722a;
  --aegold-700: #7c5e24;
  --aegold-800: #6c4527;
  --aegold-900: #5d3b26;
  --aegold-950: #361e12;
  --aered-50: #fef2f2;
  --aered-600: #d83731;
  --aegreen-50: #f3faf4;
  --aegreen-100: #e4f4e7;
  --aegreen-500: #4a9d5c;
  --aegreen-600: #3f8e50;
  --aegreen-700: #2f663c;
  --aegreen-950: #0f2415;
  --aeblack-50: #f7f7f7;
  --aeblack-100: #e1e3e5;
  --aeblack-200: #c3c6cb;
  --aeblack-300: #9ea2a9;
  --aeblack-500: #5f646d;
  --aeblack-600: #4b4f58;
  --aeblack-700: #3e4046;
  --aeblack-800: #232528;
  --aeblack-900: #1b1d21;
  --aeblack-950: #0e0f12;
  --seablue-50: #effaff;
  --seablue-100: #def3ff;
  --seablue-600: #0090d4;
  --seablue-700: #0073ab;
  --camel-100: #fdf4c8;
  --camel-300: #fad44f;
  --camel-500: #f29f0e;
  --white: #fff;
  --navy: var(--aeblack-950);
  --teal: var(--aegold-600);
  --ink: var(--aeblack-950);
  --muted: var(--aeblack-600);
  --mist: var(--aeblack-50);
  --line: var(--aeblack-100);
  --radius: 1rem;
  --radius-sm: .75rem;
  --shadow-sm: 0 8px 24px rgba(14,15,18,.06);
  --shadow: 0 18px 44px rgba(14,15,18,.12);
  --container: 1240px;
}

html { scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--aeblack-950);
  background: #fff;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, system-ui, Ubuntu, "Fira Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}
[dir="rtl"] body { font-family: "Noto Kufi Arabic", sans-serif; }
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--aeblack-950);
  font-family: Inter, Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 { font-family: Alexandria, "Noto Kufi Arabic", sans-serif; }
h1, .text-h1 { font-size: clamp(2.5rem, 5vw, 3.875rem); line-height: 1.08; }
.text-display { font-size: clamp(3rem, 6vw, 4.75rem); line-height: 1.05; }
h2, .text-h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
h3, .text-h3 { font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.15; }
h4, .text-h4 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
h5, .text-h5 { font-size: 1.625rem; line-height: 1.25; }
h6, .text-h6 { font-size: 1.25rem; line-height: 1.3; }
a { color: var(--aegold-700); }
a:hover { color: var(--aegold-900); }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid var(--camel-300); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), 1240px); margin-inline: auto; }
.section { padding: 5rem 0; }
.ae-section { padding: clamp(4rem, 6vw, 6rem) 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { z-index: 9999; color: #fff; background: var(--aeblack-950); }
.scroll-progress { position: fixed; z-index: 5000; top: 0; left: 0; height: 3px; }
.scroll-progress span { background: var(--aegold-500); }
.reveal { transform: translateY(20px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-visible { transform: none; }

/* Header block */
.ae-header.site-header { position: relative; top: auto; left: auto; z-index: 1000; width: 100%; background: #fff; }
.ae-header .header-inner { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ae-identifier-bar { color: #fff; background: var(--aegold-600); }
.ae-identifier-bar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 2.5rem; gap: 1.5rem; }
.ae-identifier-bar p, .ae-identifier-bar span { margin: 0; font-size: .75rem; line-height: 1rem; }
.ae-identifier-bar p { font-weight: 700; }
.ae-identifier-bar span { opacity: .88; }
.ae-header__main { border-bottom: 1px solid var(--aeblack-100); }
.ae-header__main-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 6.25rem; }
.ae-header__brand { display: inline-flex; align-items: center; max-width: 300px; }
.ae-header .brand-logo { width: 240px; max-width: 100%; max-height: 68px; object-fit: contain; object-position: left center; }
.ae-header__tools { display: flex; align-items: center; gap: .5rem; }
.ae-tool-button, .ae-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: .625rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  color: var(--aeblack-800);
  background: transparent;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
}
.ae-tool-button:hover, .ae-language:hover { border-color: var(--aeblack-200); color: var(--aeblack-950); background: var(--aeblack-50); }
.ae-header__divider { width: 1px; height: 1.75rem; margin-inline: .5rem; background: var(--aeblack-200); }
.ae-language { text-decoration: none; }
.ae-header__nav-row { border-bottom: 1px solid var(--aeblack-100); background: #fff; }
.ae-header__nav-inner { display: flex; align-items: stretch; justify-content: space-between; min-height: 3.5rem; }
.ae-header .primary-navigation { display: flex; align-items: stretch; }
.ae-header .primary-menu { display: flex; align-items: stretch; justify-content: flex-start; gap: 0; list-style: none; }
.ae-header .primary-menu a { display: flex; align-items: center; min-height: 3.5rem; padding-inline: 1rem; color: var(--aeblack-800); font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.ae-header .primary-menu a::after { right: 1rem; bottom: 0; left: 1rem; height: 3px; background: var(--aegold-600); }
.ae-header .primary-menu a:hover, .ae-header .primary-menu a.is-current { color: var(--aegold-800); background: var(--aegold-50); }
.ae-header__search { display: flex; align-items: center; gap: .5rem; padding-inline: 1rem; color: var(--aeblack-700); font-size: .875rem; font-weight: 500; }
.ae-header__search:hover { color: var(--aegold-800); background: var(--aegold-50); }
.ae-header__search svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ae-menu-toggle { display: none; }

/* Buttons */
.ae-btn, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  box-shadow: none;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ae-btn:hover, .button:hover { transform: none; box-shadow: none; }
.ae-btn--primary, .button {
  color: #fff;
  background: var(--aegold-600);
}
.ae-btn--primary:hover, .ae-btn--primary:focus-visible, .button:hover, .button:focus-visible { color: #fff; background: var(--aegold-500); }
.ae-btn--outline { border-color: var(--aegold-600); color: var(--aegold-700); background: transparent; }
.ae-btn--outline:hover { border-color: var(--aegold-800); color: var(--aegold-950); background: var(--aegold-50); }
.ae-header__cta { min-height: 2.5rem; padding-inline: 1rem; font-size: .875rem; }

/* Informational banner */
.ae-service-notice { border-bottom: 1px solid #b6eaff; color: #04334d; background: var(--seablue-50); }
.ae-service-notice__inner { display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding-block: .625rem; }
.ae-service-notice__icon { display: grid; flex: 0 0 auto; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: #fff; background: var(--seablue-700); font-family: Inter, sans-serif; font-size: .75rem; font-weight: 700; }
.ae-service-notice p { margin: 0; font-size: .875rem; line-height: 1.25rem; }

/* Hero block — 500px maximum desktop height */
.ae-hero { position: relative; height: 500px; overflow: hidden; background: var(--aegold-50); }
.ae-hero__slider, .ae-hero__slides, .ae-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.ae-hero__slider { overflow: hidden; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.ae-hero__slide { margin: 0; opacity: 0; transform: none; transition: opacity .55s ease; }
.ae-hero__slide.is-active { opacity: 1; transform: none; }
.ae-hero__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; align-items: center; height: 100%; }
.ae-hero__content { position: relative; z-index: 2; grid-column: span 3; padding-block: 3rem; }
.ae-eyebrow { margin: 0 0 .75rem; color: var(--aegold-700); font-size: .875rem; line-height: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ae-hero h1, .ae-hero h2 { max-width: 600px; margin: 0 0 1rem; color: var(--aeblack-950); font-size: clamp(2.5rem, 4.4vw, 3.875rem); line-height: 1.08; }
.ae-hero__content > p:not(.ae-eyebrow) { max-width: 570px; margin: 0; color: var(--aeblack-600); font-size: 1.125rem; line-height: 1.75rem; }
.ae-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.ae-hero__media { position: relative; grid-column: span 3; height: 420px; overflow: hidden; border-radius: 1rem; background: var(--aegold-100); }
.ae-hero__media::after { position: absolute; inset: 0; border: 1px solid rgba(14,15,18,.08); border-radius: inherit; content: ""; pointer-events: none; }
.ae-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ae-hero__slide:nth-child(2) .ae-hero__media img { object-position: 33% center; }
.ae-hero__slide:nth-child(3) .ae-hero__media img { object-position: 70% center; }
.ae-hero__dots.hero-slider__dots { z-index: 6; bottom: 1.25rem; left: max(20px, calc((100% - 1240px) / 2)); gap: .5rem; }
.ae-hero__dots button { width: .75rem; height: .75rem; padding: 0; border: 1px solid var(--aegold-700); border-radius: 50%; background: transparent; }
.ae-hero__dots button.is-active { width: 2rem; border-radius: 999px; background: var(--aegold-600); }
.ae-hero__controls { position: absolute; z-index: 6; right: max(20px, calc((100% - 1240px) / 2)); bottom: 1rem; display: flex; gap: .5rem; }
.ae-hero__controls .hero-slider__arrow { position: static; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--aegold-600); border-radius: .5rem; color: var(--aegold-800); background: rgba(255,255,255,.92); box-shadow: none; font-size: 1rem; transform: none; }
.ae-hero__controls .hero-slider__arrow:hover { color: #fff; background: var(--aegold-600); transform: none; }

/* Shared sections and cards */
.ae-section-heading { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; align-items: end; margin-bottom: 2.5rem; }
.ae-section-heading > div { grid-column: span 4; }
.ae-section-heading > p { grid-column: span 2; margin: 0 0 .375rem; color: var(--aeblack-600); font-size: 1rem; line-height: 1.5rem; }
.ae-section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.ae-card { border: 1px solid var(--aeblack-100); border-radius: 1rem; background: #fff; box-shadow: none; }
.ae-card:hover { border-color: var(--aegold-300); box-shadow: 0 12px 32px rgba(182,138,53,.12); }
.ae-updates { background: #fff; }
.ae-update-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ae-update-card { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 1.5rem; overflow: hidden; }
.ae-update-card h3 { margin: auto 0 .75rem; font-size: 1.625rem; line-height: 1.25; }
.ae-update-card > p { margin: 0; color: var(--aeblack-600); }
.ae-update-card__number { margin-top: 2.25rem; color: var(--aegold-600); font-family: Inter, sans-serif; font-size: 4.75rem; line-height: 1; font-weight: 700; }
.ae-update-card__icon { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; margin-top: 2.25rem; border: 1px solid #b6eaff; border-radius: 1rem; color: var(--seablue-700); background: var(--seablue-50); font-family: Inter, sans-serif; font-size: 1.5rem; font-weight: 700; }
.ae-update-card--success { border-color: #cae8cf; background: var(--aegreen-50); }
.ae-update-card--success .ae-update-card__icon { border-color: #cae8cf; color: var(--aegreen-700); background: var(--aegreen-100); }
.ae-badge { align-self: flex-start; display: inline-flex; align-items: center; min-height: 1.75rem; padding: .25rem .625rem; border-radius: 999px; font-size: .75rem; line-height: 1rem; font-weight: 700; }
.ae-badge--gold { color: var(--aegold-900); background: var(--aegold-100); }
.ae-badge--blue { color: #04334d; background: var(--seablue-100); }
.ae-badge--green { color: var(--aegreen-950); background: var(--aegreen-100); }

/* Service catalogue, filters and service cards */
.ae-services { background: var(--aeblack-50); }
.ae-service-tools { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; padding: 0; }
.ae-tabs { display: flex; flex-wrap: wrap; gap: .25rem; padding: .25rem; border: 1px solid var(--aeblack-100); border-radius: .75rem; background: #fff; }
.ae-tabs .filter-button { min-height: 2.5rem; padding: 0 1rem; border: 0; border-radius: .5rem; color: var(--aeblack-700); background: transparent; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.ae-tabs .filter-button:hover { color: var(--aegold-800); background: var(--aegold-50); }
.ae-tabs .filter-button.is-active { color: #fff; background: var(--aegold-600); }
.ae-search.service-search { width: min(100%, 320px); height: 3rem; border: 1px solid var(--aeblack-200); border-radius: .5rem; background: #fff; }
.ae-search.service-search:focus-within { border-color: var(--aegold-600); box-shadow: 0 0 0 3px var(--camel-100); }
.ae-search input { color: var(--aeblack-950); font-size: 1rem; }
.ae-search svg { color: var(--aeblack-600); }
.ae-service-grid.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.ae-service-card.service-card { display: flex; min-height: 350px; padding: 1.5rem; border-radius: 1rem; background: #fff; box-shadow: none; }
.ae-service-card[hidden] { display: none !important; }
.ae-service-card__top { display: flex; align-items: center; justify-content: space-between; }
.ae-service-card__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .5rem; color: var(--aegold-800); background: var(--aegold-100); }
.ae-service-card__icon svg { width: 1.5rem; height: 1.5rem; }
.ae-service-card__number { color: var(--aeblack-300); font-size: .75rem; font-weight: 700; }
.ae-service-card h3 { margin: 2rem 0 .75rem; font-size: 1.625rem; line-height: 1.25; }
.ae-service-card h3 button { padding: 0; border: 0; color: var(--aeblack-950); background: transparent; text-align: left; font: inherit; cursor: pointer; }
.ae-service-card h3 button:hover { color: var(--aegold-800); }
.ae-service-card > p { margin: 0; color: var(--aeblack-600); }
.ae-service-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--aeblack-100); }
.ae-service-card__footer strong, .ae-service-card__footer > span { color: var(--aeblack-700); font-size: .875rem; }
.ae-link { display: inline-flex; align-items: center; gap: .5rem; padding: 0; border: 0; color: var(--aegold-700); background: transparent; font-size: .875rem; font-weight: 700; }
.ae-link:hover { color: var(--aegold-950); text-decoration: underline; }
.ae-empty { padding: 2rem; border: 1px dashed var(--aeblack-200); border-radius: 1rem; text-align: center; }

/* Process / progress block */
.ae-process { background: #fff; }
.ae-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.ae-steps li { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem; border: 1px solid var(--aeblack-100); background: #fff; }
.ae-steps li:first-child { border-radius: 1rem 0 0 1rem; }
.ae-steps li:last-child { border-radius: 0 1rem 1rem 0; }
.ae-steps li + li { border-left: 0; }
.ae-steps li > span { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; background: var(--aegold-600); font-family: Inter, sans-serif; font-weight: 700; }
.ae-steps h3 { margin: 0 0 .5rem; font-size: 1.25rem; line-height: 1.3; }
.ae-steps p { margin: 0; color: var(--aeblack-600); font-size: .875rem; line-height: 1.25rem; }

/* Application form */
.ae-contact { color: var(--aeblack-950); background: var(--aegold-50); }
.ae-contact__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.ae-contact__content { grid-column: span 2; padding-top: 1.5rem; }
.ae-contact__content h2 { margin-bottom: 1rem; }
.ae-contact__content > p:not(.ae-eyebrow) { color: var(--aeblack-600); }
.ae-contact__content ul { display: grid; gap: .75rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.ae-contact__content li { display: flex; gap: .625rem; }
.ae-contact__content li::before { color: var(--aegreen-700); content: "✓"; font-weight: 700; }
.ae-form-card { grid-column: span 4; padding: 2rem; box-shadow: 0 10px 30px rgba(14,15,18,.06); }
.consultation-form { gap: 1.25rem; }
.consultation-form label { gap: .5rem; color: var(--aeblack-800); font-size: .875rem; line-height: 1.25rem; }
.consultation-form input:not([type="checkbox"]), .consultation-form select, .consultation-form textarea { border: 1px solid var(--aeblack-200); border-radius: .5rem; color: var(--aeblack-950); background: #fff; font-size: 1rem; }
.consultation-form input:not([type="checkbox"]), .consultation-form select { height: 3rem; padding: 0 .875rem; }
.consultation-form textarea { min-height: 7.5rem; padding: .75rem .875rem; }
.consultation-form input:focus, .consultation-form select:focus, .consultation-form textarea:focus { border-color: var(--aegold-600); box-shadow: 0 0 0 3px var(--camel-100); }
.consultation-form .consent { color: var(--aeblack-600); }

/* Page rating */
.ae-page-rating { padding: 2rem 0; border-top: 1px solid var(--aeblack-100); background: #fff; }
.ae-page-rating__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.ae-page-rating h2 { margin: 0 0 .25rem; font-size: 1.5rem; line-height: 2rem; }
.ae-page-rating p { margin: 0; color: var(--aeblack-600); }
.ae-rating-actions { display: flex; gap: .5rem; }
.ae-rating-actions .ae-btn { min-width: 5rem; }
.ae-rating-message { position: absolute; right: 0; bottom: -1.5rem; color: var(--aegreen-700) !important; font-size: .875rem; font-weight: 700; }

/* Footer and supporting WordPress templates */
.site-footer { padding-top: 4rem; color: var(--aeblack-200); background: var(--aeblack-950); }
.site-footer h2 { color: #fff; font-family: Inter, sans-serif; }
.ae-footer-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; color: #fff; background: transparent; font-family: Inter, sans-serif; font-size: 1rem; font-weight: 700; text-align: left; cursor: default; }
.ae-footer-toggle b { display: none; font-size: 1.25rem; transition: transform .2s ease; }
.ae-footer-panel { margin-top: 1rem; }
.footer-logo { max-height: 72px; filter: brightness(0) invert(1); }
.footer-menu a, .footer-contact a { color: var(--aeblack-200); }
.footer-menu a:hover, .footer-contact a:hover { color: var(--aegold-300); }
.footer-bottom { border-color: rgba(255,255,255,.14); }
.floating-whatsapp { background: var(--aegreen-700); }
.modal-backdrop { background: rgba(14,15,18,.76); }
.modal-card { border-radius: 1rem; }
.modal-close { border-radius: .5rem; }
.content-area { padding-top: 5rem; }
.post-card, .entry-image { border-radius: 1rem; }
.toast { border-radius: .5rem; color: #fff; background: var(--aeblack-950); }

/* Accessibility variants */
.high-contrast { --aegold-600: #5d3b26; --aegold-500: #6c4527; --aeblack-600: #232528; }
.high-contrast .ae-card, .high-contrast input, .high-contrast select, .high-contrast textarea { border-color: var(--aeblack-950); }
[dir="rtl"] .ae-header .brand-logo { object-position: right center; }
[dir="rtl"] .ae-service-card h3 button { text-align: right; }
[dir="rtl"] .ae-steps li:first-child { border-radius: 0 1rem 1rem 0; }
[dir="rtl"] .ae-steps li:last-child { border-radius: 1rem 0 0 1rem; }
[dir="rtl"] .ae-steps li + li { border-right: 0; border-left: 1px solid var(--aeblack-100); }

@media (min-width: 1536px) {
  :root { --container: 1480px; }
  .container { width: min(calc(100% - 56px), 1480px); }
  .ae-hero__dots { left: max(28px, calc((100% - 1480px) / 2)) !important; }
  .ae-hero__controls { right: max(28px, calc((100% - 1480px) / 2)); }
  .ae-btn, .button { min-height: 3.25rem; }
}

@media (max-width: 1023px) {
  .container { width: min(calc(100% - 44px), 980px); }
  .ae-header__tools .ae-tool-button, .ae-header__divider { display: none; }
  .ae-header__main-inner { min-height: 5.25rem; }
  .ae-header .brand-logo { width: 210px; max-height: 62px; }
  .ae-hero__content { grid-column: span 3; }
  .ae-hero__media { grid-column: span 3; height: 370px; }
  .ae-update-grid, .ae-service-grid.services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ae-update-card:first-child { grid-column: span 2; min-height: 280px; }
  .ae-steps { grid-template-columns: 1fr; }
  .ae-steps li:first-child, .ae-steps li:last-child { border-radius: 0; }
  .ae-steps li:first-child { border-radius: 1rem 1rem 0 0; }
  .ae-steps li:last-child { border-radius: 0 0 1rem 1rem; }
  .ae-steps li + li { border-top: 0; border-left: 1px solid var(--aeblack-100); }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 28px), 740px); }
  .ae-identifier-bar__inner { min-height: 2.25rem; }
  .ae-identifier-bar span { display: none; }
  .ae-header__main-inner { min-height: 4.5rem; }
  .ae-header__brand { max-width: 190px; }
  .ae-header .brand-logo { width: 180px; max-height: 52px; }
  .ae-header__tools { display: none; }
  .ae-menu-toggle { display: block; margin-left: auto; border-radius: .5rem; background: var(--aegold-600); }
  .ae-menu-toggle > span:not(.screen-reader-text) { background: #fff; }
  .ae-header__nav-row { border: 0; }
  .ae-header__nav-inner { min-height: 0; }
  .ae-header .primary-navigation { position: absolute; z-index: 20; top: 100%; right: 14px; left: 14px; display: none; padding: .75rem; border: 1px solid var(--aeblack-100); border-radius: .75rem; background: #fff; box-shadow: var(--shadow); }
  .ae-header .primary-navigation.is-open { display: block; }
  .ae-header .primary-menu { display: grid; }
  .ae-header .primary-menu a { min-height: 3rem; padding-inline: .75rem; border-radius: .5rem; }
  .ae-header .primary-menu a::after { display: none; }
  .ae-header__search { display: none; }
  .ae-service-notice__inner { align-items: flex-start; }
  .ae-hero { height: 720px; }
  .ae-hero__grid { grid-template-columns: 1fr; gap: 1rem; align-content: start; padding-top: 2rem; padding-bottom: 4.5rem; }
  .ae-hero__content { grid-column: auto; padding: 0; }
  .ae-hero h1, .ae-hero h2 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .ae-hero__content > p:not(.ae-eyebrow) { font-size: 1rem; line-height: 1.5rem; }
  .ae-hero__media { grid-column: auto; height: 310px; border-radius: .75rem; }
  .ae-hero__dots { left: 14px !important; }
  .ae-hero__controls { right: 14px; }
  .ae-section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .ae-section-heading > div, .ae-section-heading > p { grid-column: auto; }
  .ae-update-grid, .ae-service-grid.services-grid { grid-template-columns: 1fr; }
  .ae-update-card:first-child { grid-column: auto; }
  .ae-service-tools { align-items: stretch; flex-direction: column; }
  .ae-tabs { flex-wrap: nowrap; overflow-x: auto; }
  .ae-tabs .filter-button { flex: 0 0 auto; }
  .ae-search.service-search { width: 100%; }
  .ae-contact__grid { grid-template-columns: 1fr; }
  .ae-contact__content, .ae-form-card { grid-column: auto; }
  .ae-page-rating__inner { align-items: flex-start; flex-direction: column; }
  .ae-rating-message { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-grid > div:not(.footer-brand) { padding-block: 1rem; border-top: 1px solid rgba(255,255,255,.14); }
  .ae-footer-toggle { min-height: 2.75rem; cursor: pointer; }
  .ae-footer-toggle b { display: block; }
  .ae-footer-toggle[aria-expanded="true"] b { transform: rotate(45deg); }
  .ae-footer-panel[hidden] { display: none; }
}

@media (max-width: 639px) {
  .container { width: min(calc(100% - 20px), 620px); }
  .ae-section { padding: 4rem 0; }
  .ae-hero { height: 750px; }
  .ae-hero__media { height: 300px; border-radius: .5rem; }
  .ae-actions { align-items: stretch; flex-direction: column; }
  .ae-actions .ae-btn { width: 100%; }
  .ae-update-card, .ae-service-card.service-card { border-radius: .5rem; }
  .ae-form-card { padding: 1.5rem; border-radius: .5rem; }
  .form-row { grid-template-columns: 1fr; }
  .ae-page-rating { padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .ae-identifier-bar, .ae-header__tools, .ae-header__nav-row, .scroll-progress, .ae-hero__controls, .ae-hero__dots, .floating-whatsapp, .ae-page-rating { display: none !important; }
  .ae-hero { height: auto; min-height: 440px; }
  .ae-section { padding: 2rem 0; }
}
