/* ======================================================
   SAMI'S MARCO ISLAND — STYLESHEET
   Mobile-first · WCAG 2.1 AA · Brand: #C8102E (crimson), #1A1A1A (near-black), #FFF
   ====================================================== */

/* ---------- TOKENS ---------- */
:root {
  --crimson:    #C8102E;
  --crimson-dk: #9E0B23;
  --gold:       #D4A843;
  --black:      #111111;
  --dark:       #1A1A1A;
  --charcoal:   #333333;
  --mid:        #666666;
  --light-gray: #F5F5F5;
  --white:      #FFFFFF;
  --border:     #E0E0E0;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Inter', system-ui, sans-serif;

  --sz-xs:  0.75rem;
  --sz-sm:  0.875rem;
  --sz-md:  1rem;
  --sz-lg:  1.125rem;
  --sz-xl:  1.375rem;
  --sz-2xl: 1.75rem;
  --sz-3xl: 2.25rem;
  --sz-4xl: 3rem;
  --sz-5xl: 4rem;

  --radius: 4px;
  --shadow: 0 2px 16px rgba(0,0,0,0.12);
  --trans:  0.2s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- ADA: SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--crimson);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--trans);
}
.skip-link:focus { top: 0; outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- FOCUS STYLES (WCAG 2.1 AA) ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: var(--sz-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans), transform var(--trans);
  min-width: 44px;
  min-height: 44px;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--crimson); color: var(--white); border-color: var(--crimson); }
.btn-primary:hover { background: var(--crimson-dk); border-color: var(--crimson-dk); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--crimson); }
.btn-outline-dark { background: transparent; color: var(--crimson); border-color: var(--crimson); }
.btn-outline-dark:hover { background: var(--crimson); color: var(--white); }

/* ---------- TYPOGRAPHY UTILITIES ---------- */
.text-center { text-align: center; }
.section-eyebrow {
  font-family: var(--ff-body);
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: var(--sz-3xl);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.section-title-italic {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--sz-3xl);
  font-weight: 700;
  color: var(--crimson);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: var(--sz-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .section-title, .section-title-italic { font-size: var(--sz-4xl); }
}

/* ---------- COOKIE CONSENT ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  color: var(--white);
  z-index: 8000;
  padding: 1rem 1.25rem;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.cookie-inner p { font-size: var(--sz-sm); line-height: 1.5; }
.cookie-inner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-cookie {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: var(--sz-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  min-height: 44px;
  transition: background var(--trans), color var(--trans);
}
.btn-cookie.btn-primary { background: var(--crimson); color: var(--white); border-color: var(--crimson); }
.btn-cookie.btn-primary:hover { background: var(--crimson-dk); }
.btn-cookie.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-cookie.btn-ghost:hover { border-color: var(--white); }
@media (min-width: 768px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-inner {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
}
.cookie-modal-inner h2 {
  font-family: var(--ff-display);
  font-size: var(--sz-2xl);
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.cookie-pref-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cookie-pref-row strong { display: block; margin-bottom: 0.25rem; }
.cookie-pref-row p { font-size: var(--sz-sm); color: var(--mid); }
.cookie-pref-row input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--crimson);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-modal-actions {
  display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.cookie-manage-btn {
  background: transparent;
  border: none;
  color: var(--mid);
  font-size: var(--sz-xs);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.cookie-manage-btn:hover { color: var(--crimson); }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(8px);
  z-index: 7000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-text {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: var(--sz-2xl);
  color: var(--crimson);
  font-weight: 700;
}
.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Nav toggle (mobile) */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger { position: relative; }
.hamburger::before { content: ''; position: absolute; top: -7px; left: 0; }
.hamburger::after  { content: ''; position: absolute; top:  7px; left: 0; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: rotate(-45deg) translate(5px, -5px); }

/* Nav list */
.nav-list {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 64px; left: 0; right: 0;
  background: var(--dark);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.nav-list.open { display: flex; }
.nav-link {
  color: rgba(255,255,255,0.8);
  font-size: var(--sz-md);
  font-weight: 400;
  padding: 0.625rem 0;
  display: block;
  transition: color var(--trans);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-link:hover { color: var(--crimson); }
.nav-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--sz-sm);
  letter-spacing: 0.04em;
  min-height: 44px;
  line-height: 1.4;
}
.nav-phone {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--gold);
  font-weight: 600;
  font-size: var(--sz-sm);
  padding: 0.5rem 0;
  min-height: 44px;
  line-height: 2;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-list {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    align-items: center;
    gap: 0.25rem;
    border-top: none;
  }
  .nav-link { border-bottom: none; padding: 0.5rem 0.75rem; font-size: var(--sz-sm); }
  .nav-cta { margin-top: 0; padding: 0.5rem 1rem; }
  .nav-phone { margin-top: 0; padding: 0.5rem 0.75rem; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.65) 80%,
    rgba(0,0,0,0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  padding-bottom: 2rem;
}
.hero-eyebrow {
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hero-headline {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: var(--sz-md);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Menu strip */
.menu-strip {
  position: relative;
  z-index: 2;
  background: var(--crimson);
}
.menu-strip ul {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.menu-strip ul::-webkit-scrollbar { display: none; }
.menu-strip li { flex-shrink: 0; }
.menu-strip a {
  display: block;
  padding: 0.875rem 1.25rem;
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: color var(--trans), background var(--trans);
  min-height: 44px;
  line-height: 1.5;
}
.menu-strip a:hover { color: var(--white); background: var(--crimson-dk); }
@media (min-width: 900px) {
  .menu-strip ul { justify-content: center; }
  .menu-strip a { padding: 1rem 2rem; }
}

/* ---------- SECTION BASE ---------- */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

/* ---------- GALLERY IMG ---------- */
.gallery-img {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 2rem;
  object-fit: cover;
}

/* ---------- SPLIT LAYOUT ---------- */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.split-text { display: flex; flex-direction: column; justify-content: center; }
.split-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
}
@media (min-width: 768px) {
  .split-layout {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
  .split-layout .split-text { flex: 1; }
  .split-layout .split-visual { flex: 1; }
  .split-reverse { flex-direction: row-reverse; }
}

/* ---------- SECTION COLORS ---------- */
.section-starters { background: var(--white); }
.section-lunch    { background: var(--light-gray); }
.section-dinner   { background: var(--white); }
.section-desserts { background: var(--dark); }
.section-desserts .section-eyebrow { color: var(--gold); }
.section-desserts .section-title-italic { color: var(--white); }
.section-desserts .section-sub { color: rgba(255,255,255,0.55); }
.section-bar      { background: var(--light-gray); }
.section-music    { background: var(--dark); }
.section-music .section-eyebrow { color: var(--gold); }
.section-music .section-title-italic { color: var(--white); }
.section-music .section-sub { color: rgba(255,255,255,0.6); }
.section-music .music-time { font-size: var(--sz-md); font-style: normal; }
.section-music .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.section-pizza    { background: var(--white); }

/* ---------- REVIEWS ---------- */
.section-reviews { background: var(--light-gray); }
.stars { font-size: 2rem; color: var(--gold); margin: 0.5rem 0; }
.reviews-count { color: var(--mid); font-size: var(--sz-sm); margin-bottom: 2.5rem; }
.reviews-count strong { color: var(--dark); }
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.review-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--crimson);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.reviewer-avatar {
  width: 40px; height: 40px;
  background: var(--crimson);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--sz-xs);
  font-weight: 700;
  flex-shrink: 0;
}
.reviewer-name { font-weight: 600; font-size: var(--sz-sm); margin: 0; }
.review-date { font-size: var(--sz-xs); color: var(--mid); margin: 0; }
.google-badge {
  margin-left: auto;
  width: 24px; height: 24px;
  background: #4285F4;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}
.review-stars { color: #FBBC04; font-size: var(--sz-md); margin-bottom: 0.5rem; }
.review-text { font-size: var(--sz-sm); color: var(--charcoal); line-height: 1.6; }

/* ---------- CONTACT ---------- */
.section-contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1.5fr; align-items: center; }
}
.fire-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
  opacity: 0.85;
}
.contact-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--crimson);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.contact-title-light { color: var(--mid); }
.contact-sub {
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.5rem;
}
.contact-phone {
  display: block;
  font-size: var(--sz-2xl);
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-email {
  display: block;
  font-size: var(--sz-md);
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { display: block; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem 3rem; }
}
.footer-col {}
.footer-heading {
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.footer-heading-sm {
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
address { font-style: normal; font-size: var(--sz-sm); line-height: 1.7; margin-bottom: 0.5rem; }
.footer-map-link {
  font-size: var(--sz-xs);
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.social-links { display: flex; flex-direction: column; gap: 0.5rem; }
.social-links a {
  font-size: var(--sz-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--trans);
}
.social-links a:hover { color: var(--crimson); }

.hours-list { display: flex; flex-direction: column; gap: 0.5rem; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: var(--sz-sm);
  color: rgba(255,255,255,0.7);
  gap: 0.5rem;
}
.hours-list li span:first-child { font-weight: 500; flex-shrink: 0; }
.hours-list .music-hours { color: var(--gold); font-weight: 600; }

.contact-list { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-list a {
  font-size: var(--sz-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--trans);
}
.contact-list a:hover { color: var(--crimson); }

.footer-menus ul { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-menus a {
  font-size: var(--sz-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--trans);
}
.footer-menus a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.5rem 1.25rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--sz-xs);
  color: rgba(255,255,255,0.35);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-legal a { color: rgba(255,255,255,0.45); text-decoration: underline; transition: color var(--trans); }
.footer-legal a:hover { color: var(--white); }
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; padding: 1.5rem 2rem; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- HIGH CONTRAST ---------- */
@media (forced-colors: active) {
  .btn { border: 2px solid ButtonText; }
  .hero-overlay { display: none; }
}
