/* =============================================
   Massagens no Vale — Home Page Styles
   ============================================= */

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

:root {
  --color-primary:       #1E3A2F;
  --color-primary-light: #2D5A47;
  --color-accent:        #C4963C;
  --color-accent-light:  #D4AA5A;
  --color-bg:            #F9F5F0;
  --color-bg-alt:        #F2EDE6;
  --color-surface:       #FFFFFF;
  --color-text:          #1A1A1A;
  --color-text-muted:    #666666;
  --color-border:        #E8E0D6;
  --color-whatsapp:      #25D366;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(30,58,47,.08);
  --shadow-md:  0 4px 20px rgba(30,58,47,.12);
  --shadow-lg:  0 8px 40px rgba(30,58,47,.16);
  --transition: 220ms ease;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .section-subtitle { margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-primary-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

.btn--white {
  background: #fff;
  color: var(--color-primary);
}
.btn--white:hover { background: var(--color-bg); transform: translateY(-1px); box-shadow: var(--shadow-md); }

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

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header__logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.header__logo-subtitle {
  font-size: .7rem;
  color: var(--color-text-muted);
  letter-spacing: .06em;
}
.header__nav {
  display: flex;
  gap: 2rem;
}
.header__nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}
.header__nav a:hover { color: var(--color-primary); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 60%, #3a6b52 100%);
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.hero__label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: italic;
  color: var(--color-accent-light);
}
.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Search box */
.hero__search { max-width: 560px; margin: 0 auto; }
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-box__icon {
  position: absolute;
  left: 1.25rem;
  width: 20px; height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.search-box__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1.1rem 3.5rem 1.1rem 3.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: transparent;
  width: 100%;
}
.search-box__input::placeholder { color: var(--color-text-muted); }
.search-box__clear {
  position: absolute;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.search-box__clear svg { width: 16px; height: 16px; }
.search-box__clear:hover { background: var(--color-bg-alt); color: var(--color-text); }

/* Hero wave */
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 80px; }

/* ---- Filter pills ---- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.pill {
  padding: .45rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--color-border);
  font-size: .85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  transition: var(--transition);
}
.pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pill--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ---- Catalog section ---- */
.catalog { padding: 80px 0 100px; background: var(--color-bg); }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.catalog__empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.catalog__empty button {
  margin-top: .75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  font-size: .9rem;
}

/* ---- Massage card ---- */
.massage-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.massage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.massage-card[hidden] { display: none; }

.massage-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}
.massage-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.massage-card:hover .massage-card__image img { transform: scale(1.04); }

.massage-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.massage-card__image-placeholder svg { width: 48px; height: 48px; opacity: .7; }

/* gradient placeholders */
.grad-1 { background: linear-gradient(135deg, #1E3A2F, #3a6b52); }
.grad-2 { background: linear-gradient(135deg, #C4963C, #8B6820); }
.grad-3 { background: linear-gradient(135deg, #2D5A47, #1a3d2b); }
.grad-4 { background: linear-gradient(135deg, #5a4a7a, #3a2d5a); }

.massage-card__category {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: rgba(30,58,47,.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 50px;
}

.massage-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.massage-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.massage-card__desc {
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: .875rem;
  flex: 1;
}
.massage-card__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}
.massage-card__benefit {
  font-size: .72rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(30,58,47,.08);
  border-radius: 50px;
  padding: .25rem .7rem;
}

/* Therapist mini-block */
.massage-card__therapist {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 0 .875rem;
  border-top: 1px solid var(--color-border);
  margin-bottom: .875rem;
}
.massage-card__therapist-photo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
}
.massage-card__therapist-info { flex: 1; min-width: 0; }
.massage-card__therapist-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.massage-card__therapist-location {
  font-size: .75rem;
  color: var(--color-text-muted);
}
.massage-card__price {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: right;
  flex-shrink: 0;
}
.massage-card__price-label {
  display: block;
  font-size: .68rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.massage-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  transition: background var(--transition);
  margin-top: auto;
}
.massage-card__cta:hover { background: var(--color-primary-light); }
.massage-card__cta svg { flex-shrink: 0; }

/* ---- Therapists section ---- */
.therapists {
  padding: 80px 0 100px;
  background: var(--color-bg-alt);
}
.therapists__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.therapist-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.therapist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.therapist-card__photo-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.therapist-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 400ms ease;
}
.therapist-card:hover .therapist-card__photo { transform: scale(1.04); }

.therapist-card__body { padding: 1.5rem 1.5rem 2rem; }
.therapist-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .25rem;
}
.therapist-card__location {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-bottom: .75rem;
}
.therapist-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.therapist-card__badge {
  font-size: .7rem;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(196,150,60,.1);
  border-radius: 50px;
  padding: .25rem .7rem;
}
.therapist-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}
.therapist-card__cta:hover { background: var(--color-primary-light); transform: translateY(-1px); }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 80px 0;
}
.cta-banner__inner { text-align: center; }
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: .75rem;
}
.cta-banner__subtitle {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0 1.5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 1.5rem;
}
.footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}
.footer__tagline { font-size: .78rem; }
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a { font-size: .88rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--color-accent-light); }
.footer__bottom {
  font-size: .78rem;
  text-align: center;
  color: rgba(255,255,255,.45);
}

/* ---- Fade-in observer ---- */
.fade-observe {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.fade-observe.visible { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; }
  .catalog__grid { grid-template-columns: 1fr; }
  .therapists__grid { grid-template-columns: 1fr; max-width: 360px; }
  .header__nav { display: none; }
  .filter-pills { gap: .4rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .massage-card__body { padding: 1rem 1.125rem 1.25rem; }
}
