/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
  /* Colors */
  --primary: #2d6a4f;
  --primary-light: #40916c;
  --primary-dark: #1b4332;
  --accent-earth: #895e33;
  /* Earth tone from the logo */
  --accent-light: #b08960;

  --bg-color: #fafaf8;
  --section-bg-light: #f4f7f4;

  --text-dark: #1a1f18;
  --text-body: #3c4738;
  --text-light: #6b7a66;
  --white: #ffffff;

  --whatsapp: #25d366;
  --gray-closed: #cc444b;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* =========================================
   PRELOADER / SPLASH SCREEN
 ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  height: 350px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0;
  transform: scale(0.9);
  animation: logo-color 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logo-color {
  0% {
    filter: grayscale(100%);
    opacity: 0;
    transform: scale(0.9);
  }

  30% {
    opacity: 1;
    transform: scale(1);
  }

  70% {
    filter: grayscale(100%);
  }

  100% {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

/* =========================================
   UTILITIES & LAYOUT
========================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--section-bg-light);
}

.bg-primary {
  background-color: var(--primary);
  color: var(--white);
}

.bg-primary h2,
.bg-primary p,
.bg-primary .h1 {
  color: var(--white);
}

.bg-floral {
  background-color: #f6efe9;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-white {
  color: var(--white);
}

.mt-small {
  margin-top: 1rem;
}

.mt-medium {
  margin-top: 2rem;
}

.mb-small {
  margin-bottom: 1rem;
}

.mb-medium {
  margin-bottom: 2rem;
}

.mb-large {
  margin-bottom: 3rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.display-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.gap-medium {
  gap: 1.5rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-large {
  box-shadow: var(--shadow-large);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   TYPOGRAPHY
========================================= */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.h1 {
  font-size: 2.5rem;
}

.lead-text {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-normal);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.4);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: var(--transition-normal);
  padding: 0.75rem 0;
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-image {
  height: 80px;
  width: auto;
  transition: height var(--transition-normal);
}

.header.scrolled .logo-image {
  height: 60px;
}

.logo-fallback {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.logo-fallback i {
  font-size: 2rem;
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  background-image: url('../assets/hero.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(27, 67, 50, 0.8) 0%, rgba(27, 67, 50, 0.2) 100%);
  z-index: -1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  color: var(--white);
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin: 1rem 0;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-img-rounded {
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255, 255, 255, 0.2);
  transform: rotate(3deg);
  transition: var(--transition-normal);
  max-height: 500px;
}

.hero-img-rounded:hover {
  transform: rotate(0deg) scale(1.02);
}

/* =========================================
   SOBRE A LOJA
========================================= */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre-img-wrapper {
  position: relative;
}

.sobre-img {
  border-radius: var(--radius-lg);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 4px solid var(--primary);
}

.exp-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(45, 106, 79, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.exp-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.features-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dark);
}

.features-list i {
  font-size: 1.5rem;
}

/* =========================================
   PRODUTOS
========================================= */
.section-header {
  margin-bottom: 4rem;
}

.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.produto-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.produto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.produto-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.produto-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(45, 106, 79, 0.05);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition-normal);
}

.produto-card:hover .card-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.produto-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.produto-card:hover h3 {
  color: var(--primary);
}

.produto-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* =========================================
   HORÁRIO E LOCALIZAÇÃO
========================================= */
.infos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.icon-large {
  font-size: 2.5rem;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 1.125rem;
}

.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule-item .days {
  color: var(--text-dark);
  font-weight: 500;
}

.schedule-item .hours {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

.schedule-item.closed-day .days {
  color: var(--text-light);
}

.badge-closed {
  background-color: rgba(204, 68, 75, 0.1);
  color: var(--gray-closed) !important;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem !important;
}

.address-text {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

/* =========================================
   CONTACTOS CTA
========================================= */
.contactos-box {
  background-color: var(--white);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Decorative background shapes for CTA */
.contactos-box::before,
.contactos-box::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: #f7f9f7;
  z-index: 0;
}

.contactos-box::before {
  top: -150px;
  left: -150px;
}

.contactos-box::after {
  bottom: -150px;
  right: -150px;
}

.contactos-box * {
  position: relative;
  z-index: 1;
}

.phone-number {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background-color: rgba(45, 106, 79, 0.05);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-full);
  margin-top: 2rem;
  border: 1px solid rgba(45, 106, 79, 0.1);
  transition: var(--transition-normal);
}

.phone-number:hover {
  transform: scale(1.05);
  background-color: rgba(45, 106, 79, 0.1);
}

.phone-number i {
  font-size: 2.2rem;
  color: var(--primary);
}

.phone-number .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: var(--white);
}

.footer-logo i {
  color: var(--accent-light);
}

.footer-brand p {
  opacity: 0.8;
  max-width: 400px;
  margin-top: 1rem;
}

.footer h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-light);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-light);
  padding-left: 5px;
}

.contact-ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0.8;
}

.contact-ul i {
  margin-top: 0.25rem;
  color: var(--accent-light);
  font-size: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  opacity: 0.6;
  font-size: 0.875rem;
}

/* =========================================
   ANIMATIONS 
========================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

/* Staggered Reveal Delays */
.reveal-up:nth-of-type(1) {
  transition-delay: 0.1s;
}

.reveal-up:nth-of-type(2) {
  transition-delay: 0.2s;
}

.reveal-up:nth-of-type(3) {
  transition-delay: 0.3s;
}

.reveal-up:nth-of-type(4) {
  transition-delay: 0.4s;
}

.reveal-up:nth-of-type(5) {
  transition-delay: 0.5s;
}

/* Stagger for items inside containers */
.hero-content>.reveal-up:nth-child(1) {
  transition-delay: 0.1s;
}

.hero-content>.reveal-up:nth-child(2) {
  transition-delay: 0.2s;
}

.hero-content>.reveal-up:nth-child(3) {
  transition-delay: 0.3s;
}

.hero-content>.reveal-up:nth-child(4) {
  transition-delay: 0.4s;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition-normal);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #128c7e;
  color: var(--white);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .sobre-grid,
  .infos-grid {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 3.2rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .sobre-grid,
  .infos-grid {
    grid-template-columns: 1fr;
  }

  .sobre-img-wrapper {
    order: 2;
    max-width: 600px;
    margin: 0 auto;
  }

  .sobre-content {
    order: 1;
    text-align: center;
  }

  .features-list {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .h1 {
    font-size: 2rem;
  }

  .d-none-md {
    display: none;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
  }

  .nav.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .d-none-sm {
    display: none;
  }

  .info-card {
    padding: 2rem;
  }

  .contactos-box {
    padding: 3rem 1.5rem;
  }

  .phone-number {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
  }

  .phone-number .number {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-ul li {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .features-list li {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 6rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .badge {
    font-size: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .produtos-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Restricted Area Link --- */
.restricted-access {
  color: var(--accent-light) !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.restricted-access:hover {
  color: white !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}