@font-face {
  font-family: 'Rainbow';
  src: url('./assets/fonts/Rainbow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dancing Script';
  src: url('./assets/fonts/DancingScript-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Non-critical styles. Critical hero/nav styles are inlined in index.html */

/* Typography helpers */
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; opacity: 0.8; }

/* Utilities */
.visually-hidden { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 4px; }
.mb-1 { margin-bottom: 4px; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mt-3 { margin-top: 12px; }
.mb-3 { margin-bottom: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-5 { margin-top: 24px; }
.mb-5 { margin-bottom: 24px; }
.mt-6 { margin-top: 32px; }
.mb-6 { margin-bottom: 32px; }

/* Accordions */
details[open] { background: rgba(255,255,255,0.06); }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }

/* Footer tweaks for larger screens */
@media (min-width: 768px) {
  footer .container { display: flex; align-items: center; justify-content: space-between; }
}

/* Responsive and layout enhancements */
*, *::before, *::after { box-sizing: border-box; }

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

/* Make nav adapt gracefully on small screens */
@media (max-width: 768px) {
  header nav { gap: var(--space-3); flex-wrap: wrap; }
  header nav .spacer { display: none; }
  header nav a { white-space: nowrap; }
  header nav .btn { padding: 10px 14px; font-size: 14px; }

  .title-wrap { padding: var(--space-7) var(--space-5); }
  section { padding: var(--space-6) 0; }
}

@media (max-width: 480px) {
  header nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  header nav a { flex: 0 0 auto; }

  /* Avoid potential 100vw overflow on ultra-small screens */
  .title-wrap { width: 100%; margin-left: 0; margin-right: 0; border-radius: 0; }
  .subhead { margin-top: var(--space-3); margin-bottom: var(--space-5); }
}

/* Guard grid against overflow on tight widths */
.activity-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* Offset anchor scroll to account for fixed header height */
section { scroll-margin-top: var(--header-h, 80px); }

/* Hamburger and responsive nav */
.nav-toggle { display: none; appearance: none; background: transparent; border: 0; padding: 10px; margin: -6px 0; cursor: pointer; border-radius: 6px; }
.nav-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(209,59,59,0.35); }
.nav-toggle .icon-burger { display: block; color: #fff; }

/* Default desktop menu layout */
nav .menu-items { display: flex; align-items: center; gap: var(--space-5); }

@media (max-width: 1200px) {
  header nav { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 0; padding: var(--space-3) 0; overflow: visible; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; z-index: 30; grid-column: 1; justify-self: start; }
  header nav .brand { grid-column: 2; justify-self: center; }
  header nav .spacer { display: none; }

  /* Dropdown menu with animation */
  nav .menu-items { display: block; position: absolute; top: calc(100% - 2px); left: 0; right: 0; background: rgba(14,14,14,0.98); border-bottom: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 24px rgba(0,0,0,0.35); padding: 6px 0; z-index: 20;
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none; max-height: 0; overflow: hidden;
    transition: opacity 180ms ease, transform 220ms ease, max-height 260ms ease, visibility 0s linear 220ms; }
  nav .menu-items a { display: block; padding: 12px 16px; text-decoration: none; }
  nav .menu-items a + a { border-top: 1px solid rgba(255,255,255,0.06); }
  nav .menu-items .btn { display: block; width: auto; text-align: center; margin: 8px 12px 2px; }

  .nav-toggle[aria-expanded="true"] ~ .menu-items { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; max-height: 80vh; transition-delay: 0s; }

  /* If JS is disabled (html.no-js remains), keep menu visible */
  .no-js nav .menu-items { display: block; position: static; box-shadow: none; border: 0; padding: 0; visibility: visible; opacity: 1; transform: none; pointer-events: auto; max-height: none; }
}

/* Subtle city badge next to the logo (hidden on mobile) */
.city-badge { font-size: 11px; opacity: 0.6; padding: 0 4px; border: 0; border-radius: 999px; margin-left: 8px; }
@media (max-width: 1200px) { .city-badge { display: none; } }

/* Reduce header blur slightly and respect reduced motion */
header { -webkit-backdrop-filter: saturate(1.2) blur(4px); backdrop-filter: saturate(1.2) blur(4px); }
@media (prefers-reduced-motion: reduce) {
  header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(14,14,14,0.95); }
}

/* Improve visible focus for text links on dark background */
a:not(.btn):focus-visible {
  outline: none;
  text-decoration: underline;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

/* Prevent background scroll when mobile menu is open */
body.menu-open { overflow: hidden; }

/* Prevent background scroll when modal is open */
body.modal-open { overflow: hidden; }

/* Uniform headings: neutral text with accent underline */
section:not(.hero) h2 {
  color: inherit;
  position: relative;
  padding-bottom: 6px;
}
section:not(.hero) h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  opacity: 0.9;
}

/* Revert accents elsewhere to defaults for a calmer, uniform look */


/* Modal dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}
.modal-overlay[aria-hidden="false"] { display: flex; }

.modal {
  background: #111;
  color: #fff;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  padding: var(--space-6);
  position: relative;
}
.email-row { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); padding: 6px 8px; border: 1px solid var(--color-accent); border-radius: 10px; }
.email-text { font-weight: 700; letter-spacing: 0.2px; flex: 1; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--color-accent); cursor: pointer; }
.btn-icon:hover, .btn-icon:focus-visible { background: rgba(209,59,59,0.12); }
/* outline two-pages icon */
.icon-copy { display: block; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }
.modal-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.modal-note { opacity: 0.8; font-size: 14px; margin-top: var(--space-4); }

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { background: rgba(255,255,255,0.08); }