/* =============================================
   GIA VISTO PIZZERIA — site.css
   ============================================= */

/* --- Custom Properties --- */
:root {
  --bg-primary:     #0d0d0d;
  --bg-secondary:   #1a1a1a;
  --bg-card:        #242424;
  --accent-gold:    #D4A017;
  --accent-gold-lt: #F0C040;
  --accent-red:     #C0392B;
  --text-primary:   #F5F5F0;
  --text-secondary: #A0A0A0;
  --border-subtle:  rgba(212,160,23,0.15);
  --border-gold:    rgba(212,160,23,0.55);
  --glow-amber:     radial-gradient(ellipse at 50% 0%, rgba(212,160,23,0.18) 0%, transparent 70%);

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

  --max-width: 1140px;
  --pad: 18px;
  --radius-card: 16px;
  --radius-btn:  12px;
  --radius-input: 10px;
}

@media (min-width: 900px) {
  :root { --pad: 40px; }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* --- Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.srOnly {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* --- Shared Heading --- */
.sectionHeading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 32px;
}

.sectionAccent {
  width: 60px;
  height: 2px;
  background: var(--accent-red);
  margin: -20px auto 40px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: calc(var(--delay, 0) * 120ms);
}

.reveal.isVisible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* =============================================
   S1 — HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.heroBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.80) 100%);
  z-index: 1;
}

.heroContent {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 0 var(--pad);
}

.heroLogo { max-width: 180px; }

.heroTagline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0;
}

.heroBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 32px;
  background: var(--accent-gold);
  color: #0d0d0d;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.heroBtn:hover {
  background: var(--accent-gold-lt);
  transform: translateY(-1px);
}

@media (max-width: 599px) {
  .heroLogo { max-width: 130px; }
}


/* =============================================
   S2 — PROMO BANNER
   ============================================= */
.promoBanner {
  padding: 40px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.promoBanner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-card);
}

@media (max-width: 599px) {
  .promoBanner { padding-top: 28px; padding-bottom: 28px; }
}


/* =============================================
   S3 — MENIU
   ============================================= */
.menuSection {
  padding: 80px 0;
}

/* Tabs */
.menuTabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.menuTabs::-webkit-scrollbar { display: none; }

.menuTab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.menuTab.isActive {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.menuTab:hover:not(.isActive) {
  color: var(--text-primary);
}

/* Panels */
.menuPanel {
  display: none;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.menuPanel.isActive { display: block; }

/* Rows */
.menuRow {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 12px;
}

.menuRow:last-child { border-bottom: none; }

.menuName {
  flex: 1;
  font-weight: 500;
  font-size: 16px;
  color: var(--text-primary);
}

.menuWeight {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 44px;
  text-align: right;
}

.menuPrice {
  font-weight: 600;
  font-size: 16px;
  color: var(--accent-gold);
  min-width: 60px;
  text-align: right;
}

/* Add button */
.menuActions {
  min-width: 100px;
  display: flex;
  justify-content: flex-end;
}

.menuAdd {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.menuAdd:hover {
  background: var(--accent-gold);
  color: #0d0d0d;
}

/* Counter */
.menuCounter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counterBtn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}

.counterBtn:hover {
  background: rgba(212,160,23,0.15);
}

.counterQty {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  min-width: 20px;
  text-align: center;
}

/* Mobile menu rows */
@media (max-width: 599px) {
  .menuRow {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .menuName { flex-basis: 100%; font-size: 15px; }
  .menuWeight { text-align: left; flex: 1; }
  .menuActions { min-width: auto; }
}

@media (max-width: 599px) {
  .menuSection { padding: 48px 0; }
}


/* =============================================
   S4 — COMANDĂ ACUM
   ============================================= */
.orderSection {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.orderGlow {
  position: absolute;
  inset: 0;
  background: var(--glow-amber);
  pointer-events: none;
}

/* Three-step guide */
.orderSteps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 36px;
}

.orderStep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.orderStep svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-gold);
  color: var(--accent-gold);
}

.orderStep span {
  font-size: 12px;
  color: var(--text-secondary);
}

.orderStepLine {
  flex: 0 0 60px;
  border-top: 2px dashed var(--accent-gold);
  margin: 12px 12px 0;
}

/* Order card */
.orderCard {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 20px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.orderEmpty {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

.orderItems { display: none; }

.orderCard:not(.isEmpty) .orderItems { display: block; }
.orderCard:not(.isEmpty) .orderEmpty { display: none; }
.orderCard.isEmpty .orderTotal { display: none; }

.orderItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.orderItem:last-child { border-bottom: none; }

.orderRemove {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}

.orderRemove:hover { color: var(--accent-red); }
.orderRemove svg { width: 16px; height: 16px; }

.orderTotal {
  text-align: right;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-gold);
  padding-top: 12px;
  margin: 0;
}

/* Form */
.orderForm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 540px;
  margin: 0 auto;
}

.orderInput {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}

.orderInput:focus { border-color: var(--accent-gold); }
.orderInput::placeholder { color: var(--text-secondary); }
textarea.orderInput { resize: vertical; min-height: 80px; }

.orderSubmit {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-btn);
  background: var(--accent-gold);
  color: #0d0d0d;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.orderSubmit:hover {
  background: var(--accent-gold-lt);
  transform: translateY(-1px);
}

.orderFallback {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 8px 0 0;
}

.orderFallback a {
  color: var(--accent-gold);
  text-decoration: underline;
}

@media (max-width: 599px) {
  .orderSection { padding: 48px 0; }
}


/* =============================================
   S5 — GALERIE
   ============================================= */
.gallerySection {
  padding: 80px 0;
}

.galleryGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.galleryItem {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.galleryItem img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.galleryItem:hover {
  transform: scale(1.03);
  border-color: var(--border-gold);
}

@media (min-width: 768px) {
  .galleryGrid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 599px) {
  .gallerySection { padding: 48px 0; }
}


/* =============================================
   S6 — POVESTEA NOASTRĂ
   ============================================= */
.storySection {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.storyGrid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.storyText p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.storyText p:last-child { margin-bottom: 0; }

.storyImage img {
  border-radius: var(--radius-card);
  height: 320px;
  width: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .storyGrid { grid-template-columns: 55% 45%; }
}

@media (max-width: 599px) {
  .storySection { padding: 48px 0; }
  .sectionHeading { font-size: 28px; }
}


/* =============================================
   S7 — FOOTER
   ============================================= */
.siteFooter {
  background: #080808;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footerGrid {
  display: grid;
  gap: 32px;
  text-align: center;
}

.footerLogo {
  max-width: 120px;
  margin: 0 auto 8px;
}

.footerTagline {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.footerInfo {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 4px 0;
}

.footerSocial {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.footerIcon {
  color: var(--text-secondary);
  transition: color 0.2s;
  display: flex;
}

.footerIcon:hover { color: var(--accent-gold); }

.footerIcon svg {
  width: 22px;
  height: 22px;
}

.footerBar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  margin-top: 32px;
  text-align: center;
}

.footerBar p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

@media (min-width: 768px) {
  .footerGrid {
    grid-template-columns: 1fr 1fr 1fr;
    text-align: left;
  }
  .footerLogo { margin: 0 0 8px; }
  .footerSocial { justify-content: flex-end; }
}
