/* Florentinos Pizza.
   The stylesheet of the old React app (src/App.css), carried over as written
   when the site was converted to plain HTML. Only the hero image URL changed,
   and the short "Added in the conversion" block at the end is new.
   There is no build step: edit this file directly. */

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

:root {
  --primary-black: #000000;
  --primary-gray-dark: #1a1a1a;
  --primary-gray: #333333;
  --primary-gray-light: #666666;
  --text-dark: #000000;
  --text-light: #666666;
  --bg-light: #f5f5f5;
  --bg-dark: #1a1a1a;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --spacing-unit: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-dark);
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

h3 {
  font-size: 1.75rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

p {
  line-height: 1.6;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 3);
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  .container { padding: 0 calc(var(--spacing-unit) * 2); }
}

/* Header */
.header {
  background-color: var(--primary-black);
  color: var(--white);
  padding: calc(var(--spacing-unit) * 2) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--spacing-unit) * 3);
}

.logo-image {
  height: 50px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: calc(var(--spacing-unit) * 4);
}

.nav-link {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  padding: calc(var(--spacing-unit) * 1) 0;
  position: relative;
  transition: opacity 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  opacity: 0.8;
  transform: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.header-info {
  display: flex;
  gap: calc(var(--spacing-unit) * 3);
  margin-left: auto;
}

.info-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1);
  font-size: 0.95rem;
}

.order-now-btn {
  background-color: var(--white);
  color: var(--primary-black);
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: calc(var(--spacing-unit) * 2);
}

.order-now-btn:hover {
  background-color: var(--primary-gray-light);
  color: var(--white);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--white);
  padding: calc(var(--spacing-unit) * 1);
}

@media (max-width: 1100px) {
  .header-info { display: none; }
}

@media (max-width: 768px) {
  .header-content { flex-wrap: wrap; }
  .mobile-menu-btn { display: block; }
  .order-now-btn {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: calc(var(--spacing-unit) * 2);
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: calc(var(--spacing-unit) * 2);
    order: 4;
  }
  .nav-open { display: flex; }
  .nav-link {
    padding: calc(var(--spacing-unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .logo-image { height: 40px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(assets/img/hero-pizza.webp);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
  padding: calc(var(--spacing-unit) * 10) 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(26, 26, 26, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: calc(var(--spacing-unit) * 3);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: calc(var(--spacing-unit) * 5);
  opacity: 0.95;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-button {
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 5);
  background-color: var(--white);
  color: var(--primary-black);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1);
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 2px solid var(--white);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-button:hover {
  background-color: var(--primary-black);
  color: var(--white);
  border-color: var(--white);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    padding: calc(var(--spacing-unit) * 6) 0;
    background-attachment: scroll;
  }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-button { justify-content: center; }
}

/* Menu Section (Category Cards) */
.menu-section {
  padding: calc(var(--spacing-unit) * 10) 0;
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto calc(var(--spacing-unit) * 6);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.menu-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.menu-card-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.1);
}

.menu-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 3);
  display: flex;
  align-items: flex-end;
}

.menu-card-title {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.loading {
  text-align: center;
  padding: calc(var(--spacing-unit) * 8) 0;
  font-size: 1.2rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .menu-section {
    padding: calc(var(--spacing-unit) * 6) 0;
  }
  .menu-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 2);
  }
  .menu-card-title { font-size: 1.5rem; }
}

/* Menu Items Section */
.menu-items-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.category-section {
  margin-bottom: 80px;
  scroll-margin-top: 100px;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 16px;
}

.category-note {
  text-align: center;
  color: #666;
  font-size: 1rem;
  line-height: 150%;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.menu-item-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.menu-item-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
}

.menu-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-black);
  white-space: nowrap;
}

.menu-item-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 150%;
  margin: 0;
}

@media (max-width: 768px) {
  .menu-items-section { padding: 48px 0; }
  .category-section { margin-bottom: 48px; }
  .category-title { font-size: 2rem; }
  .menu-items-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .menu-item-card { padding: 20px; }
  .menu-item-name, .menu-item-price { font-size: 1.125rem; }
}

/* Features Section */
.features-section {
  padding: calc(var(--spacing-unit) * 10) 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 4);
  margin-top: calc(var(--spacing-unit) * 6);
}

.feature-card {
  text-align: center;
  padding: calc(var(--spacing-unit) * 4);
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: var(--bg-light);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  background: var(--primary-black);
  color: var(--white);
  border-radius: 50%;
  margin: 0 auto calc(var(--spacing-unit) * 3);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.feature-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .features-section {
    padding: calc(var(--spacing-unit) * 6) 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 3);
  }
  .feature-icon {
    width: 80px;
    height: 80px;
  }
  .feature-icon svg {
    width: 36px;
    height: 36px;
  }
}

/* Footer */
.footer {
  background-color: var(--primary-black);
  color: var(--white);
}

.footer-main {
  padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 6);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: calc(var(--spacing-unit) * 3);
  font-weight: 700;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.social-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 50%;
  color: var(--primary-black);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-gray-light);
  color: var(--white);
  transform: translateY(-4px);
}

.footer-info-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.footer-info-item {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-info-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--white);
}

.footer-info-item a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-info-item a:hover {
  color: var(--white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: calc(var(--spacing-unit) * 1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: calc(var(--spacing-unit) * 3) 0;
  background-color: var(--white);
}

.footer-bottom p {
  text-align: center;
  color: var(--primary-black);
  margin: 0;
}

.footer-bottom a {
  color: var(--primary-black);
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #f69f42;
}

.ordertiger-link {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 1);
}

.ordertiger-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .footer-main {
    padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 4);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: calc(var(--spacing-unit) * 4);
  }
  .footer-heading { font-size: 1.25rem; }
}

/* Added in the conversion */

/* The header nav items were <button>s and are now links: keep the button's
   line height and centred text so they sit exactly where they did. */
a.nav-link {
  line-height: normal;
  text-align: center;
}

/* script.js swaps the menu and close icons with the hidden attribute. */
.mobile-menu-btn svg[hidden] {
  display: none;
}
