/* BRIDGE — base reset & foundational styles */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.intro-active {
  overflow: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  margin: 0;
}

p {
  margin: 0;
}

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

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

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

/* Visible, accessible focus state everywhere */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.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;
  top: -48px;
  left: var(--space-sm);
  background: var(--color-ink-950);
  color: var(--color-text-inverse);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: var(--z-intro);
  transition: top var(--dur-fast) var(--ease-out-soft);
}

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

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

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

.section {
  padding-block: var(--space-2xl);
}

@media (max-width: 720px) {
  .section {
    padding-block: var(--space-xl);
  }
}

/* Narrow phones stack every section in a single column (see the grid
   breakpoints in home.css/restaurant.css/etc), so the desktop-tuned
   --space-xl rhythm here compounds across many stacked sections into a
   scroll that reads as sparse/empty rather than compact — tightened one
   more step just for that range. */
@media (max-width: 480px) {
  .section {
    padding-block: var(--space-lg);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-accent-strong);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: var(--line-hairline);
  background: currentColor;
  display: inline-block;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  max-width: 46ch;
}

/* ---- Buttons ---- */
.btn {
  --btn-fg: var(--color-text-inverse);
  --btn-bg: var(--color-ink-950);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out-soft), box-shadow var(--dur-fast) var(--ease-out-soft);
}

.btn:hover {
  box-shadow: var(--shadow-md);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out-soft);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.btn--ghost.btn--on-dark {
  --btn-fg: var(--color-text-inverse);
  box-shadow: inset 0 0 0 1px var(--color-line-inverse);
}

.btn--accent {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-ink-950);
}

@media (hover: hover) and (pointer: fine) {
  .btn.is-magnetic {
    transition: transform var(--dur-fast) var(--ease-out-soft);
  }
}

/* ---- Image placeholder (used until real Bridge photography is supplied) ---- */
.image-slot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--color-ink-800), var(--color-ink-950));
  color: var(--color-text-inverse-muted);
  display: flex;
  align-items: flex-end;
}

.image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 46%, rgba(217, 161, 92, 0.18) 50%, transparent 54%);
  background-size: 220% 220%;
  animation: slotSheen 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .image-slot::before {
    animation: none;
  }
}

@keyframes slotSheen {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

.image-slot__label {
  position: relative;
  z-index: 1;
  padding: var(--space-sm);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: var(--line-hairline) solid var(--color-line-inverse);
  width: 100%;
}

.image-slot__label span {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: normal;
}

/* ---- Line motif ---- */
.bridge-line {
  height: var(--line-hairline);
  width: 100%;
  background: var(--color-line);
}

.bridge-line--inverse {
  background: var(--color-line-inverse);
}
