/*
 * Eat More Meat Point — Global Stylesheet
 *
 * This stylesheet defines the complete visual system for the Eat More Meat Point
 * website. It includes a sensible colour palette, typography settings,
 * responsive utility classes and component styling. When updating this file
 * please maintain the structure and comments for maintainability.
 */

/* CSS Reset and base box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Colour palette variables */
:root {
  --color-primary: #b71c1c; /* deep burgundy for primary accents */
  --color-secondary: #e53935; /* bright red for highlights */
  --color-light: #ffffff; /* white for backgrounds */
  --color-dark: #222222; /* dark text */
  --color-muted: #f7f7f7; /* light grey backgrounds */
  --color-border: #e0e0e0; /* light grey border */
  --color-whatsapp: #25d366; /* official WhatsApp green */
  --color-success: #2e7d32;
  --color-warning: #fbc02d;
  --transition-speed: 0.3s;
}

/* Typography system */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Open+Sans:wght@400;600&display=swap');

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

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

a:hover,
a:focus {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  border-radius: 0.25rem;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed), box-shadow var(--transition-speed);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-secondary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-light);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background-color: #1ebd5d;
}

.section {
  padding: 4rem 0;
}

.section.bg-muted {
  background-color: var(--color-muted);
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--color-light);
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

nav {
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list li a {
  font-weight: 600;
  color: var(--color-dark);
}

.nav-list li a:hover,
.nav-list li a:focus {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  margin-bottom: 4px;
  transition: transform var(--transition-speed);
}

/* Mobile navigation */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-light);
    flex-direction: column;
    width: 200px;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: 0 0 4px 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-out;
  }
  .nav-list.open {
    max-height: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  .nav-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-list li:last-child {
    border-bottom: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-list li .btn-whatsapp {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* Hero section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-light);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

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

.hero h1 {
  color: var(--color-light);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--color-light);
  margin-bottom: 2rem;
}

/* Trust highlights */
.trust-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-highlights .highlight {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-light);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.trust-highlights .highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.trust-highlights .highlight i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.product-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

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

.product-card .product-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.product-card h4 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.product-card p {
  flex: 1;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.product-card .price {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-secondary);
}

.product-card .btn-whatsapp {
  width: 100%;
  margin-top: auto;
}

/* How ordering works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step {
  padding: 1rem;
}

.step i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.step h5 {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: 0.5rem;
  position: relative;
  font-style: italic;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.testimonial::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--color-secondary);
  position: absolute;
  top: -10px;
  left: 10px;
}

.testimonial cite {
  display: block;
  font-style: normal;
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.blog-card img {
  height: 180px;
  object-fit: cover;
}

.blog-card .blog-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.blog-card .meta {
  font-size: 0.75rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.blog-card h4 {
  margin-bottom: 0.5rem;
}

.blog-card p {
  flex: 1;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-card a.read-more {
  align-self: flex-start;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
}

/* Blog full article content
   Hidden by default; height expands via JavaScript when "Read more" is toggled */
.full-article {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out;
  font-size: 0.875rem;
  color: var(--color-dark);
}

.full-article.open {
  max-height: 1000px;
  margin-top: 1rem;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 0;
}

.faq-item h4 i {
  transition: transform var(--transition-speed);
}

.faq-item.open h4 i {
  transform: rotate(180deg);
}

.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease-out;
  font-size: 0.875rem;
  color: var(--color-dark);
  padding-right: 1rem;
}

.faq-item.open .faq-content {
  max-height: 200px;
  padding-top: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 3rem 1rem 1rem;
}

.site-footer a {
  color: var(--color-whatsapp);
}

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

.site-footer h3,
.site-footer h4 {
  margin-bottom: 0.75rem;
  color: var(--color-light);
}

.site-footer ul {
  list-style: none;
  line-height: 1.8;
}

.site-footer li i {
  margin-right: 0.5rem;
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-whatsapp);
  color: var(--color-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color var(--transition-speed);
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
  background-color: #1ebd5d;
}

/* Reveal animations for scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Form styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  align-self: flex-start;
}

/* Contact list */
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list li i {
  color: var(--color-primary);
  width: 20px;
}

/* Map */
.map-wrapper {
  width: 100%;
  height: 300px;
  margin-top: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Media queries for larger screens */
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  .hero { min-height: 80vh; }
}