/* ══════════════════════════════════════════
   AROM SOLUÇÕES — Modern Design System
   ══════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --c-primary: #059669;
  --c-primary-light: #34d399;
  --c-primary-dark: #047857;
  --c-bg-dark: #0f172a;
  --c-bg-darker: #070d1a;
  --c-bg-light: #f8fafc;
  --c-surface: #ffffff;
  --c-text: #e2e8f0;
  --c-text-muted: #94a3b8;
  --c-text-dark: #1e293b;
  --c-text-dark-muted: #64748b;
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-light: #e2e8f0;

  --ff-heading: 'Inter', sans-serif;
  --ff-body: 'Roboto', sans-serif;

  --fs-hero: clamp(2.2rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.35rem);
  --fs-body: clamp(0.95rem, 1.2vw, 1.05rem);
  --fs-small: 0.875rem;
  --fs-tag: 0.8rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.12);
  --shadow-md: 0 4px 20px rgba(0,0,0,.15);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.2);
  --shadow-card: 0 2px 16px rgba(0,0,0,.06);

  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --container: 1120px;
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 80px; 
  overflow-x: hidden;
}
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text-dark);
  background: var(--c-bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font: inherit; }

/* ─── Container ─── */
.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}
.btn--full { width: 100%; }

/* ─── Section Headers ─── */
.section-header { text-align: center; margin-bottom: var(--space-lg); }
.section-header__tag {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--space-xs);
}
.section-header__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}
.section-header__desc {
  font-size: var(--fs-body);
  max-width: 560px;
  margin-inline: auto;
}

/* ═══════════════ HEADER ═══════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  padding: 1.25rem 0;
  transition: var(--transition);
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header--scrolled {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.header__logo:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.header__logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 1px #fff);
}
.header__list {
  display: flex;
  gap: 0.25rem;
}
.header__link {
  padding: 0.5rem 1.1rem;
  font-family: var(--ff-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header__link:hover,
.header__link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.mobile-menu-wrapper { display: none; }

/* Hamburger */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  z-index: 110;
  cursor: pointer;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.header__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header__toggle.open span:nth-child(2) { opacity: 0; }
.header__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--c-bg-dark);
}
.hero__slider { position: relative; height: 100%; }
.hero__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.hero__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero__slide-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8%;
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, #0d2818 50%, var(--c-primary-dark) 100%);
}
.hero__slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.5) 55%, transparent 100%);
}
.hero__slide-icon {
  width: clamp(200px, 28vw, 380px);
  opacity: 0.2;
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 5;
  max-width: 600px;
}
.hero__tag {
  display: inline-block;
  font-family: var(--ff-heading);
  font-size: var(--fs-tag);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-primary-light);
  margin-bottom: var(--space-sm);
  padding: 0.35rem 0.9rem;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-full);
}
.hero__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: var(--space-md);
}
.hero__desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

/* Hero controls */
.hero__controls {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
}
.hero__arrow {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  transition: var(--transition);
}
.hero__arrow:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}
.hero__dots {
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: var(--transition);
}
.hero__dot.active {
  background: var(--c-primary-light);
  width: 48px;
}

/* ═══════════════ SERVICES ═══════════════ */
.services {
  padding: var(--space-2xl) 0;
  background: var(--c-bg-light);
}
.services .section-header__title { color: var(--c-text-dark); }
.services .section-header__desc { color: var(--c-text-dark-muted); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.service-card {
  background: var(--c-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border-light);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(5, 150, 105, 0.2);
}
.service-card__icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(5,150,105,.08), rgba(52,211,153,.12));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(5, 150, 105, 0.12);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  filter: brightness(0) saturate(100%) invert(39%) sepia(79%) saturate(600%) hue-rotate(120deg);
}
.service-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--c-text-dark);
  margin-bottom: var(--space-xs);
}
.service-card__desc {
  color: var(--c-text-dark-muted);
  font-size: var(--fs-small);
  line-height: 1.65;
}

/* ═══════════════ ABOUT ═══════════════ */
.about {
  padding: var(--space-2xl) 0;
  background: var(--c-bg-dark);
  color: var(--c-text);
}
.about .section-header__title { color: #fff; }
.about .section-header__tag { color: var(--c-primary-light); }
.about__intro {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.8;
  color: var(--c-text-muted);
}
.about__intro strong { color: var(--c-primary-light); }
.about__intro p + p { margin-top: var(--space-sm); }

.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.value-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(52, 211, 153, 0.15);
  transform: translateY(-4px);
}
.value-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary-light);
  background: rgba(5, 150, 105, 0.1);
  border-radius: var(--radius-md);
}
.value-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
}
.value-card__desc {
  color: var(--c-text-muted);
  font-size: var(--fs-small);
  line-height: 1.65;
}

/* ═══════════════ CONTACT ═══════════════ */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--c-bg-light);
}
.contact .section-header__title { color: var(--c-text-dark); }
.contact .section-header__desc { color: var(--c-text-dark-muted); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.form-group {
  position: relative;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 0.75rem;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-light);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  color: var(--c-text-dark);
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-dark-muted);
  font-size: var(--fs-body);
  pointer-events: none;
  transition: var(--transition);
}
.form-group textarea ~ label {
  top: 1rem;
  transform: none;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--c-primary);
  background: var(--c-surface);
  padding: 0 0.3rem;
}

/* Contact info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--c-bg-dark);
  border-radius: var(--radius-md);
  color: var(--c-text);
}
.contact__info-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}
.contact__info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 150, 105, 0.1);
  border-radius: var(--radius-sm);
  color: var(--c-primary-light);
}
.contact__info-item strong {
  display: block;
  font-family: var(--ff-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.contact__info-item p {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  line-height: 1.6;
}
.contact__info-item a {
  color: var(--c-primary-light);
  transition: var(--transition);
}
.contact__info-item a:hover { color: var(--c-primary); }

.contact__social {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--c-border);
}
.contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--c-text-muted);
  background: rgba(255,255,255,.06);
  transition: var(--transition);
}
.contact__social-link:hover {
  color: #fff;
  background: #1877F2;
}

/* Map */
.contact__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact__map iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  padding: var(--space-md) 0;
  background: var(--c-bg-darker);
  text-align: center;
}
.footer__inner {
  font-size: var(--fs-small);
  color: var(--c-text-muted);
}
.footer__inner strong {
  color: var(--c-primary-light);
}

/* ═══════════════ WHATSAPP FLOAT ═══════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: var(--transition);
  animation: whatsapp-pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6); }
}

/* ═══════════════ REVEAL ANIMATION ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .services__grid,
  .about__values {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.nav-overlay.visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__toggle { display: flex; }
  
  .container {
    width: 100% !important;
    padding-inline: 1rem;
    max-width: 100vw;
  }

  .mobile-menu-wrapper { display: block; }
  .mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80%);
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(.4,0,.2,1);
    z-index: 2000;
    pointer-events: auto;
  }
  .mobile-nav.open { right: 0; }
  .mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .mobile-nav__link {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: #fff;
    font-family: var(--ff-heading);
    font-weight: 600;
    position: relative;
    z-index: 2100;
    pointer-events: auto !important;
  }
  .mobile-nav__link:hover {
    background: rgba(5, 150, 105, 0.15);
    color: var(--c-primary-light);
  }

  .hero__slide-icon { display: none; }
  .hero__slide-bg::after {
    background: linear-gradient(180deg, rgba(15,23,42,.85) 0%, rgba(15,23,42,.7) 100%);
  }
  .hero__content {
    padding-top: 4rem;
  }
}

@media (max-width: 480px) {
  .hero__controls { gap: 0.5rem; }
  .hero__arrow { width: 36px; height: 36px; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
