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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   DESIGN SYSTEM
   ========================================================================== */
:root {
  --header-clearance: 8.5rem;
  --color-primary: #0a0a0a;
  --color-secondary: #ff6a00;
  --color-secondary-dark: #e05e00;
  --color-background: #ffffff;
  --color-surface: #f6f6f4;
  --color-border: #eaeaea;
  --color-text: #111111;
  --color-muted: #6b6b6b;

  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1200px;
  --section-spacing: clamp(3.5rem, 6vw, 6.5rem);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --transition-fast: 0.22s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 1px rgba(10, 10, 10, 0.03);
  --shadow-md: 0 12px 24px -12px rgba(10, 10, 10, 0.18);
  --shadow-lg: 0 24px 48px -20px rgba(10, 10, 10, 0.22);
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-background);
  font-size: 16px;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

address {
  font-style: normal;
}

/* ==========================================================================
   LAYOUT / UTILITÁRIOS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
}

section {
  padding-block: var(--section-spacing);
}

:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==========================================================================
   COMPONENTES — BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), padding var(--transition-normal), font-size var(--transition-normal);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--color-secondary);
  color: #101010;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-secondary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--text {
  color: var(--color-primary);
  font-weight: 700;
  padding: 14px 8px;
}

.btn--text:hover {
  color: var(--color-secondary-dark);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   CABEÇALHO — ILHA FLUTUANTE
   ========================================================================== */
.header {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 16px;
  right: 16px;
  width: auto;
  z-index: 500;
  display: flex;
  justify-content: center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 960px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 14px 20px;
  transition: padding var(--transition-normal), border-radius var(--transition-normal), box-shadow var(--transition-normal);
}

.header--scrolled .header__inner {
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}

.header--scrolled #btn-whatsapp-header {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.header__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(10, 10, 10, 0.08);
  transition: width var(--transition-normal), height var(--transition-normal);
}

.header--scrolled .header__logo-img {
  width: 30px;
  height: 30px;
}

.header__logo-text span {
  color: var(--color-secondary);
}

.header__nav {
  display: none;
  align-items: center;
  gap: 28px;
  margin-inline: auto;
  font-weight: 600;
  font-size: 0.92rem;
}

.header__nav a {
  transition: color var(--transition-fast);
}

.header__nav a:hover {
  color: var(--color-secondary-dark);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-top: var(--header-clearance);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 5vw, 2.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-secondary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  margin-bottom: 12px;
}

.hero__highlight {
  position: relative;
  color: var(--color-secondary);
  font-size: 1.06em;
  white-space: nowrap;
}

.hero__highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline-draw 0.6s ease forwards;
  animation-delay: 0.9s;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #45484c;
  max-width: 42ch;
  margin-bottom: clamp(1.25rem, 4vw, 2.25rem);
}

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

.hero__actions .btn {
  width: 100%;
}

.hero__media {
  width: 100%;
}

.hero__media.reveal {
  transform: translateY(24px) scale(0.97);
}

.hero__media.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.hero__media-frame {
  position: relative;
  animation: hero-float 6s ease-in-out infinite;
}

.hero__media-frame::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 106, 0, 0.32), transparent 65%);
  filter: blur(40px);
  z-index: -1;
  opacity: 0;
  animation: glow-in 1.1s ease forwards;
  animation-delay: 0.35s;
}

.hero__media-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   PLACEHOLDER DE IMAGEM
   ========================================================================== */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.img-placeholder--hero {
  aspect-ratio: 4 / 3;
  min-height: 260px;
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services {
  background: var(--color-surface);
}

.services .section-title {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.services__grid-wrap {
  position: relative;
}

.services__spine {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(255, 106, 0, 0.35), rgba(255, 106, 0, 0.35), transparent);
  transition: height 0.9s ease;
  z-index: 0;
  pointer-events: none;
}

.services__grid-wrap.is-visible .services__spine {
  height: 100%;
}

.services__spine-dot {
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s ease var(--dot-delay, 0s), opacity 0.4s ease var(--dot-delay, 0s);
  z-index: 0;
  pointer-events: none;
}

.services__grid-wrap.is-visible .services__spine-dot {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.services__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  z-index: 1;
}

.service-card {
  min-width: 0;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.service-card.reveal {
  transform: translateY(12px);
  transition: opacity 0.42s ease var(--delay, 0s), transform 0.42s ease var(--delay, 0s);
}

.service-card.reveal.is-visible {
  transform: translateY(0);
}

.service-card__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 106, 0, 0.1);
  color: var(--color-secondary-dark);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.service-card__title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.32;
}

.service-card.is-active {
  border-color: rgba(255, 106, 0, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card.is-active .service-card__icon {
  background: rgba(255, 106, 0, 0.18);
  color: var(--color-secondary-dark);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 106, 0, 0.35);
  }

  .service-card:hover .service-card__icon {
    transform: scale(1.08) rotate(-4deg);
  }
}

@media (hover: none) {
  .service-card:active {
    transform: scale(0.98);
  }
}

/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */
.location .section-title {
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.location .reveal {
  transition: opacity 0.5s ease var(--delay, 0s), transform 0.5s ease var(--delay, 0s);
}

.location__map {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.location__map.reveal {
  transform: translateY(20px) scale(0.98);
}

.location__map.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.location__map {
  transition: box-shadow var(--transition-normal);
}

@media (hover: hover) {
  .location__map:hover {
    box-shadow: var(--shadow-lg);
  }
}

.location__map iframe {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.location__map.is-loaded iframe {
  opacity: 1;
}

.map-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, var(--color-surface) 30%, #ececec 50%, var(--color-surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.location__map.is-loaded .map-skeleton {
  display: none;
}

.location__info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.location__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.location__address-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-secondary);
}

.location__address address {
  line-height: 1.55;
}

.location__address-name {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.location__address-lines {
  display: block;
  font-size: 0.92rem;
}

.location__address-zip {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.location__info .btn {
  width: 100%;
}

#btn-google-maps:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #101010;
}

.location__divider {
  position: relative;
  height: 1px;
  background: var(--color-border);
  margin-block: clamp(2rem, 5vw, 2.75rem);
}

.location__divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-secondary);
}

.location__cta {
  text-align: center;
}

.location__cta h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 8px;
}

.location__cta p {
  color: var(--color-muted);
  margin-bottom: 24px;
}

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

.location__cta-actions .btn {
  width: 100%;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding-block: 40px 24px;
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__brand strong {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer__brand span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer__links a,
.footer__address {
  transition: color var(--transition-fast);
}

.footer__links a:hover,
.footer__address:hover {
  color: var(--color-secondary);
}

.footer__address {
  display: block;
  max-width: 34ch;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.footer__credit {
  width: 100%;
  max-width: 320px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer__credit a:hover {
  color: var(--color-secondary);
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: calc(env(safe-area-inset-right, 0px) + 20px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 600;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

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

.whatsapp-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.55;
  animation: pulse-ring 2.4s ease-out infinite;
}
