/* ============================================================
   Brunch Editorial Theme
   Magazine-style design for Lithuanian brunch review sites
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #2d2d2d;
  background: #faf8f5;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 720px; }
.section { padding: 64px 0; }

/* --- Header / Nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  padding: 10px 0;
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  display: flex; align-items: center;
}
.logo-img { height: 32px; width: auto; }
/* Light logo visible by default (over dark hero), dark hidden */
.logo-dark { display: none; }
.logo-light { display: block; }
/* When scrolled (white bg), swap to dark logo */
.site-header.scrolled .logo-dark { display: block; height: 28px; }
.site-header.scrolled .logo-light { display: none; }
.site-nav { display: flex; gap: 32px; }
.nav-link {
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.85);
  transition: color .2s; position: relative;
}
.nav-link:hover, .nav-link.active { color: #f0c060; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: #f0c060; border-radius: 1px;
}
.nav-link--external { opacity: 0.6; }
.nav-link--external:hover { opacity: 1; }
/* When scrolled (white bg), dark text */
.site-header.scrolled .nav-link { color: #555; }
.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active { color: #c77d0a; }
.site-header.scrolled .nav-link.active::after { background: #c77d0a; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: #fff;
  position: absolute; left: 0; transition: .3s;
}
.site-header.scrolled .nav-toggle span { background: #2d2d2d; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(255,255,255,0.98);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay-links { display: flex; flex-direction: column; gap: 24px; text-align: center; }
.nav-overlay-links a {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem; color: #2d2d2d; transition: color .2s;
}
.nav-overlay-links a:hover { color: #c77d0a; }

/* --- Hero Section --- */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(170deg, #faf8f5 0%, #f5efe8 100%);
}
.hero-title {
  font-size: 3.5rem;
  color: #2d2d2d;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #777;
  max-width: 560px;
  margin: 0 auto;
}

/* --- TOP 10 Section --- */
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
  color: #2d2d2d;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #c77d0a;
  margin: 16px auto 0;
  border-radius: 2px;
}
.section-cta { text-align: center; margin-top: 40px; }

/* --- Restaurant Card --- */
.top10-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 0 auto; }

.restaurant-card {
  display: flex; align-items: stretch; gap: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.card--top3 { border-left: 4px solid #c77d0a; }

.card-rank {
  display: flex; align-items: center; justify-content: center;
  min-width: 56px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: #999;
  background: #fafafa;
}
.rank--gold {
  color: #c77d0a;
  font-size: 2rem;
  background: linear-gradient(135deg, #fdf6e8, #faf0d8);
}

.card-image {
  width: 160px; height: 140px;
  overflow: hidden; flex-shrink: 0;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5f0ea, #ebe4d8);
}
.placeholder-letter {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem; color: #c77d0a; opacity: 0.5;
}

.card-body { padding: 20px 24px; flex: 1; min-width: 0; }
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem; margin-bottom: 6px;
}
.card-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: #888; margin-bottom: 8px;
}
.card-score {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 8px;
}
.score-value {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: #c77d0a; font-weight: 700;
}
.score-label { font-size: 0.8rem; color: #aaa; }
.card-excerpt { font-size: 0.88rem; color: #666; line-height: 1.5; }

/* Stars */
.stars { display: inline-flex; gap: 1px; margin-left: 6px; }
.star { font-size: 0.9rem; }
.star--full { color: #c77d0a; }
.star--half { color: #c77d0a; opacity: 0.5; }
.star--empty { color: #ddd; }

/* --- Restaurant Grid (all restaurants page) --- */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.restaurant-grid .restaurant-card {
  flex-direction: column;
}
.restaurant-grid .card-image {
  width: 100%;
  height: 200px;  /* Fixed height for uniform grid */
}
.restaurant-grid .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.restaurant-grid .card-rank {
  min-width: auto;
  padding: 8px 16px;
}

/* --- Restaurant Single Page --- */
.restaurant-hero {
  position: relative;
  padding: 200px 0 60px;
  background: #2d2d2d;
  color: #fff;
  overflow: hidden;
}
.restaurant-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.3;
}
.restaurant-hero-content { position: relative; z-index: 1; }
.restaurant-hero-title { font-size: 3rem; margin-bottom: 8px; }
.restaurant-hero-address { font-size: 1.1rem; opacity: 0.8; }

.restaurant-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}
.restaurant-sidebar { position: sticky; top: 100px; }

/* Score Badge Large */
.score-badge-large {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #fdf6e8, #faf0d8);
  border-radius: 16px;
  margin-bottom: 24px;
}
.score-number {
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: #c77d0a;
  display: block; line-height: 1;
}
.score-out-of { font-size: 1rem; color: #aaa; }
.score-badge-large .stars { display: flex; justify-content: center; margin-top: 8px; }

/* Rating Bars */
.rating-bars { margin-bottom: 24px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar-label { width: 110px; font-size: 0.85rem; color: #666; flex-shrink: 0; }
.bar-track {
  flex: 1; height: 8px;
  background: #eee; border-radius: 4px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 4px;
  transition: width .6s ease-out;
}
.bar--excellent { background: linear-gradient(90deg, #4caf50, #66bb6a); }
.bar--good { background: linear-gradient(90deg, #e8a838, #f0c060); }
.bar--average { background: linear-gradient(90deg, #ff9800, #ffb74d); }
.bar--poor { background: linear-gradient(90deg, #f44336, #ef5350); }
.bar-value { width: 32px; font-size: 0.85rem; color: #888; text-align: right; }

/* Info Card */
.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.info-card h3 {
  font-size: 1rem; margin-bottom: 16px;
  font-family: 'Inter', sans-serif; font-weight: 600;
}
.info-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  font-size: 0.9rem; color: #555;
  border-bottom: 1px solid #f0f0f0;
  transition: color .2s;
}
.info-row:last-child { border-bottom: none; }
a.info-row:hover { color: #c77d0a; }
.info-label {
  font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #999; flex-shrink: 0;
}
.info-link-text { color: #c77d0a; font-weight: 500; }

/* Review Content */
.restaurant-review { min-width: 0; }
.review-author {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.review-author-name { font-weight: 600; color: #555; }
.review-body { font-size: 1.05rem; line-height: 1.8; }
.review-body h2 {
  font-size: 1.5rem; margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0c060;
}
.review-body h3 { font-size: 1.2rem; margin: 32px 0 12px; }
.review-body p { margin-bottom: 20px; color: #3a3a3a; }
.review-body strong { color: #2d2d2d; }

/* --- Blog Post Hero --- */
.post-hero {
  position: relative;
  padding: 200px 0 60px;
  background: #2d2d2d;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.post-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.post-hero-content { position: relative; z-index: 1; }
.post-date { font-size: 0.9rem; opacity: 0.7; margin-bottom: 12px; display: block; }
.post-title { font-size: 2.5rem; max-width: 700px; margin: 0 auto 16px; }
.post-author { font-size: 0.95rem; opacity: 0.8; }
.post-body { font-size: 1.05rem; line-height: 1.85; }
.post-body h2 {
  font-size: 1.6rem; margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0c060;
}
.post-body p { margin-bottom: 20px; color: #3a3a3a; }

/* --- Blog Grid (homepage) --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.blog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.blog-card-image { height: 180px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-date { font-size: 0.8rem; color: #aaa; }
.blog-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem; margin-top: 6px; line-height: 1.3;
}

/* --- Blog List Page --- */
.blog-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.blog-list-item {
  display: flex; gap: 20px; align-items: center;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform .2s;
}
.blog-list-item:hover { transform: translateX(4px); }
.blog-list-image { width: 220px; height: 160px; flex-shrink: 0; overflow: hidden; border-radius: 8px; }
.blog-list-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-list-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f5f0ea, #ebe4d8);
  font-family: 'DM Serif Display', serif;
  font-size: 3rem; color: #c77d0a; opacity: 0.3;
}
.blog-list-body { padding: 16px 20px 16px 0; }
.blog-list-date { font-size: 0.8rem; color: #aaa; }
.blog-list-title { font-family: 'DM Serif Display', serif; font-size: 1.15rem; margin: 4px 0 8px; }
.blog-list-excerpt { font-size: 0.88rem; color: #777; line-height: 1.5; }

/* --- City Cards --- */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.city-card {
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.city-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.city-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.city-card p { color: #777; font-size: 0.95rem; }
.city-arrow {
  position: absolute; top: 32px; right: 32px;
  font-size: 1.5rem; color: #c77d0a;
}

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 14px 32px;
  border-radius: 8px; font-weight: 600;
  font-size: 0.95rem; transition: all .2s;
}
.btn--primary {
  background: #c77d0a; color: #fff;
}
.btn--primary:hover { background: #b06d00; }
.btn--outline {
  border: 2px solid #c77d0a; color: #c77d0a;
}
.btn--outline:hover { background: #c77d0a; color: #fff; }

/* --- Pages without dark hero need dark nav from start --- */
.page-no-hero .site-header { background: rgba(255,255,255,0.97); box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.page-no-hero .site-header .nav-link { color: #555; }
.page-no-hero .site-header .nav-link:hover,
.page-no-hero .site-header .nav-link.active { color: #c77d0a; }
.page-no-hero .site-header .nav-link.active::after { background: #c77d0a; }
.page-no-hero .logo-dark { display: block; }
.page-no-hero .logo-light { display: none; }
.page-no-hero .nav-toggle span { background: #2d2d2d; }

/* --- Page Title --- */
.page-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
  padding-top: 100px;
}
.page-subtitle {
  text-align: center; color: #888;
  font-size: 1.1rem; margin-bottom: 48px;
}

/* --- Pagination --- */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 48px;
}
.pagination-link {
  padding: 10px 20px;
  border: 1px solid #ddd; border-radius: 8px;
  font-weight: 500; transition: all .2s;
}
.pagination-link:hover { border-color: #c77d0a; color: #c77d0a; }
.pagination-info { color: #aaa; font-size: 0.9rem; }

/* --- Footer --- */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 64px 0 0;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #333;
}
.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem; color: #f0c060;
  display: block; margin-bottom: 12px;
}
.footer-tagline { font-size: 0.9rem; color: #888; margin-bottom: 8px; }
.footer-persona { font-size: 0.85rem; color: #666; }
.footer-nav h4, .footer-sites h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: #888; margin-bottom: 16px;
}
.footer-nav a, .footer-sites a {
  display: block; font-size: 0.9rem; color: #aaa;
  padding: 4px 0; transition: color .2s;
}
.footer-nav a:hover, .footer-sites a:hover { color: #f0c060; }
.footer-bottom {
  padding: 20px 0;
  font-size: 0.8rem; color: #555;
  text-align: center;
}

/* --- Degustacine Variant --- */
.variant-degustacine .hero { background: linear-gradient(170deg, #faf5f8 0%, #f5edf2 100%); }
.variant-degustacine .score-value,
.variant-degustacine .nav-link:hover,
.variant-degustacine .nav-link.active { color: #6b2d52; }
.variant-degustacine .nav-link.active::after { background: #6b2d52; }
.variant-degustacine .section-title::after { background: #6b2d52; }
.variant-degustacine .card--top3 { border-left-color: #6b2d52; }
.variant-degustacine .rank--gold { color: #6b2d52; background: linear-gradient(135deg, #faf0f5, #f5e8f0); }
.variant-degustacine .score-badge-large { background: linear-gradient(135deg, #faf0f5, #f5e8f0); }
.variant-degustacine .score-number { color: #6b2d52; }
.variant-degustacine .btn--primary { background: #6b2d52; }
.variant-degustacine .btn--primary:hover { background: #5a2445; }
.variant-degustacine .btn--outline { border-color: #6b2d52; color: #6b2d52; }
.variant-degustacine .btn--outline:hover { background: #6b2d52; color: #fff; }
.variant-degustacine .star--full { color: #6b2d52; }
.variant-degustacine .footer-logo { color: #b56d91; }
.variant-degustacine .footer-nav a:hover,
.variant-degustacine .footer-sites a:hover { color: #b56d91; }
.variant-degustacine .bar--excellent { background: linear-gradient(90deg, #6b2d52, #8b4a6b); }
.variant-degustacine .bar--good { background: linear-gradient(90deg, #8b4a6b, #b56d91); }

/* --- Article Restaurant Photos --- */
.article-restaurant-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid #eee;
}
.article-photo {
  margin: 0;
}
.article-photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform .2s;
}
.article-photo img:hover {
  transform: scale(1.03);
}
.article-photo figcaption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
}
.article-photo figcaption a {
  color: #c77d0a;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .restaurant-layout {
    grid-template-columns: 1fr;
  }
  .restaurant-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .score-badge-large { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

  .restaurant-card { flex-direction: column; }
  .card-image { width: 100%; min-height: 140px; }
  .card-rank { min-width: auto; padding: 10px; }

  .restaurant-grid { grid-template-columns: 1fr; }

  .restaurant-hero { padding: 140px 0 40px; }
  .restaurant-hero-title { font-size: 2rem; }
  .restaurant-sidebar { grid-template-columns: 1fr; }

  .post-hero { padding: 140px 0 40px; }
  .post-title { font-size: 1.8rem; }

  .blog-list-item { flex-direction: column; }
  .blog-list-image { width: 100%; height: 180px; }
  .blog-list-body { padding: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .page-title { font-size: 1.8rem; padding-top: 80px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.5rem; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .score-number { font-size: 3rem; }
  .restaurant-hero-title { font-size: 1.6rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
}
