/* Base — Apple-like airy type */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 72px) + 38px + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* Smooth Scroll Reveal on Scrolling */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
  }
  body.is-leaving {
    transition: none !important;
    opacity: 1 !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 5.75rem) 0;
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 22ch;
}

.section__lead {
  margin-top: 0.75rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.section__head {
  margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem);
}

.section__head--center {
  text-align: center;
}

.section__head--center .section__title,
.section__head--center .section__lead {
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Direction and text alignment */
html[dir="ltr"],
html[dir="ltr"] body,
body.is-ltr {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"],
html[dir="rtl"] body,
body.is-rtl {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] a[href^="tel:"]:not(.hero-loc-btn):not(.icon-btn):not(.action-dock__btn):not(.help-card__btn):not(.top-notice__contact-link),
[dir="rtl"] a[href^="mailto:"]:not(.hero-loc-btn):not(.icon-btn):not(.action-dock__btn):not(.help-card__btn):not(.top-notice__contact-link),
[dir="rtl"] .phone,
[dir="rtl"] [dir="ltr"] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block;
  text-align: left;
}

/* Ensure all location box and floating icon buttons in RTL remain perfectly centered */
[dir="rtl"] .hero-loc-btn,
body.is-rtl .hero-loc-btn,
[dir="rtl"] .hero-loc-btn--call,
body.is-rtl .hero-loc-btn--call,
[dir="rtl"] .icon-btn,
body.is-rtl .icon-btn,
[dir="rtl"] .action-dock__btn,
body.is-rtl .action-dock__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  line-height: 0 !important;
}

[dir="rtl"] .hero-loc-btn svg,
body.is-rtl .hero-loc-btn svg,
[dir="rtl"] .hero-loc-btn--call svg,
body.is-rtl .hero-loc-btn--call svg,
[dir="rtl"] .icon-btn svg,
body.is-rtl .icon-btn svg,
[dir="rtl"] .action-dock__btn svg,
body.is-rtl .action-dock__btn svg {
  display: block !important;
  margin: auto !important;
  flex-shrink: 0 !important;
}

/* Explicit alignment for text elements */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] .section__lead,
html[dir="rtl"] .section__eyebrow {
  text-align: right;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] p,
html[dir="ltr"] li,
html[dir="ltr"] .section__lead,
html[dir="ltr"] .section__eyebrow {
  text-align: left;
}

.section__head--center,
.section__head--center .section__title,
.section__head--center .section__lead,
.section__head--center .section__eyebrow {
  text-align: center !important;
}

/* Visible on tablet and top width devices only, completely hidden on mobile view */
@media (max-width: 768px) {
  .action-dock,
  [dir="rtl"] .action-dock,
  body.is-rtl .action-dock {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}
