/* ===== Variables ===== */
:root {
  --green: #00e676;
  --green-dark: #00c853;
  --green-darker: #009624;
  --green-light: #e8f5e9;
  --green-glow: rgba(0, 230, 118, 0.25);
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-green: 0 8px 30px var(--green-glow);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-height: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--green);
  color: var(--gray-900);
  box-shadow: var(--shadow-green);
}

.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px var(--green-glow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--full {
  width: 100%;
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--green-light);
  color: var(--green-darker);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-tag--light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--green);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo img {
  height: 36px;
  width: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  border-radius: 8px;
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--green-darker);
  background: var(--green-light);
}

.nav__link--cta {
  background: var(--green);
  color: var(--gray-900) !important;
  font-weight: 600;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--green-dark);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-darker) 0%, #004d40 50%, var(--gray-900) 100%);
  padding: calc(var(--header-height) + 60px) 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  flex: 1;
  padding-bottom: 80px;
}

.hero__badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--green);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--green);
}

.hero__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  height: 420px;
}

.hero__card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card--1 {
  width: 55%;
  height: 70%;
  top: 0;
  right: 0;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero__card--2 {
  width: 50%;
  height: 55%;
  bottom: 0;
  left: 0;
  z-index: 1;
  animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero__wave {
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 80px;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
  background: var(--white);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-darker);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Gallery ===== */
.gallery {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--gray-900) 0%, #0d3320 100%);
}

.gallery__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery__tab {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.gallery__tab:hover,
.gallery__tab.active {
  background: var(--green);
  color: var(--gray-900);
  border-color: var(--green);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: var(--transition);
}

.gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.gallery__item.hidden {
  display: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery__item:hover figcaption {
  transform: translateY(0);
}

.gallery__label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green);
  color: var(--gray-900);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.gallery__desc {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Team ===== */
.team {
  padding: 100px 0;
  background: var(--gray-50);
}

.team__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.team__text {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 28px;
  line-height: 1.7;
}

.team__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-weight: 500;
  color: var(--gray-800);
}

.team__features svg {
  width: 22px;
  height: 22px;
  color: var(--green-dark);
  flex-shrink: 0;
}

.team__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team__photo img {
  width: 100%;
  height: auto;
}

.team__photo-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.team__photo-badge strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-darker);
  line-height: 1;
}

.team__photo-badge span {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--gray-50);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item[open] {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green-dark);
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  padding: 0 24px 20px;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact__center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact__text {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.7;
}

.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 48px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 60px;
  min-width: 320px;
}

.btn--whatsapp svg {
  flex-shrink: 0;
}

.contact__phone {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo img {
  height: 30px;
  width: auto;
  filter: brightness(1.2);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--green);
  color: var(--gray-900);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.lightbox__close:hover {
  color: var(--green);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    height: 350px;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    display: block;
    padding: 12px 16px;
    width: 100%;
  }

  .nav__link--cta {
    margin-left: 0;
    text-align: center;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .team__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .team__photo {
    order: -1;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .btn--whatsapp {
    min-width: 100%;
    padding: 20px 32px;
    font-size: 1.1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
