/* Forge & Flame Wood-Fired Pizzeria Stylesheet */
:root {
  --bg-main: #12100e;
  --bg-card: #1c1815;
  --bg-card-hover: #26201c;
  --bg-card-sub: #161311;
  --text-main: #f5f2eb;
  --text-muted: #b8aea3;
  --text-dim: #7a7167;
  --ember-orange: #ff5c1b;
  --ember-gold: #fca311;
  --ember-glow: rgba(255, 92, 27, 0.25);
  --border-color: #332b24;
  --border-light: #473c32;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-serif: 'Playfair Display', Georgia, 'Noto Serif TC', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
  --container-max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.brand-logo .flame-icon {
  font-size: 24px;
  color: var(--ember-orange);
  filter: drop-shadow(0 0 8px var(--ember-orange));
}

.brand-logo span.sub {
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--ember-gold);
  font-weight: 500;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--ember-gold);
}

.btn-header-cta {
  background: linear-gradient(135deg, var(--ember-orange), #d93800);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--ember-glow);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 92, 27, 0.4);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Drawer */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 86vw);
  height: 100%;
  background: #181411;
  border-left: 1px solid var(--border-color);
  z-index: 1001;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.8);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-overlay.open {
  display: block;
  opacity: 1;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.drawer-nav a:hover {
  color: var(--ember-gold);
  padding-left: 6px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(255, 92, 27, 0.15) 0%, rgba(18, 16, 14, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 92, 27, 0.12);
  border: 1px solid rgba(255, 92, 27, 0.3);
  color: var(--ember-gold);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.hero-title span.grad {
  background: linear-gradient(135deg, #fff 30%, var(--ember-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.stat-item .num {
  font-size: 26px;
  font-weight: 800;
  color: var(--ember-gold);
  font-family: var(--font-serif);
}

.stat-item .label {
  font-size: 13px;
  color: var(--text-dim);
}

.hero-img-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--ember-glow);
  border: 1px solid var(--border-light);
}

.hero-img-box img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-img-box:hover img {
  transform: scale(1.03);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-tag {
  color: var(--ember-orange);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  color: #fff;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

/* Category Filter Tabs */
.cat-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.cat-tab {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cat-tab:hover, .cat-tab.active {
  background: var(--ember-orange);
  color: #fff;
  border-color: var(--ember-orange);
  box-shadow: 0 4px 15px var(--ember-glow);
}

/* Pizza Cards Grid */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.pizza-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.pizza-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 92, 27, 0.15);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #110e0c;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pizza-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 16, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--ember-gold);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.card-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--ember-gold);
  font-family: var(--font-serif);
}

.card-sub-title {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card-tag {
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}

.card-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-card-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--ember-orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-card-more:hover {
  gap: 8px;
  color: var(--ember-gold);
}

/* Pizza Detail Page Styles */
.detail-hero {
  padding: 40px 0 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 30px;
}

.breadcrumbs a:hover {
  color: var(--ember-gold);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 100px;
}

.detail-img-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 30px var(--ember-glow);
}

.detail-img-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-header-group h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.detail-header-group .italian-name {
  font-size: 18px;
  color: var(--ember-gold);
  font-style: italic;
  margin-bottom: 14px;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--ember-gold);
  font-family: var(--font-serif);
}

.detail-calories {
  font-size: 14px;
  color: var(--text-dim);
}

.detail-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.detail-box h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
}

.ingredient-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

.ingredient-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ingredient-list li::before {
  content: "🔥";
  font-size: 12px;
}

.craft-tips {
  background: rgba(255, 92, 27, 0.08);
  border-left: 4px solid var(--ember-orange);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-q {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-q::before {
  content: "Q";
  display: inline-flex;
  width: 26px;
  height: 26px;
  background: var(--ember-orange);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 36px;
}

/* Craft Pillars Section */
.craft-section {
  padding: 70px 0;
  background: #151210;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.craft-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.craft-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(255, 92, 27, 0.4));
}

.craft-card h3 {
  font-size: 18px;
  color: #fff;
  font-family: var(--font-serif);
}

.craft-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #0d0b09;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  padding-bottom: max(30px, env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--ember-gold);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* Related Items */
.related-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .detail-gallery {
    position: static;
  }
  .detail-img-box img {
    height: 380px;
  }
  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 40px 0;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-img-box img {
    height: 280px;
  }
  .section-title {
    font-size: 26px;
  }
  .pizza-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .craft-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-img-box img {
    height: 260px;
  }
  .ingredient-list {
    grid-template-columns: 1fr;
  }
  .btn-header-cta {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-title {
    font-size: 27px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
