/* ===================================================
   INSTITUTO CAMILA FERREIRA — PREMIUM DESIGN SYSTEM
   =================================================== */

:root {
  /* Colors */
  --white: #FFFFFF;
  --off-white: #FAF8F6;
  --wine-500: #681F32;
  --wine-700: #491522;
  --gold-300: #E5C47E;
  --gold-500: #AA7736;
  --gray-200: #E4E4E7;
  --gray-400: #A1A1AA;
  --gray-600: #52525B;
  --gray-900: #202024;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  
  /* Shadows & Layout */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-600);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ---- UTILITIES ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
}

.bg-soft {
  background-color: var(--off-white);
}

.text-wine {
  color: var(--wine-500);
}

.text-gold {
  color: var(--gold-500);
}

/* ---- COMPONENTS ---- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background-color: var(--wine-500);
  color: var(--white);
}

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

.btn--outline {
  background-color: transparent;
  color: var(--gray-900);
  border-color: var(--gold-500);
}

.btn--outline:hover {
  background-color: var(--gold-500);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* Section Headings */
.section-heading {
  margin-bottom: 3rem;
}

.section-heading.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  padding: 1.25rem 0;
  transition: padding var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

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

.header__logo-link {
  display: block;
  flex-shrink: 0;
}

.header__logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* Integrates white background logos better */
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold-500);
  transition: width var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--wine-500);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gray-900);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 999;
  padding-top: 80px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  height: 100%;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gray-900);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  padding: 10rem 0 6rem;
  background-color: var(--off-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__tag {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-500);
  margin-bottom: 1.5rem;
}

.tag-line {
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--gold-500);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image-wrapper {
  position: relative;
}

.hero__image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero__gold-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ==========================================
   SOBRE O INSTITUTO
   ========================================== */
.sobre__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: center;
}

.sobre__images {
  position: relative;
}

.sobre__img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

.sobre__gold-box {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 60%;
  height: 50%;
  background-color: var(--off-white);
  border: 1px solid var(--gold-300);
  z-index: 1;
  border-radius: var(--radius-lg);
}

.sobre__text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.sobre__features {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sobre__features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--gray-900);
  font-weight: 500;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--off-white);
  color: var(--gold-500);
  border-radius: 50%;
}

/* ==========================================
   NOSSA ESPECIALISTA
   ========================================== */
.especialista__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.especialista__subtitle {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.especialista__text {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.especialista__creds {
  margin-top: 2rem;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
}

.cred-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold-500);
  border-radius: 50%;
}

.especialista__image-frame {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

.especialista__image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--white);
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.especialista__img {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transform: translate(-2rem, 2rem);
}

/* ==========================================
   TRATAMENTOS
   ========================================== */
.tratamentos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.tratamento-card {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tratamento-card:hover {
  border-color: var(--gold-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.tratamento-card__icon {
  color: var(--gold-500);
  margin-bottom: 1.5rem;
}

.tratamento-card__title {
  font-size: 1.4rem;
  color: var(--wine-500);
  margin-bottom: 1rem;
}

.tratamento-card__desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin: 0;
}

/* ==========================================
   DEPOIMENTOS
   ========================================== */
.depoimentos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.depoimento-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.depoimento-card__quote {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold-300);
  line-height: 0;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.depoimento-card__text {
  font-size: 1rem;
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.depoimento-card__author strong {
  display: block;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1.05rem;
}

.depoimento-card__author span {
  display: block;
  font-size: 0.85rem;
  color: var(--wine-500);
}

/* ==========================================
   AGENDAMENTO (FORMULÁRIO)
   ========================================== */
.agendamento {
  background-color: var(--wine-700);
  color: var(--white);
  padding: 6rem 0;
}

.agendamento__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}

.agendamento__title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.agendamento__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.agendamento__contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.25rem;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-300);
  margin-bottom: 0.2rem;
}

.contact-value {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
}

/* Form Styles */
.form {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--gray-900);
}

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

.form__group {
  margin-bottom: 1.5rem;
}

.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form__group input,
.form__group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
  background-color: var(--off-white);
  transition: var(--transition);
  outline: none;
  appearance: none; /* For select */
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.7rem;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  pointer-events: none;
}

.form__group input:focus,
.form__group select:focus {
  border-color: var(--wine-500);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(104, 31, 50, 0.1);
}

.form__success {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

/* ==========================================
   LOCALIZAÇÃO
   ========================================== */
.localizacao__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.localizacao__map {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--gray-200);
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  margin-bottom: 0.5rem;
}

.info-block p {
  color: var(--gray-900);
  font-size: 1.1rem;
  line-height: 1.5;
}

.localizacao__actions {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: var(--wine-700);
  color: var(--white);
  padding-top: 5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer__logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Tenta tornar a logo branca se for escura */
}

.footer__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  max-width: 90%;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.footer__socials a:hover {
  background-color: var(--gold-500);
  transform: translateY(-3px);
}

.footer__title {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--gold-300);
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transition: transform var(--transition);
}

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

/* ==========================================
   ANIMATIONS
   ========================================== */
.reveal-slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-slide-up.visible,
.reveal-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .hero__title { font-size: 3rem; }
  .sobre__inner, .especialista__inner, .agendamento__inner, .localizacao__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .sobre__images {
    order: -1;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .especialista__image {
    max-width: 80%;
    margin: 0 auto;
  }
  
  .tratamentos__grid, .depoimentos__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .header__nav, .header__cta { display: none; }
  .hamburger { display: flex; }
  
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__tag { justify-content: center; }
  .hero__actions { justify-content: center; }
  
  .sobre__images, .especialista__image { max-width: 100%; }
  
  .tratamentos__grid, .depoimentos__grid { grid-template-columns: 1fr; }
  
  .form { padding: 2rem 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  
  .localizacao__actions { flex-direction: column; }
  
  .footer__inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer__socials { justify-content: center; }
  .footer__desc { margin: 0 auto 2rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.25rem; }
  .btn { width: 100%; justify-content: center; }
  .whatsapp-float { bottom: 1.5rem; right: 1.5rem; width: 50px; height: 50px; }
}
