@font-face {
  font-family: 'Salted';
  src: url('assets/salted-v3.woff2') format('woff2'),
       url('assets/salted-v3.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Buddy & Son — brand tokens (from Dropbox: 26-BUD-002-Logo-Approval-Sheet)
   ========================================================================== */
:root {
  --green:      #27542F; /* Vintage Green — primary */
  --emerald:    #253316; /* Emerald (deep olive) */
  --plum:       #620B15; /* Plum (deep wine) */
  --pink:       #F6D1C3; /* Champagne Pink */
  --gold:       #F5B01A; /* Incandescent Gold */
  --rust:       #DE3928; /* Rust Orange */
  --eggshell:   #F6F1DD; /* Eggshell — background */
  --near-black: #212121; /* Near Black — text */

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

  --max-width: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--eggshell);
  color: var(--near-black);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--green);
}

p { margin: 0 0 1em; }
a { color: inherit; }

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

.pending-note {
  color: var(--near-black);
  opacity: .55;
  font-size: .92rem;
  font-style: italic;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--near-black); }
.btn-primary:hover { background: #e0a316; }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--eggshell); }
.btn-light { background: var(--eggshell); color: var(--green); }
.btn-light:hover { background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 221, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(33, 33, 33, .08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  letter-spacing: .01em;
}
.wordmark .amp {
  font-style: italic;
  color: var(--rust);
}
.wordmark { display: flex; align-items: center; }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.primary-nav {
  display: flex;
  gap: 28px;
}
.primary-nav a {
  text-decoration: none;
  font-family: 'Salted', var(--font-body, sans-serif);
  font-weight: normal;
  text-transform: uppercase;
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--near-black);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.primary-nav a:hover { border-color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--green);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 112px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(20,16,10,.82) 0%, rgba(20,16,10,.55) 46%, rgba(20,16,10,.18) 100%),
    url("assets/hero-dining.jpg") center / cover no-repeat,
    var(--near-black);
}
.hero-inner { max-width: 640px; }
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  color: var(--eggshell);
  margin-bottom: 22px;
}
.hero-hours {
  font-size: 1.05rem;
  color: var(--eggshell);
  opacity: .92;
  font-weight: 600;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-bird {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 260px;
  height: auto;
  opacity: .9;
}
@media (max-width: 780px) {
  .hero-bird { width: 150px; height: auto; right: -10px; bottom: -10px; opacity: .5; }
}

/* ---------- About ---------- */
.about { padding: 88px 0; background: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 64px;
  align-items: center;
}
.about-copy h2 { font-size: 2.1rem; }
.about-copy p { font-size: 1.08rem; max-width: 46ch; }
.about-photo {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.about-marks {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 26px;
}
.mark { width: 84px; height: auto; }
@media (max-width: 780px) {
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-marks { justify-content: flex-start; }
}

/* ---------- Band (menu CTA) ---------- */
.band { background: var(--green); color: var(--eggshell); padding: 64px 0; }
.band h2, .band p { color: var(--eggshell); }
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band-inner h2 { margin-bottom: .2em; }
.band-inner p { margin: 0; opacity: .85; }

/* ---------- Info grid ---------- */
.info-grid { padding: 88px 0; background: var(--eggshell); }
.info-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: #fff;
  border: 1px solid rgba(33,33,33,.08);
  border-radius: var(--radius);
  padding: 32px;
}
.info-card h3 { font-size: 1.3rem; margin-bottom: .4em; }
@media (max-width: 860px) {
  .info-grid-inner { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gallery { padding: 88px 0 96px; background: #fff; }
.gallery h2 { font-size: 2.1rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.gallery-tile {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--eggshell, #f6f1dd);
}
.gallery-note { opacity: .7; margin-top: .2em; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--near-black); color: var(--pink); }
.footer-inner {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--eggshell);
  margin-bottom: .1em;
}
.footer-wordmark .amp { color: var(--gold); font-style: italic; }
.footer-logo-img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.footer-tag { color: var(--pink); opacity: .7; margin: 0; font-size: .9rem; }
.footer-col h4 {
  color: var(--eggshell);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: .8em;
}
.footer-col .pending-note { color: var(--pink); opacity: .55; }
.footer-bottom {
  border-top: 1px solid rgba(246,241,221,.12);
  padding: 20px 24px;
  font-size: .82rem;
  opacity: .6;
}
@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--eggshell);
    flex-direction: column;
    padding: 8px 24px 24px;
    gap: 16px;
    display: none;
    border-bottom: 1px solid rgba(33,33,33,.08);
  }
  .primary-nav.open { display: flex; }
}

/* ---------- Hours & location details ---------- */
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(33,33,33,.15);
}
.hours-list li:last-child { border-bottom: none; }
.address { margin-top: 0; }
.address-note { opacity: .65; font-size: .92em; }
.map-wrap {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

/* ---------- Salted accents ---------- */
.hero-kicker,
.info-card h3,
.footer-col h4,
.footer-tag,
.gallery h2,
.btn {
  font-family: 'Salted', var(--font-body, sans-serif);
  font-weight: normal;
}
.hero-kicker { font-size: .95rem; letter-spacing: .08em; }
.info-card h3 { font-size: 1.45rem; }
.footer-col h4 { font-size: 1.05rem; letter-spacing: .06em; }
.footer-tag { font-size: 1rem; }
.gallery h2 { font-size: 2.2rem; }
.btn { letter-spacing: .05em; font-size: 1.02rem; }

/* ---------- Footer brand refresh ---------- */
.footer-logo-img { width: 230px; }
.footer-script {
  font-family: 'Salted', var(--font-body, sans-serif);
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: .04em;
  margin: 14px 0 0;
}

/* ---------- Footer alignment fixes ---------- */
.footer-script {
  width: 230px;            /* matches the logo width so the line centers under it */
  text-align: center;
}
@media (max-width: 480px) {
  .footer-inner {
    justify-items: center;
    text-align: center;
    gap: 36px;
  }
  .footer-logo-img, .footer-script { margin-left: auto; margin-right: auto; }
  .footer-bottom { text-align: center; }
}

/* ---------- Gallery: no orphan tile on mobile ---------- */
@media (max-width: 700px) {
  .gallery-grid .gallery-tile:first-child { grid-column: 1 / -1; }
}

/* ---------- Gallery: stagger illustrations vs photos on mobile ---------- */
@media (max-width: 700px) {
  .gallery-grid .gallery-tile:nth-child(1) { order: 1; }
  .gallery-grid .gallery-tile:nth-child(2) { order: 2; }
  .gallery-grid .gallery-tile:nth-child(3) { order: 3; }
  .gallery-grid .gallery-tile:nth-child(4) { order: 5; }  /* swap pair 2 */
  .gallery-grid .gallery-tile:nth-child(5) { order: 4; }
  .gallery-grid .gallery-tile:nth-child(6) { order: 6; }
  .gallery-grid .gallery-tile:nth-child(7) { order: 7; }
  .gallery-grid .gallery-tile:nth-child(8) { order: 9; }  /* swap pair 4 */
  .gallery-grid .gallery-tile:nth-child(9) { order: 8; }
}

/* ---------- About heading in Salted ---------- */
.about-copy h2 {
  font-family: 'Salted', var(--font-body, sans-serif);
  font-weight: normal;
  font-size: 2.2rem;
}

/* ---------- Hero logo ---------- */
.hero-logo {
  width: 280px;
  max-width: 70%;
  height: auto;
  display: block;
  margin-bottom: 26px;
}

/* ---------- Hero: text left, logo right ---------- */
.hero-inner {
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.hero-text { max-width: 640px; }
.hero-logo {
  width: 320px;
  margin: 0;
  flex-shrink: 0;
}
@media (max-width: 780px) {
  .hero-inner {
    flex-direction: column-reverse;   /* logo on top when stacked */
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .hero-logo { width: 230px; max-width: 75%; }
  .hero-actions { justify-content: center; }
}

/* ---------- Hero: B&W arrival photo ---------- */
.hero {
  background:
    linear-gradient(100deg, rgba(8,8,8,.86) 0%, rgba(8,8,8,.58) 46%, rgba(8,8,8,.22) 100%),
    url("assets/hero-arrival.jpg") center / cover no-repeat,
    var(--near-black);
}
.hero-hours { color: var(--gold); opacity: 1; }

/* ---------- Hero: full-color lockup on eggshell card ---------- */
.hero-logo-card {
  background: var(--eggshell);
  border-radius: 14px;
  padding: 26px 30px;
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
}

/* ---------- Plum accents (descriptor red) ---------- */
.primary-nav a { color: var(--plum); }
.primary-nav a:hover { border-color: var(--plum); }
.info-card h3 { color: var(--plum); }
.gallery h2 { color: var(--plum); }

/* ---------- Footer links ---------- */
.footer-link { color: var(--pink); text-decoration: none; border-bottom: 1px solid rgba(246,209,195,.35); }
.footer-link:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Bacalar (wordmark font) for the hero headline ---------- */
@font-face {
  font-family: 'Bacalar';
  src: url('assets/bacalar.woff2') format('woff2'),
       url('assets/bacalar.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.hero-title {
  font-family: 'Bacalar', var(--font-display, serif);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.04;
}

/* ---------- Menu band: links to the menus ---------- */
.menu-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 780px) {
  .menu-links { width: 100%; }
  .menu-links .btn { flex: 1 1 calc(50% - 12px); text-align: center; }
}
