/* ==========================================================================
   Azotea Rooftop — Base / Reset / Typography
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

svg {
  display: block;
  flex-shrink: 0;
}

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

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

input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--color-gold-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a,
button,
[role="button"],
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  background: var(--color-gold-bright);
  color: #211e15;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---- Anchor offset for fixed header ---- */
section[id],
.menu-category[id] {
  scroll-margin-top: 96px;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--container-w-narrow);
}

.section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

@media (min-width: 100px) {
  .u-hide-desktop {
    display: initial;
  }
}

@media (min-width: 900px) {
  .u-hide-desktop {
    display: none !important;
  }
}

.u-hide-mobile {
  display: none !important;
}

@media (min-width: 900px) {
  .u-hide-mobile {
    display: initial !important;
  }
}

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

/* ---- Type roles ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--color-gold);
  flex-shrink: 0;
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::before {
  display: none;
}

.section-heading {
  font-size: var(--fs-3xl);
  margin-top: var(--space-3);
  max-width: 16ch;
}

.section-heading em {
  font-style: italic;
  color: var(--color-gold-bright);
}

.section-lede {
  font-size: var(--fs-md);
  color: var(--color-fg-muted);
  line-height: var(--lh-loose);
  max-width: 56ch;
  margin-top: var(--space-4);
}

.section-head {
  display: flex;
  flex-direction: column;
}

.section-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

/* ---- Reveal on scroll ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group] > * {
  transition-delay: calc(var(--reveal-index, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---- Selection ---- */
::selection {
  background: var(--color-gold);
  color: #14130f;
}

/* ---- Scrollbar (webkit) ---- */
::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-surface-2);
  border-radius: var(--radius-pill);
  border: 3px solid var(--color-bg);
}
