/* 
 * Eliceo Verga Gorda - Premium Meats Website
 * Main Stylesheet
 * SEO Optimized with Preload
 */

/* Variables */
:root {
  --primary: #8B0000;
  --primary-dark: #590000;
  --primary-light: #B22222;
  --accent: #D2691E;
  --accent-light: #F5DEB3;
  --text-dark: #333333;
  --text-light: #777777;
  --white: #FFFFFF;
  --off-white: #F9F9F9;
  --light-bg: #F5F5F5;
  --border: #E0E0E0;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #8B0000, #B22222);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

h1 {
  font-size: 5rem;
}

h1 span {
  display: block;
  color: var(--accent);
}

h2 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2.8rem;
  color: var(--primary-dark);
}

h4 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 2rem;
}

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

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

ul {
  list-style: none;
}

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

section {
  padding: 10rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: var(--text-light);
  margin-top: -1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.4rem;
  box-shadow: 0 4px 6px rgba(139, 0, 0, 0.2);
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(139, 0, 0, 0.3);
}

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

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

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

.btn-large {
  padding: 1.8rem 3.6rem;
  font-size: 1.6rem;
}

.text-link {
  position: relative;
  font-weight: 600;
  color: var(--primary);
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: right;
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--primary);
}

.logo svg {
  margin-right: 1rem;
}

.logo span {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.main-menu {
  display: flex;
  align-items: center;
}

.main-menu li {
  margin-left: 3rem;
}

.main-menu a {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.main-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

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

.main-menu a:hover::after {
  width: 100%;
}

.main-menu .btn {
  padding: 1rem 2rem;
  margin-left: 2rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 3rem;
  height: 2rem;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
  bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
#hero {
  background: var(--gradient);
  color: var(--white);
  padding: 20rem 0 12rem;
  text-align: center;
}

#hero h1, #hero p {
  color: var(--white);
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

#hero p {
  font-size: 2rem;
  margin-bottom: 4rem;
}

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

/* About Section */
#about {
  background-color: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 0 0 30%;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 4.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--text-light);
}

.about-image {
  position: relative;
  height: 100%;
  min-height: 40rem;
  background: linear-gradient(rgba(139, 0, 0, 0.8), rgba(139, 0, 0, 0.8)), url('favicon.svg') center center/cover;
  border-radius: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quote-box {
  background: var(--white);
  padding: 3rem;
  width: 80%;
  border-radius: 0.6rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.quote-box p {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

.quote-box span {
  font-size: 1.6rem;
  color: var(--text-light);
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 3rem;
  z-index: 1;
}

.product-content {
  padding: 3rem;
}

.product-content h3 {
  margin-bottom: 1.5rem;
}

.product-content p {
  margin-bottom: 2.5rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-features span {
  background-color: var(--light-bg);
  padding: 0.5rem 1.5rem;
  border-radius: 3rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.cta-container {
  text-align: center;
}

/* Specialties Section */
#specialties {
  background-color: var(--off-white);
}

.specialty-tabs {
  background-color: var(--white);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab-controls {
  display: flex;
  background-color: var(--primary);
}

.tab-button {
  flex: 1;
  padding: 2rem 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  opacity: 0.8;
}

.tab-button:hover {
  opacity: 1;
}

.tab-button.active {
  background-color: var(--white);
  color: var(--primary);
  opacity: 1;
}

.tab-content {
  padding: 5rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.feature-list {
  margin-top: 2.5rem;
  padding-left: 2rem;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  background-color: var(--accent);
  border-radius: 50%;
}

/* Entertainment/Resources Section */
#entertainment {
  background-color: var(--white);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.resource-item {
  background-color: var(--light-bg);
  padding: 3rem;
  border-radius: 0.8rem;
  transition: var(--transition);
}

.resource-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow);
}

.resource-links li {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.resource-links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.resource-links a {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Contact Section */
#contact {
  background-color: var(--light-bg);
}

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

.contact-form {
  background-color: var(--white);
  padding: 4rem;
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.form-group textarea {
  min-height: 15rem;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border);
}

.hours-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

address {
  font-style: normal;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  text-align: center;
}

.footer-logo p {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--white);
}

.footer-logo .tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-top: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-nav h4 {
  color: var(--white);
  margin-bottom: 2rem;
}

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

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
}

.footer-nav ul li a:hover {
  color: var(--white);
}

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

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

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

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

.footer-bottom p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  html {
    font-size: 56.25%; /* 9px = 1rem */
  }
  
  .about-content {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 50%; /* 8px = 1rem */
  }
  
  section {
    padding: 8rem 0;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 40rem;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 8rem 3rem 3rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .main-menu.active {
    right: 0;
  }
  
  .main-menu li {
    margin: 0 0 2rem;
  }
  
  .main-menu a {
    display: block;
    padding: 1rem 0;
    text-align: center;
  }
  
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    min-height: 30rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .hero-buttons .btn {
    width: 80%;
  }
  
  .tab-controls {
    flex-wrap: wrap;
  }
  
  .tab-button {
    flex: 1 0 50%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 3.8rem;
  }
  
  h2 {
    font-size: 3.2rem;
  }
  
  .section-header {
    margin-bottom: 4rem;
  }
  
  .tab-content {
    padding: 3rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    max-width: 100%;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tab-button {
    flex: 1 0 100%;
  }
}
