/* ==========================================================================
   Bsharri Square
   ========================================================================== */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --teal: #00978e;        /* logo teal: large text, fills */
  --teal-ink: #007a73;    /* buttons and links (AA contrast on white) */
  --teal-deep: #005c57;   /* hover */
  --teal-tint: #e2f1ef;

  /* Neutrals */
  --ink: #16201f;
  --muted: #55625f;
  --paper: #f6f4ef;
  --paper-alt: #eeebe3;
  --card: #fff;
  --line: #e2ded4;
  --field-border: #cdc8bd;
  --danger: #b42318;
  --wa: #25d366;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(22 32 31 / .06), 0 8px 24px rgb(22 32 31 / .07);
  --shadow-lg: 0 2px 4px rgb(22 32 31 / .06), 0 18px 40px rgb(22 32 31 / .13);

  --gutter: 20px;
  --header-h: 72px;
  --tabbar-h: 0px;
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  padding-bottom: var(--tabbar-h);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: var(--teal-ink);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: .6em 1.2em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--teal-ink);
  color: #fff;
  box-shadow: 0 6px 16px rgb(0 122 115 / .22);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.icon-wa {
  color: var(--wa);
}

.btn-lg {
  min-height: 52px;
  padding: .8em 1.6em;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 244 239 / .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgb(22 32 31 / .06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  flex: none;
  border-radius: 6px;
}

.brand img {
  width: auto;
  height: 54px;
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--teal-tint);
  color: var(--teal-deep);
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(28px, 6vw, 80px);
  padding-bottom: 44px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  order: -1;
  padding-block: 32px;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #fff 0, var(--teal-tint) 52%, rgb(226 241 239 / 0) 71%);
}

.hero-art img {
  position: relative;
  width: min(68vw, 300px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .45em .9em;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.5rem + 5.2vw, 5.4rem);
  font-weight: 700;
  line-height: .92;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: var(--teal);
}

.lead {
  max-width: 34em;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}

.hero .actions {
  justify-content: center;
  margin-top: 28px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: background-color .2s, color .2s, transform .2s;
}

.socials a:hover {
  background: var(--teal-ink);
  color: #fff;
  transform: translateY(-2px);
}

.socials .icon {
  width: 20px;
  height: 20px;
}

/* Street-sign ticker with the venue names */
.ticker {
  width: 112%;
  margin: 56px 0 0 -6%;
  padding: 14px 0;
  overflow: hidden;
  background: var(--teal);
  border-block: 3px solid var(--ink);
  box-shadow: inset 0 5px 0 var(--teal), inset 0 7px 0 #fff, inset 0 -5px 0 var(--teal), inset 0 -7px 0 #fff;
  transform: rotate(-2deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}

.ticker-track span {
  display: flex;
  align-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline: 28px;
  border-radius: 50%;
  background: #fff;
  opacity: .7;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Sections
   ========================================================================== */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-alt {
  background: var(--paper-alt);
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
  text-align: center;
}

.section-head p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Section titles styled like the street signs in the logo */
.sign {
  display: inline-block;
  padding: .2em .55em .14em;
  border: .075em solid var(--ink);
  border-radius: .2em;
  background: var(--teal);
  box-shadow: inset 0 0 0 .07em var(--teal), inset 0 0 0 .115em #fff, 0 .14em 0 rgb(22 32 31 / .1);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.55rem + 1.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

/* Menus
   ========================================================================== */

.venues {
  --cols: 2;
  --gap: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.venues > li {
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}

.venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 10px 10px 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.venue img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  background: var(--paper-alt);
}

.venue-name {
  margin: 14px 4px 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.venue-cta {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  margin-top: auto;
  color: var(--teal-ink);
  font-size: .85rem;
  font-weight: 600;
}

.venue-cta .icon {
  width: 1em;
  height: 1em;
  transition: transform .25s ease;
}

.venue:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.venue:hover .venue-cta {
  color: var(--teal-deep);
}

.venue:hover .venue-cta .icon {
  transform: translate(2px, -2px);
}

/* Split layout (intro + form / map)
   ========================================================================== */

.split {
  display: grid;
  gap: 36px;
  align-items: start;
}

.split-intro .sign {
  margin-bottom: 26px;
}

.split-intro > p {
  max-width: 32em;
  color: var(--muted);
  font-size: 1.08rem;
}

.split-intro .actions {
  margin-top: 24px;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.steps strong {
  color: var(--ink);
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 32em;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1.5px dashed var(--field-border);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.note .icon {
  margin-top: 2px;
  color: var(--teal-ink);
}

/* Cards and forms
   ========================================================================== */

.card {
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
  padding: clamp(20px, 4vw, 36px);
}

.form > * {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: .92rem;
  font-weight: 600;
}

.req {
  color: var(--danger);
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.form input:not([type="radio"]),
.form select,
.form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: .7em .9em;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px stops iOS from zooming in on focus */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form select {
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316201f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right .9em center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
}

.form select:invalid {
  color: var(--muted);
}

.form option {
  color: var(--ink);
}

.form input::-webkit-date-and-time-value {
  text-align: left;
}

.form input:not([type="radio"]):focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 4px rgb(0 151 142 / .18);
}

.form [aria-invalid="true"]:not([type="radio"]) {
  border-color: var(--danger);
}

.form [aria-invalid="true"]:not([type="radio"]):focus {
  box-shadow: 0 0 0 4px rgb(180 35 24 / .15);
}

.error {
  margin-top: 6px;
  color: var(--danger);
  font-size: .85rem;
  font-weight: 500;
}

.form-status {
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}

.form-status:empty {
  display: none;
}

.form-status a {
  font-weight: 600;
}

/* Suggestion / Complaint toggle */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented label {
  position: relative;
  margin: 0;
  font-size: 1rem;
}

.segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.segmented input:hover + span {
  border-color: var(--teal-ink);
}

.segmented input:checked + span {
  border-color: var(--teal-ink);
  background: var(--teal-tint);
  box-shadow: inset 0 0 0 1px var(--teal-ink);
  color: var(--teal-deep);
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.segmented input[aria-invalid="true"] + span {
  border-color: var(--danger);
}

/* Locate Us
   ========================================================================== */

.map {
  min-height: 340px;
  overflow: hidden;
  background: var(--paper-alt);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.contact-list {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.contact-list a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-ink);
}

.contact-list small {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-list strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Footer
   ========================================================================== */

.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  text-align: center;
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.footer-logo {
  width: 120px;
}

.site-footer .socials {
  margin: 0;
}

.site-footer p {
  color: var(--muted);
  font-size: .9rem;
}

/* Mobile tab bar */
.tabbar {
  display: none;
}

/* Responsive
   ========================================================================== */

@media (min-width: 560px) {
  .venues {
    --cols: 3;
    --gap: 16px;
  }

  .field-half {
    grid-column: span 3;
  }

  .field-third {
    grid-column: span 2;
  }
}

@media (min-width: 860px) {
  .venues {
    --cols: 4;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    text-align: left;
  }

  .hero-art {
    order: 0;
    padding-block: 0;
  }

  .hero-art::before {
    width: min(100%, 440px);
  }

  .lead {
    margin-inline: 0;
  }

  .hero .actions,
  .hero .socials {
    justify-content: flex-start;
  }

  .split {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
  }

  .split:not(.split-stretch) .split-intro {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }

  .split-reverse .split-intro {
    order: 2;
  }

  .split-stretch {
    align-items: stretch;
  }
}

@media (min-width: 1060px) {
  .venues {
    --cols: 5;
    --gap: 20px;
  }
}

@media (max-width: 759.98px) {
  :root {
    --gutter: 16px;
    --header-h: 62px;
    --tabbar-h: calc(64px + env(safe-area-inset-bottom));
  }

  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .brand img {
    height: 46px;
  }

  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / .94);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    box-shadow: 0 -6px 24px rgb(22 32 31 / .06);
  }

  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s;
  }

  .tabbar .icon {
    width: 22px;
    height: 22px;
  }

  .tabbar a.is-active {
    color: var(--teal-ink);
  }

  .ticker {
    margin-top: 44px;
  }

  .ticker-track span {
    font-size: 1.3rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
