/* Base Styles and Variables */
:root {
  /* Main Theme: Light */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f5f2;
  --bg-accent: #ffe9dc;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --primary-color: #e74c3c;
  --primary-hover: #c0392b;
  --secondary-color: #f39c12;
  --border-color: #e0e0e0;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 16px;
  --transition: all 0.3s ease;
}

/* Dark Theme Variables */
.dark-theme {
  --bg-primary: #222222;
  --bg-secondary: #333333;
  --bg-accent: #444444;
  --text-primary: #f1f1f1;
  --text-secondary: #bbbbbb;
  --border-color: #555555;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Pizza Theme Variables */
.pizza-theme {
  --bg-primary: #fff9e6;
  --bg-secondary: #ffe9dc;
  --bg-accent: #f8d7a4;
  --text-primary: #774936;
  --text-secondary: #a67c52;
  --primary-color: #c03a2b;
  --primary-hover: #a52a1a;
  --secondary-color: #d35400;
  --border-color: #e2cbb5;
}

/* Reset & Base Elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h1 {
  font-size: 4.8rem;
  font-weight: 700;
}

h2 {
  font-size: 3.6rem;
  font-weight: 700;
}

h3 {
  font-size: 2.4rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-hover);
}

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Theme Selector */
.theme-selector {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background-color: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: var(--rounded-md);
  z-index: 1000;
  box-shadow: var(--box-shadow);
  display: flex;
  gap: 0.5rem;
}

.theme-btn {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  border-radius: var(--rounded-sm);
  cursor: pointer;
  transition: var(--transition);
}

.theme-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.theme-btn.active {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 1.2rem 2.4rem;
  border-radius: var(--rounded-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.4rem;
}

.btn:hover {
  background-color: var(--primary-hover);
  color: var(--text-light);
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
}

/* Header & Navigation */
header {
  background-color: var(--bg-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

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

.logo img {
  height: 5rem;
  width: auto;
}

nav ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  list-style: none;
}

nav a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  border-radius: var(--rounded-sm);
}

nav a:hover, nav a.active {
  color: var(--primary-color);
  background-color: var(--bg-accent);
}

/* Hero Section */
.hero {
  background-color: var(--bg-secondary);
  padding: 10rem 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
}

.hero h1 {
  font-size: 5.6rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.hero p {
  font-size: 2rem;
  max-width: 70rem;
  margin: 0 auto 3rem;
}

/* Features Section */
.features {
  padding: 8rem 0;
  background-color: var(--bg-primary);
}

.features .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 4rem;
}

.feature {
  text-align: center;
  padding: 3rem;
  border-radius: var(--rounded-lg);
  background-color: var(--bg-secondary);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.feature-icon {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-accent);
  border-radius: 50%;
  color: var(--primary-color);
}

.feature h3 {
  margin-bottom: 1.5rem;
}

/* Timeline Section */
.timeline {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
}

.timeline h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.timeline-items {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 6rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.timeline-date {
  position: absolute;
  left: calc(50% + 3rem);
  top: 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 0.5rem 1.5rem;
  border-radius: var(--rounded-md);
  font-weight: 600;
}

.timeline-content {
  padding: 3rem;
  background-color: var(--bg-primary);
  border-radius: var(--rounded-md);
  box-shadow: var(--box-shadow);
  width: calc(50% - 5rem);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-date {
  left: auto;
  right: calc(50% + 3rem);
}

.timeline-content h3 {
  margin-bottom: 1rem;
}

.timeline-content p {
  margin-bottom: 0;
}

/* Blog Preview Section */
.blog-preview {
  padding: 8rem 0;
  background-color: var(--bg-primary);
}

.blog-preview h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 4rem;
  margin-bottom: 5rem;
}

.blog-post {
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--bg-secondary);
  transition: var(--transition);
}

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

.blog-image {
  height: 20rem;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-post:hover .blog-image img {
  transform: scale(1.05);
}

.blog-post h3 {
  padding: 2rem 2rem 1rem;
  font-size: 2rem;
}

.blog-post p {
  padding: 0 2rem;
  color: var(--text-secondary);
}

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

.blog-preview .btn {
  display: block;
  margin: 0 auto;
  max-width: 20rem;
}

/* Blog Grid Page */
.page-header {
  background-color: var(--bg-secondary);
  padding: 8rem 0 4rem;
  text-align: center;
}

.blog-grid {
  padding: 6rem 0;
}

.blog-grid .blog-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 4rem;
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--bg-secondary);
}

@media (min-width: 768px) {
  .blog-grid .blog-card {
    flex-direction: row;
    align-items: center;
  }
  
  .blog-grid .blog-image {
    width: 40%;
    height: 30rem;
  }
  
  .blog-grid .blog-content {
    width: 60%;
    padding: 3rem;
  }
}

.blog-grid .blog-content {
  padding: 2rem;
}

.blog-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.4rem;
}

.blog-grid .blog-content h2 {
  margin-bottom: 1rem;
  font-size: 2.8rem;
}

/* Blog Post Single */
.blog-post-single {
  padding: 6rem 0;
}

.post-header {
  margin-bottom: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.post-header h1 {
  margin-bottom: 1.5rem;
}

.post-meta {
  color: var(--text-secondary);
  font-size: 1.6rem;
}

.featured-image {
  margin-bottom: 4rem;
  border-radius: var(--rounded-md);
  overflow: hidden;
  max-height: 50rem;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  max-width: 80rem;
  margin: 0 auto;
}

.post-content h2 {
  margin-top: 4rem;
  margin-bottom: 2rem;
}

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

.post-content p, .post-content ul, .post-content ol {
  margin-bottom: 2rem;
}

.post-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 2rem;
  margin: 3rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.post-nav-prev, .post-nav-next {
  max-width: 45%;
}

.post-navigation span {
  display: block;
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.post-navigation a {
  font-weight: 600;
  font-size: 1.8rem;
}

/* Related Posts */
.related-posts {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.related-posts .blog-posts {
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  margin-bottom: 0;
}

/* About Page */
.about-story {
  padding: 8rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 992px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image {
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-text h2 {
  margin-bottom: 3rem;
}

.about-values {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
}

.about-values h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 4rem;
}

.value-item {
  text-align: center;
  padding: 3rem;
  background-color: var(--bg-primary);
  border-radius: var(--rounded-md);
  box-shadow: var(--box-shadow);
}

.value-icon {
  width: 10rem;
  height: 10rem;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-accent);
  border-radius: 50%;
  color: var(--primary-color);
}

.team-section {
  padding: 8rem 0;
}

.team-section h2, .team-section .section-intro {
  text-align: center;
}

.section-intro {
  max-width: 70rem;
  margin: 0 auto 5rem;
  font-size: 1.8rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 4rem;
}

.team-member {
  text-align: center;
  background-color: var(--bg-secondary);
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.team-member img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.team-member h3 {
  margin: 2rem 0 0.5rem;
}

.team-member p {
  padding: 0 2rem;
  margin-bottom: 1rem;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 0 2rem;
}

.social-links a {
  width: 3.6rem;
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-accent);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.milestones {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
}

.milestones h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.cta-section {
  padding: 8rem 0;
  text-align: center;
  background-color: var(--bg-accent);
}

.cta-section h2 {
  margin-bottom: 2rem;
}

.cta-section p {
  max-width: 70rem;
  margin: 0 auto 3rem;
  font-size: 1.8rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Contact Page */
.contact-section {
  padding: 8rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6rem;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 4rem;
  font-size: 1.8rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-item {
  display: flex;
  gap: 2rem;
}

.contact-icon {
  width: 5rem;
  height: 5rem;
  min-width: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-accent);
  border-radius: 50%;
  color: var(--primary-color);
}

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

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

.contact-text .detail {
  font-size: 1.4rem;
  color: var(--text-secondary);
}

.contact-social {
  margin-top: 3rem;
}

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

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

.social-icons a {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

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

.contact-form-container {
  background-color: var(--bg-secondary);
  padding: 4rem;
  border-radius: var(--rounded-md);
  box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
  margin-bottom: 3rem;
}

.contact-form {
  display: grid;
  gap: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group label {
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--rounded-sm);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

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

.form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.form-checkbox input {
  width: 2rem;
  height: 2rem;
}

.map-section {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.map-container {
  border-radius: var(--rounded-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  max-height: 40rem;
}

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

.map-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
}

.faq-section {
  padding: 8rem 0;
  background-color: var(--bg-secondary);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40rem, 1fr));
  gap: 4rem;
}

.faq-item {
  background-color: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--rounded-md);
  box-shadow: var(--box-shadow);
}

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

.faq-item p {
  margin-bottom: 0;
}

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

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--bg-primary);
  padding: 4rem;
  border-radius: var(--rounded-md);
  max-width: 50rem;
  width: 90%;
  text-align: center;
  position: relative;
}

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

.thank-you-message {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 8rem 0 2rem;
  color: var(--text-primary);
}

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

.footer-logo img {
  height: 6rem;
  margin-bottom: 1.5rem;
}

.footer-links h3 {
  margin-bottom: 2rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-primary);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact h3 {
  margin-bottom: 2rem;
}

.footer-contact p {
  margin-bottom: 1rem;
}

.footer-contact .social-icons {
  margin-top: 2rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

.cookie-notice.show {
  display: block;
}

.cookie-content {
  padding: 2rem;
  max-width: 120rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
  }
  
  .cookie-content p {
    margin-bottom: 0;
    flex: 1;
  }
}

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

/* Media Queries */
@media (max-width: 991px) {
  html {
    font-size: 60%;
  }
  
  .timeline-items::before {
    left: 2rem;
  }
  
  .timeline-dot {
    left: 2rem;
  }
  
  .timeline-date {
    position: relative;
    left: 0;
    right: auto;
    top: auto;
    margin-bottom: 1.5rem;
    display: inline-block;
  }
  
  .timeline-content {
    width: auto;
    margin-left: 4rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 4rem;
  }
  
  .timeline-item:nth-child(odd) .timeline-date {
    right: auto;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 55%;
  }
  
  .hero h1 {
    font-size: 4.2rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 2rem;
  }
  
  .post-nav-prev, .post-nav-next {
    max-width: 100%;
  }
  
  .cookie-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 575px) {
  nav ul {
    gap: 1rem;
  }
  
  nav a {
    font-size: 1.4rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .contact-form-container {
    padding: 3rem 2rem;
  }
}
