/* ==========================================================================
   Airople Flagship Brand Site — Shared Layout (Apple Pure White × Ghost Fibers)
   Pure white Apple.com studio canvas carrying WebGL2 light-mode Ghost Fibers,
   frosted 52px Apple nav bar, translucent gallery cards, and minimal footer.
   ========================================================================== */

/* ---------- Fixed Pure White Apple Canvas Carrying Light-Mode Ghost Fibers ---------- */
.breeze-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #ffffff;
}

#breeze-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------- Container & Translucent Apple Section Rhythm ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 8.5vw, 124px);
  position: relative;
  background: transparent;
}

.section--mist,
.section--stone {
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-block: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---------- Apple Typography Scale ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.eyebrow__dot { display: none; }

.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  color: var(--ink);
}

.display-title em,
.section-title em {
  font-style: normal;
  color: var(--brand);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-head {
  max-width: 720px;
  margin-block-end: clamp(40px, 5vw, 60px);
}

.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-block-end: 10px; }

.section-head p {
  margin-block-start: 16px;
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.48;
  letter-spacing: -0.014em;
  color: var(--muted);
}

/* ---------- Apple Signature Pill Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--primary { background: var(--brand); color: #ffffff; }
.btn--primary:hover { background: var(--brand-hover); }

.btn--secondary {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  color: var(--brand);
  border-color: var(--brand);
}
.btn--secondary:hover { background: var(--brand); color: #ffffff; }

.btn--ghost { background: transparent; color: var(--link); padding-inline: 8px; }
.btn--ghost:hover { text-decoration: underline; text-underline-offset: 3px; }

.btn--sm { min-height: 38px; padding: 7px 16px; font-size: 0.88rem; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
html[dir="rtl"] .icon-flip-rtl { transform: scaleX(-1); }

/* ---------- Apple 52px Frosted White Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

.brand-logo { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand-logo img { height: 23px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.82rem; font-weight: 400; color: rgba(29, 29, 31, 0.78);
  transition: color 0.18s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #000000; }
.primary-nav a[aria-current="page"] { font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { min-height: 30px; padding: 5px 14px; font-size: 0.8rem; }

/* ---------- Compact Light-Glass 18-Language Switcher ---------- */
.lang-picker { position: relative; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 30px; padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--stroke); background: rgba(0, 0, 0, 0.035);
  font-size: 0.78rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.lang-btn:hover { background: rgba(0, 0, 0, 0.07); }
.lang-btn svg { width: 14px; height: 14px; color: var(--muted); }

.lang-menu {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0;
  width: 244px; max-height: 360px; overflow-y: auto; padding: 6px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--stroke-strong); box-shadow: var(--shadow-lg);
  z-index: 120; display: grid; gap: 2px;
}
.lang-menu[hidden] { display: none; }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 36px; padding: 6px 11px; border: 0; border-radius: 9px;
  background: transparent; text-align: start; font-size: 0.86rem; color: var(--ink); cursor: pointer;
}
.lang-opt:hover { background: var(--bg-alt); }
.lang-opt[aria-selected="true"] { background: var(--brand); color: #ffffff; font-weight: 600; }
.lang-opt[aria-selected="true"] small { color: rgba(255, 255, 255, 0.78); }
.lang-opt small { font-size: 0.7rem; color: var(--subtle); text-transform: uppercase; }
.lang-divider { height: 1px; background: var(--stroke); margin: 4px 6px; }

/* Mobile Menu */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent;
  color: var(--ink); cursor: pointer;
}

.mobile-drawer {
  position: fixed; inset-block-start: 53px; inset-inline: 0; bottom: 0; z-index: 85;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(24px);
  padding: 24px var(--gutter) 44px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-drawer[hidden] { display: none; }
.mobile-drawer a {
  display: flex; align-items: center; min-height: 50px; padding: 8px 2px;
  border-bottom: 1px solid var(--stroke); font-size: 1.45rem; font-weight: 600;
  letter-spacing: -0.025em; color: var(--ink);
}
.mobile-drawer a[aria-current="page"] { color: var(--brand); }
.mobile-drawer .btn { margin-block-start: 22px; border-bottom: 0; width: 100%; font-size: 1rem; }

/* ---------- Translucent Apple Frosted Glass Cards ---------- */
.card {
  background: var(--bg-card);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.065);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, box-shadow 0.35s var(--ease-out);
}
.card:hover { background: var(--bg-card-hover); box-shadow: var(--shadow-md); }

/* ---------- Apple.com Clean Light-Gray Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--stroke);
  padding-block: 48px 34px;
  color: var(--muted);
}

.footer-grid {
  display: grid; grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 32px; padding-block-end: 30px; border-bottom: 1px solid var(--stroke);
}
.footer-brand img { height: 22px; margin-block-end: 12px; }
.footer-brand p { max-width: 290px; font-size: 0.82rem; line-height: 1.55; }
.footer-col h3 { font-size: 0.76rem; font-weight: 600; color: var(--ink); margin-block-end: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 28px; font-size: 0.8rem; color: var(--muted); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  padding-block-start: 20px; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-start;
  gap: 12px 28px; font-size: 0.76rem; color: var(--subtle);
}
.footer-disclaimer { max-width: 660px; line-height: 1.5; }

@media (max-width: 980px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .lang-menu { width: min(260px, calc(100vw - 32px)); }
}
