@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #F47920; 
  --color-dark: #0A0A0A;
  --color-dark-alt: #1A1A1A;
  --color-light: #FFFFFF;
  --color-gray: #888888;
  --font-main: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: var(--color-light);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--color-primary); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; }
.section-subtitle {
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--color-primary); margin-bottom: 16px; display: block;
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-primary);
  padding: 12px 32px 12px 20px; 
  border-radius: 2px 40px 40px 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  border: 2px solid var(--color-primary);
  cursor: pointer;
}
.btn:hover { background-color: var(--color-primary); color: var(--color-dark); }

.btn-outline { border-color: var(--color-light); color: var(--color-light); }
.btn-outline:hover { background-color: var(--color-light); color: var(--color-dark); }
.btn-dark { border-color: var(--color-dark); color: var(--color-dark); }
.btn-dark:hover { background-color: var(--color-dark); color: var(--color-primary); }

.section-padding { padding: 100px 0; }

/* HEADER (Fixo e transparente, fica laranja no scroll) */
.site-header {
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent; 
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  padding: 16px 0;
  background-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 35px; width: auto; object-fit: contain; } 
.logo-light { display: block; }
.logo-dark { display: none; mix-blend-mode: multiply; }
.site-header.scrolled .logo-light { display: none; }
.site-header.scrolled .logo-dark { display: block; }

.main-nav ul { display: flex; list-style: none; gap: 32px; }
.main-nav a {
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--color-light); 
  transition: color 0.3s ease;
}
.site-header.scrolled .main-nav a { color: var(--color-dark); }
.site-header.scrolled .main-nav a:hover { color: var(--color-light); }

/* Header Button */
.site-header .btn { border-color: var(--color-light); color: var(--color-light); }
.site-header .btn:hover { background-color: var(--color-light); color: var(--color-dark); }
.site-header.scrolled .btn { border-color: var(--color-dark); color: var(--color-dark); }
.site-header.scrolled .btn:hover { background-color: var(--color-dark); color: var(--color-primary); }


/* HERO */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 80px;
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.6; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, var(--color-dark) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0) 100%); z-index: -1; }
.hero-content { max-width: 600px; padding: 60px 0; }
.hero-title { font-size: 4rem; margin-bottom: 24px; }
.hero-title span { color: var(--color-primary); }
.hero-text { font-size: 1.125rem; color: var(--color-gray); margin-bottom: 40px; max-width: 480px; }

/* ELEMENTOS GRÁFICOS */
.graphic-element-tl, .graphic-element-br {
  position: absolute; display: flex; flex-direction: column; gap: 12px;
  z-index: 1;
}
.graphic-element-tl { top: 0; left: 0; }
.graphic-element-tl .bar { background: var(--color-dark); height: 40px; border-radius: 0 40px 40px 0; }
.graphic-element-tl .bar:nth-child(1) { width: 100px; }
.graphic-element-tl .bar:nth-child(2) { width: 160px; }
.graphic-element-tl .bar:nth-child(3) { width: 220px; }

.graphic-element-br { bottom: 0; right: 0; align-items: flex-end; }
.graphic-element-br .bar { background: var(--color-dark); height: 40px; border-radius: 40px 0 0 40px; }
.graphic-element-br .bar:nth-child(1) { width: 220px; }
.graphic-element-br .bar:nth-child(2) { width: 160px; }
.graphic-element-br .bar:nth-child(3) { width: 100px; }


/* FEATURES (Estilo Spazzio adaptado) */
.fm-features {
  background-color: var(--color-dark-alt); 
  position: relative; 
  padding: 100px 0;
}
.fm-features-header { text-align: center; max-width: 800px; margin: 0 auto 64px auto; }
.fm-features-title { font-size: clamp(32px, 4vw, 44px); margin-bottom: 20px; color: var(--color-light); }
.fm-features-title span { color: var(--color-primary); font-style: italic; }
.fm-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.fm-feature-card {
  background: var(--color-dark);
  border-radius: 4px; /* Mais reto */
  padding: 32px 24px;
  border: 1px solid rgba(244, 121, 32, 0.2); /* Borda laranja suave */
  transition: all 0.3s ease;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.fm-feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(244, 121, 32, 0.1);
}
.fm-feature-icon {
  width: 60px; height: 60px;
  background: transparent;
  border: 1px solid rgba(244, 121, 32, 0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 24px;
  transition: all 0.3s ease;
}
.fm-feature-card:hover .fm-feature-icon {
  background: rgba(244, 121, 32, 0.1);
  border-color: var(--color-primary);
  transform: scale(1.1);
}
.fm-feature-card h3 { font-size: 18px; color: var(--color-light); margin: 0; }
.fm-feature-card p { font-size: 14px; color: var(--color-gray); margin: 0; }

/* SERVICES (Com gráficos arredondados por trás colando no rodapé) */
.services { 
  background-color: var(--color-light); 
  padding-top: 100px; 
  padding-bottom: 0; /* Colar os blocos no final da seção */
  position: relative;
}
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.services-header-content { max-width: 500px; }
.services-title { font-size: 2.5rem; color: var(--color-dark); }
.services-grid { 
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; 
  align-items: end; /* Grudar na base */
}

.service-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.service-bg {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 90%;
  background-color: var(--color-primary);
  border-radius: 120px 120px 0 0; /* Arco no topo, reto em baixo */
  z-index: 1;
  /* Cascade Animation Inicial state */
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-column.in-view .service-bg {
  opacity: 1;
  transform: translateY(0);
}
/* Cascade delays */
.service-column:nth-child(1) .service-bg { transition-delay: 0.1s; }
.service-column:nth-child(2) .service-bg { transition-delay: 0.3s; }
.service-column:nth-child(3) .service-bg { transition-delay: 0.5s; }
.service-column:nth-child(4) .service-bg { transition-delay: 0.7s; }

.service-content {
  position: relative;
  z-index: 2;
  padding: 0 16px 32px 16px;
  text-align: center;
}
.service-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px; /* Quadrado/Retangular normal */
  margin-bottom: 24px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.service-column:hover .service-image {
  transform: translateY(-10px);
}
.service-title { font-size: 1.25rem; margin-bottom: 8px; font-weight: 700; color: var(--color-dark); }
.service-text { font-size: 0.875rem; color: var(--color-dark); opacity: 0.8; font-weight: 500; margin-bottom: 0;}


/* PROMO */
.promo { background-color: var(--color-dark-alt); color: var(--color-light); }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.promo .section-subtitle { color: var(--color-primary); }
.promo-title { font-size: 3rem; margin-bottom: 24px; }
.promo-text { font-size: 1.125rem; margin-bottom: 40px; font-weight: 500; color: var(--color-gray); }
.promo-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; box-shadow: -20px -20px 0px var(--color-primary); }


/* AVALIAÇÕES (Estilo Dr Vinícius adaptado) */
.fm-reviews {
    background-color: var(--color-dark);
    padding: 100px 0;
    position: relative;
}
.fm-reviews-header { text-align: center; margin-bottom: 48px; }
.fm-reviews-title { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; color: var(--color-light); }
.fm-reviews-subtitle { font-size: 17px; color: var(--color-gray); max-width: 700px; margin: 0 auto; line-height: 1.6; }
.fm-reviews-trustindex { text-align: center; margin-bottom: 48px; min-height: 120px; color: var(--color-gray); display:flex; align-items:center; justify-content:center; border: 1px dashed #333; border-radius: 4px; }
.fm-reviews-cta { text-align: center; }


/* TEASER */
.teaser { position: relative; background-color: var(--color-primary); color: var(--color-dark); }
.teaser-grid { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 60px; position: relative; z-index: 2; padding: 60px 0; }
.teaser-images { display: flex; gap: 20px; }
.teaser-img-wrapper { width: 250px; height: 350px; border-radius: 4px; overflow: hidden; }
.teaser-img-wrapper:nth-child(2) { transform: translateY(40px); }
.teaser-images img { width: 100%; height: 100%; object-fit: cover; }
.teaser-content { padding-left: 40px; }
.teaser-title { font-size: 2.5rem; margin-bottom: 24px; }
.teaser-text { font-size: 1.125rem; color: var(--color-dark); margin-bottom: 40px; font-weight: 500;}


/* LOCALIZAÇÃO (Estilo Dr Vinícius adaptado) */
.fm-location { background-color: var(--color-dark-alt); padding: 100px 0; }
.fm-location-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.fm-location-info header { margin-bottom: 32px; }
.fm-location-title { font-size: 42px; font-weight: 700; color: var(--color-light); margin: 0 0 16px 0; line-height: 1.2; }
.fm-location-desc { font-size: 17px; color: var(--color-gray); margin: 0; line-height: 1.6; }
.fm-location-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px;}
.fm-location-link { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 4px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease; }
.fm-location-link:hover { border-color: var(--color-primary); background: rgba(244,121,32,0.05); }
.fm-location-icon { width: 44px; height: 44px; background-color: rgba(244,121,32,0.1); color: var(--color-primary); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fm-location-icon svg { width: 22px; height: 22px; stroke-width: 2; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.fm-location-content { display: flex; flex-direction: column; gap: 4px; }
.fm-location-content strong { font-size: 16px; font-weight: 700; color: var(--color-light); }
.fm-location-content span { font-size: 15px; color: var(--color-gray); }

.fm-location-hours { background-color: var(--color-dark); padding: 24px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.05); }
.fm-hours-title { font-size: 18px; font-weight: 700; color: var(--color-light); margin: 0 0 16px 0; display: flex; align-items: center; gap: 8px; }
.fm-hours-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fm-hour-item { display: flex; justify-content: space-between; font-size: 15px; color: var(--color-gray); border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 8px; }
.fm-hour-item:last-child { border-bottom: none; padding-bottom: 0; }
.fm-hour-item strong { color: var(--color-primary); font-weight: 600; }

.fm-map-container { border-radius: 4px; overflow: hidden; height: 400px; border: 1px solid rgba(255,255,255,0.1); }
.fm-map-container iframe { width: 100%; height: 100%; border: none; filter: invert(90%) hue-rotate(180deg); /* Dark mode map trick */ }


/* FOOTER (Adaptado do Dr. Vinícius) */
.fm-footer {
    background-color: #050505;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 80px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.fm-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.fm-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.fm-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fm-footer-desc {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    max-width: 350px;
}

.fm-footer-col-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-light);
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.fm-footer-nav-link {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.fm-footer-nav-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.fm-footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fm-footer-col-4 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.fm-footer-col-4 .fm-footer-contact-info {
    align-items: flex-end;
}

.fm-footer-col-4 .fm-contact-item {
    justify-content: flex-end;
    text-align: right;
    flex-direction: row-reverse;
}

.fm-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    font-weight: 500;
}

.fm-contact-item:hover {
    color: var(--color-primary);
}

.fm-contact-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
    margin-top: 2px;
}

.fm-footer-bottom {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.fm-footer-copyright {
    font-size: 14px;
}

.fm-footer-signature {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}

.fm-footer-signature strong {
    color: var(--color-light);
    font-weight: 700;
}

.fm-footer-signature:hover strong {
    color: var(--color-primary);
}

/* ─── Floating Actions ─── */
.fm-floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.fm-floating-actions-left {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.fm-floating-actions-left.fm-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fm-float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fm-float-btn:hover {
    transform: scale(1.1) translateY(-4px);
}

.fm-float-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.fm-float-btn--whatsapp,
.fm-float-btn--instagram {
    background-color: var(--color-primary);
    color: var(--color-dark) !important;
}

.fm-float-btn--whatsapp:hover,
.fm-float-btn--instagram:hover {
    background-color: var(--color-light);
    color: var(--color-primary) !important;
}

.fm-float-btn--whatsapp svg {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.fm-float-btn--instagram svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
}

.fm-float-btn--top {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gray);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.fm-float-btn--top:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.fm-float-btn--top svg {
    fill: none;
    stroke-width: 2;
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .fm-features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-image { order: -1; }
  .teaser-grid { grid-template-columns: 1fr; }
  .fm-location-wrapper { grid-template-columns: 1fr; }
  .fm-footer-grid { grid-template-columns: 1fr 1fr; }
  .fm-footer-brand { grid-column: 1 / -1; }
  .graphic-element-tl, .graphic-element-br { display: none; } 
}
@media (max-width: 768px) {
  .site-header .main-nav { display: none; } 
  .fm-features-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .teaser-images { flex-direction: column; width: 100%; }
  .teaser-img-wrapper { width: 100%; height: 300px; }
  .teaser-img-wrapper:nth-child(2) { transform: none; }
  
  .fm-footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .fm-footer-brand { align-items: center; }
  .fm-footer-col-4 { align-items: center; text-align: center; }
  .fm-footer-col-4 .fm-footer-contact-info { align-items: center; }
  .fm-footer-col-4 .fm-contact-item { flex-direction: row; justify-content: center; text-align: center; }
  .fm-contact-item { justify-content: center; text-align: center; }
  .fm-footer-nav-link { justify-content: center; }
  .fm-footer-nav-link:hover { transform: translateY(-2px); }
  .fm-footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  
  .fm-floating-actions { right: 16px; bottom: 16px; gap: 8px; }
  .fm-floating-actions-left { left: 16px; bottom: 16px; }
  .fm-float-btn { width: 48px; height: 48px; }
  .fm-float-btn svg { width: 24px; height: 24px; }
}
