/* ============================================
   LANIZOL - Custom Styles
   Dark & Premium | Archivo + DM Sans
   ============================================ */

:root {
  --primary: #0f7b6c;
  --primary-light: #14b8a6;
  --secondary: #1a1a2e;
  --accent: #14b8a6;
  --dark: #0d0d1a;
  --light: #f5f0eb;
  --text: #e8e8e8;
  --text-light: #94a3b8;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---- Navbar ---- */
.navbar-scrolled {
  background: rgba(13, 13, 26, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-link {
  position: relative;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-light);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  color: #ccc;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

/* ---- Hero ---- */
.hero-bg {
  transition: transform 8s ease;
}

#hero_1:hover .hero-bg {
  transform: scale(1.03);
}

/* ---- Service Row ---- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  min-height: 400px;
}

.service-row:last-child {
  border-bottom: none;
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse > * {
  direction: ltr;
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem;
}

.service-number {
  font-family: 'Archivo', sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(15, 123, 108, 0.15);
  margin-bottom: 1rem;
}

.service-title {
  font-family: 'Archivo', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-image-wrapper {
  position: relative;
  overflow: hidden;
}

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

.service-row:hover .service-image-wrapper img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-row.reverse {
    direction: ltr;
  }

  .service-image-wrapper {
    height: 250px;
  }

  .service-content {
    padding: 2rem 1.5rem;
  }

  .service-number {
    font-size: 3rem;
  }

  .service-title {
    font-size: 1.35rem;
  }
}

/* ---- Gallery ---- */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  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-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 26, 0.6);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ---- Feature Card ---- */
.feature-card {
  background: var(--secondary);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(15, 123, 108, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-light);
}

/* ---- Contact Info Card ---- */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-card:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(15, 123, 108, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

/* ---- Stat Block ---- */
.stat-block {
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(15, 123, 108, 0.04);
}

.stat-value {
  font-family: 'Archivo', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Scroll to Top ---- */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- About image decoration ---- */
.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--primary);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.3;
}

/* ---- Decorative accent line for labels ---- */
.section-label-line {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label-line::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--primary);
}

/* ---- Form validation ---- */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: var(--primary);
}

/* ---- Footer links ---- */
.footer-link {
  color: #6b7280;
  font-size: 0.875rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
}

.footer-link:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-bg {
    transition: none !important;
  }
}

/* ---- Social Icon ---- */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 123, 108, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-icon-labeled {
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
}

/* ---- Mobile menu animation ---- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  display: block;
  max-height: 500px;
}

/* ---- Section overflow containment (prevents GSAP x-slides from causing horizontal scroll) ---- */
#about_1,
#services_1,
#features_1,
#contact_1,
#gallery_1,
#cta_1 {
  overflow-x: hidden;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* ---- Tablets & small laptops (max-width: 768px) ---- */
@media (max-width: 768px) {
  #about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-block {
    padding: 1rem 0.5rem;
  }
}

/* ---- Small phones (max-width: 480px) ---- */
@media (max-width: 480px) {
  #about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.375rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .stat-block {
    padding: 0.75rem 0.375rem;
  }

  .service-content {
    padding: 1.5rem 1rem;
  }

  .service-image-wrapper {
    height: 200px;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .contact-card {
    gap: 0.75rem;
  }
}

/* ---- Very small screens (max-width: 350px) ---- */
@media (max-width: 350px) {
  /* Containers: tighter padding */
  .max-w-7xl,
  .max-w-4xl,
  .max-w-3xl {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Nav */
  nav .h-20 {
    height: 3.5rem;
  }

  .nav-logo {
    font-size: 1.25rem !important;
  }

  /* Hero */
  #hero_1 h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  #hero_1 p {
    font-size: 0.875rem !important;
  }

  #hero_1 .flex {
    flex-direction: column !important;
  }

  #hero_1 .flex a {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  /* About stats: single column */
  #about-stats {
    grid-template-columns: 1fr !important;
    gap: 0.5rem;
  }

  .stat-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    text-align: left;
  }

  .stat-value {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* About image */
  .about-image-wrapper {
    max-height: 240px;
  }

  .about-image-wrapper::before {
    display: none;
  }

  /* Services */
  .service-content {
    padding: 1.25rem 0.75rem;
  }

  .service-number {
    font-size: 2.5rem;
  }

  .service-title {
    font-size: 1.15rem;
  }

  .service-desc {
    font-size: 0.875rem;
  }

  .service-image-wrapper {
    height: 180px;
  }

  /* Contact */
  #contact_1 .bg-dark\/50 {
    padding: 1.25rem !important;
  }

  .contact-card a,
  .contact-card span {
    word-break: break-all;
  }

  /* CTA */
  #cta_1 h2 {
    font-size: 1.5rem !important;
  }

  /* Gallery */
  #gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.375rem;
  }

  /* Features */
  #features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Floating buttons: closer to edge */
  #scroll-top {
    right: 0.75rem;
    bottom: 4.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  #whatsapp-btn {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 3rem;
    height: 3rem;
  }

  /* Footer */
  #footer_1 .grid {
    gap: 1.5rem;
  }
}