/* ============================================================
   Dra. Daniela Landim — Dermatologia
   Design: elegante, curvo, delicado
   Palette: #f3dfd6 (bg) · #f4c8af · #e2baa1 · #d6b19e · #dddddd
   ============================================================ */

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

:root {
  --header-bg: #dddddd;
  --bg: #f3dfd6;
  --c1: #f4c8af;
  --c2: #e2baa1;
  --c3: #d6b19e;
  --ink: #4a3a35;
  --ink-soft: #6b5a54;
  --white: #ffffff;
  --deep: #563739;
  --overlay: linear-gradient(135deg, rgba(86,55,57,.25) 0%, rgba(86,55,57,.40) 100%);
  --shadow-soft: 0 10px 40px -12px rgba(86,55,57,.25);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--deep); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--c3); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 300;
  color: var(--deep);
  letter-spacing: .5px;
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; }
p { margin: 0 0 1em; font-weight: 300; }

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow: 0 4px 20px -12px rgba(86,55,57,.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { width: 300px; height: auto; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px; cursor: pointer;
  width: 42px; height: 42px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--deep);
  margin: 5px auto; transition: .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.main-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; font-size: .85rem;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; background: var(--c3);
  transition: .4s ease; transform: translateX(-50%);
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.has-sub { position: relative; }
.has-sub > a::before { content: "⌵"; font-size: .7em; margin-left: 4px; opacity: .55; }
.has-sub ul {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--white);
  padding: 14px 4px; min-width: 320px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden;
  transition: .3s ease; flex-direction: column; gap: 0;
}
.has-sub:hover ul, .has-sub:focus-within ul {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.has-sub ul li { width: 100%; }
.has-sub ul a { display: block; padding: 8px 22px; font-size: .78rem; letter-spacing: .8px; }
.has-sub ul a::after { display: none; }
.has-sub ul a:hover { background: var(--bg); }
.has-sub ul.treatment-submenu {
  min-width: min(840px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  align-items: start;
}
.treatment-submenu .submenu-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.treatment-submenu .submenu-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c3);
  padding: 6px 22px 10px;
  font-weight: 400;
}
.treatment-submenu .submenu-group a { white-space: nowrap; }

.header-icons { display: flex; align-items: center; gap: 12px; }
.icon-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--deep); transition: transform .3s ease, background .3s ease;
}
.icon-link:hover { transform: translateY(-2px); background: var(--c1); color: var(--white); }
.icon-link svg { width: 18px; height: 18px; }

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  background: var(--bg);
}
.hero picture, .hero img {
  width: 100%; height: auto; display: block;
}
.hero-inner {
  padding: 60px 0 30px;
  text-align: center;
}

/* Page hero (non-banner pages) */
.page-hero {
  position: relative;
  padding: 100px 0 90px;
  text-align: center;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 55%, var(--c3) 100%);
  color: var(--white);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.25), transparent 40%);
  pointer-events: none;
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p { color: rgba(255,255,255,.9); position: relative; max-width: 720px; margin: 0 auto; }

.breadcrumb {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; letter-spacing: 1px;
  color: rgba(255,255,255,.85); margin-bottom: 18px; text-transform: uppercase;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 80px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title small {
  display: block; font-family: 'Montserrat', sans-serif;
  font-size: .78rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--c3); margin-bottom: 10px; font-weight: 400;
}
.section-title h2 { position: relative; display: inline-block; padding-bottom: 18px; }
.section-title h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 60px; height: 1px; background: var(--c3); transform: translateX(-50%);
}

/* About / intro two-col */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.split .image-wrap {
  position: relative;
}
.split .image-wrap img {
  width: 100%; border-radius: 260px 260px 40px 40px;
  box-shadow: var(--shadow-soft);
}
.split .image-wrap::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 260px 260px 40px 40px;
  background: var(--overlay);
  pointer-events: none;
}
.split .image-wrap.flip img { border-radius: 40px 40px 260px 260px; }
.split .image-wrap.flip::after { border-radius: 40px 40px 260px 260px; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--c3); margin-bottom: 12px; display: block; font-weight: 400;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px; border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 400;
  background: var(--deep); color: var(--white);
  border: 1px solid var(--deep);
  transition: all .35s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--deep); transform: translateY(-2px); }
.btn.btn-light { background: var(--white); color: var(--deep); border-color: var(--white); }
.btn.btn-light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn.btn-outline { background: transparent; color: var(--deep); }
.btn.btn-outline:hover { background: var(--deep); color: var(--white); }

/* ============================================================
   TREATMENT GRID (cards com overlay)
   ============================================================ */
.treatment-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.treatment-card {
  position: relative; overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
  transition: transform .5s ease;
}
.treatment-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.treatment-card::after {
  content: ""; position: absolute; inset: 0;
  background: var(--overlay);
  transition: background .4s ease;
}
.treatment-card:hover { transform: translateY(-6px); }
.treatment-card:hover img { transform: scale(1.08); }
.treatment-card:hover::after {
  background: linear-gradient(135deg, rgba(86,55,57,.55) 0%, rgba(86,55,57,.75) 100%);
}
.treatment-card .card-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; color: var(--white);
}
.treatment-card small {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; letter-spacing: 3px; text-transform: uppercase;
  opacity: .85; margin-bottom: 8px;
}
.treatment-card h3 {
  color: var(--white); font-size: 1.4rem; margin: 0 0 6px;
}
.treatment-card p { font-size: .95rem; opacity: .95; margin: 0 0 16px; }
.treatment-card .card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  color: var(--white); font-size: .72rem; letter-spacing: 2px;
  text-transform: uppercase; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.6);
  align-self: flex-start;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.feature {
  background: var(--white); padding: 40px 30px;
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform .4s ease, box-shadow .4s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.feature .icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c3));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); margin-bottom: 18px;
}
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background:
    radial-gradient(ellipse at top left, rgba(244,200,175,.5), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(214,177,158,.4), transparent 55%),
    var(--bg);
  border-radius: 60px;
}
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.testi {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
  padding: 38px 32px; border-radius: 28px;
  position: relative;
}
.testi::before {
  content: "\201C";
  position: absolute; top: -8px; left: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem; color: var(--c2); opacity: .5; line-height: 1;
}
.testi p { font-style: italic; color: var(--ink); position: relative; }
.testi .who {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c3); margin-top: 12px;
}
.stars { color: #d4a574; letter-spacing: 3px; margin-bottom: 12px; font-size: 1rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--c2) 0%, var(--c3) 100%);
  border-radius: 60px; padding: 60px 40px;
  text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.25), transparent 40%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 0 auto 28px; }

/* ============================================================
   CONTACT INFO
   ============================================================ */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.info-card {
  background: var(--white); padding: 34px 28px;
  border-radius: 24px; text-align: center;
}
.info-card .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c3));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); margin-bottom: 14px;
}
.info-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--c3); margin-bottom: 10px;
}
.info-card p, .info-card a { margin: 0; color: var(--ink); font-size: 1rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  background: var(--white); padding: 50px;
  border-radius: 40px; box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
input, textarea, select {
  width: 100%; padding: 14px 18px;
  border: 1px solid rgba(86,55,57,.15);
  border-radius: 14px; font-family: inherit; font-size: 1rem;
  background: var(--bg); color: var(--ink);
  transition: border-color .3s, background .3s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--c3); background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   TREATMENT PAGE CONTENT
   ============================================================ */
.rich-content {
  max-width: 820px; margin: 0 auto;
}
.rich-content h2, .rich-content h3 { margin-top: 1.6em; }
.rich-content p { color: var(--ink-soft); }
.rich-content ul { padding-left: 22px; }
.rich-content ul li { margin-bottom: 8px; color: var(--ink-soft); }

.treatment-hero-img {
  position: relative;
  border-radius: 40px; overflow: hidden;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: var(--shadow-soft);
}
.treatment-hero-img img { width: 100%; height: auto; }
.treatment-hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: var(--overlay); pointer-events: none;
}

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border-radius: 20px;
  padding: 20px 26px; margin-bottom: 14px;
  box-shadow: 0 4px 20px -14px rgba(86,55,57,.25);
  transition: box-shadow .3s;
}
.faq details[open] { box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: var(--deep);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--c3); transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--deep); color: rgba(255,255,255,.75);
  padding: 80px 0 24px; margin-top: 60px;
  border-top-left-radius: 60px; border-top-right-radius: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-grid h4 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem; letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 20px; font-weight: 400;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-grid a:hover { color: var(--c1); }
.footer-grid .brand img {
  width: 200px; margin-bottom: 20px; filter: brightness(0) invert(1) opacity(.9);
}
.footer-grid .brand p { font-size: .95rem; color: rgba(255,255,255,.7); }
.footer-social {
  display: flex; gap: 12px; margin-top: 16px;
}
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--white); transition: background .3s;
}
.footer-social a:hover { background: var(--c1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px; text-align: center;
  font-size: .8rem; color: rgba(255,255,255,.55);
}

/* ============================================================
   COOKIES BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 900px; margin: 0 auto;
  background: var(--white); padding: 22px 28px;
  border-radius: 24px; box-shadow: var(--shadow-soft);
  display: none; align-items: center; gap: 20px; z-index: 200;
  flex-wrap: wrap; justify-content: center;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; min-width: 240px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 34px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  section { padding: 60px 0; }
  .header-inner { justify-content: center; position: relative; padding: 12px 0; }
  .logo-link { margin: 0 auto; }
  .logo-link img { width: 50vw; max-width: 260px; }
  .nav-toggle {
    display: block; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  }
  .header-icons { position: absolute; left: 4%; top: 50%; transform: translateY(-50%); gap: 6px; }
  .header-icons .icon-link { width: 36px; height: 36px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--header-bg);
    max-height: 0; overflow: hidden; transition: max-height .45s ease;
    border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
  }
  .main-nav.open { max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: center; padding: 20px 0 30px; gap: 4px; text-align: center; }
  .main-nav a { padding: 12px 20px; display: block; text-align: center; }
  .has-sub { width: 100%; }
  .has-sub ul {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; background: transparent; min-width: 0; width: 100%;
    padding: 0 0 8px; display: none; align-items: center; text-align: center;
  }
  .has-sub ul li { width: auto; }
  .has-sub.open ul { display: flex; }
  .has-sub ul.treatment-submenu {
    min-width: 0;
    width: 100%;
    padding: 4px 0 12px;
    gap: 10px;
  }
  .has-sub.open ul.treatment-submenu { display: flex; }
  .treatment-submenu .submenu-group { width: 100%; align-items: center; }
  .treatment-submenu .submenu-heading { padding: 14px 20px 4px; text-align: center; }
  .treatment-submenu .submenu-group a { white-space: normal; }
  .has-sub ul a { padding: 8px 20px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-grid .brand img { margin: 0 auto 16px; }
  .page-hero { padding: 70px 0 60px; border-bottom-left-radius: 40px; border-bottom-right-radius: 40px; }
  .cta-band { padding: 44px 24px; border-radius: 40px; }
  .testimonials { border-radius: 40px; }
  .site-footer { border-top-left-radius: 40px; border-top-right-radius: 40px; }
}

/* Print / performance */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
