/* =========================================================
   Angie House Clean — design tokens
   Paleta costeira: paredes caiadas, azul do Atlântico,
   telhados em terracota.
   Layout: simples, calmo — menu fixo no topo, seções empilhadas
   em blocos de cor, sem elementos gráficos extras.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul-atlantico: #163A5F;
  --azul-atlantico-dark: #0E2740;
  --azul-sal: #2E7BA6;
  --terracota: #C1633B;
  --terracota-dark: #A34F2C;
  --ouro: #D9A441;
  --cal-branca: #FBF8F1;
  --areia: #F1E9DA;
  --areia-dark: #E3D6BC;

  --text-main: #1E2B33;
  --text-muted: #5B6B72;
  --text-light: #8B9AA0;
  --text-onnavy: #FBF8F1;
  --text-onnavy-muted: #AFC2CE;

  --border: #E4DCC8;
  --shadow-card: 0 2px 16px rgba(22, 58, 95, .07);
  --shadow-hover: 0 12px 32px rgba(22, 58, 95, .14);

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --container-max: 1160px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --transition: all .25s ease;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--cal-branca);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--text-main); font-weight: 600; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; background: none; }

:focus-visible { outline: 2.5px solid var(--ouro); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--azul-atlantico); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.band-sand { background: var(--areia); }
.band-cream { background: var(--cal-branca); }
.band-navy { background: var(--azul-atlantico); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--terracota); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--terracota); display: inline-block; }
.eyebrow-light { color: var(--ouro); }
.eyebrow-light::before { background: var(--ouro); }

.section-header { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.title-light { color: var(--text-onnavy); }
.section-subtitle { font-size: 1.04rem; color: var(--text-muted); }
.subtitle-light { color: var(--text-onnavy-muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .96rem; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--terracota); color: #fff; box-shadow: 0 6px 18px rgba(193,99,59,.28); }
.btn-primary:hover { background: var(--terracota-dark); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(193,99,59,.4); }
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--azul-atlantico); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--azul-atlantico); background: rgba(22,58,95,.05); transform: translateY(-3px); }
.btn-ghost-light { color: var(--text-onnavy); border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-3px); }

/* =========================================================
   SCROLL REVEAL + MOTION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.services-grid .service-card.reveal:nth-child(2) { transition-delay: .12s; }
.services-grid .service-card.reveal:nth-child(3) { transition-delay: .24s; }
.gallery-grid .gallery-item.reveal:nth-child(2) { transition-delay: .09s; }
.gallery-grid .gallery-item.reveal:nth-child(3) { transition-delay: .18s; }
.gallery-grid .gallery-item.reveal:nth-child(4) { transition-delay: .27s; }
.baf-grid .baf-item.reveal:nth-child(3n+2) { transition-delay: .09s; }
.baf-grid .baf-item.reveal:nth-child(3n) { transition-delay: .18s; }

@keyframes heroFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes heroFadeScale { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
.hero .eyebrow { animation: heroFadeUp .7s cubic-bezier(.22,.61,.36,1) both .05s; }
.hero .hero-title { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both .16s; }
.hero .hero-desc { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both .28s; }
.hero .hero-actions { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both .4s; }
.hero .hero-trust { animation: heroFadeUp .8s cubic-bezier(.22,.61,.36,1) both .52s; }
.hero-bg img { animation: heroFadeScale 1.4s cubic-bezier(.22,.61,.36,1) both; }

/* =========================================================
   HEADER
   ========================================================= */
.header { position: sticky; top: 0; z-index: 200; border-bottom: 1px solid var(--border); transition: box-shadow .3s ease; }
.header.scrolled { box-shadow: 0 4px 18px rgba(22,58,95,.08); }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251,248,241,.92); backdrop-filter: blur(8px); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }

.logo { display: flex; align-items: center; gap: 9px; }
.logo-img { height: 54px; width: auto; display: block; }

.header .nav-list { display: flex; gap: 32px; }
.header .nav-link { font-weight: 600; font-size: .92rem; color: var(--text-main); position: relative; padding: 6px 0; }
.header .nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--terracota); transition: var(--transition); }
.header .nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--azul-atlantico); color: #fff; padding: 11px 20px; border-radius: var(--radius-full); font-weight: 600; font-size: .88rem; transition: var(--transition); }
.header-cta:hover { background: var(--azul-sal); }

.hamburger { display: none; flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; width: 26px; height: 40px; }
.hamburger span { display: block; height: 2px; background: var(--azul-atlantico); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay { display: none; }

/* mobile dropdown nav — sibling of header, unaffected by its backdrop-filter */
.mobile-nav {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--cal-branca); z-index: 150;
  flex-direction: column; padding: 8px 24px 32px;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .nav-link { padding: 16px 2px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav-cta { justify-content: center; margin-top: 24px; }

/* =========================================================
   HERO — imagem de fundo em tela cheia
   ========================================================= */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; padding: 120px 0 96px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,39,64,.92) 0%, rgba(14,39,64,.8) 38%, rgba(14,39,64,.48) 68%, rgba(14,39,64,.22) 100%);
}
.hero-inner { display: flex; }
.hero-content { max-width: 560px; }
.hero-title { font-size: clamp(2.3rem, 4vw, 3.4rem); color: var(--text-onnavy); margin-bottom: 20px; }
.hero-highlight { font-style: italic; font-weight: 500; color: var(--ouro); }
.hero-desc { font-size: 1.08rem; color: var(--text-onnavy-muted); max-width: 460px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--text-onnavy-muted); }
.hero-trust i { color: var(--ouro); }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: #fff; border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-card); transition: var(--transition); }
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(193,99,59,.1); color: var(--terracota);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 20px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background-color .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.12) rotate(-8deg); background: var(--terracota); color: #fff; }
.service-card h3 { font-size: 1.28rem; margin-bottom: 10px; color: var(--azul-atlantico); }
.service-card > p { color: var(--text-muted); font-size: .93rem; margin-bottom: 18px; }
.service-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.service-features li { display: flex; align-items: center; gap: 9px; font-size: .89rem; color: var(--text-main); list-style: none; }
.service-features i { color: var(--terracota); font-size: .75rem; }
.service-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--azul-atlantico); font-size: .9rem; }
.service-cta i { transition: var(--transition); font-size: .78rem; }
.service-cta:hover i { transform: translateX(4px); }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery-item { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.gallery-item img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.gallery-item:hover img { transform: scale(1.09); }
.gallery-item figcaption { margin-top: 12px; text-align: center; font-weight: 600; font-size: .92rem; color: var(--azul-atlantico); transition: color .25s ease; }
.gallery-item:hover figcaption { color: var(--terracota); }

/* =========================================================
   ANTES & DEPOIS (slider comparativo — lista ANTES_DEPOIS em js/script.js)
   ========================================================= */
.baf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.baf-grid[hidden] { display: none; }

.baf-compare {
  position: relative; aspect-ratio: 4/3.3; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); user-select: none; transition: box-shadow .25s ease;
}
.baf-compare:hover { box-shadow: var(--shadow-hover); }
.baf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.baf-img.baf-before { filter: saturate(.55) brightness(.82) contrast(1.04); }
.baf-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }

.baf-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff;
  transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(14,39,64,.15); pointer-events: none;
}
.baf-divider::after {
  content: "\f337"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .8rem;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--azul-atlantico);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-hover);
}

.baf-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; cursor: ew-resize;
}
.baf-range::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 100%; background: transparent; }
.baf-range::-moz-range-thumb { width: 36px; height: 100%; background: transparent; border: none; }
.baf-range::-moz-range-track { background: transparent; }

.baf-tag {
  position: absolute; top: 14px; z-index: 2; pointer-events: none;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(14,39,64,.65); padding: 6px 12px; border-radius: var(--radius-full);
  backdrop-filter: blur(3px);
}
.baf-tag-before { left: 14px; }
.baf-tag-after { right: 14px; background: rgba(193,99,59,.82); }

.baf-caption { margin-top: 14px; text-align: center; font-weight: 600; font-size: .92rem; color: var(--azul-atlantico); }

.baf-empty {
  max-width: 460px; margin: 0 auto; text-align: center;
  padding: 44px 28px; border: 2px dashed var(--areia-dark); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.5); color: var(--text-muted);
}
.baf-empty[hidden] { display: none; }
.baf-empty i { font-size: 2rem; color: var(--terracota); opacity: .55; margin-bottom: 12px; display: block; }
.baf-empty p { font-size: .95rem; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-block { max-width: 680px; margin: 0 auto; text-align: center; }

.about-tagline { font-family: var(--font-display); font-style: italic; color: var(--terracota); font-size: 1.12rem; margin-bottom: 16px; }
.about-bio { color: var(--text-muted); margin-bottom: 26px; }
.about-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 24px; }
.about-trust-item { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; color: var(--azul-atlantico); }
.about-trust-item i { color: var(--terracota); }
.about-specialties { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.about-tag { background: #fff; color: var(--azul-atlantico); font-size: .8rem; font-weight: 700; padding: 8px 15px; border-radius: var(--radius-full); }

/* =========================================================
   CONTACT (direto — sem formulário)
   ========================================================= */
.cta-block { max-width: 620px; margin: 0 auto; text-align: center; }
.cta-block .eyebrow { justify-content: center; }
.cta-block .section-subtitle { margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 26px; }
.cta-hours { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--text-onnavy-muted); font-size: .88rem; }
.cta-hours i { color: var(--ouro); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--azul-atlantico-dark); color: var(--text-onnavy-muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding: 56px 0 40px; }
.footer .logo-img { height: 46px; }
.footer-tagline { margin-top: 14px; font-size: .9rem; max-width: 280px; line-height: 1.7; }
.footer-links-group { display: flex; flex-direction: column; gap: 11px; }
.footer-links-group h4 { color: var(--text-onnavy); font-size: .95rem; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; }
.footer-links-group a, .footer-links-group span { font-size: .88rem; transition: var(--transition); }
.footer-links-group a:hover { color: var(--ouro); }
.footer-links-group i { color: var(--terracota); width: 16px; margin-right: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .8rem; }
.footer-dev { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); text-align: center; font-size: .78rem; color: var(--text-onnavy-muted); opacity: .85; }
.footer-dev strong { color: var(--ouro); font-weight: 600; }

/* =========================================================
   BOTÃO FLUTUANTE DE MENSAGEM
   ========================================================= */
.msg-float-wrapper { position: fixed; bottom: 26px; right: 26px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
body.nav-open .msg-float-wrapper { display: none; }
.msg-float-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--terracota); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; box-shadow: 0 10px 26px rgba(193,99,59,.42); transition: var(--transition); }
.msg-float-btn:hover { background: var(--terracota-dark); transform: scale(1.07); }
.msg-pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--terracota); opacity: .6; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{ transform: scale(.9); opacity: .6;} 100%{ transform: scale(1.5); opacity: 0;} }

.msg-tooltip { position: relative; background: #fff; border-radius: 14px; padding: 16px 40px 16px 18px; box-shadow: var(--shadow-hover); max-width: 210px; font-size: .84rem; }
.msg-tooltip p { font-weight: 700; color: var(--azul-atlantico); margin-bottom: 2px; }
.msg-tooltip span { color: var(--text-muted); font-size: .8rem; }
.msg-close { position: absolute; top: 10px; right: 10px; color: var(--text-light); font-size: .8rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .baf-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .header-inner { height: 70px; }
  .header .nav-list { display: none; }
  .header-cta span { display: none; }
  .header-cta { padding: 11px 14px; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .nav-overlay.open { display: block; position: fixed; inset: 70px 0 0 0; background: rgba(14,39,64,.35); z-index: 140; }

  .hero { min-height: auto; padding: 100px 0 56px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 16px; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .baf-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .msg-tooltip { display: none !important; }
  .msg-float-wrapper { bottom: 18px; right: 18px; }
}
