/* =========================================================
   Tazzina · style.css
   Design system, layout, and components for the full site.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cream: #F5EDE0;
  --cream-warm: #EFE5D3;
  --brick: #B85C3C;
  --brick-deep: #7A2E1F;
  --ember: #D97A2C;
  --charcoal: #1A1A1A;
  --ink: #2A1E14;
  --muted: #5a4434;
  --line: rgba(184, 92, 60, 0.25);

  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-italic: 'Playfair Display', Georgia, serif;

  --container: 1100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-deep); }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--ink); }
p { margin: 0 0 1em; }

/* ---------- Container helper ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* ---------- Visually-hidden (a11y) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header / Nav ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 50;
}
.logo-wrap { display: inline-flex; align-items: center; }
.logo-img {
  height: 56px;
  width: auto;
  background: transparent;
}

.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--brick); }
.site-nav a.active {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 13px 28px;
  border: 1.5px solid var(--brick);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-filled {
  background: var(--brick);
  color: var(--cream);
}
.btn-filled:hover {
  background: var(--brick-deep);
  border-color: var(--brick-deep);
  color: var(--cream);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--brick-deep);
}
.btn-outline-brick {
  background: transparent;
  color: var(--brick);
  border-color: var(--brick);
}
.btn-outline-brick:hover {
  background: var(--brick);
  color: var(--cream);
}

/* ---------- Reusable bits ---------- */
.eyebrow {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 14px;
  color: var(--brick);
  text-align: center;
  margin: 0 0 8px;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--brick);
  border: 0;
  margin: 24px auto;
}
.section-heading {
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--brick-deep);
  margin: 0;
}

/* mural texture wrapper */
.section-with-mural {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section-with-mural::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/mural.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}

/* page-wide mural texture (Home, Menu) */
body.home,
body.menu {
  position: relative;
  isolation: isolate;
}
body.home::before,
body.menu::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/mural.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Hero (Home) ---------- */
.hero {
  position: relative;
  min-height: 480px;
  height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  color: var(--cream);
  padding: 32px 24px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/storefront.jpg') center/cover no-repeat;
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(58,36,24,0.65), rgba(122,46,31,0.55));
  z-index: -1;
}
.hero-inner {
  grid-column: 2;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.steam {
  display: block;
  font-size: 28px;
  letter-spacing: 0.3em;
  opacity: 0.85;
  margin-bottom: 22px;
  color: var(--cream);
}
.hero h1 {
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 14px;
}
.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 18px;
}
.hero-tagline {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  margin: 0 0 32px;
  opacity: 0.98;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section { padding: 64px 24px; }
.section-narrow {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.section-intro {
  max-width: 540px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--ink);
}

/* welcome-section overrides */
.welcome { padding: 72px 24px; }

/* ---------- Feature grid (Home) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.feature-card .body {
  padding: 18px 20px;
}
.feature-card h3 {
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick-deep);
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Quick info (Home) ---------- */
.quick-info {
  background: rgba(239, 229, 211, 0.55);
  padding: 48px 24px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.info-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 20px;
  text-align: center;
}
.info-icon {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--brick);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.info-card h4 {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brick-deep);
  margin: 0 0 10px;
}
.info-card p {
  font-size: 14px;
  margin: 2px 0;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 48px 32px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer h5 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 14px;
}
.site-footer p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--cream);
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.site-footer .small {
  font-size: 11px;
  color: rgba(245, 237, 224, 0.55);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ---------- Menu page ---------- */
.menu-header {
  padding: 48px 24px 24px;
  text-align: center;
}
.menu-tabs {
  background: var(--cream-warm);
  padding: 14px;
  border-radius: 8px;
  border: 0.5px solid var(--line);
  max-width: 920px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.menu-tab {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 13px;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.menu-tab:hover { color: var(--brick-deep); }
.menu-tab.on {
  background: var(--brick);
  color: var(--cream);
}

.menu-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.menu-section { margin-bottom: 48px; }
.menu-section h3 {
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick-deep);
  text-align: center;
  margin: 0;
}
.menu-section .divider-sm {
  width: 36px;
  height: 2px;
  background: var(--brick);
  border: 0;
  margin: 14px auto 24px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dotted rgba(184, 92, 60, 0.3);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.menu-item .price {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--brick);
  white-space: nowrap;
}

/* Wine specific */
.wine-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brick);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 92, 60, 0.4);
  margin-bottom: 8px;
}
.wine-head span:nth-child(2),
.wine-head span:nth-child(3) {
  text-align: right;
  min-width: 56px;
}
.wine-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dotted rgba(184, 92, 60, 0.3);
}
.wine-row:last-child { border-bottom: 0; }
.wine-row .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.wine-row .price {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--brick);
  text-align: right;
  min-width: 56px;
}
.wine-row .price.empty { color: var(--muted); }

/* ---------- About page ---------- */
.about-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  padding: 32px 24px;
  isolation: isolate;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/mural.jpg') center/cover no-repeat;
  opacity: 0.18;
  z-index: -2;
}
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,46,31,0.85), rgba(184,92,60,0.85));
  z-index: -1;
}
.about-hero h1 {
  font-size: clamp(40px, 8vw, 64px);
  letter-spacing: 0.18em;
  color: var(--cream);
  margin: 0 0 12px;
}
.about-hero .subline {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 17px;
  margin: 0;
  opacity: 0.95;
}

.story {
  padding: 72px 24px;
}
.story p {
  max-width: 580px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 15px;
  line-height: 1.85;
}

.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 24px auto 0;
}
.founder-card {
  background: #fff;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  text-align: center;
}
.founder-card h4 {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick-deep);
  margin: 0 0 6px;
}
.founder-card .role {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 12px;
  color: var(--brick);
  margin: 0 0 10px;
}
.founder-card .bio {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.visit-panel {
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  max-width: 720px;
  margin: 40px auto 0;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.visit-grid h5 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 12px;
}
.visit-grid p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}
.visit-grid .small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 3px 0;
}
.hours-row.closed { color: #888; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .site-header { padding: 14px 18px; }
  .logo-img { height: 44px; }

  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.active {
    border-bottom-color: var(--line);
    background: var(--cream-warm);
  }

  section { padding: 48px 16px; }
  .welcome, .story { padding: 48px 16px; }

  .hero {
    height: auto;
    min-height: 420px;
    padding: 60px 20px;
    grid-template-columns: 1fr;
  }
  .hero-inner { grid-column: 1; }

  .hero-buttons { flex-direction: column; align-items: center; gap: 8px; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }

  .feature-grid,
  .info-grid,
  .footer-grid,
  .founders,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .site-footer { padding: 36px 20px; }
}
