/* =============================================
   QuintoAndar Support Landing — Styles
   ============================================= */

:root {
  --blue-900: #0F2460;
  --blue-700: #1A3FD4;
  --blue-600: #2B52E0;
  --blue-500: #3957BD;
  --blue-100: #E8EDFC;
  --blue-50: #F4F6FD;

  --purple-500: #6B4FBB;
  --teal-500: #0D9488;
  --orange-500: #F59E0B;
  --green-500: #10B981;
  --pink-500: #EC4899;

  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --whatsapp-light: #DCF8C6;

  --gray-900: #1A1A2E;
  --gray-700: #4A4A68;
  --gray-500: #7A7A96;
  --gray-200: #E8E8F0;
  --gray-100: #F5F5FA;
  --white: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(26, 63, 212, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 63, 212, 0.10);
  --shadow-lg: 0 16px 48px rgba(26, 63, 212, 0.14);

  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 63, 212, 0.06);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 28px;
  width: auto;
  display: block;
}

.logo__img--inverse {
  height: 28px;
}

@media (max-width: 640px) {
  .logo__img,
  .logo__img--inverse {
    height: 22px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--blue-700);
}

.nav__link--cta {
  background: var(--whatsapp);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav__link--cta:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

.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-900);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-50) 0%, var(--white) 50%, #F0F4FF 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.hero__shape--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26, 63, 212, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.06) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.hero__shape--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(107, 79, 187, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 40%;
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--blue-700), var(--purple-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  padding: 20px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--blue-100);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-700);
}

.stat__label {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

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

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn--outline {
  background: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--blue-100);
}

.btn--outline:hover {
  border-color: var(--blue-700);
  background: var(--blue-50);
}

/* ---- Section shared ---- */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ---- Services ---- */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--blue-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.service-card__icon--blue { background: var(--blue-100); color: var(--blue-700); }
.service-card__icon--purple { background: #EDE9FE; color: var(--purple-500); }
.service-card__icon--teal { background: #CCFBF1; color: var(--teal-500); }
.service-card__icon--orange { background: #FEF3C7; color: var(--orange-500); }
.service-card__icon--green { background: #D1FAE5; color: var(--green-500); }
.service-card__icon--pink { background: #FCE7F3; color: var(--pink-500); }

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--whatsapp-dark);
  transition: color var(--transition);
}

.service-card:hover .service-card__link {
  color: var(--whatsapp);
}

/* ---- FAQ ---- */
.faq {
  padding: 100px 0;
  background: var(--blue-50);
}

.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.faq__intro .section-tag,
.faq__intro .section-title,
.faq__intro .section-desc {
  text-align: left;
}

.faq__intro .section-desc {
  margin-bottom: 28px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-100);
}

.faq-item__question {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--blue-700);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__question:hover {
  color: var(--blue-700);
}

.faq-item__answer {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ---- Contact CTA ---- */
.contact-cta {
  padding: 100px 0;
}

.contact-cta__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  border-radius: var(--radius-xl);
  padding: 64px;
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.contact-cta__card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-cta__content {
  position: relative;
  z-index: 1;
}

.contact-cta__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-cta__desc {
  font-size: 1.0625rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-cta__hours {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  opacity: 0.75;
  margin-bottom: 32px;
}

.contact-cta__visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* Phone mockup */
.phone-mockup {
  width: 280px;
  background: #111;
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.phone-mockup__screen {
  background: #ECE5DD;
  border-radius: 24px;
  padding: 20px 16px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  animation: fadeInUp 0.5s ease both;
}

.chat-bubble--received {
  background: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  animation-delay: 0.2s;
}

.chat-bubble--sent {
  background: var(--whatsapp-light);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  animation-delay: 0.6s;
}

.chat-bubble:nth-child(3) {
  animation-delay: 1s;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 12px;
  align-self: flex-start;
  width: fit-content;
  animation: fadeInUp 0.5s ease 1.4s both;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--gray-500);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer__tagline {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 8px;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 0.9375rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer__links a:hover {
  opacity: 1;
}

.footer__copy {
  font-size: 0.8125rem;
  opacity: 0.4;
}

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 64px;
  height: 64px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float__icon {
  width: 34px;
  height: 34px;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: 1;
}

.whatsapp-float__pulse--delay {
  animation-delay: 1s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--gray-900);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cta__card {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    text-align: center;
  }

  .contact-cta__hours {
    justify-content: center;
  }

  .contact-cta__visual {
    order: -1;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 130px 0 72px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
    padding: 24px 32px;
  }

  .stat__divider {
    width: 40px;
    height: 1px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .services, .faq, .contact-cta {
    padding: 72px 0;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
  }

  .whatsapp-float__icon {
    width: 30px;
    height: 30px;
  }

  .whatsapp-float__tooltip {
    display: none;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}
