:root {
  --red: #e50914;
  --black: #111;
  --white: #f1f1f1;
  --gray: #333;
  --light-gray: #555;
  --dark-gray: #222;
  --pastel-brown: #D6C3B5;
  --pastel-ivory: #F4EFEA;
  --pastel-blush: #F5C6C6;
  --pastel-warm-gray: #CFC7C2;
  --color-surface: #1a1a1a;
  --off-white: #F5F1EC;
  --ease: cubic-bezier(.22,.9,.36,1);
  --transition: 0.32s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
}

body {
  background: #fff;
  color: var(--dark-gray);
  transition: color var(--transition) var(--ease), background-color var(--transition) var(--ease);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.background {
  background-image: url("../../assets/images/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

a, button {
  transition: color var(--transition) var(--ease), background-color var(--transition) var(--ease), transform var(--transition) var(--ease);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: relative;
  z-index: 10;
  background: transparent;
}

.header-content,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right { gap: 30px; }

.logo {
  width: 120px;
  transition: transform var(--transition) var(--ease);
}

.logo:hover { transform: scale(1.03); }

.menu-btn {
  width: 34px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.menu-btn.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.menu-btn:hover span { background: #c80b0b; }

.socialsvg {
  width: 28px;
  height: auto;
  cursor: pointer;
  transition: transform var(--transition) var(--ease);
}
.socialsvg:hover { transform: scale(1.08); }

.nav {
  position: absolute;
  top: 100%;
  right: 0;
  background: #000;
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 220px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 1000;
}
.nav.nav--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-list a {
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 4px;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.nav-list a:hover { color: var(--red); }
.nav-list a:focus { outline: 3px solid rgba(229,9,20,0.18); outline-offset: 4px; }

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: var(--red);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  color: var(--pastel-blush);
}

.btn-primary, .contato-form button {
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), color 0.28s var(--ease);
}
.btn-primary:hover, .contato-form button:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
  color: var(--black);
  background-color: var(--off-white);
  border-color: var(--red);
}
.btn-primary:focus, .contato-form button:focus { outline: 3px solid rgba(229,9,20,0.18); outline-offset: 4px; }

.card {
  background: var(--color-surface);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
}

.card.service:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 24px 40px rgba(0,0,0,0.35);
}

.card img { width: 100%; border-radius: 8px; margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; color: var(--off-white); font-size: 1.4rem; }
.card p { color: #bbb; line-height: 1.5; }

.card.plano {
  background: #111;
  text-align: center;
}
.card.plano:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 24px 40px rgba(0,0,0,0.35);
}
.card.plano:hover h3,
.card.plano:hover p,
.card.plano:hover .preco { color: var(--white); }

.preco {
  display: block;
  margin-top: 20px;
  font-size: 1.6rem;
  color: var(--red);
  font-weight: 700;
}
.destaque { border: 2px solid var(--red); }

.mapa {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.mapa-col--map { flex: 0 0 45%; }
.mapa-col--info { flex: 1 1 55%; color: #ddd; }
.mapa iframe { width: 100%; height: 360px; border: 0; border-radius: 8px; display: block; }
.mapa .endereco { margin-top: 6px; font-size: 1rem; font-weight: 500; color: #ccc; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.galeria { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease); }
.galeria > img:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

.galeria img { width: 100%; border-radius: 8px; }

.contato-form { max-width: 500px; margin: auto; display: flex; flex-direction: column; gap: 15px; }
.contato-form input, .contato-form textarea { padding: 14px; border: none; border-radius: 4px; }
.contato-form textarea { resize: none; height: 120px; }

.footer { background: #000; padding: 40px 0; font-size: 14px; color: #aaa; }
.footer a { color: var(--red); text-decoration: none; }
.footer .container { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.footer-contact { color: #ccc; text-align: left; }
.footer-copy { text-align: center; color: #9b9b9b; margin-top: 6px; }

.section { padding: 100px 0; text-align: center; background-color: var(--pastel-ivory); }
.section-dark { background: var(--color-surface); }
.section h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--red); }
.section-desc { max-width: 700px; margin: 0 auto 60px; line-height: 1.6; color: var(--light-gray); }
.section-desc.pastel { color: var(--pastel-brown); }

.reveal-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); will-change: transform, opacity; }
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

@media (min-width: 900px) { .reveal-on-scroll { transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); } }

@media (prefers-reduced-motion: reduce) { .reveal-on-scroll, .reveal-on-scroll.in-view, .btn-primary, button, .card, .galeria > img { transition: none !important; animation: none !important; } }

@media (max-width: 900px) {
  .hero h1 { font-size: 2.2rem; }
  .logo { width: 100px; }
  .socialsvg { width: 32px; }
  .mapa iframe { height: 300px; }
  .card:active { transform: translateY(-4px) scale(1.1); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }
}

@media (max-width: 768px) { .nav { right: 16px; } }

@media (max-width: 600px) {
  .header { padding: 10px 14px; }
  .header-content { gap: 8px; }
  .header-right { gap: 10px; }
  .logo { width: 90px; }
  .hero { height: 70vh; }
  .btn-primary { padding: 14px 22px; }
  .nav { right: 8px; left: auto; }
  .cards { gap: 18px; }
  .mapa { flex-direction: column; }
  .mapa-col--map, .mapa-col--info { width: 100%; flex: 0 0 auto; }
}

@media (max-width: 480px) { .background { background-size: 120%; background-position: center top; } .hero-content { padding-bottom: 22px; } }

@media (max-width: 360px) {
  .background { background-size: 125%; background-position: center top; }
  .header { padding: 12px 16px; }
  .header-right { gap: 8px; }
  .hero h1 { font-size: 1.9rem; margin-bottom: 18px; }
  .hero p { font-size: 1rem; margin-bottom: 20px; }
  .btn-primary { padding: 12px 18px; font-size: 0.95rem; }
  .cards { gap: 14px; }
  .card { padding: 18px; }
  .back-to-top { right: 12px; bottom: 18px; width: 40px; height: 40px; font-size: 18px; }
}

@media (hover: none), (pointer: coarse) {
  .card:hover { transform: none; box-shadow: none; }
  .card.is-open, .card:active, .card:focus { transform: translateY(-6px) scale(1.1); box-shadow: 0 20px 30px rgba(0,0,0,0.25); }
  .card.is-open h3, .card.is-open p, .card.is-open .preco { color: var(--white); }
  .card:focus { outline: 3px solid rgba(229,9,20,0.12); outline-offset: 6px; }
}

.back-to-top { position: fixed; right: 20px; bottom: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); border: none; display: grid; place-items: center; font-size: 20px; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.25); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s; z-index: 1200; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
:root {
  --red: #e50914;
  --black: #111;
  --white: #f1f1f1;
  --gray: #333;
  --light-gray: #555;
  --dark-gray: #222;
  --pastel-brown: #D6C3B5;
  --pastel-ivory: #F4EFEA;
  --pastel-blush: #F5C6C6;
  --pastel-warm-gray: #CFC7C2;
  --color-surface: #1a1a1a;
  --off-white: #F5F1EC;
  --ease: cubic-bezier(.22,.9,.36,1);
  --transition: 0.32s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
}

body {
  background: #fff;
  color: var(--dark-gray);
  transition: color var(--transition) var(--ease), background-color var(--transition) var(--ease);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.background {
  background-image: url("../../assets/images/background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

a, button {
  transition: color var(--transition) var(--ease), background-color var(--transition) var(--ease), transform var(--transition) var(--ease);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  position: relative;
  z-index: 10;
  background: transparent;
}

.header-content,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right { gap: 30px; }

.logo {
  width: 120px;
  transition: transform var(--transition) var(--ease);
}

.logo:hover { transform: scale(1.03); }

.menu-btn {
  width: 34px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

.menu-btn.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.menu-btn:hover span { background: #c80b0b; }

.socialsvg {
  width: 28px;
  height: auto;
  cursor: pointer;
  transition: transform var(--transition) var(--ease);
}
.socialsvg:hover { transform: scale(1.08); }

.nav {
  position: absolute;
  top: 100%;
  right: 0;
  background: #000;
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 220px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 1000;
}
.nav.nav--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-list a {
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 4px;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.nav-list a:hover { color: var(--red); }
.nav-list a:focus { outline: 3px solid rgba(229,9,20,0.18); outline-offset: 4px; }

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  color: var(--red);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  color: var(--pastel-blush);
}

.btn-primary, .contato-form button {
  background: var(--red);
  color: var(--white);
  padding: 16px 32px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), color 0.28s var(--ease);
}
.btn-primary:hover, .contato-form button:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
  color: var(--black);
  background-color: var(--off-white);
  border-color: var(--red);
}
.btn-primary:focus, .contato-form button:focus { outline: 3px solid rgba(229,9,20,0.18); outline-offset: 4px; }

.card {
  background: var(--color-surface);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
}

.card.service:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 24px 40px rgba(0,0,0,0.35);
}


.card img { width: 100%; border-radius: 8px; margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; 
  color: var(--off-white);
  font-size: 1.4rem;
  }
.card p { color: #bbb; line-height: 1.5; }

.card.plano {
  background: #111;
  text-align: center;
}
.card.plano:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 24px 40px rgba(0,0,0,0.35);
}
.card.plano:hover h3,
.card.plano:hover p,
.card.plano:hover .preco { color: var(--white); }

.preco {
  display: block;
  margin-top: 20px;
  font-size: 1.6rem;
  color: var(--red);
  font-weight: 700;
}
.destaque { border: 2px solid var(--red); }

.mapa {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.mapa-col--map { flex: 0 0 45%; }
.mapa-col--info { flex: 1 1 55%; color: #ddd; }
.mapa iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 8px;
  display: block;
}
.mapa .endereco { margin-top: 6px; font-size: 1rem; font-weight: 500; color: #ccc; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.galeria { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; 
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
}
.galeria > img:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.galeria img { width: 100%; border-radius: 8px; }

.contato-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contato-form input, .contato-form textarea { padding: 14px; border: none; border-radius: 4px; }
.contato-form textarea { resize: none; height: 120px; }

.footer {
  background: #000;
  padding: 40px 0;
  font-size: 14px;
  color: #aaa;
}
.footer a { color: var(--red); text-decoration: none; }
.footer .container { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.footer-contact { color: #ccc; text-align: left; }
.footer-copy { text-align: center; color: #9b9b9b; margin-top: 6px; }

.section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--pastel-ivory);
}
.section-dark { background: var(--color-surface); }
.section h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--red); }
.section-desc { max-width: 700px; margin: 0 auto 60px; line-height: 1.6; color: var(--light-gray); }
.section-desc.pastel { color: var(--pastel-brown); }

.reveal-on-scroll {
  /* Mobile-first: smaller offset and faster timing */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  will-change: transform, opacity;
}
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

@media (min-width: 900px) {
  /* larger screens get a bit more offset and slower easing */
  .reveal-on-scroll { transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.in-view,
  .btn-primary,
  button,
  .card,
  .galeria > img {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .hero h1 { font-size: 2.2rem; }
  .logo { width: 100px; }
  .socialsvg { width: 32px; }
  .mapa iframe { height: 300px; }
  .card:active {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  }
}

@media (max-width: 768px) { .nav { right: 16px; } }

@media (max-width: 600px) {
  /* increase horizontal padding so header buttons aren't flush to the edge on small screens */
  .header { padding: 10px 14px; }
  .header-content { gap: 8px; }
  .header-right { gap: 10px; }
  .logo { width: 90px; }
  .hero { height: 70vh; }
  .btn-primary { padding: 14px 22px; }
  .nav { right: 8px; left: auto; }
  .cards { gap: 18px; }
  .mapa { flex-direction: column; }
  .mapa-col--map, .mapa-col--info { width: 100%; flex: 0 0 auto; }
}

/* Slightly enlarge background on very small screens to keep important content away from edges */
@media (max-width: 480px) {
  .background { background-size: 200vh; background-position: center top; }
  .hero-content { padding-bottom: 22px; }
}

/* Specific tweaks for very small phones (360px wide) */
@media (max-width: 360px) {
  /* make background a bit larger to avoid visible cropping and keep CTA away from edge */
  .background { background-size: 200vh; background-position: center top; }

  /* header spacing */
  .header { padding: 12px 16px; }
  .header-right { gap: 8px; }

  /* hero and CTA */
  .hero h1 { font-size: 1.9rem; margin-bottom: 18px; }
  .hero p { font-size: 1rem; margin-bottom: 20px; }
  .btn-primary { padding: 12px 18px; font-size: 0.95rem; }

  /* cards and gallery spacing */
  .cards { gap: 14px; }
  .card { padding: 18px; }

  /* slightly move back-to-top so it doesn't overlap bottom UI on small phones */
  .back-to-top { right: 12px; bottom: 18px; width: 40px; height: 40px; font-size: 18px; }
}

/* Touch devices: no hover; provide active/focus and .is-open alternative */
@media (hover: none), (pointer: coarse) {
  .card:hover { transform: none; box-shadow: none; }
  .card.is-open,
  .card:active,
  .card:focus {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 20px 30px rgba(0,0,0,0.25);
  }
  .card.is-open h3,
  .card.is-open p,
  .card.is-open .preco {
    color: var(--white);
  }
  .card:focus { outline: 3px solid rgba(229,9,20,0.12); outline-offset: 6px; }
}


.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  border: none;
  display: grid;
  place-items: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  z-index: 1200;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }


