/* ============================================
   ITTO'S VINO — Editorial Café & Bar Site
   Palette: Teal + Slate Grey
   Fonts: Playfair Display + Inter
   ============================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1e293b;
  background: #f8fafc;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.15; }
em { font-style: italic; }

/* ── Color Tokens ── */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --teal-950: #042f2e;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(2,6,23,0.08), 0 1px 2px rgba(2,6,23,0.06);
  --shadow-md: 0 4px 16px rgba(2,6,23,0.1), 0 2px 6px rgba(2,6,23,0.06);
  --shadow-lg: 0 12px 40px rgba(2,6,23,0.14), 0 4px 12px rgba(2,6,23,0.08);
  --shadow-xl: 0 24px 60px rgba(2,6,23,0.18);
}

/* ── Utility ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--teal-700); color: #fff;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; z-index: 200;
}
.skip-link:focus { top: 16px; }

/* ── Section Labels ── */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-700);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 2px;
  background: var(--teal-500); border-radius: 2px;
}
.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--slate-900);
  margin-bottom: 20px;
}
.section-heading em { color: var(--teal-700); }
.section-desc {
  font-size: 1.125rem; color: var(--slate-500);
  max-width: 560px; line-height: 1.7;
}
.section-header { margin-bottom: 64px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px;
  font-size: 0.9375rem; font-weight: 600;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--teal-600); color: #fff;
  box-shadow: 0 4px 16px rgba(13,148,136,0.35);
}
.btn-primary:hover {
  background: var(--teal-700); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,148,136,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; color: var(--slate-900);
}
.nav-logo-icon { color: var(--teal-700); }
.nav-logo-text { letter-spacing: -0.01em; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 0.9375rem; font-weight: 500;
  color: var(--slate-600); transition: color 0.2s;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--teal-500);
  transition: width 0.25s ease; border-radius: 2px;
}
.nav-links a:not(.nav-cta):hover { color: var(--teal-700); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--teal-700); color: #fff !important;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 600 !important; font-size: 0.875rem !important;
  transition: all 0.25s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-800); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger {
  display: block; width: 22px; height: 2px;
  background: var(--slate-700); border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(248,250,252,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; gap: 28px;
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.25rem; color: var(--slate-800); }
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4,47,46,0.88) 0%,
    rgba(17,94,89,0.80) 40%,
    rgba(30,41,59,0.85) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 780px;
  padding: 120px 24px 160px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px; padding: 8px 18px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--teal-200); letter-spacing: 0.04em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff; line-height: 1.1;
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero-headline em {
  color: var(--teal-200);
  font-style: italic;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--slate-300); line-height: 1.7;
  max-width: 580px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Floating Stat Cards */
.hero-stats {
  position: absolute; bottom: -60px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 16px; z-index: 2;
  flex-wrap: wrap; justify-content: center;
  padding: 0 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  min-width: 170px; flex: 1; max-width: 220px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 8px;
  border: 1px solid var(--slate-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-card--1 { border-top: 3px solid var(--teal-500); }
.stat-card--2 { border-top: 3px solid var(--teal-600); }
.stat-card--3 { border-top: 3px solid var(--teal-700); }
.stat-card--4 { border-top: 3px solid var(--slate-500); }
.stat-icon { color: var(--teal-600); margin-bottom: 4px; }
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem; font-weight: 700;
  color: var(--slate-900);
}
.stat-label {
  font-size: 0.8125rem; color: var(--slate-500);
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-content { padding: 100px 20px 140px; }
  .hero-stats {
    position: relative; bottom: auto; left: auto; transform: none;
    margin-top: -80px; flex-direction: column; align-items: center;
  }
  .stat-card { max-width: 100%; min-width: 0; }
}

/* ── SECTIONS ── */
.section { padding: 120px 0; }
.section:nth-child(even) { background: #fff; }

/* ── ABOUT ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-image-wrap { position: relative; }
.about-image-wrap img {
  width: 100%; height: 500px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-image-accent {
  position: absolute; bottom: -20px; right: -20px;
  width: 160px; height: 160px;
  background: var(--teal-100);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-content { max-width: 520px; }
.about-content p {
  font-size: 1.0625rem; color: var(--slate-600);
  line-height: 1.8; margin-bottom: 20px;
}
.about-signature {
  display: flex; align-items: center; gap: 12px;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--slate-200);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem; font-style: italic;
  color: var(--slate-700);
}
.about-signature svg { color: var(--teal-600); flex-shrink: 0; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap img { height: 400px; }
}

/* ── MENU ── */
.menu { background: var(--slate-50); }
.menu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px; margin-bottom: 48px;
}
.menu-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.menu-card-img {
  position: relative; overflow: hidden;
  height: 220px;
}
.menu-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.menu-card:hover .menu-card-img img { transform: scale(1.05); }
.menu-card-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--teal-700); color: #fff;
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em;
}
.menu-card-body { padding: 28px; }
.menu-card-title {
  font-size: 1.5rem; color: var(--slate-900);
  margin-bottom: 8px;
}
.menu-card-desc {
  font-size: 0.9375rem; color: var(--slate-500);
  line-height: 1.65; margin-bottom: 20px;
}
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-list li {
  font-size: 0.875rem; color: var(--slate-700);
  padding-left: 16px; position: relative;
}
.menu-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-400);
}
.menu-note {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--slate-500);
  padding: 16px 20px; background: var(--teal-50);
  border-radius: var(--radius); border: 1px solid var(--teal-100);
}
.menu-note svg { color: var(--teal-600); flex-shrink: 0; }

@media (max-width: 768px) {
  .menu-grid { grid-template-columns: 1fr; }
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease; display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--wide {
  grid-column: span 7;
  height: 380px;
}
.gallery-item:not(.gallery-item--wide) {
  grid-column: span 5;
  height: 380px;
}

@media (max-width: 900px) {
  .gallery-item--wide,
  .gallery-item:not(.gallery-item--wide) {
    grid-column: span 12; height: 280px;
  }
}
@media (max-width: 600px) {
  .gallery-grid { gap: 10px; }
  .gallery-item { border-radius: var(--radius); }
  .gallery-item--wide,
  .gallery-item:not(.gallery-item--wide) { height: 220px; }
}

/* ── VISIT ── */
.visit { background: var(--slate-900); color: #fff; }
.visit .section-label { color: var(--teal-400); }
.visit .section-label::before { background: var(--teal-500); }
.visit .section-heading { color: #fff; }
.visit .section-heading em { color: var(--teal-400); }
.visit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.visit-details { display: flex; flex-direction: column; gap: 32px; margin-top: 48px; }
.visit-detail {
  display: flex; gap: 20px; align-items: flex-start;
}
.visit-detail-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(20,184,166,0.12);
  border: 1px solid rgba(20,184,166,0.25);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-400);
}
.visit-detail strong {
  display: block; font-size: 0.8125rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate-400); margin-bottom: 6px;
}
.visit-detail p {
  font-size: 1.0625rem; color: var(--slate-200); line-height: 1.7;
}
.visit-detail a { color: var(--teal-400); transition: color 0.2s; }
.visit-detail a:hover { color: var(--teal-200); }
.visit-map {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); min-height: 420px;
  border: 3px solid var(--slate-700);
}
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .visit-map { min-height: 300px; }
}

/* ── FOOTER ── */
.footer {
  background: var(--slate-950); color: var(--slate-400);
  padding: 64px 0 0;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--slate-800);
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.footer-logo-icon { color: var(--teal-500); }
.footer-brand p { font-size: 0.9375rem; color: var(--slate-500); }
.footer-nav {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-nav a {
  font-size: 0.9375rem; color: var(--slate-400);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal-400); }
.footer-contact p {
  font-size: 0.9375rem; line-height: 1.7;
}
.footer-contact a { color: var(--teal-400); transition: color 0.2s; }
.footer-contact a:hover { color: var(--teal-200); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 24px 0;
  font-size: 0.8125rem; color: var(--slate-600);
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
