/* Pizzeria Comunitară – stiluri mobile-first, doar CSS */
:root {
  --bg: hsl(36 33% 98%);
  --fg: hsl(222 47% 11%);
  --card: hsl(0 0% 100%);
  --muted: hsl(26 30% 93%);
  --muted-fg: hsl(215 16% 35%);
  --primary: hsl(8 78% 52%); /* rosso napoletan */
  --primary-fore: hsl(0 0% 98%);
  --accent: hsl(142 71% 35%); /* verde busuioc */
  --accent-fore: hsl(0 0% 98%);
  --border: hsl(25 25% 86%);
  --radius: 12px;
  --shadow-soft: 0 10px 24px -12px hsl(222 47% 11% / 0.1);
  --shadow-elev: 0 12px 32px -12px hsl(8 78% 52% / 0.25);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 8px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1) blur(8px);
  background: hsl(0 0% 100% / 0.7);
  border-bottom: 1px solid var(--border);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  text-decoration: none;
  color: inherit;
}
.nav {
  display: none;
  gap: 20px;
}
.nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--primary);
}
.burger {
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}
.mobile-menu a:hover {
  background: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  width: 100%;
  max-width: 100%;
  scroll-margin-top: 60px;
}
.hero img {
  height: min(36vh, 400px);
  width: 100%;
  object-fit: cover;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(8 78% 52% / 0.8),
    hsl(142 71% 35% / 0.7)
  );
}
.hero .content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  color: var(--primary-fore);
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  background: hsl(26 30% 93% / 0.9);
  color: hsl(222 47% 11%);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
  border: 1px solid hsl(26 30% 93% / 0.3);
}
.hero-title {
  margin: 0 0 4px;
  font-size: clamp(32px, 7vw, 64px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  margin: 0 0 8px;
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-description {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.ctas {
  display: flex;
  gap: 12px;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-elev);
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fore);
}
.btn-primary:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: var(--accent-fore);
}
.btn-accent:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

/* Category header */
.category {
  scroll-margin-top: 80px;
}
.cat-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  width: 100%;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.cat-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elev);
  border-color: hsl(8 78% 85%);
}

.cat-banner img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.cat-banner:hover img {
  transform: scale(1.02);
}

.cat-banner .tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(8 78% 52% /0.8),
    hsl(142 71% 35% /0.7)
  );
}

.cat-banner .text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--primary-fore);
  text-align: center;
  background: linear-gradient(
    135deg,
    hsl(8 78% 52% /0.1),
    hsl(142 71% 35% /0.1)
  );
}

.cat-title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cat-sub {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

/* Grid + cards */
.section {
  padding: 24px 0;
  scroll-margin-top: 30px;
}
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elev);
  border-color: hsl(8 78% 85%);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
  position: relative;
  z-index: 1;
}

.card .ing {
  margin: 8px 0 0;
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.card .right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.price {
  color: var(--primary);
  font-weight: 900;
  font-size: 1.35rem;
  white-space: nowrap;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.grams {
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 500;
  background: var(--muted);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.section .grid {
  margin-top: 20px;
}

.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted-fg);
  font-size: 14px;
}

.footer-content {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}

.footer-section p {
  margin: 4px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-section a {
  color: var(--primary);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--muted-fg);
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--muted);
  border: 1px solid var(--border);
}

.social-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white;
  border-color: #dc2743;
}

.whatsapp:hover {
  background: #25d366;
  color: white;
  border-color: #25d366;
}

.website:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Contact Section */
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elev);
}

.contact-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-card p {
  margin: 6px 0;
  color: var(--muted-fg);
  font-size: 0.95rem;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.contact-actions .contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.contact-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.contact-person:last-of-type {
  border-bottom: none;
}

.person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.person-name {
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
}

.person-phone {
  color: var(--muted-fg);
  font-size: 0.9rem;
}

.contact-person .contact-actions {
  display: flex;
  gap: 8px;
  margin: 0;
}

.contact-person .contact-actions .contact-link {
  padding: 6px 10px;
  font-size: 0.9rem;
  min-width: 80px;
  justify-content: center;
}

/* Redesigned subtle contact buttons */
.phone-link {
  background: hsl(8 78% 95%);
  color: var(--primary);
  border: 1px solid hsl(8 78% 85%);
}

.phone-link:hover {
  background: hsl(8 78% 90%);
  border-color: var(--primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.whatsapp-link {
  background: hsl(142 71% 95%);
  color: var(--accent);
  border: 1px solid hsl(142 71% 85%);
}

.whatsapp-link:hover {
  background: hsl(142 71% 90%);
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.location-link {
  background: hsl(215 16% 95%);
  color: var(--muted-fg);
  border: 1px solid hsl(215 16% 85%);
}

.location-link:hover {
  background: hsl(215 16% 90%);
  border-color: var(--muted-fg);
  transform: translateY(-1px);
  text-decoration: none;
}

.contact-actions .contact-link {
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: none;
}

.contact-person .contact-actions .contact-link {
  padding: 6px 10px;
  font-size: 0.85rem;
  min-width: 70px;
  justify-content: center;
}

/* Floating Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fore);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-elev);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
}

.scroll-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: hsl(8 78% 45%);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px hsl(8 78% 52% / 0.4);
}

.scroll-top:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ctas {
    flex-direction: row;
    justify-content: center;
  }
  .hero .content {
    padding: 16px;
  }
  .badge {
    font-size: 14px;
    padding: 10px 18px;
    margin-bottom: 10px;
  }
  .hero-title {
    margin: 0 0 6px;
  }
  .hero-subtitle {
    margin: 0 0 10px;
  }
  .hero-description {
    margin: 0 0 18px;
  }
  .card {
    padding: 18px;
  }
  .card h3 {
    font-size: 1.15rem;
  }
  .price {
    font-size: 1.4rem;
  }
}
@media (min-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .hero .content {
    padding: 24px;
  }
  .nav {
    display: flex;
  }
  .burger {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
  .ctas {
    gap: 20px;
  }
  .hero img {
    height: min(45vh, 500px);
  }
  .hero-title {
    font-size: clamp(40px, 8vw, 72px);
    margin: 0 0 8px;
  }
  .hero-subtitle {
    font-size: clamp(24px, 5vw, 36px);
    margin: 0 0 12px;
  }
  .hero-description {
    margin: 0 0 24px;
  }
  .card {
    padding: 20px;
  }
  .card h3 {
    font-size: 1.2rem;
  }
  .price {
    font-size: 1.45rem;
  }
  .section {
    padding: 32px 0;
  }
}

/* Mobile-first improvements */
@media (max-width: 639px) {
  .card {
    padding: 14px;
  }
  .card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }
  .card .ing {
    font-size: 0.9rem;
    margin: 6px 0 0;
  }
  .price {
    font-size: 1.25rem;
  }
  .grams {
    font-size: 11px;
    padding: 1px 6px;
  }
  .row {
    gap: 12px;
  }
  .section {
    padding: 20px 0;
  }
  .grid {
    gap: 10px;
  }
  .cat-banner {
    border-radius: 16px;
  }
  .cat-banner .text {
    padding: 0 16px;
  }
  .cat-title {
    font-size: clamp(22px, 5vw, 28px);
  }
  .cat-sub {
    font-size: 0.9rem;
  }
}

/* Ensure minimum touch target size for mobile */
@media (max-width: 639px) {
  .btn {
    min-height: 44px;
    padding: 14px 20px;
  }
  .contact-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .burger {
    min-height: 44px;
    min-width: 44px;
  }
}
