/* ===== 787 Restaurant & Bar – Site CSS (Modern Refresh 2026) ===== */

:root {
  --bg: #fff;
  --text: #1a1a1a;
  --muted: #555;
  --accent: #c0202a;
  --accent-dark: #9b111e;
  --accent-light: #ffe8e8;
  --teal: #0b5f69;
  --navy: #0b1f3a;
  --sand: #fff8ed;
  --sand-border: #f3d5a6;
  --line: #e9e9e9;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
section { padding: 32px 0; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Homepage: transparent header overlaid on hero */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  z-index: 100;
}
.page-home .site-header .nav { gap: 32px; padding: 10px 0; }
.page-home .top-phone { background: rgba(11,31,58,.65); }
.page-home nav a { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.7); font-weight: 700; }
.page-home nav a.order { color: #fff !important; text-shadow: none; background: var(--accent); font-weight: 800; }
.page-home .brand-logo { height: 180px; filter: drop-shadow(0 2px 12px rgba(0,0,0,.6)); }
.page-home .hero { min-height: 620px; }
/* Special banner: sits on top of hero, below the nav area */
.page-home .rolling-special-banner {
  position: relative;
  z-index: 200;
}
.top-phone {
  background: var(--navy);
  text-align: center;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 17px;
}
.top-phone a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  height: auto;
  min-height: unset;
  padding: 6px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 104px; width: auto; display: block; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
nav a {
  margin: 0 6px;
  opacity: .88;
  font-size: 17px;
  font-weight: 600;
  padding: 8px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: opacity .15s, font-weight .1s;
  cursor: pointer;
}
nav a:hover { opacity: 1; font-weight: 800; text-decoration: none; }
nav a.order {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  opacity: 1;
  box-shadow: 0 3px 12px rgba(192,32,42,.28);
}
nav a.order:hover { filter: brightness(.94); text-decoration: none; }
/* Center the Order Online button when the nav wraps it to its own row */
.site-header nav a.order { margin-left: auto; margin-right: auto; }

/* ===== DAILY SPECIAL BANNER ===== */
.rolling-special-banner {
  width: 100%;
  overflow: hidden;
  background: var(--sand);
  border-top: 1px solid var(--sand-border);
  border-bottom: 1px solid var(--sand-border);
}
.daily-special-marquee {
  display: block;
  padding: 8px 0;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}
.daily-special-marquee strong { color: var(--accent-dark); font-weight: 950; }

/* ===== TOP EVENT BANNER ===== */
.top-event {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef4 100%);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.top-event-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.top-event h2 { margin: 2px 0 4px; font-size: 24px; line-height: 1.1; color: #444; }
.top-event p { margin: 0; color: #555; font-weight: 600; max-width: 760px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  color: #666;
}
.top-event-cta {
  white-space: nowrap;
  background: #555 !important;
  box-shadow: none !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 520px;
  background: url('../img/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11,31,58,.72) 0%, rgba(0,0,0,.08) 42%, rgba(0,0,0,.68) 100%);
  display: flex;
  align-items: flex-end;
  width: 100%;
}
.hero-content {
  padding-bottom: 44px;
  color: #fff;
}
.hero-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: 700;
  opacity: .92;
  letter-spacing: .03em;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(192,32,42,.38);
  transition: filter .15s, transform .15s;
}
.hero-btn:hover { text-decoration: none; filter: brightness(.93); transform: translateY(-1px); }
.hero-btn-outline {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: none;
  color: #fff !important;
}
.hero-btn-outline:hover { background: rgba(255,255,255,.25); filter: none; }

/* ===== DISH PHOTO GRID ===== */
.dishes-section {
  padding: 52px 0;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--accent-dark);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 640px;
  font-size: 17px;
}
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dish-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  background: #111;
  transition: transform .22s ease, box-shadow .22s ease;
}
.dish-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); text-decoration: none; }
.dish-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.dish-card:hover img { transform: scale(1.04); }
.dish-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dish-label strong {
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.dish-label span {
  font-size: 13px;
  opacity: .85;
  font-weight: 600;
}

/* ===== INFO SECTION (hours/location/reserve) ===== */
.info-section {
  padding: 52px 0;
  background: #fff;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
}
.info-card p { margin: 0 0 10px; line-height: 1.5; }
.info-card-cta { background: var(--sand); border-color: var(--sand-border); }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hours-table td { padding: 6px 0; font-size: 15px; }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.hours-table td:first-child { font-weight: 600; color: var(--text); }
.closed-row td { color: #999 !important; font-weight: 400 !important; }
.hours-note { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.info-link { font-weight: 800; color: var(--accent); text-decoration: underline; font-size: 14px; }
.reserve-actions { display: flex; flex-direction: column; gap: 10px; }

/* ===== TAGLINE ===== */
.tagline, .puerto-rico-seo {
  padding: 36px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tagline h1, .puerto-rico-seo h1 {
  margin: 0 0 10px;
  font-size: 36px;
  color: var(--accent-dark);
  line-height: 1.15;
}
.tagline p, .puerto-rico-seo p {
  margin: 0 auto;
  max-width: 860px;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}

/* ===== CARDS & GRID ===== */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 28px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f5f5, #ebebeb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
}
.card-body { padding: 16px 18px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.card em {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 800;
  color: var(--teal);
}
.card.is-today {
  border: 2px solid var(--accent);
  box-shadow: 0 6px 24px rgba(192,32,42,.16);
}

/* Today special highlight */
.today-special-card { border-color: #f1c36d; background: var(--sand); padding: 16px; border-radius: var(--radius); }
.today-special-card h3 { color: var(--accent-dark); margin: 0 0 8px; }
.muted-note { color: var(--muted); margin-top: -4px; font-size: 15px; }

/* ===== SPECIALS PAGE ===== */
.specials-page h1 { margin-bottom: 4px; }
.specials-page h2 { margin: 28px 0 4px; }
.special-day-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* ===== EVENT PAGE ===== */
.event-hero {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr);
  gap: 28px;
  align-items: center;
  margin: 16px 0 28px;
}
.event-poster {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.event-details {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.event-details h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.05; }
.event-meta { display: grid; gap: 10px; margin: 18px 0; font-weight: 700; }
.limited { display: inline-block; margin: 10px 0 0; color: #b30000; font-weight: 800; }
.past-event-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8e8e8;
  color: #555;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: #b30000;
  font-weight: 800;
  border: 1px solid #ffd0d0;
  font-size: 14px;
}

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(192,32,42,.22);
  transition: filter .15s;
  min-height: 44px;
}
.cta:hover { text-decoration: none; filter: brightness(.93); }

/* ===== FORM ===== */
.form { display: grid; gap: 14px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,32,42,.12);
}
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
legend { padding: 0 6px; font-weight: 700; color: #333; }
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  min-height: 44px;
  transition: filter .15s;
  font-family: inherit;
}
button:hover { filter: brightness(.93); }
.form .sendcopy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.form .sendcopy input[type="checkbox"] { width: auto; margin: 0; }
.form-confirm-note {
  background: #f0f8f0;
  border: 1px solid #b8dfb8;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: #2d6a2d;
  font-weight: 600;
}
small.help { color: #666; }

/* ===== FOOTER ===== */
.site-footer {
  border-top: 3px solid var(--accent);
  background: var(--navy);
  color: #e8edf4;
  padding: 48px 0 24px;
  margin-top: 28px;
}
.site-footer a { color: #e8edf4; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  margin-bottom: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { height: 64px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; font-size: 15px; line-height: 1.7; }
.footer-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 14px;
}
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }

.phone-link, .map-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  margin-top: 6px;
  transition: filter .15s;
  align-self: flex-start;
}
.map-button:hover { text-decoration: none; filter: brightness(.9); }
.review-button { background: #4285F4; gap: 6px; }
.review-button:hover { background: #3367D6; filter: none; }

/* Social icons */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.social-icon:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); color: #fff; text-decoration: none; }
.social-icon svg { width: 17px; height: 17px; }
.social-instagram:hover { background: #e1306c; }
.social-facebook:hover { background: #1877f2; }
.social-tiktok:hover { background: #010101; }
.social-x:hover { background: #000; }
.social-yelp:hover { background: #d32323; }
.social-whatsapp:hover { background: #25d366; }

.footer-delivery-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-delivery-line a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.footer-delivery-line img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  vertical-align: middle;
  border-radius: 5px;
}

/* Hide legacy delivery sections */
.delivery-home, .delivery-logo-row, .delivery-logo-card,
.delivery-icon-row, .delivery-links, .mobile-sticky-actions,
.home-actions { display: none !important; }

/* ===== LANG SWITCH ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.lang-switch button {
  background: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  min-height: 0;
}
.lang-switch button.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .site-header { position: relative; }
  .site-header .nav {
    height: auto !important;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0 6px;
    text-align: center;
  }
  .brand { justify-content: center; }
  .brand-logo { height: 100px !important; }
  .page-home .brand-logo { height: 150px !important; }
  nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; margin-top: 0; }
  nav a { margin: 0; padding: 4px 6px; font-size: 13px; min-height: 32px; }
  .top-event-wrap { display: block; }
  .top-event-cta { margin-top: 12px; }
  .top-event h2 { font-size: 22px; }
  .event-hero { grid-template-columns: 1fr; }
  .event-details h1 { font-size: 30px; }
  /* Dishes: 2 columns on tablet */
  .dishes-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* Info: stack on tablet */
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .brand-logo { height: 100px !important; }
  .page-home .brand-logo { height: 130px !important; }
  /* Hero */
  .hero { min-height: 360px; }
  .hero-content { padding-bottom: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-btn { width: 100%; }
  /* Dishes: 1 column on mobile */
  .dishes-section { padding: 36px 0; }
  .dishes-grid { grid-template-columns: 1fr; gap: 14px; }
  .dish-card { aspect-ratio: 16/9; border-radius: 14px; }
  .section-sub { font-size: 15px; }
  /* Info */
  .info-section { padding: 32px 0; }
  .info-card { padding: 20px 16px; }
  /* Specials */
  .tagline h1, .puerto-rico-seo h1 { font-size: 28px; }
  .tagline p, .puerto-rico-seo p { font-size: 16px; }
  section { padding: 22px 0; }
  .grid { grid-template-columns: 1fr; margin: 20px 0; }
  .card-img, .card-img-placeholder { height: 180px; }
  .cta, .map-button, button { width: 100%; text-align: center; border-radius: 12px !important; }
  .reserve-actions .cta { border-radius: 12px !important; }
  .footer-delivery-line { gap: 10px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .social-icons { gap: 8px; }
  .social-icon { width: 40px; height: 40px; }
  .top-phone { font-size: 16px; padding: 9px 10px; }
  .top-phone a { width: 100%; }
  .footer-delivery-line { flex-wrap: wrap; gap: 8px; }
}
