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

:root {
  --primary: #2d5a27;
  --primary-light: rgba(45, 90, 39, 0.1);
  --primary-dark: #1e3d1a;
  --foreground: #1a1a1a;
  --background: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

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

.container {

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

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

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

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

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

.btn-outline:hover {
  background: var(--muted);
}

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

.btn-block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 70px;
  height: 70px;
  
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon.light {
  background: white;
  color: var(--foreground);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

.logo-subtitle {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  margin-top: -2px;
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

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

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .header-content {
    height: 80px;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.9) 40%,
      rgba(255, 255, 255, 0.4) 100%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.text-primary {
  color: var(--primary);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.trust-badge svg {
  color: var(--primary);
}

@media (min-width: 768px) {
  .hero {
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }
}

/* Section Styles */
.section-header {
  max-width: 700px;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--muted);
}

.about-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

.about-content p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-content strong {
  color: var(--foreground);
}

.diferenciais {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.diferencial-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.diferencial-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.about-image {
  position: relative;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.about-image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.badge-title {
  font-weight: 500;
  font-size: 0.875rem;
}

.badge-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
}

.values-grid {
  display: grid;
  gap: 2rem;
}

.value-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.value-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.value-icon svg {
  color: var(--primary);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-image {
    height: 450px;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.services-category {
  margin-bottom: 4rem;
}

.services-category:last-child {
  margin-bottom: 0;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.category-title svg {
  color: var(--primary);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(45, 90, 39, 0.2);
}

.service-icon svg {
  color: var(--primary);
}

.service-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Portfolio Section */
.portfolio {
  padding: 5rem 0;
  background: var(--muted);
}

.portfolio-grid {
  display: grid;
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
  color: white;
}

.portfolio-overlay h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.portfolio-footer {
  text-align: center;
  color: var(--muted-foreground);
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info h3,
.contact-form-wrapper h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: background 0.2s;
}

.contact-card:hover {
  background: #eaeaea;
}

.contact-card.whatsapp .contact-icon {
  background: rgba(37, 211, 102, 0.1);
}

.contact-card.whatsapp .contact-icon svg {
  color: #25d366;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--primary);
}

.contact-label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.horario-box {
  padding: 1.5rem;
  background: var(--primary-light);
  border: 1px solid rgba(45, 90, 39, 0.2);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.horario-box h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.horario-box p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-form-wrapper {
  background: rgba(245, 245, 245, 0.5);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.footer {
  background: var(--foreground);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo .logo-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.contact-card-endereco {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: var(--radius);
  background: var(--muted);
  padding: 1rem;
}

/* mapa */
.contact-card-endereco iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  display: block;
}

/* responsivo */
@media (max-width: 700px) {
  .contact-card-endereco iframe {
    height: 240px;
  }
}

/* ===== MODAL GALERIA ===== */
.gallery-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal__content {
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-modal__content img,
.gallery-modal__content iframe {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: var(--radius);
}

.gallery-modal__content iframe {
  aspect-ratio: 16 / 9;
}

.gallery-modal__close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

/* Detailed Portfolio Layout */
.portfolio-grid-detailed {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 2rem 0;
}

.portfolio-detail-block {
  background: white;
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.portfolio-detail-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.12);
}

.portfolio-text {
  text-align: left;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.portfolio-text h4 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-text p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 800px;
}

.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

.mini-gallery-grid .gallery__item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  aspect-ratio: 16/10;
}

.mini-gallery-grid .gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-gallery-grid .gallery__item:hover img {
  transform: scale(1.1);
}

/* Overlay effect on hover */
.mini-gallery-grid .gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.mini-gallery-grid .gallery__item:hover::after {
  opacity: 1;
}

/* Icon indicator for zoom */
.mini-gallery-grid .gallery__item::before {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  color: white;
  font-size: 2rem;
  font-weight: 300;
  z-index: 2;
  opacity: 0;
  transition: all 0.3s;
}

.mini-gallery-grid .gallery__item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 640px) {
  .mini-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}