/* ==========================================================================
   Empório Monte Serrat - Estilo Oficial Jamstack / Astro
   Alta Fidelidade Visual & PageSpeed 95+
   ========================================================================== */

:root {
  --color-primary: #faa74a;
  --color-primary-dark: #cb5920;
  --color-accent: #1ec8bb;
  --color-text: #4a4a4a;
  --color-text-dark: #222222;
  --color-text-light: #777777;
  --color-bg: #fbf9f6;
  --color-card-bg: #ffffff;
  --color-dark: #2b2520;
  --color-border: #e8e3dc;
  --font-heading: 'Bevan', Georgia, serif;
  --font-body: Georgia, 'Times New Roman', Times, serif;
  --max-width: 1120px;
  --transition: all 0.3s ease;
}

*, *::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-color: var(--color-bg);
  background-image: radial-gradient(#e5dfd5 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  padding: 8px 0;
  color: #666;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info strong {
  color: var(--color-dark);
}

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

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eee;
  color: #555;
  font-size: 0.8rem;
  transition: var(--transition);
}

.topbar-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 80px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-desktop li {
  position: relative;
}

.nav-desktop a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-dark);
  font-weight: bold;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-desktop a:hover,
.nav-desktop li.active > a {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Dropdown */
.nav-desktop .has-dropdown:hover > .dropdown-menu {
  display: grid;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 480px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-radius: 0 0 6px 6px;
  padding: 12px;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  z-index: 200;
}

.dropdown-menu a {
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: normal;
  color: var(--color-text);
  border-radius: 4px;
}

.dropdown-menu a:hover {
  background: #fdf5eb;
  color: var(--color-primary-dark);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-dark);
  cursor: pointer;
  padding: 8px;
}

.nav-mobile {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 15px 20px;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-dark);
  border-bottom: 1px solid #f0f0f0;
}

.nav-mobile .mobile-dropdown {
  padding-left: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: #faf8f5;
  padding: 10px;
  border-radius: 6px;
  margin: 8px 0;
}

.nav-mobile .mobile-dropdown a {
  font-size: 0.95rem;
  font-weight: normal;
  border: none;
  padding: 6px 0;
}

/* ==========================================================================
   BANNER SLIDER
   ========================================================================== */
.banner-section {
  position: relative;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 20px auto 35px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  background: #000;
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 380;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

/* ==========================================================================
   HOMEPAGE COLUMNS & SECTIONS
   ========================================================================== */
.intro-box {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  margin-bottom: 40px;
  text-align: center;
}

.intro-box h1 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 2rem;
  margin-bottom: 10px;
}

.intro-box p.lead {
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  font-style: italic;
  margin-bottom: 20px;
}

.columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 45px;
}

.column-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.column-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

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

.column-card .card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.column-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-dark);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 6px;
  display: inline-block;
}

.column-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

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

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

/* ==========================================================================
   PAGE HEADERS & BREADCRUMBS
   ========================================================================== */
.page-header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 30px 0;
  margin-bottom: 35px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.breadcrumbs a {
  color: var(--color-primary-dark);
}

.breadcrumbs span {
  margin: 0 6px;
}

/* ==========================================================================
   PRODUCT GALLERY & CARDS
   ========================================================================== */
.gallery-intro {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 50px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: var(--color-primary);
}

.gallery-card .img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0ebe4;
  position: relative;
}

.gallery-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .img-wrap img {
  transform: scale(1.06);
}

.gallery-card .card-caption {
  padding: 14px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--color-dark);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-card .zoom-hint {
  font-size: 0.8rem;
  color: var(--color-primary-dark);
  font-weight: normal;
  display: block;
  margin-top: 4px;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.is-active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-title {
  color: #ffffff;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   CONTACT PAGE & FORMS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-bottom: 50px;
}

.contact-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-card h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-dark);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 8px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  display: block;
  color: var(--color-dark);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

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

.form-group label {
  display: block;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(250, 167, 74, 0.2);
}

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

.form-status {
  padding: 12px;
  border-radius: 4px;
  margin-top: 15px;
  display: none;
  font-weight: bold;
}

.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-status.error {
  display: block;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.map-container {
  width: 100%;
  height: 320px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-dark);
  color: #d3cfcb;
  padding: 50px 0 20px;
  margin-top: 60px;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 35px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.footer-col p {
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.footer-col a {
  color: #ffffff;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.footer-links a {
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-bottom {
  border-top: 1px solid #443c35;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #999;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: #ffffff !important;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 999;
  font-size: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .columns-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-desktop {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .topbar-content {
    justify-content: center;
    text-align: center;
  }

  .site-logo img {
    height: 60px;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
