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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #faf5ef;
  color: #2c2a29;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6ddd5;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: #b47c3f;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b47c3f;
  margin: 0;
}

.brand-text p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  color: #4b5563;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link.active {
  color: #b47c3f;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #b47c3f;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Sections */
.hero,
.products-hero,
.orders-hero,
.contact-hero {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url('imagens/paes-cafe.jpg') center/cover no-repeat;
  color: white;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 60px;
}

.hero-content,
.products-hero .container,
.orders-hero .container,
.contact-hero .container {
  max-width: 800px;
}

.hero h2,
.products-hero h1,
.orders-hero h1,
.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 16px;
}

.hero p,
.products-hero p,
.orders-hero p,
.contact-hero p {
  font-size: 1.2rem;
  margin: 0 0 32px;
  opacity: 0.9;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background: #b47c3f;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(180, 124, 63, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(180, 124, 63, 0.4);
}

.cta-button.primary {
  background: #b47c3f;
}

.cta-button.secondary {
  background: #6b7280;
}

/* Sections */
section {
  margin-bottom: 80px;
}

.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.intro-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4b5563;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-card {
  background: white;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #b47c3f;
  margin-bottom: 12px;
}

.value-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Gallery */
.gallery-section {
  background: white;
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 80px;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 20px 16px 16px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Horario */
.horario-section {
  background: #b47c3f;
  color: white;
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 80px;
}

.horario-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.horario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.horario-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px 20px;
  backdrop-filter: blur(10px);
}

.horario-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.horario-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-bottom: 80px;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Products */
.products-section {
  margin-bottom: 80px;
}

.category-section {
  margin-bottom: 60px;
}

.category-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 30px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c2a29;
  margin-bottom: 8px;
}

.product-info p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 16px;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: #b47c3f;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-to-cart-btn:hover {
  background: #9c6933;
}

/* Orders */
.orders-section {
  margin-bottom: 80px;
}

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

.customer-form h2,
.order-form h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b47c3f;
}

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

.pedido-list {
  background: white;
  border-radius: 15px;
  padding: 20px;
  min-height: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.pedido-item:last-child {
  border-bottom: none;
}

.pedido-item button {
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.pedido-item button:hover {
  background: #b91c1c;
}

.empty-cart {
  text-align: center;
  color: #6b7280;
  font-style: italic;
}

.order-summary {
  background: white;
  border-radius: 15px;
  padding: 24px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

.total-section,
.tarifa-section,
.grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.grand-total {
  font-size: 1.3rem;
  font-weight: 700;
  color: #b47c3f;
  border-top: 2px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 12px;
}

.tarifa-info {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

.submit-order-btn {
  width: 100%;
  padding: 16px;
  background: #b47c3f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 20px;
}

.submit-order-btn:hover {
  background: #9c6933;
}

.hidden {
  display: none !important;
}

/* Contact */
.contact-section {
  margin-bottom: 80px;
}

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

.contact-form h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 30px;
}

.submit-contact-btn {
  width: 100%;
  padding: 16px;
  background: #b47c3f;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 20px;
}

.submit-contact-btn:hover {
  background: #9c6933;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #b47c3f;
  margin-bottom: 30px;
}

.map-box {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.contact-details h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #b47c3f;
  margin-bottom: 8px;
}

.contact-details p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: #2c2a29;
  color: white;
  padding: 60px 0 20px;
  margin-top: 80px;
}

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

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #b47c3f;
  margin-bottom: 16px;
}

.footer-section p {
  color: #d1d5db;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #b47c3f;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #4b5563;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: background 0.2s ease;
}

.social-links svg {
  width: 24px;
  height: 24px;
  color: white;
}

.social-links a:hover {
  background: #b47c3f;
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    gap: 16px;
  }

  .intro-section,
  .form-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero,
  .products-hero,
  .orders-hero,
  .contact-hero {
    min-height: 50vh;
    padding: 60px 20px;
  }

  .gallery-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .horario-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
}

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

  main {
    padding: 0 16px;
  }

  .hero h2,
  .products-hero h1,
  .orders-hero h1,
  .contact-hero h1 {
    font-size: 2rem;
  }

  .intro-text h2,
  .gallery-section h2,
  .horario-section h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .product-card,
  .value-card {
    margin: 0 auto;
    max-width: 100%;
  }
}

/* Acessibilidade - Focus States */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b47c3f;
  outline-offset: 2px;
}

/* Skip to main content */
.skip-to-main {
  position: absolute;
  left: -9999px;
  z-index: 999;
}

.skip-to-main:focus {
  left: 0;
  top: 0;
  background: #b47c3f;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
}

/* Melhorias gerais */
button {
  cursor: pointer;
  border: none;
}

html {
  scroll-behavior: smooth;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  button,
  a {
    font-weight: 700;
  }
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  background: #f1e7dc;
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
}

.brand p {
  margin: 4px 0 0;
  color: #695d55;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.main-nav a {
  color: #3b2f2f;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #b47c3f;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #25d366;
  color: white;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.2);
}

.whatsapp-float img {
  width: 22px;
  height: 22px;
}

.hero {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2)), url('imagens/paes-cafe.jpg') center/cover no-repeat;
  color: white;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.hero-content {
  max-width: 760px;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
}

.hero p {
  font-size: 1.05rem;
  margin: 0 0 24px;
  color: #f4eadc;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #b47c3f;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #9c6933;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 60px;
}

section {
  margin-bottom: 60px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.3fr;
  gap: 32px;
  align-items: start;
}

.text-block h2,
.gallery h2,
.produtos-section h2,
.agendamento-section h2,
.contato-section h2,
.horario h2 {
  margin-top: 0;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards article,
.box-form,
.map-box {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(60, 40, 20, 0.08);
}

.cards article h3 {
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.gallery-item span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: white;
  font-weight: 700;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
}

.horario {
  background: #fff9f0;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

.horario p {
  margin: 8px 0;
  font-weight: 600;
}

.produtos-section p {
  color: #5a4c3f;
}

.category + .category {
  margin-top: 36px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.produto-card {
  display: grid;
  gap: 16px;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  padding: 0 0 24px;
}

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

.produto-card h4 {
  margin: 0;
}

.produto-card p {
  margin: 0;
  color: #6b5a4a;
}

.produto-card span {
  font-weight: 700;
}

.produto-card button {
  margin: 0 20px;
}

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

.box-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 600;
}

.box-form input,
.box-form select,
.box-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8cdc1;
  border-radius: 14px;
  background: #fff;
}

.box-form textarea {
  resize: vertical;
}

.tarifa-info p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.pedido-list {
  min-height: 160px;
  display: grid;
  gap: 12px;
}

.pedido-list .empty {
  margin: 0;
  color: #7b6b5d;
}

.pedido-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e6ddd5;
  border-radius: 14px;
}

.pedido-item span {
  display: block;
}

.pedido-item button {
  background: transparent;
  border: none;
  color: #b47c3f;
  font-weight: 700;
  cursor: pointer;
}

.pedido-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e6ddd5;
}

.full-width {
  width: 100%;
}

.contato-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.map-box iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 18px;
}

.site-footer {
  background: #3b2f2f;
  color: #fff;
  padding: 26px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a {
  color: #f7e5c6;
}

@media (max-width: 960px) {
  .header-top,
  .intro,
  .forms-grid,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 60px 16px;
  }

  .site-header {
    position: static;
  }

  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }
}
