@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Colors carefully matched to screen.png */
  --gold-dark: #8c734b;
  --gold-gradient: linear-gradient(135deg, #bba271 0%, #a48b59 100%);
  --gold-button: linear-gradient(to bottom, #bd9563, #987140);
  --gold-text: #8e7a56;
  --bg-white: #ffffff;
  --bg-beige-hero: linear-gradient(to right, #f2eadc, #eecdb3);
  --bg-beige-solid: #f4eadc;
  --text-dark: #2a2a2a;
  --text-muted: #5e5e5e;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'DM Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* Header */
header {
  background-color: var(--bg-white);
  padding: 1.5rem 0;
  position: relative;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-family: var(--font-sans);
  color: var(--gold-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 4px;
}

.nav-links a.active {
  border-bottom: 1px solid var(--gold-dark);
}

/* Hero Section */
.hero {
  background: var(--bg-beige-hero);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(140, 115, 75, 0.2);
  border-bottom: 1px solid rgba(140, 115, 75, 0.2);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 550px;
}

.hero-content {
  max-width: 500px;
  position: relative;
  z-index: 2;
  margin-bottom: 10.5rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.1;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.btn-primary {
  display: inline-block;
  background: var(--gold-button);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  box-shadow: 0 8px 15px rgba(152, 113, 64, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(152, 113, 64, 0.4);
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-logo {
  position: absolute;
  top: 5.4rem;
  right: 10rem;
  width: 11.0rem;
  height: 12.0rem;
  object-fit:fill;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(244, 234, 220, 0.95) 0%, rgba(201, 169, 106, 0.4) 55%, transparent 100%);
  z-index: 1;
}

/* Especialidades Block */
.especialidades-block {
  background-color: var(--bg-beige-solid);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(140, 115, 75, 0.2);
}

.especialidades-block h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-dark);
  font-weight: 500;
}

.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.espec-item {
  background: var(--bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(140, 115, 75, 0.1);
}

.espec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(140, 115, 75, 0.1);
}

.espec-icon {
  width: 48px;
  height: 48px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1.5rem;
}

.espec-item h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.saiba-mais {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  margin-top: 0.5rem;
}

.saiba-mais:hover {
  border-color: var(--gold-dark);
}

/* Transformacoes Section */
.transformacoes {
  background-color: var(--bg-white);
  padding: 5rem 0;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-dark);
  margin-bottom: 3rem;
  font-weight: 500;
}

/* Carousel/Grid constraints mimicking mockup */
.cards-container {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
}

.cards-container::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.card {
  flex: 0 0 400px;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0e6da;
  padding: 10px;
  position: relative;
}

.card-images {
  display: flex;
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
}

.card-image-box {
  flex: 1;
  position: relative;
}

.card-image-box img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.card-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.card-nav {
  display: flex;
  justify-content: space-between;
  padding: 15px 10px 5px;
  color: #c9b189;
}

.card-nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  cursor: pointer;
  transition: color 0.2s;
}

.card-nav svg:hover {
  color: var(--gold-dark);
}

/* Slider Controls */
.slider-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.slider-line {
  height: 4px;
  width: 40px;
  background-color: #f0e6da;
  border-radius: 2px;
  cursor: pointer;
}

.slider-line.active {
  background-color: var(--gold-dark);
  width: 30px;
}

/* Footer Section */
footer {
  background-color: var(--bg-beige-solid);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(140, 115, 75, 0.2);
  position: relative;
}

footer h3 {
  font-family: var(--font-serif);
  color: var(--gold-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-contact {
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-dark);
  cursor: pointer;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Floating Action Buttons */
.fab-whatsapp {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.2s;
}

.fab-whatsapp:hover {
  transform: scale(1.05);
}

.fab-whatsapp svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

/* External glow effect shown in mockup */
.fab-whatsapp::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.5);
  box-shadow: inset 0 0 15px rgba(37, 211, 102, 0.3);
  pointer-events: none;
}

.fab-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gold-dark);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  cursor: pointer;
  transition: background 0.2s;
}

.fab-top:hover {
  background: #735d3a;
}

.fab-top svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.logo-subtitle {
  font-size: 1.0rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 1024px) {
  .hero .container {
    padding: 0 4rem;
  }
}

@media (max-width: 1090px){
  .hero-content {
    margin-top: 300px;
  }
}

@media (max-width: 1000px){
  .hero-content {
    margin-top: 300px;
  }
}

@media (max-width: 800px) {

  .card-images img {
    object-fit: contain !important;
  }   
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .logo-subtitle {
    margin-left: 0 !important;
    margin-top: 5px;
  }

  .hero .container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    padding: 2rem 1.5rem;
  }
  
  .hero-logo {
    right: 20px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero::before {
    background: linear-gradient(to bottom, rgba(244, 234, 220, 0.0) 0%, rgba(244, 234, 220, 0.7) 50%);
  }

  .especialidades-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cards-container {
    gap: 1rem;
  }

  .slider-indicator {
    display: none;
  }

  .card {
    flex: 0 0 280px;
  }

  .footer-contact {
    padding: 0 1rem;
  }

  .fab-whatsapp {
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .fab-whatsapp svg {
    width: 30px;
    height: 30px;
  }

}

@media (max-width: 490px){
  .hero-logo {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-logo {
    position: absolute;
    top: 17.4rem;
    right: 0.0rem;
    width: 11.0rem;
    height: 12.0rem;
    object-fit:fill;
    z-index: 1;
  }
  
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-logo {
    position: absolute;
    top: 17.4rem;
    right: 7.5rem;
    width: 11.0rem;
    height: 12.0rem;
    object-fit:fill;
    z-index: 1;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo-subtitle {
    font-size: 0.9rem;
  }
}