/* =============================================
   Araxá Doces e Queijos — Main Styles
   ============================================= */

/* --- Variables --- */
:root {
  --color-primary: #8B4513;       /* Siena */
  --color-secondary: #F4A460;     /* Caramelo */
  --color-accent: #2E7D32;        /* Verde Minas */
  --color-bg: #FFF8F0;            /* Creme */
  --color-bg-alt: #FFF0E0;
  --color-text: #2C1810;          /* Marrom escuro */
  --color-text-light: #6B4C3B;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128C7E;
  --color-white: #FFFFFF;
  --color-gray-100: #F7F3EE;
  --color-gray-200: #EDE5DA;
  --color-gray-300: #D4C4B0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
  --shadow-md: 0 4px 20px rgba(44, 24, 16, 0.12);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.16);
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Tags --- */
.section-tag {
  display: inline-block;
  background: var(--color-gray-200);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 12px auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-color: var(--color-whatsapp);
}
.btn--whatsapp:hover {
  background: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(244, 164, 96, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(139, 69, 19, 0.08) 0%, transparent 60%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238B4513' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero__badge {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__title--accent {
  color: var(--color-primary);
  display: block;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.hero__cta {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  position: relative;
  z-index: 1;
}

/* --- SOBRE --- */
.sobre {
  padding: 100px 0;
  background: var(--color-white);
}

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

.sobre__text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}

.sobre__text p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.sobre__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-200);
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.sobre__image {
  position: relative;
}

.sobre__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.sobre__image-caption {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- PRODUTOS --- */
.produtos {
  padding: 100px 0;
  background: var(--color-bg);
}

.produtos h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 16px;
}

.produtos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.produto-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.produto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.produto-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.produto-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.produto-card:hover .produto-card__img img {
  transform: scale(1.05);
}

.produto-card__body {
  padding: 20px;
}

.produto-card__body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.produto-card__body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.produto-card__price {
  display: inline-block;
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.95rem;
}

.produtos__cta {
  text-align: center;
}

/* --- DIFERENCIAIS --- */
.diferenciais {
  padding: 100px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.diferenciais h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-white);
}

.diferenciais .section-tag {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
}

.diferenciais__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.dif-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.dif-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.dif-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.dif-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-white);
}

.dif-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* --- OCASIÕES --- */
.ocasioes {
  padding: 100px 0;
  background: var(--color-white);
}

.ocasioes h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 16px;
}

.ocasioes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.ocasiao-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
}

.ocasiao-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ocasiao-card:hover img {
  transform: scale(1.08);
}

.ocasiao-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.85) 0%, rgba(44, 24, 16, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

.ocasiao-card:hover .ocasiao-card__overlay {
  background: linear-gradient(to top, rgba(139, 69, 19, 0.9) 0%, rgba(139, 69, 19, 0.3) 60%, transparent 100%);
}

.ocasiao-card__overlay h3 {
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 6px;
}

.ocasiao-card__overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.ocasioes__cta {
  text-align: center;
}

/* --- AVALIAÇÕES --- */
.avaliacoes {
  padding: 100px 0;
  background: var(--color-bg);
}

.avaliacoes h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 48px;
}

.avaliacoes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.avaliacao-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.avaliacao-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.avaliacao-card__stars {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.avaliacao-card__text {
  font-size: 1rem;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
}

.avaliacao-card__author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* --- CTA FINAL --- */
.cta-final {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 69, 19, 0.12) 0%, transparent 70%),
    var(--color-bg-alt);
}

.cta-final__content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-final__content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-final__content p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
}

.cta-final__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand h3 {
  font-size: 1.3rem;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--color-whatsapp);
}

.footer__links h4,
.footer__contact h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--color-white);
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--color-secondary);
}

.footer__contact p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gray-300);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- Selection --- */
::selection {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero__badge { animation-delay: 0.1s; }
.hero__title { animation-delay: 0.2s; }
.hero__subtitle { animation-delay: 0.3s; }
.hero__cta { animation-delay: 0.4s; }
.hero__trust { animation-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .sobre__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sobre__image img {
    height: 280px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 20px 60px;
  }
  .hero__title {
    font-size: 2rem;
  }
  .sobre__stats {
    gap: 20px;
  }
  .cta-final__buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-final__buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
