/* Base Styles */
:root {
  --primary-color: #e63946;
  --secondary-color: #457b9d;
  --dark-color: #1d3557;
  --light-color: #f1faee;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 5px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --body-font: 'Roboto', sans-serif;
  --heading-font: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #ffffff;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #c1121f;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

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

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

.font-size-adjustment .decrease-font {
  font-size: 90%;
}

.font-size-adjustment .increase-font {
  font-size: 110%;
}

section {
  padding: 4rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #c1121f;
  border-color: #c1121f;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #2a6f97;
  border-color: #2a6f97;
  color: white;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--primary-color);
  text-decoration: none;
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
}

.font-size-control {
  display: flex;
  align-items: center;
}

#decrease-font {
  background-color: var(--light-gray);
  color: var(--dark-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

#decrease-font:hover {
  background-color: var(--gray-color);
  color: white;
}

/* Hero Section */
.hero {
  background-color: var(--light-color);
  padding: 5rem 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Features Section */
.features {
  text-align: center;
  background-color: white;
}

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

.feature-card {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  background-color: white;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--light-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

/* Popular Pizzas Section */
.popular-pizzas {
  background-color: var(--light-color);
  text-align: center;
}

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

.pizza-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.pizza-card:hover {
  transform: translateY(-5px);
}

.pizza-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pizza-card h3 {
  margin: 1rem 0 0.5rem;
  padding: 0 1.5rem;
}

.pizza-card p {
  color: var(--gray-color);
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.pizza-card .btn {
  margin: 0 1.5rem 1.5rem;
}

/* Latest Blog Section */
.latest-blog {
  text-align: center;
}

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

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card h3 {
  margin: 1rem 0 0.5rem;
  padding: 0 1.5rem;
}

.blog-card p {
  color: var(--gray-color);
  padding: 0 1.5rem;
  margin-bottom: 0.5rem;
}

.read-more {
  display: inline-block;
  padding: 0 1.5rem 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.blog-cta {
  margin-top: 2rem;
}

/* Interesting Facts Section */
.interesting-facts {
  background-color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

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

.fact-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.fact-card:hover {
  transform: translateY(-5px);
}

.fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--light-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.fact-icon svg {
  width: 30px;
  height: 30px;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-col p, .footer-col address {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  font-style: normal;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
  text-decoration: none;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-color);
  color: white;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
}

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}

.cookie-content a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.cookie-content a:hover {
  color: white;
}

/* Blog Page Styles */
.blog-header {
  background-color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

.blog-posts {
  padding: 4rem 0;
}

.blog-post {
  margin-bottom: 4rem;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.post-content h2 {
  margin-bottom: 1rem;
}

.post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Menu Page Styles */
.menu-header {
  background-color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

.menu-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.filter-btn {
  background-color: white;
  color: var(--dark-color);
  border: 1px solid var(--light-gray);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.menu-items {
  padding: 4rem 0;
}

.menu-category {
  margin-bottom: 3rem;
}

.menu-category h2 {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.menu-category h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

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

.menu-item {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-item-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-item-info {
  padding: 1.5rem;
}

.menu-item-info h3 {
  margin-bottom: 0.5rem;
}

.menu-item-info p {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

.menu-item-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.size {
  background-color: var(--light-color);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 600;
}

.order-info {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.order-details, .delivery-info {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.order-details ul {
  margin-top: 1.5rem;
}

.order-details ul li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.order-details ul li svg {
  margin-right: 1rem;
  color: var(--primary-color);
}

.delivery-info ul {
  margin: 1.5rem 0;
  list-style: disc;
  padding-left: 1.5rem;
}

.delivery-info ul li {
  margin-bottom: 0.5rem;
}

/* About Page Styles */
.about-header {
  background-color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

.our-story {
  padding: 4rem 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: center;
}

.story-image img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.our-mission {
  background-color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

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

.mission-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-5px);
}

.mission-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--light-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.mission-icon svg {
  width: 30px;
  height: 30px;
}

.our-team {
  text-align: center;
  padding: 4rem 0;
}

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

.team-member {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  color: var(--gray-color);
  padding: 0 1.5rem;
  margin-bottom: 1.5rem;
}

.team-member p:nth-child(3) {
  font-weight: 600;
  color: var(--primary-color);
}

.achievements {
  background-color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

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

.achievement-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.achievement-card:hover {
  transform: translateY(-5px);
}

.achievement-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--light-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.achievement-icon svg {
  width: 30px;
  height: 30px;
}

.testimonials {
  text-align: center;
  padding: 4rem 0;
}

.testimonial-slider {
  margin-top: 2rem;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  padding-bottom: 1rem;
}

.testimonial {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
  scroll-snap-align: start;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin: 0 auto;
}

.testimonial-content {
  position: relative;
  padding: 0 1rem;
}

.testimonial-content::before {
  content: '\201C';
  font-size: 4rem;
  position: absolute;
  left: -0.5rem;
  top: -2rem;
  color: rgba(0, 0, 0, 0.1);
}

.testimonial-author {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--gray-color);
}

/* Contact Page Styles */
.contact-header {
  background-color: var(--light-color);
  text-align: center;
  padding: 4rem 0;
}

.contact-info {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-details {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  margin-right: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--light-color);
  border-radius: 50%;
  color: var(--primary-color);
}

.contact-text h3 {
  margin-bottom: 0.5rem;
}

.contact-text p {
  margin-bottom: 0.25rem;
}

.note {
  font-size: 0.875rem;
  color: var(--gray-color);
}

.social-contact h3 {
  margin-bottom: 1rem;
}

.contact-form-container {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 0.5rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

.location {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 400px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hours, .delivery-areas {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.hours ul {
  margin-top: 1rem;
}

.hours ul li {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
}

.hours ul li span {
  font-weight: 600;
}

.delivery-areas p {
  margin: 1rem 0 1.5rem;
}

.faq {
  padding: 4rem 0;
}

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

.faq-item {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

.faq-item h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message {
  text-align: center;
}

.thank-you-message svg {
  color: var(--success-color);
  margin-bottom: 1rem;
}

.thank-you-message h2 {
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container, .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-image {
    order: 0;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .story-content {
    order: 1;
  }

  .story-image {
    order: 0;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 1rem;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  nav ul li {
    margin: 0 0.75rem;
  }

  .font-size-control {
    margin-top: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .post-image img {
    height: 250px;
  }

  .menu-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    width: 100%;
    max-width: 250px;
  }

  .contact-method {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .social-contact {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}
