*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #c0392b;
  --red-dark: #962d22;
  --gold: #d4a853;
  --bg: #f8f6f2;
  --bg-dark: #1a1a1a;
  --text: #1c1c1c;
  --text-muted: #666;
  --border: #e0dbd2;
  --white: #ffffff;
  --font-display: 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  padding-top: 58px !important;
  max-width: 100%;
  overflow-x: hidden;
}
button, input, select, textarea { font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== MAIN HEADER - SAME LOGIC AS BRAND + MENU ===== */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2000 !important;
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 10px rgba(0,0,0,.08) !important;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px !important;
  min-height: 58px !important;
}
.header-logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--red); }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); background: #fdf0ee; }
.mobile-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  color: var(--red);
  margin-left: auto;
}
.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-nav-backdrop { display: none; }

/* ===== HOME HERO ===== */
.home-hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(224,219,210,.55);
}
.home-hero::before, .home-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: .95;
}
.home-hero::before {
  width: 480px;
  height: 480px;
  left: -170px;
  top: 0;
  background: linear-gradient(135deg, rgba(192,57,43,.18), rgba(212,168,83,.14));
}
.home-hero::after {
  width: 410px;
  height: 410px;
  right: -80px;
  bottom: 50px;
  background: #eef5f3;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.decor-dot { position: absolute; border-radius: 999px; pointer-events: none; }
.dot-red { background: rgba(192,57,43,.88); }
.dot-green { background: #e6f4ec; }
.dot-pink { background: #faeeee; }
.dot-one { width: 22px; height: 22px; left: 16%; top: 88px; }
.dot-two { width: 54px; height: 54px; right: 18%; top: 168px; }
.dot-three { width: 34px; height: 34px; left: 23%; bottom: 78px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  color: #111827;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  max-width: 1200px;
}
.hero-about {
  color: #5f6673;
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 28px;
}
.search-panel {
  width: min(710px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 220px 112px;
  align-items: center;
  gap: 0;
  pointer-events: none;
  user-select: none;
}
.search-field, .category-field {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa3af;
  font-size: 16px;
  padding: 0 18px;
}
.search-field { border-right: 1px solid var(--border); justify-content: flex-start; }
.category-field { justify-content: space-between; }
.search-btn {
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #cf5b56;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}
.popular-cats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 28px;
  width: min(780px, 100%);
}
.popular-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 16px;
  font-weight: 500;
}
.cat-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fdf0ee;
  color: var(--red);
  border: 1px solid rgba(192,57,43,.09);
}
.cat-icon svg { width: 34px; height: 34px; stroke: currentColor; }
.cat-green { background: #e8f5e9; color: #2e7d32; }
.cat-blue { background: #e3f2fd; color: #1565c0; }
.cat-gold { background: #fff3df; color: #d8872a; }

/* ===== SECTIONS ===== */
.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.25;
  font-weight: 800;
  color: #111827;
}
.view-all { font-size: 16px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.view-all:hover { color: var(--red); }

/* Top Local */
.local-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.local-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 12px;
  background: #ddd;
  box-shadow: var(--shadow);
}
.local-card img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; transition: transform .35s ease; }
.local-card:hover img { transform: scale(1.04); }
.local-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.65));
}
.local-card-body { position: absolute; left: 16px; right: 16px; bottom: 15px; z-index: 2; color: #fff; }
.local-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.25; margin-bottom: 4px; }
.local-card p { font-size: 13px; color: rgba(255,255,255,.82); }

/* Testimonials */
.testimonial-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.testimonial-image { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #eee; }
.testimonial-image img { width: 100%; height: 390px; object-fit: cover; }
.testimonial-card { background: transparent; padding: 12px 0; }
.testimonial-name {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}
.testimonial-meta { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 16px; margin-bottom: 22px; }
.testimonial-stars { color: #f39c12; font-weight: 700; letter-spacing: 1px; }
.testimonial-text { color: #5f6673; font-size: 16px; line-height: 1.65; max-width: 560px; }

/* Where to eat */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 36px;
}
.restaurant-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
}
.restaurant-thumb {
  width: 104px;
  height: 100px;
  border-radius: 8px;
  background: #f2f4f7;
  border: 1px solid #eef0f4;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.restaurant-thumb img { width: 100%; height: 100%; object-fit: cover; }
.restaurant-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; line-height: 1.25; color: #111827; margin-bottom: 4px; }
.restaurant-rating { color: var(--text-muted); font-size: 13px; margin-bottom: 3px; }
.restaurant-rating .star { color: #f39c12; font-weight: 700; }
.restaurant-address, .restaurant-type { font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.restaurant-type { color: var(--red); font-weight: 600; }

/* Articles */
.article-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  /* pull buttons outside the content column so grid stays full-width */
  margin: 0 -58px;
}
.article-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
  z-index: 2;
  margin-top: -24px;
}
.article-carousel-btn:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: var(--white); }
.article-carousel-btn:disabled { opacity: .35; cursor: default; }
.article-carousel-inner {
  flex: 1;
  overflow: hidden;
  padding: 0 14px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding-bottom: 0;
}
/* sliding track inside the inner container */
.article-track-outer {
  overflow: hidden;
  width: 100%;
}
.article-track {
  display: flex;
  gap: 22px;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.article-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
  flex: 0 0 calc(50% - 11px);
  min-width: 0;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-img { height: 160px; background: #eee; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 16px; }
.article-tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.article-card h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.35; font-weight: 800; color: #1f2937; margin-bottom: 8px; min-height: 48px; }
.article-card p { color: var(--text-muted); font-size: 13px; line-height: 1.5; }
/* PC: show carousel wrap, hide flat grid */
#articleCarouselWrap { display: flex; }
#articleGrid { display: none; }

#articles.home-section { padding-bottom: 72px; }



/* Carousel dots used on mobile */
.mobile-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 16px 0 0;
}
.mobile-dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 999px;
  background: #dfe3e8;
  padding: 0;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.mobile-dot.active { width: 18px; background: #cf5b56; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.testimonial-dots .mobile-dot { display: inline-block; }

/* ===== FOOTER - SAME AS BRAND PAGE/MENU ===== */
footer { background: var(--bg-dark); color: #aaa; padding: 48px 24px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand-name { font-family: var(--font-display); font-size: 22px; color: var(--white); font-weight: 700; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-col-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 14px; margin-top: 0; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13px; color: #888; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; flex-wrap: wrap; gap: 12px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { color: #888; font-size: 16px; transition: color .2s; }
.footer-socials a:hover { color: var(--white); }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--red-dark); }
.back-to-top svg { width: 22px; height: 22px; stroke: currentColor; }

@media (max-width: 1020px) {
  .local-grid { grid-template-columns: repeat(3, 1fr); }
  .restaurant-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  /* reduce negative margin when viewport is tighter */
  .article-carousel-wrap { margin: 0 -20px; }
  .article-carousel-inner { padding: 0 8px; }
}
@media (max-width: 900px) {
  .site-header-inner { height: 58px !important; min-height: 58px !important; padding: 0 16px !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 12px !important; position: relative; }
  .header-logo { line-height: 1; }
  .mobile-nav-toggle { display: inline-flex; }
  .site-header.nav-open .mobile-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .mobile-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { display: none !important; position: absolute; top: calc(100% + 8px); right: 16px; width: min(292px, calc(100vw - 32px)); max-width: calc(100vw - 32px); flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; overflow: visible; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 2001 !important; }
  .site-header.nav-open .main-nav { display: flex !important; }
  .main-nav a { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border: 0; border-radius: 9px; background: transparent; color: #374151; font-size: 15px; font-weight: 500; white-space: normal; }
  .main-nav a:hover, .main-nav a.active { background: #f3f4f6; color: var(--red); }
  .mobile-nav-backdrop { display: none; position: fixed !important; inset: 58px 0 0 !important; background: transparent; z-index: 1999 !important; }
  .site-header.nav-open + .mobile-nav-backdrop { display: block; }
  .home-hero { min-height: auto; }
  .hero-inner { padding-top: 58px; padding-bottom: 54px; }
  .search-panel { grid-template-columns: 1fr; border-radius: 18px; padding: 12px; gap: 8px; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--border); }
  .category-field { border-bottom: 1px solid var(--border); }
  .search-btn { width: 100%; }
  .popular-cats { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .testimonial-wrap { grid-template-columns: 1fr; }
  .testimonial-image img { height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-inner { padding-left: 20px; padding-right: 20px; }
  .hero-title { font-size: 38px; letter-spacing: -.8px; }
  .hero-about { font-size: 15px; }
  .popular-cats { grid-template-columns: repeat(2, 1fr); }
  .home-section { padding: 52px 20px 0; }
  .section-head h2 { font-size: 28px; }
  .section-head { align-items: flex-start; }
  .local-grid, .restaurant-grid { grid-template-columns: 1fr; }
  .local-card, .local-card img { min-height: 210px; }
  .restaurant-card { grid-template-columns: 92px 1fr; gap: 14px; }
  .restaurant-thumb { width: 92px; height: 76px; }
  .testimonial-name { font-size: 16px; }
  footer { padding: 48px 24px 24px; overflow: hidden; }
  .footer-inner { width: 100%; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; margin-bottom: 34px; }
  .footer-desc { max-width: 340px; }
  .footer-links { gap: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom > div:first-child { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .back-to-top { right: 18px; bottom: 18px; width: 48px; height: 48px; }

  /* Mobile articles: hide PC carousel, show flat grid */
  #articleCarouselWrap { display: none !important; }
  #articleGrid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0;
    overflow: visible;
    padding: 0;
    transition: transform .32s ease;
    will-change: transform;
  }
  #articleGrid .article-card {
    flex: 0 0 calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-right: 14px;
    border-radius: 12px;
  }
  .article-img { height: 186px; }
  .article-body { padding: 16px; }
  .article-card h3 { font-size: 20px; margin-bottom: 8px; }

  #articles.home-section { padding-left: 16px; padding-right: 0; overflow: hidden; padding-bottom: 44px; }
  #articles .section-head { padding-right: 16px; margin-bottom: 18px; }
  #articles .section-head h2 { font-size: 26px; line-height: 1.25; }
  #articles .mobile-dots { margin: 18px 16px 42px 0; }
}
@media (min-width: 901px) { .mobile-nav-toggle, .mobile-nav-backdrop { display: none !important; } }


/* ===== MOBILE + REVIEW SLIDER OPTIMIZATION ===== */
.testimonial-section-head { align-items: center; }
#testimonials { position: relative; }
.testimonial-controls { display: flex; gap: 10px; flex-shrink: 0; }
.testimonial-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  transition: background .2s, color .2s, border-color .2s;
}
.testimonial-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-slide { display: none; animation: testimonialFade .28s ease; }
.testimonial-slide.active { display: block; }
@keyframes testimonialFade { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 901px) {
  #testimonials .testimonial-section-head {
    display: block;
    margin-bottom: 28px;
  }
  #testimonials .testimonial-controls {
    position: absolute;
    top: 86px;
    left: calc(50% + 16px);
    z-index: 4;
  }
  #testimonials .testimonial-card {
    padding-top: 70px;
  }
}

@media (max-width: 900px) {
  #top-local.home-section, #testimonials.home-section, #articles.home-section { padding-top: 56px; }
  .testimonial-section-head { margin-bottom: 22px; }
  #testimonials .testimonial-controls { position: static; }
  .testimonial-image img { height: 280px; }
  .testimonial-card { padding: 0; }
}

@media (max-width: 600px) {
  #top-local.home-section, #testimonials.home-section, #articles.home-section { padding-left: 16px; padding-right: 0; overflow: hidden; }
  #top-local .section-head, #testimonials .section-head, #articles .section-head { padding-right: 16px; margin-bottom: 18px; }
  #top-local .section-head h2, #testimonials .section-head h2, #articles .section-head h2 { font-size: 26px; line-height: 1.25; }
  .view-all { font-size: 13px; white-space: nowrap; }

  .mobile-dots { display: flex; }
  .local-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0;
    overflow: visible;
    padding: 0;
    transition: transform .32s ease;
    will-change: transform;
  }
  .local-card {
    flex: 0 0 calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-height: 232px;
    margin-right: 14px;
  }
  .local-card img { min-height: 232px; }
  .local-card h3 { font-size: 19px; }

  .testimonial-slider { padding-right: 16px; }
  .testimonial-wrap { gap: 18px; }
  .testimonial-image img { height: 220px; }
  .testimonial-name { font-size: 16px; margin-bottom: 8px; }
  .testimonial-meta { margin-bottom: 12px; font-size: 13px; }
  .testimonial-text { font-size: 16px; line-height: 1.6; }
  .testimonial-btn { width: 34px; height: 34px; font-size: 22px; }

  .article-carousel-btn { width: 36px; height: 36px; font-size: 22px; }
  .article-carousel-inner { padding: 0 8px; }
  .article-img { height: 186px; }
  .article-body { padding: 16px; }
  .article-card h3 { font-size: 20px; margin-bottom: 8px; }

  /* Keep the last mobile carousel separated from the footer */
  #articles.home-section {
    padding-bottom: 44px;
  }
  #articles .mobile-dots {
    margin: 18px 16px 42px 16px;
  }
}


@media (max-width: 900px) {
  .testimonial-controls {
    position: static !important;
    justify-content: flex-start;
    margin: 0 0 18px;
  }
}