/* ============================================================
   Ottomanelli Brothers — Beautify NYC
   Palette: signage black + aged gold, cream label stock, butcher red
   Type: Fraunces (display), Libre Franklin (body/UI)
   ============================================================ */

:root {
  --ink: #1c1a17;
  --cream: #f7f1e4;
  --cream-2: #eee6d3;
  --red: #8c1f1a;
  --red-dark: #6f1713;
  --gold: #b8873f;
  --gold-deep: #9c6f2c;
  --charcoal: #3a3630;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --shadow: 0 12px 34px -18px rgba(20, 16, 12, 0.55);
  --shadow-sm: 0 6px 18px -12px rgba(20, 16, 12, 0.5);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--red); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.06;
  margin: 0 0 0.5em;
  font-weight: 900;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem;
  border-radius: var(--radius); transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

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

/* -------- eyebrow / labels -------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 0.85rem;
}
.eyebrow--gold { color: var(--gold-deep); }

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--red); color: var(--cream); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 2px solid var(--gold-deep);
}
.header-inner {
  max-width: 1240px; margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; color: var(--cream); letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-top: 0.25rem; font-weight: 600;
}
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--cream); text-decoration: none; font-weight: 600;
  font-size: 0.92rem; padding: 0.35rem 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width 0.2s;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }
.header-cta {
  color: var(--ink); background: var(--gold);
  padding: 0.6rem 1.05rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 700; font-size: 0.9rem; white-space: nowrap;
  transition: background 0.2s;
}
.header-cta:hover { background: #cf9c4e; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--cream); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18,15,12,0.94) 4%, rgba(18,15,12,0.55) 42%, rgba(18,15,12,0.15) 78%),
    linear-gradient(to right, rgba(18,15,12,0.7), rgba(18,15,12,0.05) 65%);
}
.hero-inner { position: relative; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero-content { max-width: 640px; color: var(--cream); }
.hero .eyebrow--gold { color: var(--gold); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(3rem, 9vw, 6rem);
  margin: 0 0 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-lede { font-size: clamp(1.05rem, 2.3vw, 1.35rem); color: #f4ecdd; max-width: 40ch; margin-bottom: 0.6rem; }
.hero-meta { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); font-weight: 600; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero .btn--ghost { color: var(--cream); border-color: var(--cream); }
.hero .btn--ghost:hover { background: var(--cream); color: var(--ink); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-intro { font-size: 1.1rem; color: var(--charcoal); }

/* -------- STORY -------- */
.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.story-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.story-body h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.pull-quote {
  margin: 1.75rem 0 0; padding: 1.1rem 0 1.1rem 1.4rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 1.2rem; line-height: 1.45; color: var(--ink);
}
.pull-quote cite { display: block; margin-top: 0.75rem; font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }

/* -------- cut divider (signature) -------- */
.cut-divider { color: var(--gold); display: flex; justify-content: center; padding: 0.5rem 0 0; }
.cut-divider svg { opacity: 0.9; }

/* -------- HISTORY TIMELINE -------- */
.history { background: var(--ink); color: var(--cream); }
.history .eyebrow { color: var(--gold); }
.history h2, .history h3 { color: var(--cream); }
.history .section-intro { color: #cdc4b3; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--gold), var(--gold-deep));
}
.timeline-item { position: relative; padding: 0 0 2.25rem 2.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--gold);
}
.timeline-item--now::before { background: var(--red); border-color: var(--gold); }
.timeline-year {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; color: var(--gold); margin-bottom: 0.3rem;
}
.timeline-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.timeline-card p { color: #cdc4b3; margin: 0; max-width: 60ch; }

/* -------- VALUES -------- */
.values { background: var(--cream-2); }
.values-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3rem); }
.mission { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.vision { margin-top: 1.25rem; }
.vision-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--red); font-weight: 700; margin-bottom: 0.35rem; }
.values-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem;
  align-content: start;
}
.values-list li {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink);
  padding: 0.9rem 1rem; background: var(--cream);
  border: 1px solid #d8cdb5; border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

/* -------- TEAM -------- */
.team { background: var(--cream); }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.team-card { margin: 0; background: var(--cream-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .team-card:hover { transform: none; } }
.team-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.team-card figcaption { padding: 1.25rem 1.4rem 1.5rem; }
.team-card h3 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.team-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red); font-weight: 700; margin-bottom: 0.7rem; }
.team-card figcaption p:last-child { margin: 0; font-size: 0.98rem; }

/* -------- CRAFT -------- */
.craft { background: var(--cream-2); }
.craft-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center; }
.craft-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.tip-list { list-style: none; margin: 1.25rem 0; padding: 0; }
.tip-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; }
.tip-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.craft-pick { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.1rem; color: var(--ink); }

/* -------- SHOP -------- */
.shop { background: var(--cream); }
.shop-feature { margin-bottom: clamp(2rem, 5vw, 3rem); }
.shop-feature img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 21/9; object-fit: cover; }
.shop-cats { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.shop-cat { background: var(--cream-2); border: 1px solid #dccfb6; border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.shop-cat-title { font-size: 1.35rem; color: var(--ink); margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--gold); }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px dotted #c9bda3; font-size: 0.98rem; }
.price-list li:last-child { border-bottom: 0; }
.price { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-note { margin-top: 1rem; font-size: 0.9rem; font-style: italic; color: var(--charcoal); }
.shop-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }
.shop-deliver { text-align: center; margin-top: 1rem; font-weight: 600; color: var(--ink); }

/* -------- NEIGHBORS -------- */
.neighbors { background: var(--ink); color: var(--cream); }
.neighbors .eyebrow { color: var(--gold); }
.neighbors h2 { color: var(--cream); }
.quote-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 2.5rem; }
.neighbor {
  margin: 0; background: #26231e; border: 1px solid #3a352d;
  border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.neighbor p { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: #f2ead9; margin-bottom: 1rem; }
.neighbor cite { font-style: normal; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.community-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.community-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.community-photo figcaption { background: #26231e; color: #cdc4b3; font-size: 0.9rem; padding: 0.85rem 1.2rem; text-align: center; }

/* -------- PRESS -------- */
.press { background: var(--cream-2); }
.press-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.press-card { margin: 0; background: var(--cream); border: 1px solid #dccfb6; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.press-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 12%; cursor: zoom-in; transition: transform 0.3s; }
.press-card:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .press-card:hover img { transform: none; } }
.press-card figcaption { padding: 1rem 1.3rem 1.3rem; font-size: 0.95rem; color: var(--charcoal); }
.press-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-bottom: 0.35rem; }

/* -------- VISIT -------- */
.visit { background: var(--cream); }
.visit-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.visit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.75rem; margin: 1.5rem 0; }
.visit-facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--red); font-weight: 700; margin-bottom: 0.35rem; }
.visit-facts dd { margin: 0; font-size: 1.02rem; color: var(--ink); line-height: 1.5; }
.visit-facts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); }
.visit-facts a:hover { color: var(--red); }
.visit-note { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--ink); }
.visit-socials { display: flex; gap: 1rem; margin-top: 1.25rem; }
.visit-socials a {
  text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); border: 2px solid var(--ink); padding: 0.5rem 1rem; border-radius: var(--radius); transition: background 0.2s, color 0.2s;
}
.visit-socials a:hover { background: var(--ink); color: var(--cream); }
.visit-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid #dccfb6; }
.visit-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.75rem; border-top: 2px solid var(--gold-deep); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-name { color: var(--cream); font-size: 1.4rem; }
.footer-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-top: 0.3rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { color: #cdc4b3; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact p { margin: 0 0 0.25rem; color: #cdc4b3; font-size: 0.92rem; }
.footer-contact a { color: var(--gold); text-decoration: none; }
.footer-credit { text-align: center; color: #8a8272; font-size: 0.78rem; margin: 2rem 0 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(15,12,9,0.92); display: flex; align-items: center; justify-content: center; padding: 3vh 4vw; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 92vh; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: 0; color: var(--cream); font-size: 2.5rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.6rem; }
.lightbox-close:hover { color: var(--gold); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 720px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch; }
  .team-card--wide img { height: 100%; aspect-ratio: auto; }
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-cats { grid-template-columns: repeat(3, 1fr); align-items: start; }
}

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 0.9fr 1.1fr; }
  .craft-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-card--wide { grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.3fr 1fr 1.3fr; align-items: start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: 60px 0 auto 0;
    flex-direction: column; gap: 0; background: var(--ink);
    border-bottom: 2px solid var(--gold-deep);
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-140%); transition: transform 0.3s ease;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid #322d26; font-size: 1.05rem; }
  .site-nav a::after { display: none; }
  .no-js .site-nav { position: static; transform: none; }
}

.no-js .nav-toggle { display: none; }
