/* ============================================
   Carniceria Gonzales — Styles
   Clean minimalist · Forest green + off-white
   ============================================ */

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

:root {
  --color-green-dark: #1B4332;
  --color-green-mid: #2D6A4F;
  --color-green-light: #40916C;
  --color-warm: #D4A373;
  --color-cream: #FAF8F5;
  --color-off-white: #F5F2ED;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-line: #E8E4DF;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-green-dark);
  border: 1.5px solid var(--color-green-dark);
  padding: 4px 8px;
  letter-spacing: 0.02em;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-green-dark);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-green-dark);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-green-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-green-dark);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-link {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  transition: color 0.25s ease;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: var(--color-green-dark);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    var(--color-green-dark) 0%,
    var(--color-green-mid) 35%,
    var(--color-green-light) 65%,
    var(--color-warm) 100%
  );
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(27, 67, 50, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 163, 115, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 120px 24px 80px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--color-white);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Section Divider
   ============================================ */
.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.divider-line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-line);
}

/* ============================================
   Section Shared
   ============================================ */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-green-mid);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-green-dark);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.lead {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 520px;
}

/* ============================================
   About
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 6/7;
}

.about-text {
  padding: 20px 0;
}

.about-text p {
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-green-dark);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-line);
}

/* ============================================
   Products
   ============================================ */
.products {
  padding: 120px 0;
  background: var(--color-off-white);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 72px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--color-white);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(27, 67, 50, 0.1);
}

.product-card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-body {
  padding: 28px 28px 32px;
}

.product-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-green-dark);
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   Location
   ============================================ */
.location {
  padding: 120px 0;
  background: var(--color-cream);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.location-item {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.location-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-green-mid);
}

.location-item strong {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 4px;
}

.location-item p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.location-item a {
  color: var(--color-green-mid);
  transition: color 0.25s ease;
}

.location-item a:hover {
  color: var(--color-green-dark);
}

.location-map {
  overflow: hidden;
  aspect-ratio: 7/5;
}

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

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--color-off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-method:hover {
  border-color: var(--color-green-mid);
  background: rgba(45, 106, 79, 0.03);
}

.contact-method svg {
  color: var(--color-green-mid);
  flex-shrink: 0;
}

.contact-method span {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-text);
}

.contact-form-wrapper {
  background: var(--color-white);
  padding: 48px;
  border: 1px solid var(--color-line);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.optional {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-green-mid);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

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

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(45, 106, 79, 0.06);
  border: 1px solid rgba(45, 106, 79, 0.2);
  color: var(--color-green-dark);
  font-size: 0.9375rem;
  font-weight: 400;
  margin-top: 8px;
}

.form-success svg {
  flex-shrink: 0;
  color: var(--color-green-mid);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-green-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .nav-logo-mark {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  display: inline-block;
  width: fit-content;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact p {
  font-size: 0.9375rem;
  font-weight: 300;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease;
}

.footer-contact a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .about-grid,
  .location-grid,
  .contact-grid {
    gap: 56px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    padding: 100px 20px 72px;
  }

  .hero-headline {
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    aspect-ratio: 4/3;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .products {
    padding: 80px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .location {
    padding: 80px 0;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .location-map {
    aspect-ratio: 16/9;
  }

  .contact {
    padding: 80px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .about-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
