/* eZephyr v2 — shared site chrome: header, primary nav, mobile menu,
 * Explore Mumbai link, breadcrumbs and footer. Loaded on every page,
 * including the Mumbai homepage. */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 clamp(16px, 3vw, 40px);
  background: var(--sky);
}
.site-header__brand { display: block; flex: none; border-radius: 2px; }
.site-header__brand img { width: 132px; height: auto; }

.site-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.site-nav ul { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a {
  display: inline-block;
  padding: 6px 2px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-strong);
}
.site-nav a:hover,
.site-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 5px;
}
.site-nav a[aria-current="page"] { text-decoration-color: var(--ink-strong); }

/* Explore Mumbai: set apart from the content pages, marked with the original location pin. */
.explore-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 14px 4px 10px;
  border: 2px solid var(--ink-strong);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-strong);
}
.explore-link::before {
  content: '';
  flex: none;
  width: 14px;
  height: 16px;
  background: url('../assets/ui/location-pin.png') no-repeat 0 0 / 100% 100%;
}
.explore-link:hover { background: var(--yellow); }

/* Start a Project: the site's enquiry button (ink with yellow lettering, as on every page's
   "Start a Project"), sized to sit beside Explore Mumbai in the header. */
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 14px;
  border: 2px solid var(--ink-strong);
  border-radius: 999px;
  background: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--yellow);
}
.header-cta:hover { background: var(--paper); color: var(--ink-strong); }

/* Just above the mobile breakpoint the full header is tight (five links since Clientele joined
   the navigation): close up the gaps and set the links a little smaller so it stays on one row. */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-menu,
  .site-nav ul { gap: 10px; }
  .site-nav a { font-size: 1rem; letter-spacing: 0.03em; }
}

/* The Menu button only exists for narrow screens once js/site-nav.js has run. */
.site-menu-toggle { display: none; }

@media (max-width: 899px) {
  .has-menu .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border: 2px solid var(--ink-strong);
    border-radius: 3px;
    background: var(--paper);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-strong);
    cursor: pointer;
  }
  .site-menu-toggle__icon,
  .site-menu-toggle__icon::before,
  .site-menu-toggle__icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .site-menu-toggle__icon { position: relative; }
  .site-menu-toggle__icon::before,
  .site-menu-toggle__icon::after { content: ''; position: absolute; left: 0; }
  .site-menu-toggle__icon::before { top: -6px; }
  .site-menu-toggle__icon::after { top: 6px; }
  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon { background: transparent; }
  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
  .site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

  /* Collapsed: the panel drops below the header when opened. */
  .has-menu .site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px clamp(16px, 3vw, 40px) 20px;
    background: var(--sky);
    border-bottom: 3px solid var(--ink-strong);
  }
  .has-menu .site-menu:not(.is-open) { display: none; }
  .has-menu .site-nav ul { flex-direction: column; gap: 0; }
  .has-menu .site-nav li + li { border-top: 1px solid rgba(49, 49, 50, 0.25); }
  .has-menu .site-nav a { display: block; padding: 12px 2px; font-size: 1.25rem; }
  .has-menu .explore-link,
  .has-menu .header-cta { align-self: flex-start; min-height: 44px; }

  /* Without JS the links simply wrap under the logo. */
  html:not(.has-menu) .site-header { flex-wrap: wrap; height: auto; padding-block: 8px; }
  html:not(.has-menu) .site-menu { flex-wrap: wrap; gap: 8px 16px; }
  html:not(.has-menu) .site-nav ul { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .has-menu .site-menu.is-open { animation: site-menu-in 0.18s ease-out; }
}
@keyframes site-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 600px) {
  :root { --header-h: 52px; }
  .site-header__brand img { width: 108px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-strong);
}
.breadcrumbs li + li::before {
  content: '›';
  content: '›' / '';
  margin: 0 8px;
  color: var(--ink);
}
.breadcrumbs a { text-decoration: underline; text-decoration-color: rgba(49, 49, 50, 0.45); text-underline-offset: 3px; }
.breadcrumbs a:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.breadcrumbs [aria-current="page"] { font-weight: 400; }

/* ---------- Street strip: the original land and sea, static ---------- */
.street {
  --a: 1px;
  position: relative;
  height: calc(45 * var(--a));
  overflow: hidden;
}
.street__land,
.street__wave { position: absolute; left: 0; display: block; width: 100%; }
.street__land {
  top: 0;
  height: calc(28 * var(--a));
  background: url('../assets/environment/land.png') repeat-x 0 0 / auto calc(28 * var(--a));
}
.street__wave { height: calc(27 * var(--a)); }
.street__wave--light {
  top: calc(15 * var(--a));
  background: url('../assets/environment/wave-light.png') repeat-x -20px 0 / auto calc(27 * var(--a));
}
.street__wave--dark {
  top: calc(18 * var(--a));
  background: url('../assets/environment/wave-dark.png') repeat-x 5px 0 / auto calc(27 * var(--a));
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--sky-light);
  color: var(--paper);
}
.site-footer__inner {
  display: grid;
  gap: 18px;
  padding: 32px clamp(16px, 3vw, 40px) 40px;
  background: var(--ink-strong);
}
.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--yellow);
}
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__nav a,
.site-footer__contact a {
  display: inline-block;
  padding: 6px 0;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}
.site-footer__nav a:hover,
.site-footer__contact a:hover,
.site-footer__nav a[aria-current="page"] { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.site-footer :focus-visible { outline-color: var(--yellow); }

@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .site-footer__nav ul { justify-content: center; }
}

/* The homepage scenes already end on the street: go straight to the footer. */
.page-home .site-footer .street { display: none; }
