/* ============================================================
   MIDTOWN MARKETPLACE — clean modern with vintage twist
   ============================================================ */

:root {
  --teal: #3FA9C5;
  --teal-deep: #2A7A8F;
  --teal-soft: #C9E5ED;
  --teal-mist: #E8F2F5;
  --terracotta: #B85A3C;
  --terracotta-deep: #8E4128;
  --terracotta-soft: #F0D9CC;
  --cream: #FAF7F2;
  --paper: #F4EFE7;
  --paper-deep: #EAE3D5;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --gray: #9CA3AF;
  --hairline: #E5E0D6;
  --gold: #D4A24A;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --script: "Allura", "Brush Script MT", cursive;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 12px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 12px 40px rgba(31, 41, 55, 0.10);
  --shadow-lg: 0 24px 70px rgba(31, 41, 55, 0.14);
  --container: 1200px;
  --container-wide: 1480px;
  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }
blockquote { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: white;
  padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 28px;
  box-shadow: 0 1px 0 var(--hairline);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: white;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.site-header.is-scrolled .wordmark {
  color: var(--teal-deep); text-shadow: none;
}
.wordmark__script {
  font-family: var(--script);
  font-size: 32px; line-height: 1; letter-spacing: 0.5px;
}
.wordmark__sub {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
}

.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; font-weight: 500; font-size: 15px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s var(--ease);
}
.header-phone:hover { background: rgba(255,255,255,0.15); border-color: white; }
.site-header.is-scrolled .header-phone {
  color: var(--teal-deep); border-color: var(--teal); text-shadow: none;
}
.site-header.is-scrolled .header-phone:hover { background: var(--teal); color: white; }
.header-phone__icon { font-size: 13px; transform: translateY(-1px); }
@media (max-width: 540px) {
  .header-phone__num { display: none; }
  .header-phone { padding: 8px 10px; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  padding-bottom: 100px;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
  width: 100%; height: 110%;
  object-fit: cover; object-position: center 40%;
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31,41,55,0.32) 0%, rgba(31,41,55,0.08) 28%,
    rgba(31,41,55,0.55) 72%, rgba(31,41,55,0.88) 100%
  );
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--container);
  width: 100%; margin: 0 auto;
  padding: 0 28px;
}
.hero__eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 22px; color: var(--teal-soft);
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 124px);
  font-weight: 400; line-height: 0.92;
  letter-spacing: -0.025em; margin-bottom: 26px;
}
.hero__title-line { display: block; }
.hero__title-line:nth-child(2) { font-style: italic; color: var(--teal-soft); }
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  max-width: 720px;
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255,255,255,0.95);
}
.hero__sub em { font-style: italic; }
.hero__meta {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.25);
  max-width: 800px;
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-label {
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-soft); font-weight: 600;
}
.hero__meta-value { font-size: 17px; font-weight: 500; }
.hero__meta-item--rating .hero__meta-value { color: var(--gold); letter-spacing: 1px; }
#todayHours[data-state="open"] { color: #B5F2C9; }
#todayHours[data-state="closed"] { color: #FFC9A8; }

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px; height: 8px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}
@media (max-width: 540px) { .hero__scroll { display: none; } }

/* ----- Section primitives ----- */
.section-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-title--inverse { color: white; }
.section-kicker {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-kicker--inverse { color: var(--teal-soft); }

/* ----- Trust Strip ----- */
.trust {
  background: var(--paper);
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 880px) { .trust__grid { grid-template-columns: 1fr; gap: 28px; } }

.trust__item {
  display: flex; gap: 18px; align-items: flex-start;
}
.trust__icon {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
}
.trust__head {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 4px;
}
.trust__desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.trust__desc a { color: var(--teal-deep); border-bottom: 1px solid var(--teal); }
.trust__desc a:hover { color: var(--teal); }

/* ----- Intro ----- */
.intro { padding: 140px 0 100px; }
.intro__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}
.intro__lead {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.22;
  color: var(--ink);
  max-width: 1000px;
  letter-spacing: -0.015em;
}
.intro__lead em {
  color: var(--teal-deep);
  font-style: italic;
}
.intro__bleed {
  margin: 0 -24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
@media (min-width: 1248px) {
  .intro__bleed { margin: 0; }
}
.intro__bleed img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease);
}
.intro__bleed:hover img { transform: scale(1.03); }

/* ----- Categories ----- */
.categories { padding: 80px 0 130px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 880px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  background: var(--paper-deep);
  cursor: default;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-md);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-tile--feature { grid-column: span 2; aspect-ratio: 8 / 5; }
@media (max-width: 880px) {
  .cat-tile--feature { grid-column: span 2; aspect-ratio: 8 / 5; }
}
@media (max-width: 540px) {
  .cat-tile--feature { grid-column: span 1; aspect-ratio: 4 / 5; }
}

/* The actual photo, behind everything */
.cat-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s var(--ease);
}
.cat-tile:hover .cat-tile__img { transform: scale(1.06); }

/* Gradient overlay above the photo */
.cat-tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.82) 100%);
  z-index: 1;
}

/* Content above the gradient */
.cat-tile__num,
.cat-tile__name,
.cat-tile__hint {
  position: relative;
  z-index: 2;
}

.cat-tile__num {
  position: absolute; top: 28px; left: 32px;
  font-family: var(--serif);
  font-size: 22px; font-style: italic;
  opacity: 0.92;
  z-index: 2;
}
.cat-tile__name {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.cat-tile__hint {
  font-size: 14px;
  opacity: 0.92;
  max-width: 30ch;
  line-height: 1.5;
}

/* ----- Collage Gallery ----- */
.collage {
  padding: 100px 0 130px;
  background: var(--paper);
}
.collage__intro {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 16px;
  max-width: 60ch;
}
.collage__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 10px;
  margin-top: 60px;
  padding: 0 18px;
}
@media (max-width: 1100px) {
  .collage__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 720px) {
  .collage__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}

.cg {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cg:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.cg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.4s var(--ease);
  filter: saturate(0.96);
}
.cg:hover img { transform: scale(1.05); filter: saturate(1.1); }

/* Collage size variants */
.cg--w1 { grid-column: span 1; }
.cg--w2 { grid-column: span 2; }
.cg--w3 { grid-column: span 3; }
.cg--h1 { grid-row: span 1; }
.cg--h2 { grid-row: span 2; }

@media (max-width: 1100px) {
  .cg--w3 { grid-column: span 4; }
}
@media (max-width: 720px) {
  .cg--w2, .cg--w3 { grid-column: span 2; }
  .cg--h2 { grid-row: span 1; }
}

/* ----- Hours ----- */
.hours { padding: 110px 0 130px; }
.hours__container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .hours__container { grid-template-columns: 1fr; gap: 40px; }
}
.hours__note {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}
.hours-table tr {
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s var(--ease);
}
.hours-table th, .hours-table td {
  padding: 20px 4px;
  text-align: left;
  font-weight: 400;
}
.hours-table th {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.hours-table td { text-align: right; color: var(--ink-soft); }
.hours-table tr.is-today {
  background: var(--teal-mist);
  border-radius: 8px;
}
.hours-table tr.is-today th,
.hours-table tr.is-today td {
  color: var(--teal-deep);
  font-weight: 600;
  padding-left: 16px;
  padding-right: 16px;
}
.hours-table tr.is-today th::before {
  content: "Today · ";
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--teal);
}

/* ----- Reviews ----- */
.reviews {
  padding: 120px 0 130px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
}
.reviews__rating {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.reviews__stars {
  font-size: 32px;
  letter-spacing: 4px;
  color: var(--gold);
  line-height: 1;
}
.reviews__rating-text {
  font-size: 17px;
  color: var(--ink-soft);
}
.reviews__rating-text a {
  color: var(--teal-deep);
  font-weight: 500;
  border-bottom: 1px solid var(--teal);
}
.reviews__rating-text a:hover { color: var(--teal); }

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 24px;
}
@media (max-width: 720px) { .reviews__grid { grid-template-columns: 1fr; } }

.review-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.review-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, var(--teal-mist) 100%);
  border-color: var(--teal-soft);
  padding: 40px 44px;
}
.review-card--featured .review-card__quote {
  font-size: 26px;
  line-height: 1.42;
}
.review-card--short .review-card__quote {
  font-size: 24px;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .review-card--featured { grid-column: span 1; padding: 32px; }
  .review-card--featured .review-card__quote { font-size: 22px; }
}

.review-card__stars {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
}
.review-card__quote {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  letter-spacing: -0.01em;
}
.review-card__quote::before { content: "\201C"; }
.review-card__quote::after  { content: "\201D"; }
.review-card__author {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: auto;
}

.reviews__cta {
  margin-top: 48px;
  text-align: center;
}

/* ----- Visit ----- */
.visit { padding: 100px 0 120px; background: var(--paper); }
.visit__container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .visit__container { grid-template-columns: 1fr; gap: 40px; }
}
.visit__address {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.3;
  margin-top: 28px;
  color: var(--ink);
}
.visit__phone {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-soft);
}
.visit__phone a { color: var(--teal-deep); font-weight: 500; }
.visit__phone a:hover { color: var(--teal); text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-top: 28px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--teal); color: white; }
.btn--primary:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--inverse { background: white; color: var(--teal-deep); }
.btn--inverse:hover {
  background: var(--teal-soft);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-deep);
  margin-top: 0;
}
.btn--ghost:hover {
  background: var(--teal);
  color: white;
}

.visit__map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--hairline);
}
.visit__map iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

/* ----- Vendors ----- */
.vendors {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--teal-deep) 0%, #1F5161 100%);
  color: white;
}
.vendors__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.vendors__copy {
  margin-top: 18px;
  font-size: 18px;
  max-width: 600px;
  opacity: 0.92;
  line-height: 1.55;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 70px 0 40px;
  font-size: 15px;
}
.site-footer__container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .site-footer__container { grid-template-columns: 1fr 1fr; gap: 30px; }
  .site-footer__brand { grid-column: span 2; }
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--teal-soft);
}
.site-footer__brand .wordmark__script { font-size: 42px; }
.site-footer__brand .wordmark__sub { color: var(--teal); }
.site-footer__tag {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(250,247,242,0.65);
  max-width: 30ch;
}
.site-footer__heading {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--teal-soft);
  margin-bottom: 8px;
}
.site-footer__col p { margin-bottom: 6px; opacity: 0.85; }
.site-footer__col a {
  color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s, border-color 0.2s;
}
.site-footer__col a:hover { color: var(--teal-soft); border-color: var(--teal); }
.site-footer__col--legal { font-size: 13px; opacity: 0.6; }
.site-footer__col--legal p { margin-bottom: 4px; }

/* ----- Reveal ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
