/* =========================================================
   M & G Cuban Cafe & Bakery — site stylesheet
   Replaces: bootstrap, bootsnav, master.css, responsive.css,
   animate, flexslider, owl carousel, font awesome and more
   ========================================================= */

:root {
  --yellow: #f9db1a;
  --red: #be1e2d;
  --blue: #21409a;
  --black: #0b0b0b;
  --panel: rgba(10, 10, 10, .78);
  --text: #f4f1ea;
  --muted: #c9c4b8;

  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --max-width: 1080px;
  --gutter: clamp(14px, 4vw, 28px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--black);
}
/* Havana seafront background, fixed behind the page (works on phones too) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--black) url("../images/background/bg5.jpg") center / cover no-repeat;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); }
a:hover { color: var(--white, #fff); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.small { font-size: .85rem; color: var(--muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--yellow); color: #000;
  font-weight: 700; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .92);
  border-bottom: 3px solid var(--red);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding-block: .5rem; }
.logo img { width: auto; height: 64px; }
.header-phone {
  display: none;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
}
.header-phone svg { width: 20px; height: 20px; fill: currentColor; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: .25rem 1.5rem; }
.primary-nav a {
  display: block;
  padding: .5rem 0;
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--yellow); border-color: var(--yellow); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--yellow);
  border-radius: 8px;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute; left: 10px; right: 10px;
  height: 3px; background: var(--yellow); border-radius: 2px;
  transition: transform .2s;
}
.nav-toggle-bar { top: 50%; transform: translateY(-50%); }
.nav-toggle-bar::before { left: 0; right: 0; top: -8px; }
.nav-toggle-bar::after { left: 0; right: 0; top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .logo img { height: 50px; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0;
    background: rgba(0, 0, 0, .97);
    border-bottom: 3px solid var(--red);
    padding: .25rem var(--gutter) 1rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 420px) {
  .header-phone span { display: none; }
  .header-phone svg { width: 26px; height: 26px; }
}

/* ---------- Panels ---------- */
main { padding-block: clamp(1rem, 4vw, 2.5rem); }
.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.panel p + p { margin-top: 1rem; }

.page-head { text-align: center; }
.page-head h1 {
  color: var(--yellow);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 3px 0 var(--red);
  margin-bottom: .5rem;
}
.page-head p { color: var(--text); font-size: 1.1rem; }
.page-head .btn { margin-top: .75rem; }

.section-title {
  color: var(--yellow);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  margin: .5rem 0 1rem;
}
.section-title:not(:first-child) { margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border: 2px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--white, #fff); border-color: #fff; color: #111; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--yellow); }
.btn--outline:hover { background: var(--yellow); color: #111; border-color: var(--yellow); }
.btn--phone { font-size: 1.35rem; padding: .7rem 2rem; background: var(--red); border-color: var(--red); color: #fff; }
.btn--phone:hover { background: #fff; color: var(--red); border-color: #fff; }

/* ---------- Home ---------- */
.intro { text-align: center; }
.eyebrow {
  color: var(--yellow);
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
}
.hero-logo { width: min(511px, 100%); margin: 1rem auto; }
.lead { font-size: 1.15rem; max-width: 720px; margin-inline: auto; }
.trio {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(.5rem, 3vw, 2rem);
  margin: 1.5rem 0;
}
.trio img { width: clamp(70px, 22vw, 180px); }
.trio img:nth-child(2) { width: clamp(50px, 15vw, 125px); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tagline { text-align: center; color: var(--yellow); font-weight: 700; font-size: 1.2rem; }

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
  margin: 1.25rem 0;
}
.photo-strip img {
  width: 100%;
  aspect-ratio: 190 / 125;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 6px;
}

/* ---------- DoorDash badge ---------- */
.doordash { text-align: center; margin-top: 1.5rem; }
.doordash img { width: min(260px, 100%); margin-inline: auto; border: 4px solid #fff; border-radius: 6px; }
.doordash p { margin-top: .4rem; font-weight: 700; }
.doordash a { display: inline-block; transition: transform .2s; }
.doordash a:hover { transform: scale(1.04); }
.site-footer .doordash { text-align: left; margin-top: .75rem; }
.site-footer .doordash img { margin: 0; width: 200px; border-width: 3px; }

/* ---------- Food cards (Sandwiches) ---------- */
.food-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}
.food-grid--three { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); margin: 1.5rem 0 0; }
.food-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.panel .food-card { background: rgba(255, 255, 255, .06); box-shadow: none; }
.food-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1a1a1a;
}
.food-card-body { padding: 1rem 1.25rem 1.25rem; }
.food-card h2, .food-card h3 {
  color: var(--yellow);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.25;
}
.food-card .es { color: #ff8a93; font-style: italic; font-weight: 500; margin: .1rem 0 .5rem; }
.food-card p { font-size: .98rem; }

/* ---------- Menu ---------- */
.menu-grid {
  display: grid;
  gap: 0 clamp(1rem, 3vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  align-items: start;
}
.menu-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--red); }
.menu-head img { width: 90px; flex: none; }
.menu-section--feature .menu-head img { width: 120px; }
.menu-head h2 { color: var(--yellow); font-size: clamp(1.35rem, 3.5vw, 1.75rem); font-weight: 900; line-height: 1.2; }
.menu-note { color: var(--muted); font-size: .95rem; }

.menu-list { display: grid; gap: .85rem; }
.menu-list--two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1rem 2rem; margin-bottom: 1.5rem; }
.menu-list li { display: grid; gap: .05rem; }
.item-name { font-weight: 700; font-size: 1.1rem; color: var(--yellow); }
.item-es { color: #ff8a93; font-style: italic; font-size: .95rem; }
.item-desc { font-size: .95rem; color: var(--text); }
.menu-footnote p + p { margin-top: .5rem; }

/* ---------- Location ---------- */
.location-grid { display: grid; gap: 0 clamp(1rem, 3vw, 1.75rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .location-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.storefront { width: 100%; border: 4px solid #fff; border-radius: 8px; }
.map-panel { padding: 0; overflow: hidden; }
.map-frame { position: relative; width: 100%; height: 100%; min-height: 380px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: .35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .2);
}
.hours span { font-weight: 700; }
.hours--large { font-size: 1.15rem; max-width: 420px; margin: 0 auto 1.5rem; }
.hours--large span { color: var(--yellow); }
.location-grid .btn { margin: .25rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 0 clamp(1rem, 3vw, 1.75rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.contact-photos > img { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-photos .photo-strip { grid-template-columns: repeat(3, 1fr); }

.form { display: grid; gap: .35rem; }
.form label { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .5rem; }
.form input, .form textarea {
  width: 100%;
  padding: .75rem .85rem;
  font: inherit;
  color: #111;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
}
.form input:focus, .form textarea:focus { border-color: var(--yellow); outline: none; box-shadow: 0 0 0 3px rgba(249, 219, 26, .35); }
.form .btn { justify-self: start; margin-top: 1rem; }
.form .btn:disabled { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .85rem 1rem; border-radius: 8px; font-weight: 700; margin-bottom: 1rem; }
.alert--ok { background: #e7f6e9; color: #145c22; }
.alert--error { background: #fde8e8; color: #8a1f11; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(0, 0, 0, .94); border-top: 3px solid var(--red); padding-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h2 { color: var(--yellow); font-size: 1.1rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.site-footer p, .site-footer li { font-size: .95rem; }
.site-footer p + p { margin-top: .4rem; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
.social a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social a:hover { color: var(--yellow); border-color: var(--yellow); background: rgba(249, 219, 26, .08); }
.credit { text-align: center; font-size: .8rem; color: var(--muted); padding: 1.25rem var(--gutter); margin-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.credit a { color: var(--yellow); }

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body::before, .site-header, .doordash, .form, .map-panel, .nav-toggle { display: none !important; }
  body, .panel, .food-card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .item-name, .page-head h1, .section-title, .menu-head h2 { color: #000 !important; text-shadow: none !important; }
}
