/* =====================================================
   Márcia Campos - Espaço de Estética e Spa | Santos - SP
   Design system: feminine, curvy, teal + soft beige
   ===================================================== */

:root {
  --teal: #008080;
  --teal-dark: #006a6a;
  --teal-light: #4bb1b1;
  --beige: #f6f1e7;
  --beige-2: #fdf9f0;
  --white: #ffffff;
  --gray: #d3d3d3;
  --gray-dark: #6b6f76;
  --ink: #2a2f36;
  --green: #228b22;
  --gold: #daa520;
  --pink: #ffc0cb;
  --pink-soft: #ffe6ea;
  --shadow-sm: 0 4px 14px rgba(0, 128, 128, .08);
  --shadow-md: 0 12px 32px rgba(0, 128, 128, .14);
  --shadow-lg: 0 24px 60px rgba(0, 128, 128, .18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --font-heading: "Playfair Display", "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: 38px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 128, 128, .08);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 20px;
}
.logo img { height: 62px; width: auto; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 28px; height: 3px; background: var(--teal);
  border-radius: 4px; margin: 5px 0; transition: transform .3s;
}
.main-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; font-weight: 500;
  color: var(--ink); font-size: 15px; transition: all .25s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--teal); color: var(--white);
}
.has-submenu { position: relative; }
.has-submenu > a::after {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s;
}
.has-submenu:hover > a::after,
.has-submenu.open > a::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); min-width: 240px;
  border-radius: var(--radius); padding: 10px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .25s ease;
  border: 1px solid rgba(0,128,128,.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.submenu li { width: 100%; display: block; }
.has-submenu:hover .submenu,
.has-submenu.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { list-style: none; }
.submenu a {
  display: block; padding: 8px 14px; border-radius: 12px;
  color: var(--ink); font-size: 14px;
}
.submenu a:hover { background: var(--beige); color: var(--teal-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 8px 0 0;
}
.hero picture, .hero img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero-wrap { position: relative; }
.hero-wrap::before {
  content: ""; position: absolute; inset: -30px -30px auto auto;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,192,203,.35), transparent 70%);
  z-index: -1;
}

/* ---------- Section headings ---------- */
.section {
  padding: 72px 0;
  position: relative;
}
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title .kicker {
  display: inline-block; color: var(--teal);
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 8px; font-weight: 600;
}
.section-title h2 { margin-bottom: 10px; }
.section-title p { color: var(--gray-dark); max-width: 640px; margin: 0 auto; }
.section-title .divider {
  display: inline-block; width: 90px; height: 4px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  border-radius: 4px; margin: 10px 0 20px;
}

/* ---------- Card grid (treatments) ---------- */
.grid { display: grid; gap: 28px; margin-inline: auto; }
.grid-3 { grid-template-columns: repeat(3, 280px); max-width: calc(3 * 280px + 2 * 28px); }
.grid-4 { grid-template-columns: repeat(4, 260px); max-width: calc(4 * 260px + 3 * 28px); }
.grid-2 { grid-template-columns: repeat(2, 420px); max-width: calc(2 * 420px + 28px); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  text-align: center;
  border: 1px solid rgba(0,128,128,.06);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .thumb {
  aspect-ratio: 10 / 13.3;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 14px;
  background: var(--beige);
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card h3 {
  font-family: var(--font-body);
  font-size: 17px; margin: 6px 0 4px; color: var(--ink);
  font-weight: 600;
}
.card p { font-size: 14px; color: var(--gray-dark); margin: 0; }
.card .link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; color: var(--teal); font-weight: 500; font-size: 14px;
}
.card .link::after { content: "→"; transition: transform .2s; }
.card:hover .link::after { transform: translateX(4px); }

/* Alternating backgrounds for treatment sections */
.bg-facial { background: linear-gradient(180deg, var(--beige-2), var(--white)); }
.bg-corporal { background: linear-gradient(180deg, #eef8f8, var(--beige-2)); }
.bg-terapias { background: linear-gradient(180deg, var(--pink-soft), var(--beige-2)); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(300px, 1fr) 1.2fr;
  gap: 56px; align-items: center;
}
.about-photo {
  border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-md);
  position: relative;
}
.about-photo.rounded-organic {
  border-radius: 50% / 46% 46% 50% 50%;
}
.about-photo::before {
  content: ""; position: absolute; inset: -20px; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(0,128,128,.15), transparent 70%);
}
.about-photo img { width: 100%; height: auto; display: block; }
.about-text p { color: var(--gray-dark); font-size: 15.5px; }
.about-text h2 { text-align: left; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 32px;
}
.gallery img {
  border-radius: var(--radius);
  aspect-ratio: 1/1; object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease;
}
.gallery img:hover { transform: scale(1.04); }

/* ---------- SPA cards ---------- */
.spa-list { display: grid; gap: 40px; }
.spa-item {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 40px; align-items: center;
  background: var(--white); padding: 24px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.spa-item:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.spa-item:nth-child(even) .spa-media { order: 2; }
.spa-item img { border-radius: var(--radius); }
.spa-item h3 { color: var(--teal-dark); font-size: 24px; }
.spa-item ul { padding-left: 20px; color: var(--gray-dark); }
.spa-item ul li { margin: 4px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--teal); color: var(--white);
  font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(0,128,128,.28);
  transition: transform .2s, box-shadow .2s, background .2s;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,128,128,.35); }
.btn.btn-outline {
  background: transparent; color: var(--teal); border: 2px solid var(--teal); box-shadow: none;
}
.btn.btn-outline:hover { background: var(--teal); color: #fff; }
.btn.btn-wa { background: #25d366; box-shadow: 0 8px 22px rgba(37,211,102,.35); }
.btn.btn-wa:hover { background: #1cb955; }

/* ---------- Fluxo (5 steps) ---------- */
.fluxo {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  margin-top: 30px;
}
.fluxo-item {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; position: relative;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--teal-light);
}
.fluxo-item .num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); color: #fff; display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 20px; font-weight: 700;
  margin-bottom: 14px;
}
.fluxo-item h4 { font-family: var(--font-body); font-size: 15px; margin: 0 0 8px; color: var(--teal-dark); }
.fluxo-item p { font-size: 13.5px; color: var(--gray-dark); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info {
  background: var(--white); padding: 32px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.contact-info ul { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-info li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed rgba(0,128,128,.15);
}
.contact-info li:last-child { border-bottom: 0; }
.contact-info .icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--beige); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.map-wrap iframe {
  width: 100%; height: 100%; min-height: 400px;
  border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--teal-dark), #004d4d);
  color: #dfeeee; padding: 56px 0 20px;
  margin-top: 60px;
  position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: -60px; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'><path d='M0,60 C240,0 480,0 720,30 C960,60 1200,60 1440,0 L1440,60 Z' fill='%23004d4d'/></svg>") center/cover no-repeat;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 15px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a { color: #cfe6e6; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-grid li { padding: 4px 0; }
.footer-logo img { max-width: 200px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-bottom {
  padding-top: 20px; text-align: center; font-size: 13px; color: #a9c8c8;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
  animation: pulse 2.4s ease-in-out infinite;
}
.wa-float svg { width: 32px; height: 32px; }
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 10px 30px rgba(37,211,102,.5); }
  50% { transform: scale(1.06); box-shadow: 0 14px 40px rgba(37,211,102,.7); }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 55;
  background: var(--white); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-lg);
  display: none; align-items: center; gap: 20px;
  font-size: 14px; max-width: 780px; margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1; color: var(--gray-dark); }
.cookie-banner button {
  background: var(--teal); color: #fff; border: 0; padding: 10px 20px;
  border-radius: 999px; cursor: pointer; font-weight: 600;
}

/* ---------- Diferenciais ---------- */
.diferenciais {
  background: linear-gradient(180deg, var(--white) 0%, var(--beige-2) 100%);
}
.dif-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: 24px;
}
.dif-item {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,128,128,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.dif-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dif-item .dif-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.dif-item h4 {
  font-family: var(--font-body); font-size: 16px; margin: 0 0 8px;
  color: var(--teal-dark); font-weight: 600;
}
.dif-item p { font-size: 14px; color: var(--gray-dark); margin: 0; }

/* ---------- Depoimentos ---------- */
.depoimentos { background: linear-gradient(180deg, var(--pink-soft) 0%, var(--beige-2) 100%); }
.dep-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 24px;
}
.dep-item {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); position: relative;
  border-top: 4px solid var(--teal-light);
}
.dep-item::before {
  content: "\201C"; font-family: var(--font-heading); font-size: 88px;
  color: var(--teal-light); line-height: .8; opacity: .35;
  position: absolute; top: 8px; left: 20px;
}
.dep-stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 8px; }
.dep-item p { color: var(--gray-dark); font-size: 14.5px; font-style: italic; margin: 6px 0 16px; position: relative; }
.dep-author {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
}
.dep-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--pink));
  color: #fff; font-weight: 600; font-family: var(--font-heading);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.dep-author strong { display: block; color: var(--ink); font-size: 14.5px; }
.dep-author small { color: var(--gray-dark); font-size: 12.5px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  padding: 20px 0 0; font-size: 13px; color: var(--gray-dark);
}
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--teal); }

/* ---------- Treatment page ---------- */
.tratamento-hero {
  background: linear-gradient(135deg, var(--beige) 0%, var(--pink-soft) 100%);
  padding: 60px 0; text-align: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.tratamento-hero h1 { color: var(--teal-dark); }
.tratamento-hero p { color: var(--gray-dark); max-width: 640px; margin: 0 auto; }
.tratamento-content {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px;
  padding: 60px 0;
}
.tratamento-content img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 10/13.3; object-fit: cover; }
.tratamento-content h2 { color: var(--teal-dark); }
.tratamento-content ul { padding-left: 20px; color: var(--gray-dark); }
.tratamento-content ul li { margin: 6px 0; }
.tratamento-cta {
  background: var(--teal); color: #fff; border-radius: var(--radius-lg);
  padding: 40px; text-align: center; margin-top: 30px;
}
.tratamento-cta h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.tratamento-cta p { color: rgba(255,255,255,.9); margin-bottom: 20px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 30px auto 0; }
.faq-item {
  background: var(--white); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--teal-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--teal); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 24px; color: var(--gray-dark); font-size: 14.5px; }
.faq-item.open .faq-a { padding-bottom: 20px; max-height: 500px; }

/* Decorative curves */
.wave-top {
  position: absolute; top: -1px; left: 0; right: 0;
  height: 40px; pointer-events: none;
}
.wave-bottom {
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 40px; pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(3, 260px); max-width: calc(3 * 260px + 2 * 28px); }
}
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 260px); max-width: calc(2 * 260px + 28px); }
  .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .dep-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .spa-item, .spa-item:nth-child(even) { grid-template-columns: 1fr; }
  .spa-item:nth-child(even) .spa-media { order: 0; }
  .fluxo { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .tratamento-content { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .section { padding: 56px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 12px;
    box-shadow: var(--shadow-md); display: none;
    border-top: 1px solid rgba(0,128,128,.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { justify-content: space-between; padding: 12px 14px; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding-left: 12px; display: none;
    background: var(--beige-2);
  }
  .has-submenu.open .submenu { display: block; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: minmax(0, 320px); max-width: 320px; }
  .dif-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .fluxo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
