/* ===========================
   Tommy — Italian Restaurant
   =========================== */

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

:root {
  --red:       #C1440E;
  --red-dark:  #9B3208;
  --red-light: #E8654A;
  --cream:     #FFF8F0;
  --cream-mid: #F5EBE0;
  --brown:     #3D2010;
  --brown-mid: #6B3A22;
  --text:      #2A1505;
  --text-mid:  #5C3420;
  --text-muted:#896B58;
  --white:     #FFFFFF;
  --header-h:  68px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- UTILITIES ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 0.75rem auto 0;
  line-height: 1.75;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 0.8rem 2rem;
  border-radius: 3px;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-out), box-shadow 0.25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193,68,14,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255,248,240,0.6);
}
.btn-outline:hover {
  background: rgba(255,248,240,0.12);
  border-color: var(--cream);
  transform: translateY(-2px);
}
.btn-large { font-size: 1.05rem; padding: 1rem 2.5rem; }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(61, 32, 16, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,248,240,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-list a {
  color: rgba(255,248,240,0.8);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-list a:hover { color: var(--cream); }

.nav-cta {
  background: var(--red) !important;
  color: var(--cream) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 3px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
.mobile-nav {
  background: var(--brown);
  border-top: 1px solid rgba(255,248,240,0.08);
}
.mobile-nav ul { list-style: none; }
.mobile-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--cream);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,248,240,0.06);
  transition: background 0.2s;
}
.mobile-nav a:hover { background: rgba(255,248,240,0.06); }
.mobile-nav[hidden] { display: none; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #3D2010 0%,
    #5E2B0E 30%,
    #8B1A1A 65%,
    #3D2010 100%
  );
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(193,68,14,0.15) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 3rem 1.5rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,248,240,0.6);
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,248,240,0.75);
  margin-bottom: 2.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,248,240,0.4);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- SECTION BASE ---- */
.section {
  padding: 5rem 0;
}

/* ---- MENU SECTION ---- */
.section-menu {
  background: var(--cream);
}

.section-menu h2 {
  text-align: center;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.section-menu .section-label {
  text-align: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.menu-card {
  background: var(--white);
  border: 1px solid rgba(61,32,16,0.07);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(61,32,16,0.12);
}

.menu-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
}

.menu-card h3 {
  color: var(--brown);
  margin-bottom: 0.6rem;
}

.menu-card p {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ---- ABOUT SECTION ---- */
.section-about {
  background: var(--brown);
  padding: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 520px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #5E2B0E 0%, #3D2010 100%);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(193,68,14,0.2) 0%, transparent 70%);
}

.about-flames {
  width: 100px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(255,140,0,0.5));
  animation: flicker 3s ease-in-out infinite alternate;
}

@keyframes flicker {
  0% { filter: drop-shadow(0 0 20px rgba(255,140,0,0.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 30px rgba(255,180,0,0.7)); transform: scale(1.03) skewX(-1deg); }
  100% { filter: drop-shadow(0 0 18px rgba(255,100,0,0.4)); transform: scale(0.98) skewX(1deg); }
}

.about-temp {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cream);
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.about-temp-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,248,240,0.5);
  position: relative;
  z-index: 1;
  margin-top: 0.3rem;
}

.about-content {
  padding: 5rem 4rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content h2 {
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.about-content p {
  color: rgba(255,248,240,0.75);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-content .btn-outline {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ---- BOOKING SECTION ---- */
.section-book {
  background: var(--cream-mid);
}

.section-book h2 {
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.section-book .section-label {
  text-align: center;
}

.booking-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.booking-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--brown);
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,248,240,0.06);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--cream);
}

.footer-tagline {
  color: rgba(255,248,240,0.45);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.footer-attribution {
  font-size: 0.78rem;
  color: rgba(255,248,240,0.3);
}

.footer-attribution a {
  color: rgba(255,248,240,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-attribution a:hover { color: rgba(255,248,240,0.7); }

/* ---- RESPONSIVE ---- */
@media (max-width: 760px) {
  .nav-list { display: none; }
  .hamburger { display: flex; }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-visual {
    padding: 3rem 2rem;
    min-height: 200px;
  }

  .about-content {
    padding: 3rem 1.5rem;
  }

  .about-content .btn-outline {
    align-self: center;
  }
}

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

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
