/*
Theme Name: Sorriso Bistro 2026
Theme URI: https://sorriso-bistro.ro
Author: Sorriso Bistro
Description: Tema moderna, rapida si usor de administrat pentru Bistro Sorriso. Include administrarea meniului saptamanal fara page builder.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: sorriso
*/

:root {
  --ink: #25251d;
  --charcoal: #303329;
  --cream: #f3ead9;
  --paper: #f8f1e4;
  --sun: #727b52;
  --sun-dark: #596342;
  --olive: #66704a;
  --muted: #6f6a5d;
  --line: rgba(23, 23, 22, .13);
  --white: #fff;
  --shadow: 0 24px 70px rgba(28, 25, 18, .12);
  --radius: 22px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--olive);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.04em;
}
.section-copy { color: var(--muted); font-size: 1.05rem; }
.section-head { max-width: 760px; margin-bottom: 46px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--sun);
  color: #fffaf0;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: #879168; }
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #343330; }
.button--outline { border-color: rgba(255,255,255,.5); background: transparent; color: var(--white); }
.button--outline:hover { background: var(--white); color: var(--ink); }
.button svg { width: 18px; height: 18px; }

.notice-bar { padding: 8px 20px; background: var(--sun); text-align: center; font-size: .82rem; font-weight: 800; color: #fffaf0;}
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(23,23,22,.94);
  color: var(--white);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; min-height: 82px; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 92px; max-height: 62px; object-fit: contain; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; margin-left: auto; }
.site-nav a { font-size: .88rem; font-weight: 750; }
.site-nav a:not(.button):hover { color: var(--sun); }
.nav-toggle { display: none; margin-left: auto; padding: 10px; border: 0; background: none; color: white; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: min(760px, calc(100vh - 110px)); display: grid; align-items: end; overflow: hidden; background: var(--ink); color: var(--white); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,16,.9) 0%, rgba(17,17,16,.58) 48%, rgba(17,17,16,.08) 85%), url("assets/images/sorriso-interior-1.jpeg") center/cover; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(100px, 18vh, 180px) 0 84px; }
.hero-copy { max-width: 790px; }
.hero h1 { margin: 0; max-width: 780px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 8.3vw, 7.2rem); font-weight: 500; line-height: .92; letter-spacing: -.055em; }
.hero h1 em { color: #c7cbb0; font-style: italic; }
.hero .lead { max-width: 610px; margin: 28px 0 32px; color: rgba(255,255,255,.84); font-size: clamp(1rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-details { display: flex; flex-wrap: wrap; gap: 18px 34px; margin-top: 54px; color: rgba(255,255,255,.72); font-size: .88rem; font-weight: 650; }
.hero-details span { display: inline-flex; align-items: center; gap: 8px; }
.hero-details span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }

.weekly-menu { padding: 112px 0; background: var(--cream); }
.menu-intro { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.menu-period { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 750; white-space: nowrap; }
.complimentary { display: flex; align-items: center; gap: 14px; max-width: 820px; margin: 34px 0 44px; padding: 18px 22px; border-radius: 16px; background: var(--sun); font-weight: 800; }
.complimentary::before { content: "S"; display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--sun); font-family: Georgia, serif; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.dish-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 26px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.dish-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23,23,22,.07); }
.dish-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.25; }
.dish-card p { grid-column: 1; margin: 0; color: var(--muted); font-size: .92rem; }
.dish-price { grid-row: 1 / span 2; grid-column: 2; color: var(--olive); font-size: 1.2rem; font-weight: 850; white-space: nowrap; }
.menu-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.about-media { position: relative; min-height: 620px; }
.about-media img { position: absolute; width: 82%; height: 86%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media img:last-child { right: 0; bottom: 0; width: 48%; height: 42%; border: 10px solid var(--paper); }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 35px; }
.about-point { padding-top: 18px; border-top: 2px solid var(--sun); font-size: .86rem; font-weight: 800; }

.events { padding: 112px 0; background: var(--ink); color: var(--white); overflow: hidden; }
.events-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.events-copy .eyebrow { color: #d5d9bd; }
.events-copy p { color: rgba(255,255,255,.7); }
.event-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 38px; }
.event-list span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.82); font-size: .84rem; }
.events-media { position: relative; }
.events-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.events-stamp { position: absolute; left: -42px; bottom: 40px; display: grid; place-items: center; width: 132px; height: 132px; padding: 18px; border-radius: 50%; background: #727b52; color: #fffaf0; text-align: center; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; transform: rotate(-8deg); }

.gallery { padding: 112px 0; }
.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: repeat(2, 260px); gap: 14px; }
.gallery-grid figure { margin: 0; overflow: hidden; border-radius: 16px; }
.gallery-grid figure:first-child { grid-row: 1 / span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-grid figure:hover img { transform: scale(1.035); }

.testimonials { padding: 110px 0; background: var(--cream); }
.review-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.review { padding: 28px; border-radius: 18px; background: var(--paper); }
.stars { color: #dba900; letter-spacing: .12em; }
.review blockquote { margin: 18px 0; font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.55; }
.review cite { color: var(--muted); font-size: .86rem; font-style: normal; font-weight: 700; }

.contact { padding: 112px 0; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.contact-list { display: grid; gap: 17px; margin: 32px 0; }
.contact-item { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-item strong { display: block; margin-top: 4px; font-size: 1.08rem; }
.map { min-height: 500px; border: 0; border-radius: var(--radius); background: #eee; box-shadow: var(--shadow); }

.site-footer { padding: 65px 0 25px; background: #111; color: rgba(255,255,255,.74); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.footer-logo { width: 130px; margin-bottom: 20px; }
.site-footer h3 { color: white; font-size: .92rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }

.mobile-actions { display: none; }
.empty-menu { grid-column: 1/-1; padding: 32px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.content-page { min-height: 60vh; padding: 100px 0; }
.content-page .entry-content { max-width: 800px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; padding: 18px 20px 25px; background: var(--ink); }
  .site-nav.is-open { display: grid; }
  .site-nav .button { margin-top: 6px; }
  .hero::before { background: linear-gradient(0deg, rgba(17,17,16,.9), rgba(17,17,16,.28)), url("assets/images/sorriso-interior-1.jpeg") center/cover; }
  .menu-intro, .about-grid, .events-grid, .contact-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .about-media { min-height: 480px; max-width: 640px; }
  .events-copy { order: 1; }
  .events-media { max-width: 650px; }
  .events-stamp { left: auto; right: -10px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid figure:first-child { grid-column: 1 / span 2; grid-row: auto; }
  .review-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .notice-bar { font-size: .73rem; }
  .header-inner { min-height: 69px; }
  .brand img { width: 76px; height: 48px; }
  .hero { min-height: 700px; }
  .hero-inner { padding: 110px 0 70px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-actions .button { width: 100%; }
  .weekly-menu, .about, .events, .gallery, .testimonials, .contact { padding: 82px 0; }
  .menu-intro { gap: 22px; }
  .menu-period { justify-self: start; white-space: normal; }
  .dish-card { padding: 21px; }
  .dish-card h3 { padding-right: 4px; }
  .about-media { min-height: 400px; }
  .about-points { grid-template-columns: 1fr; }
  .events-stamp { width: 105px; height: 105px; font-size: .85rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-grid figure, .gallery-grid figure:first-child { grid-column: auto; height: 250px; }
  .gallery-grid figure:first-child { height: 360px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; margin-bottom: 62px; }
  .mobile-actions { position: fixed; z-index: 120; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 7px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(23,23,22,.95); box-shadow: 0 14px 40px rgba(0,0,0,.28); backdrop-filter: blur(12px); }
  .mobile-actions a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 11px; font-size: .86rem; font-weight: 850; }
  .mobile-actions a:first-child { background: var(--sun); color: var(--ink); }
  .mobile-actions a:last-child { background: #25d366; color: #092f16; }
}

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


/* Meniul săptămânii — integrare cu designul Sorriso */
.dish-card .dish-category {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--olive);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dish-card .dish-title {
  grid-column: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.dish-card .dish-description {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.dish-card .dish-price {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: start;
  margin: 0;
  color: var(--olive);
  font-size: 1.15rem;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .dish-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 21px;
  }

  .dish-card .dish-price {
    font-size: 1rem;
  }
}


/* Fotografiile opționale ale preparatelor din meniul administrabil */
.dish-card:has(.dish-photo) {
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 10px 20px;
}
.dish-photo {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 112px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e8e3d8;
}
.dish-details {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px 12px;
  min-width: 0;
}
.dish-details .dish-category,
.dish-details .dish-title,
.dish-details .dish-description { grid-column: 1; }
.dish-details .dish-price { grid-column: 2; grid-row: 2 / span 2; }
.dish-card:not(:has(.dish-photo)) .dish-details { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .dish-card:has(.dish-photo) { grid-template-columns: 88px minmax(0, 1fr); gap: 10px 13px; padding: 17px; }
  .dish-photo { width: 88px; border-radius: 9px; }
  .dish-details { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dish-details .dish-price { grid-column: 1; grid-row: auto; margin-top: 2px; }
}

/* Sorriso Italian palette refinements */
.menu-actions .button:not(.button--dark), .contact .hero-actions .button:not(.button--dark) { background: #727b52; color: #fffaf0; }
.menu-actions .button:not(.button--dark):hover, .contact .hero-actions .button:not(.button--dark):hover { background: #a95430; }
.complimentary { color: #fffaf0; }
