/* ════════════════════════════════════════
   COMPONENTS — PODA VERTICAL Manuel Rivas
   Elite-level arborist website
   ════════════════════════════════════════ */

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 12px var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

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

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-surface-dark);
}

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

.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-surface-dark);
}

.btn--whatsapp:hover {
  background-color: #20BD5A;
}

.btn--outline {
  background-color: transparent;
  border: 2px solid currentColor;
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn--outline-light {
  color: var(--color-text-on-dark);
}

.btn--lg {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-lg);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar--scrolled {
  background-color: rgba(26, 26, 26, 1);
  box-shadow: var(--shadow-lg);
}


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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.navbar__logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-on-dark);
  letter-spacing: 0.04em;
}

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

.navbar__links {
  display: none;
  gap: var(--space-lg);
}

.navbar__links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.navbar__links a:hover,
.navbar__links a:focus-visible,
.navbar__link--active {
  color: var(--color-text-on-dark);
}

.navbar__actions {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

.navbar__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition-fast);
}

.navbar__phone:hover {
  color: var(--color-text-on-dark);
}

.navbar__phone svg {
  width: 16px;
  height: 16px;
}

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text-on-dark);
}

.navbar__toggle svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }

  .navbar__actions {
    display: flex;
  }

  .navbar__toggle {
    display: none;
  }
}

/* ─── Mobile menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: rgba(13, 13, 13, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  transition: color var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--color-primary-light);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px var(--space-sm);
  background-color: rgba(27, 94, 32, 0.3);
  border: 1px solid rgba(46, 125, 50, 0.5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-success);
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  color: var(--color-text-on-dark);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary-light);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-on-dark-muted);
  line-height: var(--leading-relaxed);
  max-width: 50ch;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-dark-muted);
}

.hero__trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--text-xl);
  }
}

/* ─── Section header ─── */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section--dark .section-header__tag,
.section--primary .section-header__tag {
  color: var(--color-accent);
}

.section-header__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.section-header__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  line-height: var(--leading-relaxed);
}

.section-header__desc--centered {
  margin-inline: auto;
}

.section--dark .section-header__desc {
  color: var(--color-text-on-dark-muted);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-2xl);
  }

  .section-header__title {
    font-size: var(--text-4xl);
  }
}

/* ─── Service cards ─── */
.service-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.12), rgba(27, 94, 32, 0.04));
  border: 1px solid rgba(27, 94, 32, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.service-card__link:hover {
  color: var(--color-primary-light);
  gap: 8px;
}

.service-card__link svg {
  width: 16px;
  height: 16px;
}

/* ─── About section ─── */
.about__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-xl);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__image:hover img {
  transform: scale(1.03);
}

.about__text .section-header {
  margin-bottom: var(--space-md);
}

.about__lead {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.about__text p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.about__feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.about__feature svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-2xl);
  }

  .about__feature {
    font-size: var(--text-base);
  }
}

/* ─── Gallery ─── */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.gallery__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-overlay span {
  color: var(--color-text-on-dark);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

.gallery__cta {
  margin-top: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* ─── Stats bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-md);
}

.stats-bar__item {
  text-align: center;
  padding: var(--space-md);
}

.stats-bar__value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-on-primary);
  line-height: 1;
}

.stats-bar__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-xs);
  font-weight: var(--weight-medium);
}

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

  .stats-bar__value {
    font-size: var(--text-5xl);
  }
}

/* ─── Coverage zone ─── */
.coverage__grid {
  display: grid;
  gap: var(--space-lg);
}

.coverage__region-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.coverage__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

.coverage__list li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  padding: 6px 0;
}

.coverage__list li svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.coverage__highlight {
  background-color: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.coverage__highlight-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.coverage__highlight p {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

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

  .coverage__highlight {
    grid-column: 1 / -1;
  }

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

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

  .coverage__highlight {
    grid-column: auto;
  }

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

/* ─── CTA Section ─── */
.cta {
  position: relative;
  padding-block: 48px;
  overflow: hidden;
}

.cta__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 18, 0.88);
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 650px;
  margin-inline: auto;
}

.cta__title {
  font-size: var(--text-3xl);
  color: var(--color-text-on-primary);
  margin-bottom: var(--space-sm);
}

.cta__desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .cta {
    padding-block: 60px;
  }

  .cta__title {
    font-size: var(--text-4xl);
  }
}

/* ─── Contact section ─── */
.contact__grid {
  display: grid;
  gap: var(--space-md);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.12), rgba(27, 94, 32, 0.04));
  border-radius: var(--radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-card__icon--whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.05));
  color: var(--color-whatsapp);
}

.contact-card__icon--instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(131, 58, 180, 0.08));
  color: #E1306C;
}

.contact-card__icon--tiktok {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04));
  color: var(--color-text);
}

.contact-card__icon--phone {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(33, 150, 243, 0.05));
  color: #1976D2;
}

.contact-card__icon--email {
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.12), rgba(251, 188, 4, 0.08));
  color: #EA4335;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: 2px;
}

.contact-card__value {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

/* ─── Footer ─── */
.footer {
  background-color: var(--color-surface-dark);
  color: var(--color-text-on-dark-muted);
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border-dark);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  color: var(--color-text-on-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer__brand span {
  color: var(--color-primary-light);
}

.footer__copy {
  font-size: var(--text-sm);
  margin-top: 4px;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-dark-alt);
  color: var(--color-text-on-dark-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.footer__social a:hover {
  background-color: var(--color-primary);
  color: var(--color-text-on-primary);
  transform: translateY(-2px);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__powered {
  font-size: var(--text-xs);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ─── WhatsApp floating button ─── */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 90;
  width: 75px;
  height: 75px;
  background-color: var(--color-whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 38px;
  height: 38px;
  color: #fff;
}

@media (min-width: 768px) {
  .whatsapp-float {
    width: 80px;
    height: 80px;
    bottom: var(--space-lg);
    right: var(--space-lg);
  }

  .whatsapp-float svg {
    width: 40px;
    height: 40px;
  }
}

/* ─── Fade-in animation ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}
