/*
Theme Name: Â-Hui Cafés Especiais
Description: Tema WordPress para loja de cafés especiais com design moderno e responsivo
Author: Seu Nome
Version: 1.0
Text Domain: ahui-cafe
*/

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

:root {
  /* Â-Hui Coffee Brand Colors - Earthy and Warm */
  --background: hsl(35, 20%, 98%);
  --foreground: hsl(25, 20%, 20%);
  --card: hsl(35, 30%, 96%);
  --card-foreground: hsl(25, 20%, 25%);
  --popover: hsl(35, 20%, 98%);
  --popover-foreground: hsl(25, 20%, 25%);
  --primary: hsl(25, 25%, 35%);
  --primary-foreground: hsl(35, 30%, 95%);
  --secondary: hsl(30, 15%, 85%);
  --secondary-foreground: hsl(25, 20%, 30%);
  --muted: hsl(35, 20%, 90%);
  --muted-foreground: hsl(25, 15%, 50%);
  --accent: hsl(20, 30%, 65%);
  --accent-foreground: hsl(35, 30%, 95%);
  --destructive: hsl(0, 70%, 50%);
  --destructive-foreground: hsl(35, 30%, 95%);
  --border: hsl(30, 20%, 85%);
  --input: hsl(30, 20%, 90%);
  --ring: hsl(25, 25%, 35%);
  
  /* Coffee Brand Specific Colors */
  --coffee-primary: hsl(25, 25%, 35%);
  --coffee-light: hsl(30, 20%, 55%);
  --coffee-cream: hsl(35, 30%, 90%);
  --coffee-warm: hsl(20, 30%, 65%);
  
  /* Transitions */
  --transition-all: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius: 0.5rem;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

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

.site-logo img {
  height: 3rem;
  width: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--coffee-primary);
  text-decoration: none;
}

.main-navigation {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-navigation a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-all);
}

.main-navigation a:hover,
.main-navigation a.current {
  color: var(--coffee-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--foreground);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 80vh;
  background: linear-gradient(135deg, var(--coffee-primary) 0%, var(--coffee-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-all);
  gap: 0.5rem;
}

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

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--accent);
}

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

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background-color: var(--coffee-cream);
  background: linear-gradient(135deg, var(--coffee-cream) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition-all);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background: var(--coffee-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Products Section */
.products-section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  font-size: 1.125rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Product Card */
.product-card {
  background: var(--card);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-all);
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.product-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--coffee-primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.product-content {
  padding: 1.5rem;
}

.product-origin {
  color: var(--coffee-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.product-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--coffee-primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--coffee-warm);
}

/* Education Section */
.education-section {
  padding: 5rem 0;
  background-color: var(--muted);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.education-card {
  background: var(--card);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-all);
}

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

.education-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.education-card-content {
  padding: 1.5rem;
}

.education-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.education-card-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

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

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

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--coffee-cream);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--coffee-cream);
}

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

/* WooCommerce Integration */
.woocommerce-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.woocommerce .single-product .product-images {
  margin-bottom: 2rem;
}

.woocommerce .product-summary {
  padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .main-navigation.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .education-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* WordPress specific styles */
.wp-block-group {
  margin-bottom: 2rem;
}

.wp-block-image {
  margin-bottom: 1rem;
}

.wp-block-image img {
  border-radius: var(--radius);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.1);
}