/* ===========================================================
   Bella Mà — Ristorante Napoletano, Barcelona
   Premium design system
   =========================================================== */

:root {
  --rosso: #8a2a1c;
  --rosso-dark: #5c1a11;
  --rosso-light: #b8492f;
  --cream: #f8f3ea;
  --cream-2: #efe4d0;
  --charcoal: #1c1510;
  --ink: #2b211d;
  --gold: #c69a4b;
  --gold-light: #e6c98a;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', Helvetica, Arial, sans-serif;

  --container: 1180px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--rosso-dark);
  margin: 0;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.left::after { display: none; }
.eyebrow.left { justify-content: flex-start; }

.section { padding: 110px 0; }
.section.tight { padding: 80px 0; }
.section.cream-2 { background: var(--cream-2); }
.section.dark {
  background: var(--charcoal);
  color: #e7ddd0;
}
.section.dark h2, .section.dark h3 { color: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin-top: 14px; }
.section-head p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.8;
  color: #6b5c53;
}
.section.dark .section-head p { color: #cfc3b5; }

.divider { width: 60px; height: 2px; background: var(--gold); margin: 22px auto; }
.divider.left { margin: 22px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--rosso); color: var(--white); border-color: var(--rosso); }
.btn-primary:hover { background: var(--rosso-dark); border-color: var(--rosso-dark); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-dark { background: var(--rosso-dark); color: var(--white); border-color: var(--rosso-dark); }
.btn-dark:hover { background: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 26px 0;
  transition: all var(--transition);
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(28, 21, 16, 0.96);
  padding: 14px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); color: var(--white); font-size: 26px; letter-spacing: 0.02em; line-height: 1.1; }
.brand-mark {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #078930;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3), 0 1px 4px rgba(0,0,0,0.25);
}
.brand-mark .b { color: #ffffff; }
.brand-mark .m { color: #cd212a; }
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 28px; min-width: 0; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav ul li { flex-shrink: 0; }
.main-nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: #f1e9dc; position: relative; padding-bottom: 6px; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold); transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--gold-light); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.header-phone svg { width: 15px; height: 15px; fill: var(--gold); }

.nav-toggle { display: none; width: 26px; height: 20px; position: relative; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--white); transition: all var(--transition);
}
.nav-toggle span { top: 9px; }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background-size: cover; background-position: center top;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,13,10,0.22) 0%, rgba(18,13,10,0.4) 28%, rgba(18,13,10,0.58) 50%, rgba(18,13,10,0.88) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 0 24px; }
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before, .hero .eyebrow::after { background: var(--gold-light); }
.hero h1 { color: var(--white); font-size: clamp(46px, 7vw, 88px); margin-top: 20px; letter-spacing: 0.01em; }
.hero p.lead { font-size: 18px; line-height: 1.8; color: #ece2d4; max-width: 580px; margin: 26px auto 0; }
.hero-actions { margin-top: 30px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,0.6); border-radius: 20px;
}
.hero-scroll::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  background: var(--gold-light); border-radius: 3px; transform: translateX(-50%);
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 22px; } }

/* Page (interior) hero, smaller */
.page-hero {
  position: relative; min-height: 56vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background-size: cover; background-position: center; color: var(--white); margin-top: 0;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18,13,10,0.62); }
.page-hero-content { position: relative; z-index: 2; padding: 140px 24px 40px; }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5.5vw, 60px); margin-top: 18px; }
.page-hero p { color: #ece2d4; margin-top: 14px; font-size: 15px; letter-spacing: 0.04em; }

/* ---------- About / split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; height: 560px; object-fit: cover; }
.split-media::before {
  content: ""; position: absolute; top: -22px; left: -22px; width: 100%; height: 100%;
  border: 1.5px solid var(--gold); z-index: -1;
}
.split-text h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 14px; }
.split-text p { margin-top: 22px; line-height: 1.9; color: #5d4f46; font-size: 15.5px; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }
.highlight { text-align: center; padding: 0 10px; }
.highlight .icon {
  width: 64px; height: 64px; margin: 0 auto 24px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.highlight .icon svg { width: 26px; height: 26px; fill: var(--gold); }
.highlight h3 { font-size: 20px; }
.highlight p { margin-top: 14px; color: #6b5c53; line-height: 1.8; font-size: 14.5px; }

/* ---------- Dish cards ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.dish-card { position: relative; overflow: hidden; }
.dish-card .img-wrap { overflow: hidden; height: 320px; }
.dish-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.dish-card:hover img { transform: scale(1.08); }
.dish-card .info { background: var(--white); padding: 26px 28px 30px; border: 1px solid #e7dcc9; border-top: none; }
.dish-card .info .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dish-card h3 { font-size: 19px; }
.dish-card .price { font-family: var(--font-display); color: var(--gold); font-size: 19px; white-space: nowrap; }
.dish-card p { margin-top: 10px; color: #776658; font-size: 13.5px; line-height: 1.7; }

/* ---------- Gallery teaser / grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-grid a { position: relative; overflow: hidden; display: block; height: 100%; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-grid a:hover img { transform: scale(1.1); }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; background: rgba(138,42,28,0); transition: background var(--transition); }
.gallery-grid a:hover::after { background: rgba(138,42,28,0.18); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(12, 8, 6, 0.94); z-index: 3000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: var(--white); cursor: pointer; font-size: 28px; padding: 10px;
}
.lightbox-close { top: 20px; right: 30px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Quote / banner ---------- */
.banner {
  position: relative; padding: 130px 0; text-align: center; background-size: cover; background-position: center;
  color: var(--white);
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(18,13,10,0.68); }
.banner-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.banner blockquote { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-style: italic; line-height: 1.5; margin: 0; }
.banner cite { display: block; margin-top: 24px; font-style: normal; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- Reviews ---------- */
.review-score {
  display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; margin-bottom: 60px;
}
.review-score .score-block { text-align: center; }
.review-score .score-num { font-family: var(--font-display); font-size: 54px; color: var(--rosso); line-height: 1; }
.review-score .score-stars { color: var(--gold); font-size: 18px; letter-spacing: 3px; margin-top: 10px; }
.review-score .score-label { margin-top: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #7a6a5c; }
.review-score .score-sep { width: 1px; height: 60px; background: #ddcfb9; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.review-card { background: var(--white); border: 1px solid #e7dcc9; padding: 34px 32px; }
.review-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.review-card p { margin-top: 16px; font-size: 14.5px; line-height: 1.8; color: #5d4f46; font-style: italic; }
.review-card .author { margin-top: 20px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rosso-dark); }
.review-card .author span { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: #8a7c6d; margin-top: 3px; font-style: normal; }

/* ---------- Menu (carta) ---------- */
.menu-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 70px; }
.menu-tabs a {
  padding: 11px 24px; border: 1px solid var(--gold); font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rosso-dark); transition: all var(--transition);
}
.menu-tabs a:hover { background: var(--rosso); color: var(--white); border-color: var(--rosso); }

.menu-category { margin-bottom: 86px; scroll-margin-top: 110px; }
.menu-category-head { text-align: center; margin-bottom: 48px; }
.menu-category-head h2 { font-size: clamp(30px, 3.6vw, 40px); text-transform: uppercase; letter-spacing: 0.04em; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 56px; max-width: 1080px; margin: 0 auto; }
.menu-item { padding: 20px 0; border-bottom: 1px solid #e3d6bf; }
.menu-item .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.menu-item h4 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); }
.menu-item .price { font-family: var(--font-display); font-size: 17px; color: var(--gold); white-space: nowrap; font-weight: 700; }
.menu-item p { margin: 8px 0 0; font-size: 13px; color: #83705f; font-style: italic; line-height: 1.6; }
.menu-note { text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 13.5px; color: #7a6a5c; line-height: 1.8; }
.menu-subhead {
  grid-column: 1 / -1;
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rosso); margin: 22px 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--gold);
}
.menu-list.two .menu-subhead:first-child { margin-top: 0; }

/* ---------- Location page ---------- */
.location-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.location-info { background: var(--charcoal); color: #e7ddd0; padding: 90px 70px; display: flex; flex-direction: column; justify-content: center; }
.location-info h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 38px); margin-top: 14px; }
.location-block { margin-top: 40px; }
.location-block h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; font-weight: 700; }
.location-block p, .location-block a { font-size: 15px; line-height: 1.9; color: #e7ddd0; }
.location-block a:hover { color: var(--gold-light); }
.map-frame { width: 100%; height: 100%; min-height: 640px; border: 0; filter: grayscale(0.15); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td { padding: 9px 0; font-size: 14.5px; border-bottom: 1px solid rgba(231,221,208,0.14); }
.hours-table td:first-child { color: var(--gold-light); font-weight: 600; width: 130px; }
.hours-table tr.today td { color: var(--white); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #cfc3b5; padding: 90px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(231,221,208,0.12); }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.9; color: #b3a595; max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 22px; font-weight: 700; }
.footer-col li { margin-bottom: 13px; font-size: 14px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 26px 0; font-size: 12.5px; color: #8a7c6d; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) {
  .header-phone span { display: none; }
  .header-cta { gap: 12px; }
  .header-cta .btn-gold { padding: 14px 20px; }
  .main-nav { gap: 20px; }
  .main-nav ul { gap: 16px; }
  .brand { font-size: 22px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; font-size: 12px; }
}

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media, .split.reverse .split-text { order: unset; }
  .split-media img { height: 420px; }
  .highlights { grid-template-columns: 1fr; gap: 50px; }
  .dish-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: 1fr; gap: 24px; }
  .location-wrap { grid-template-columns: 1fr; }
  .location-info { padding: 70px 40px; }
  .map-frame { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone span { display: none; }
  .header-cta .btn-gold { display: none; }
  .dish-grid { grid-template-columns: 1fr; }
  .menu-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section { padding: 70px 0; }
  .banner { background-attachment: scroll; padding: 90px 0; }
  .review-score { gap: 20px; }
  .review-score .score-sep { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 82%; max-width: 340px; height: 100vh;
  background: var(--charcoal); z-index: 1200; padding: 100px 40px 40px; transition: right var(--transition);
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}
.mobile-nav.open { right: 0; }
.mobile-nav ul li { margin-bottom: 26px; }
.mobile-nav a { font-family: var(--font-display); font-size: 24px; color: var(--white); }
.mobile-nav .btn { margin-top: 30px; width: 100%; }
.nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100; display: none; }
.nav-scrim.open { display: block; }

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed; inset: 0; z-index: 6000; background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader-mark {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 0.02em;
  background: #078930;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3), 0 1px 4px rgba(0,0,0,0.25);
  animation: loaderPulse 1.3s ease-in-out infinite;
}
.page-loader-mark .b { color: #ffffff; }
.page-loader-mark .m { color: #cd212a; }
@keyframes loaderPulse { 0%, 100% { opacity: 0.45; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
