/*
Theme Name: Sabatini
Theme URI: https://sabatini.ie
Author: Sabatini
Author URI: https://sabatini.ie
Description: A premium WordPress theme for Sabatini Wine Bar & Restaurant — authentic Italian cuisine in Lucan Village, Dublin.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sabatini
Tags: restaurant, one-page, custom-menu, featured-images
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #c9a96e;
  --gold-light: #dcc396;
  --cream: #faf6f0;
  --dark: #1a1a1a;
  --dark-green: #2d3a2d;
  --wine: #722f37;
  --wine-deep: #4a1c23;
  --charcoal: #2c2c2c;
  --warm-white: #f5f0e8;
  --text-light: #d4cdc0;
  --olive: #6b7c4e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ── Preloader ── */
#preloader {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
#preloader .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--gold);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 1.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 4rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
nav .brand {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
}
nav .nav-links {
  display: flex; gap: 2.5rem; list-style: none; align-items: center;
}
nav .nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
nav .nav-links a:hover { color: var(--gold); }
nav .nav-links a:hover::after { width: 100%; }
nav .reserve-btn {
  border: 1px solid var(--gold) !important;
  padding: 0.6rem 1.8rem !important;
  color: var(--gold) !important;
  transition: all 0.3s ease !important;
}
nav .reserve-btn:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10001;
}
.hamburger span {
  width: 28px; height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ── */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,110,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(114,47,55,0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.6) 100%);
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(201,169,110,0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(201,169,110,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 800px; padding: 0 2rem;
}
.hero-content .subtitle-top {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--cream);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}
.hero-content .tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--gold-light);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}
.hero-content .location-badge {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}
.hero-divider {
  width: 80px; height: 1px;
  background: var(--gold);
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1s forwards;
}
.hero-cta {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease 1.3s forwards;
}
.btn-primary {
  padding: 1rem 3rem;
  background: var(--gold);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}
.btn-primary:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,169,110,0.3);
}
.btn-outline {
  padding: 1rem 3rem;
  background: transparent;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(201,169,110,0.4);
  cursor: pointer;
  transition: all 0.4s ease;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}
.scroll-indicator span {
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── Section Commons ── */
section { padding: 8rem 4rem; }
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.section-title.light { color: var(--cream); }
.section-divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}
.section-desc {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #777;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-desc.light { color: var(--text-light); }

/* ── About ── */
.about { background: var(--cream); }
.about-text {
  text-align: center;
}
.about-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--wine);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.about-text p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 2;
  color: #555;
  margin-bottom: 1.5rem;
}
.about-signature {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-top: 2rem;
}
.about-values {
  display: flex; gap: 3rem; margin-top: 2.5rem;
  justify-content: center;
}
.about-value {
  text-align: center;
}
.about-value .value-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 300;
}
.about-value .value-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #999;
  margin-top: 0.25rem;
}

/* ── Menu ── */
.menu {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.menu::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(114,47,55,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(201,169,110,0.05) 0%, transparent 50%);
}
.menu-tabs {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 4rem;
  position: relative;
}
.menu-tab {
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(201,169,110,0.2);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.menu-tab.active, .menu-tab:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}
.menu-category { display: none; }
.menu-category.active { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.menu-item {
  background: var(--dark);
  padding: 2.5rem;
  transition: background 0.3s;
}
.menu-item:hover { background: rgba(44,44,44,0.8); }
.menu-item-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.8rem;
}
.menu-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 500;
}
.menu-item-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 400;
}
.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(201,169,110,0.2);
  margin: 0 1rem;
  align-self: center;
}
.menu-item-desc {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.7;
  font-style: italic;
}
.menu-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
  position: relative;
}

/* ── Wine Section ── */
.wine {
  background: linear-gradient(135deg, var(--wine-deep) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}
.wine::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.06) 0%, transparent 50%);
}
.wine-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  position: relative;
}
.wine-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.wine-text p {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 1.5rem;
}
.wine-feature {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.wine-feature-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(201,169,110,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.wine-feature-text {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 1px;
}
.wine-visual {
  display: flex; align-items: center; justify-content: center;
}
.wine-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/5;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
.wine-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(74,28,35,0.4) 100%);
}

/* ── Testimonials ── */
.testimonials { background: var(--warm-white); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background: white;
  padding: 3rem;
  position: relative;
  box-shadow: 0 4px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #555;
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 2rem;
}
.testimonial-author {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.testimonial-stars {
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 3px;
}

/* ── Gallery ── */
.gallery { background: var(--dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 4px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item-bg {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-item-bg { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,26,0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--cream);
  font-style: italic;
  text-align: center;
  padding: 1rem;
}

/* ── Hours & Location ── */
.location {
  background: var(--cream);
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.location-card {
  text-align: center;
  padding: 3rem 2rem;
}
.location-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.location-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.location-card p {
  font-size: 0.85rem;
  color: #777;
  line-height: 2;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: #777;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hours-table td:first-child {
  font-weight: 500;
  color: var(--dark);
  text-align: left;
}
.hours-table td:last-child { text-align: right; }
.hours-table tr.closed td { color: var(--wine); }

/* ── Reservation CTA ── */
.reservation-cta {
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}
.reservation-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,169,110,0.08) 0%, transparent 60%);
}
.reservation-cta .section-title {
  color: var(--cream);
  margin-bottom: 1rem;
}
.reservation-cta p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.reservation-cta .btn-primary { position: relative; }

/* ── Footer ── */
footer {
  background: #111;
  padding: 5rem 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}
.footer-brand .brand {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.8;
  max-width: 300px;
}
.footer-col h5 {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #777;
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--cream); }
.footer-col p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.8;
}
.footer-social {
  display: flex; gap: 1rem; margin-top: 1.5rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(201,169,110,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  transition: all 0.3s;
  margin-bottom: 0;
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--dark);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom p {
  font-size: 0.7rem;
  color: #555;
  letter-spacing: 2px;
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  section { padding: 5rem 2rem; }
  nav { padding: 1.2rem 2rem; }
  nav.scrolled { padding: 0.8rem 2rem; }
  .about-grid, .wine-content { grid-template-columns: 1fr; gap: 3rem; }
  .menu-category.active { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 500px; }
  .location-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  nav .nav-links { display: none; }
  nav .nav-links.active {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26,26,26,0.99);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 9999;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  nav .nav-links.active li {
    list-style: none;
  }
  nav .nav-links.active a {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--cream);
  }
  .hamburger { display: flex; }
  .hero { height: 100svh; }
  .hero-content h1 { font-size: 3.5rem; }
  .hero-cta { flex-direction: column; padding: 0 1rem; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  section { padding: 4rem 1.5rem; }
  .section-title { font-size: 2rem; }
  .about-text h3 { font-size: 1.8rem; }
  .about-text p { font-size: 0.95rem; }
  .about-signature { font-size: 1.4rem; }
  .about-values { flex-direction: column; gap: 1.5rem; }
  .menu-tabs { gap: 0.5rem; }
  .menu-tab { padding: 0.6rem 1.2rem; font-size: 0.6rem; letter-spacing: 2px; }
  .menu-item { padding: 1.5rem; }
  .menu-item-name { font-size: 1.1rem; }
  .wine-text h3 { font-size: 1.8rem; }
  .testimonial-card { padding: 2rem; }
  .testimonial-text { font-size: 0.95rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand .brand { font-size: 2rem; }
  .reservation-cta { padding: 5rem 1.5rem; }
  .reservation-cta .section-title { font-size: 2rem; }
  nav { padding: 1rem 1.2rem; }
  nav.scrolled { padding: 0.8rem 1.2rem; }
  nav .brand { font-size: 1.8rem; }
}
