/* Custom CSS for Donatos Pizza Website */
:root {
  --brand-primary: #3070b8;
  --brand-dark-blue: #0d2d52;
  --brand-text: #212529;
  --brand-light: #f8f9fa;
  --brand-accent: #ffc107;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--brand-light);
  color: var(--brand-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Utility Classes */
.text-brand-primary {
  color: var(--brand-primary);
}

.text-brand-dark-blue {
  color: var(--brand-dark-blue);
}

.text-brand-text {
  color: var(--brand-text);
}

.text-brand-light {
  color: var(--brand-light);
}

.text-brand-accent {
  color: var(--brand-accent);
}

.bg-brand-primary {
  background-color: var(--brand-primary);
}

.bg-brand-dark-blue {
  background-color: var(--brand-dark-blue);
}

.bg-brand-text {
  background-color: var(--brand-text);
}

.bg-brand-light {
  background-color: var(--brand-light);
}

.bg-brand-accent {
  background-color: var(--brand-accent);
}

.bg-white {
  background-color: #ffffff;
}

.text-white {
  color: #ffffff;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Layout */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-grow {
  flex-grow: 1;
}

.grid {
  display: grid;
}

/* Header Styles */
.header {
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .header-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .header-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.logo {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-primary);
  display: flex;
  align-items: center;  
  text-decoration: none;
}

.logo-emoji {
  font-size: 2.25rem;
  margin-right: 0.5rem;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
    margin-left: 2.5rem;
  }
  
  .nav-links {
    display: flex;
    align-items: baseline;
    gap: 1rem;
  }
  
  .nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
  }
  
  .nav-link:hover {
    background-color: var(--brand-light);
    color: var(--brand-primary);
  }
  
  .nav-link.active {
    background-color: var(--brand-primary);
    color: white;
  }
}

.mobile-menu-button {
  background-color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: white;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu-button:hover {
  color: white;
  background-color: var(--brand-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  padding: 0.5rem 0.5rem 0.75rem 0.5rem;
}

@media (max-width: 767px) {
  .mobile-menu.open {
    display: block;
  }
}

.mobile-menu-links {
  padding: 0.5rem 0.75rem 0.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav-link:hover {
  background-color: var(--brand-light);
  color: var(--brand-primary);
}

.mobile-nav-link.active {
  background-color: var(--brand-primary);
  color: white;
}

/* Main Content */
main {
  flex-grow: 1;
}

/* Hero Section */
.hero {
  background-color: #ffffff;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

a.hero-button.mt-8 {
    margin-bottom: 40px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: white;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: white;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6rem;
  }
}

.hero-title span {
  color: var(--brand-accent);
}

.hero-description {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: #e5e7eb;
}

.hero-button {
  margin-top: 2.5rem;
  display: inline-block;
  background-color: var(--brand-primary);
  color: white;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 0.375rem;
  font-size: 1.125rem;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.hero-button:hover {
  opacity: 0.9;
}

/* Special Offer Section */
.offer-section {
  background-color: var(--brand-dark-blue);
  color: white;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.offer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .offer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.offer-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: center;
}

@media (min-width: 768px) {
  .offer-title {
    font-size: 3.75rem;
    text-align: left;
  }
}

.offer-title span {
  color: var(--brand-accent);
}

.offer-description {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .offer-description {
    text-align: left;
  }
}

.offer-button {
  background-color: var(--brand-accent);
  color: var(--brand-dark-blue);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  display: inline-block;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.offer-button:hover {
  opacity: 0.9;
}

/* Section Titles */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--brand-text);
  text-align: left;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #4b5563;
  text-align: left;
}

/* Pizza Cards */
.pizza-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pizza-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .pizza-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.pizza-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease;
}

.pizza-card:hover {
  transform: translateY(-0.5rem);
}

.pizza-image {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.pizza-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pizza-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 0.5rem;
}

.pizza-description {
  color: #4b5563;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.pizza-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.pizza-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text);
}

.pizza-button {
  background-color: var(--brand-primary);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.pizza-button:hover {
  opacity: 0.9;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: #e5e7eb;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.testimonial-card {
  background-color: white;
  padding: 2rem;
}

.testimonial-quote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brand-text);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About Section */
.about-image {
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  height: auto;
}

.about-content {
  margin-top: 2.5rem;
}

@media (min-width: 1024px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .about-content {
    margin-top: 0;
  }
  
  .about-grid-reverse .about-image {
    order: 2;
  }
  
  .about-grid-reverse .about-content {
    order: 1;
  }
}

.about-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-text);
}

.about-description {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: #4b5563;
}

/* Menu Page */
.menu-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: white;
}

.menu-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-text);
  text-align: center;
}

@media (min-width: 640px) {
  .menu-title {
    font-size: 3rem;
  }
}

.menu-subtitle {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: #4b5563;
  text-align: center;
}

.menu-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .menu-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.menu-column {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.menu-category {
  margin-bottom: 2rem;
}

.menu-category-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 2rem;
}

.menu-images {
  display: none;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .menu-images {
    display: flex;
  }
}

.menu-image {
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Contact Page */
.contact-page {
  background-color: var(--brand-light);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-text);
  text-align: center;
}

@media (min-width: 640px) {
  .contact-title {
    font-size: 3rem;
  }
}

.contact-subtitle {
  margin-top: 1rem;
  font-size: 1.25rem;
  color: #4b5563;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-card {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.contact-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  color: #374151;
}

.contact-link {
  color: var(--brand-primary);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(48, 112, 184, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(48, 112, 184, 0.1);
}

.form-button {
  width: 100%;
  background-color: var(--brand-primary);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
}

.form-button:hover {
  opacity: 0.9;
}

.form-success {
  text-align: center;
  padding: 2rem;
  background-color: #dcfce7;
  color: #166534;
  border-radius: 0.375rem;
}

.form-success-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--brand-dark-blue);
  color: white;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-contact {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  margin-bottom: 0.5rem;
}

.footer-link a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link a:hover {
  color: #93c5fd;
}

.form-group-footer {
  margin-bottom: 1rem;
}

.form-input-footer {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: #1f2937;
  border: 1px solid #4b5563;
  border-radius: 0.375rem;
  color: white;
  font-size: 1rem;
}

.form-input-footer:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(48, 112, 184, 0.1);
}

form#footer-feedback-form input {
    margin-bottom: 10px;
}

.form-button-footer {
  width: 100%;
  background-color: var(--brand-primary);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.form-button-footer:hover {
  opacity: 0.9;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-bottom-link {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover {
  color: #93c5fd;
}

.footer-copyright {
  margin-top: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--brand-dark-blue);
  color: white;
  padding: 1.5rem;
  display: none;
  z-index: 100;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-content {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cookie-banner-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.cookie-banner-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.cookie-banner-button {
  background-color: var(--brand-primary);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.cookie-banner-button:hover {
  opacity: 0.9;
}

/* Privacy Policy and Terms of Service */
.legal-page {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: white;
}

.legal-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-text);
  text-align: center;
}

@media (min-width: 640px) {
  .legal-title {
    font-size: 3rem;
  }
}

.legal-content {
  margin-top: 3rem;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 1rem;
}

.legal-text {
  color: #374151;
  margin-bottom: 1rem;
}

.legal-list {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-list-item {
  margin-bottom: 0.5rem;
  color: #374151;
}