/* ============================================================
   ESTRELA HOME CARE — style.css
   Estrutura:
   1. Reset & Variáveis
   2. Base / Tipografia
   3. Utilitários
   4. Header
   5. Hero
   6. Stats
   7. Serviços
   8. Sobre
   9. Quote
   10. Contato
   11. Footer
   12. Animações & Reveal
   13. Responsivo
============================================================ */

/* ============================================================
   1. RESET & VARIÁVEIS
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores principais */
  --blue-deep:    #0B1F3A;
  --blue-mid:     #1A5EA8;
  --blue-light:   #2D7DD2;
  --blue-pale:    #EBF3FC;
  --gold:         #C9A96E;
  --off-white:    #F7F8FC;
  --white:        #FFFFFF;
  --text-dark:    #0D1B2A;
  --text-muted:   #6B7A8D;
  --border:       rgba(11, 31, 58, 0.08);

  /* Tipografia */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Espaçamento base */
  --section-py:   clamp(5rem, 10vw, 9rem);
  --container:    1200px;
  --gap:          2rem;

  /* Sombras */
  --shadow-sm:    0 2px 12px rgba(11,31,58,0.06);
  --shadow-md:    0 8px 32px rgba(11,31,58,0.12);
  --shadow-lg:    0 20px 60px rgba(11,31,58,0.18);

  /* Raios */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;

  /* Transição padrão */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --duration:     0.4s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================================
   2. BASE / TIPOGRAFIA
============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 500;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

em {
  font-style: italic;
  color: var(--gold);
}

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   3. UTILITÁRIOS
============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  color: var(--blue-deep);
  margin-bottom: 1.5rem;
}

.section-header {
  max-width: 560px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--gold);
  color: var(--blue-deep);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* WhatsApp Button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  transition: all var(--duration) var(--ease);
  animation: pulse-green 2.5s infinite;
}
.btn-whatsapp:hover {
  background: #1db855;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  animation: none;
}

.btn-whatsapp--large {
  font-size: 1rem;
  padding: 0.9rem 2rem;
  margin-top: 2rem;
  animation: pulse-green 2.5s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
}

/* ============================================================
   4. HEADER
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              padding var(--duration) var(--ease);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--duration) var(--ease);
  white-space: nowrap;
}

.header.scrolled .header__logo {
  color: var(--blue-deep);
}

.header__logo-star {
  color: var(--gold);
  font-size: 1rem;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.header__nav a {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration) var(--ease);
}

.header__nav a:hover { color: var(--white); }
.header__nav a:hover::after { width: 100%; }

.header.scrolled .header__nav a {
  color: var(--text-muted);
}
.header.scrolled .header__nav a:hover {
  color: var(--blue-deep);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.header.scrolled .header__burger span {
  background: var(--blue-deep);
}

/* ============================================================
   5. HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 🖼️ HERO BACKGROUND - Substituir pela imagem principal da empresa */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1584515933487-779824d29309?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 0;

  /* efeito leve (profissional, sem exagero) */
  transform: scale(1.05);
}

@keyframes hero-zoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 25, 47, 0.85),
    rgba(10, 25, 47, 0.6),
    rgba(10, 25, 47, 0.2)
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 8rem clamp(1.25rem, 5vw, 3rem) 6rem;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.br-desktop { display: inline; }

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.hero__scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.hero__scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: slide-line 2s ease-in-out infinite;
}

@keyframes slide-line {
  0%   { left: -100%; }
  100% { left: 100%; }
}

/* ============================================================
   6. STATS
============================================================ */
.stats {
  background: var(--white);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
}

.stats__item {
  padding: 1.5rem;
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--blue-deep);
  line-height: 1;
}

.stats__suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold);
  font-weight: 400;
  vertical-align: top;
  margin-top: 0.2rem;
  display: inline-block;
}

.stats__item p {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* ============================================================
   7. SERVIÇOS
============================================================ */
.servicos {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.servico-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.servico-card:hover {
  transform: translateY(-6px);
}

.servico-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}

.servico-card:hover .servico-card__img {
  transform: scale(1.06);
  
}

.servico-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.3),
    transparent
  );
}

.servico-card:hover .servico-card__overlay {
  background: linear-gradient(
    to top,
    rgba(11, 31, 58, 0.96) 0%,
    rgba(26, 94, 168, 0.5) 60%,
    rgba(11, 31, 58, 0.2) 100%
  );
}

.servico-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  z-index: 1;
}

.servico-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}

.servico-card:hover .servico-card__icon {
  opacity: 1;
  transform: translateY(0);
}

.servico-card__content h3 {
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 0.75rem;
}

.servico-card__content p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
}

.servico-card:hover .servico-card__content p {
  max-height: 100px;
  opacity: 1;
}

.servico-card__link {
  display: inline-block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.4s var(--ease) 0.1s;
}

.servico-card:hover .servico-card__link {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   8. SOBRE
============================================================ */
.sobre {
  padding: var(--section-py) 0;
  background: var(--white);
}

.sobre__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.sobre__visual {
  position: relative;
}

.sobre__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sobre__img-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  transition: transform 0.8s var(--ease);
}

.sobre__img-wrap:hover img {
  transform: scale(1.03);
}

.sobre__img-badge {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 140px;
}

.sobre__img-badge .stats__number {
  font-size: 2.2rem;
}

.sobre__img-badge p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.sobre__text p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.sobre__diferenciais {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sobre__diferenciais li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 400;
}

.sobre__diferencial-icon {
  color: var(--gold);
  font-size: 0.7rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* ============================================================
   9. QUOTE
============================================================ */
.quote-section {
  background: var(--blue-deep);
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 5%;
  font-family: var(--font-display);
  font-size: clamp(10rem, 20vw, 18rem);
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 2rem;
}

.quote cite {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ============================================================
   10. CONTATO
============================================================ */
.contato {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contato__info p {
  margin-top: 1.5rem;
  max-width: 380px;
}

/* Formulário */
.contato__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}

.contato__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--blue-deep);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--text-dark);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 4px rgba(26,94,168,0.08);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-disclaimer {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: -0.5rem;
}

/* ============================================================
   11. FOOTER
============================================================ */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.7);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand .header__logo {
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.footer__links a,
.footer__links span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--duration) var(--ease);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   12. ANIMAÇÕES & REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease),
              transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

/* Hero reveal: anima ao carregar */
.hero .reveal {
  animation: hero-reveal 1s var(--ease) forwards;
  opacity: 0;
}

.hero .reveal--delay-1 { animation-delay: 0.2s; }
.hero .reveal--delay-2 { animation-delay: 0.42s; }
.hero .reveal--delay-3 { animation-delay: 0.66s; }

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   13. RESPONSIVO
============================================================ */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

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

  .sobre__img-badge {
    right: 1rem;
  }

  .sobre__img-wrap img {
    height: 420px;
  }

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

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--blue-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
  }

  .header__nav.open {
    display: flex;
  }

  .header__nav a {
    font-size: 1.5rem;
    color: var(--white);
  }

  .header__burger {
    display: flex;
    z-index: 1001;
  }

  .btn-whatsapp span {
    display: none;
  }

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

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2)::after {
    display: none;
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .br-desktop {
    display: none;
  }

  .hero__scroll-hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/*-- Botão Whatsapp flutuante --*/

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25D366;
  border-radius: 50%;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
  color: white;

  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, transform 0.2s ease;

  /* começa escondido */
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float.show {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}