.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #e8f4f6;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 8s linear;
  background: #cde4e8 center / cover no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide--ultrassom {
  background-image: url("../assets/hero/ultrassom.jpg");
  background-image: image-set(
    url("../assets/hero/ultrassom.webp") type("image/webp"),
    url("../assets/hero/ultrassom.jpg") type("image/jpeg")
  );
}

.hero-slide--bem-estar {
  background-image: url("../assets/hero/bem-estar.jpg");
  background-image: image-set(
    url("../assets/hero/bem-estar.webp") type("image/webp"),
    url("../assets/hero/bem-estar.jpg") type("image/jpeg")
  );
}

.hero-slide--viagem {
  background-image: url("../assets/hero/viagem.jpg");
  background-image: image-set(
    url("../assets/hero/viagem.webp") type("image/webp"),
    url("../assets/hero/viagem.jpg") type("image/jpeg")
  );
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.72) 32%, rgba(255,255,255,0.18) 58%, rgba(255,255,255,0.04) 100%);
}

.hero {
  margin-top: -148px;
}

.hero .shell {
  position: relative;
  z-index: 3;
  padding: 188px 0 120px;
}

.hero-copy.is-changing h1,
.hero-copy.is-changing p {
  opacity: 0;
  transform: translateY(6px);
}

.hero h1,
.hero p {
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--heading);
  text-wrap: balance;
}

.hero p {
  margin: 0 0 var(--space-stack-lg);
  max-width: 42ch;
  color: var(--ink);
  font-size: var(--body-text);
  line-height: 1.65;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 72px;
  z-index: 2;
  display: block;
  pointer-events: none;
}

/* .btn / .btn-solid live in layout.css so inner pages get them too. */

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.hero-dots button {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #c5d5d8;
  cursor: pointer;
  padding: 0;
  transition: width 0.22s var(--ease), flex-basis 0.22s var(--ease), background 0.22s var(--ease);
}

.hero-dots button[aria-selected="true"] {
  flex-basis: 24px;
  width: 24px;
  background: var(--orange);
}

.section {
  padding: var(--space-section) 0;
}

.section h2 {
  margin: 0 0 var(--space-title);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--heading);
  font-weight: 700;
  text-wrap: balance;
}

.about {
  padding-block: var(--space-section);
  background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 65%, var(--mist) 100%);
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
  row-gap: var(--space-section);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: var(--space-title);
  max-width: var(--measure-title);
}

.about-prose {
  max-width: none;
  font-size: var(--body-text);
  line-height: 1.65;
}

.about-prose p {
  margin: 0 0 var(--space-stack);
  color: var(--ink);
}

.about-prose p:last-child { margin-bottom: 0; }

.about-lead {
  font-size: var(--body-text);
  line-height: 1.68;
  color: #3f4f55;
}

.about-list-label {
  margin: var(--space-stack-lg) 0 12px;
  font-size: var(--body-text);
  font-weight: 700;
  color: var(--teal);
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  position: relative;
  padding-left: 32px;
  font-size: var(--body-text);
  line-height: 1.62;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 95, 112, 0.1);
}

.about-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.72em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--teal-mid);
  border-bottom: 2px solid var(--teal-mid);
  transform: rotate(-45deg);
}

.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
  border: 1px solid rgba(15, 95, 112, 0.08);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-photo figcaption {
  padding: 12px 18px;
  font-size: var(--body-text);
  font-weight: 600;
  color: var(--teal-mid);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line);
}

.organics {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.organics-wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 72px;
  display: block;
}

.organics-wave--top { top: 0; }
.organics-wave--bottom { bottom: 0; }

.services .shell,
.team .shell {
  position: relative;
  z-index: 1;
}

.services,
.team {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 40px;
}

.services {
  background: #0f5f70;
  padding: 72px 0 var(--space-section);
}

.team {
  padding: 72px 0 var(--space-section);
  background: linear-gradient(180deg, #f4fafb 0%, #d9eef3 100%);
}

.services h2 {
  color: #fff;
}

.team h2 {
  color: var(--teal);
}

.services-head {
  padding: 0;
  margin-bottom: var(--space-stack-lg);
}

.services-head h2 { margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.service-card {
  grid-column: span 2;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: 0 16px 32px rgba(8, 28, 34, 0.18);
  min-height: 228px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(8, 28, 34, 0.22);
}

.service-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 16px;
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 1.12rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.service-card p {
  margin: 0 0 16px;
  font-size: var(--body-text);
  line-height: 1.55;
  flex: 1;
}

.service-card .more {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
}

.service-card .more:hover { color: var(--orange); }

.services-grid .service-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: var(--space-title);
}

.band-head h2 { margin: 0; }

.team-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}

.team-track::-webkit-scrollbar { display: none; }

.team-card {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 95, 112, 0.1);
}

.team .carousel-nav button {
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(15, 95, 112, 0.08);
}

.team-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
}

.team-card .body { padding: 16px 18px 22px; }

.team-card h3 {
  margin: 0;
  color: var(--orange);
  font-size: 1.05rem;
}

.team-card .role {
  margin: 4px 0 10px;
  color: var(--teal);
  font-size: var(--body-text);
  font-weight: 700;
}

.team-card p {
  margin: 0;
  font-size: var(--body-text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 0;
}

.carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.carousel-nav button svg { width: 18px; height: 18px; }

.carousel-nav button:hover { transform: translateY(-1px); background: var(--mist); }

.quotes {
  position: relative;
  padding-block: var(--space-section);
  background: linear-gradient(180deg, #d9eef3 0%, var(--mist) 38%, var(--mist) 100%);
}

.quotes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: var(--space-title);
}

.quotes-head h2 { margin: 0; }

.quotes-nav { margin-bottom: 0; }

.quotes-board {
  background: var(--teal);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  box-shadow: 0 18px 36px rgba(8, 28, 34, 0.2);
}

.quotes-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}

.quotes-track::-webkit-scrollbar { display: none; }

.quote {
  flex: 0 0 min(100%, 520px);
  scroll-snap-align: start;
  margin: 0;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quote h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #fff;
  font-family: var(--font-display);
}

.quote p {
  margin: 0;
  font-size: var(--body-text);
  line-height: 1.6;
  color: #e7f4f6;
}

.stars {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}

.stars svg { width: 12px; height: 12px; display: block; }

@media (min-width: 900px) {
  .quote {
    flex-basis: calc(50% - 11px);
  }
}

.faq {
  position: relative;
  z-index: 1;
  background: var(--mist);
}

.faq-shell {
  max-width: 860px;
}

.faq-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15, 95, 112, 0.1);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--teal);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.faq-item summary:hover {
  color: var(--teal-deep);
}

.faq-answer {
  padding: 0 28px 22px;
  width: 100%;
  max-width: none;
}

.faq-answer p,
.faq-answer li {
  margin: 0;
  font-size: var(--body-text);
  line-height: 1.55;
  color: var(--ink);
}

.faq-answer ul {
  margin: 12px 0 0;
  padding-left: 1.15em;
  display: grid;
  gap: 6px;
}

.faq-answer a {
  font-weight: 700;
  color: var(--orange);
}

.faq-answer a:hover {
  color: var(--orange-hot);
}

.blog { background: var(--paper); }

.feed-lead {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.feed-lead a {
  display: contents;
  color: inherit;
}

.feed-lead img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
}

.feed-lead .copy {
  padding: 22px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-lead h3 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.feed-lead .excerpt {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: var(--body-text);
  line-height: 1.55;
}

.blog .feed-lead .copy {
  padding: 22px 28px 24px;
  justify-content: center;
}

.blog .feed-lead h3 {
  margin: 6px 0 10px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.blog .feed-lead .excerpt {
  margin: 0 0 14px;
  font-size: var(--body-text);
}

.feed-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feed-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.feed-card a.cover {
  display: block;
  overflow: hidden;
}

.feed-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.feed-card:hover img { transform: scale(1.04); }

.feed-card .copy {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feed-meta {
  display: none;
}

.feed-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--heading);
  line-height: 1.35;
}

.feed-card .excerpt {
  margin: 0 0 14px;
  font-size: var(--body-text);
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}

.feed-link {
  font-weight: 700;
  color: var(--orange);
  font-size: 0.9rem;
}

.feed-link:hover { color: var(--orange-hot); }

.blog-cta {
  text-align: center;
  margin-top: var(--space-title);
}

.contact {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: #0f5f70;
  margin-top: -72px;
  padding: 200px 0 136px;
  color: #f4fbfc;
}

.contact .organics-wave {
  z-index: 0;
}

.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px 40px;
  align-items: stretch;
}

.contact-panel .form {
  padding: 8px 0 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  align-content: start;
}

.contact h2 {
  margin: 0 0 6px;
  color: #fff;
  grid-column: 1 / -1;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.form .full,
.contact-panel h2,
.form .actions,
.form-note { grid-column: 1 / -1; }

.contact .form label {
  display: block;
  font-size: var(--body-text);
  color: #d5eef2;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact .form input,
.contact .form textarea {
  width: 100%;
  border: 1px solid rgba(232, 246, 248, 0.28);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  font: inherit;
  font-size: var(--body-text);
  color: #f4fbfc;
  background: rgba(255, 255, 255, 0.1);
  caret-color: var(--orange);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact .form textarea { min-height: 132px; resize: vertical; }

.contact .form input:hover,
.contact .form textarea:hover {
  border-color: rgba(232, 246, 248, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.contact .form input::placeholder {
  color: rgba(244, 251, 252, 0.72);
}

.contact .form input:focus,
.contact .form textarea:focus {
  border-color: var(--orange);
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(228, 108, 34, 0.28);
}

.contact .form input:-webkit-autofill,
.contact .form textarea:-webkit-autofill {
  -webkit-text-fill-color: #f4fbfc;
  caret-color: var(--orange);
  box-shadow: 0 0 0 1000px #1a7584 inset;
  transition: background-color 9999s ease-out;
}

.contact .btn:not(.btn-solid) {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.contact .btn:not(.btn-solid):hover {
  background: #fff;
  border-color: #fff;
  color: #0a4a58;
}

.form .actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.form-note {
  grid-column: 1 / -1;
  font-size: var(--body-text);
  color: #d5eef2;
  margin: 0;
}

.form-note:empty { display: none; }

.map-frame {
  position: relative;
  align-self: stretch;
  border-radius: 20px;
  overflow: hidden;
  min-height: 440px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.map {
  position: absolute;
  top: -148px;
  left: 0;
  border: 0;
  width: 100%;
  height: calc(100% + 148px);
  display: block;
  filter: saturate(0.82) contrast(1.04);
}

.contact-desk {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 246, 248, 0.16);
}

.contact-desk p {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--body-text);
  line-height: 1.35;
}

.visit-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 6px;
  font-size: var(--body-text);
  font-weight: 600;
}

.visit-phones a { color: #d5eef2; }

.visit-phones a:hover { color: #fff; }

@media (max-width: 1099px) {
  .about-shell { grid-template-columns: 1fr; gap: var(--space-stack-lg); }
  .about-copy h2 { max-width: none; }
  .about-prose { max-width: none; }
  .contact-panel { grid-template-columns: 1fr; min-height: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service-card { grid-column: auto; }
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) { grid-column: auto; }
  .services-grid .service-card:nth-child(5) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: calc((100% - 22px) / 2);
    justify-self: center;
  }
  .feed-lead { grid-template-columns: 1fr; }
  .feed-lead img { height: 180px; min-height: 180px; max-height: 180px; }
  .team-card { flex-basis: calc((100% - 20px) / 2); }
  .hero { min-height: min(72vh, 680px); }
  .hero .shell { padding: 176px 0 96px; }
  .quotes-head { gap: 12px; }
}

@media (max-width: 699px) {
  .section { padding: var(--space-section-sm) 0; }
  .about,
  .quotes { padding-block: var(--space-section-sm); }
  .contact { margin-top: -48px; padding: 120px 0 80px; }
  .services { padding: 48px 0 var(--space-section-sm); }
  .team { padding: 48px 0 var(--space-section-sm); }
  .organics-wave { height: 56px; }
  .services-grid,
  .feed-more,
  .form { grid-template-columns: 1fr; }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
    max-width: none;
  }
  .team-card { flex-basis: 100%; }
  .hero {
    min-height: max(560px, 78svh);
    margin-top: calc(-132px - env(safe-area-inset-top, 0px));
  }
  .hero .shell {
    padding: calc(184px + env(safe-area-inset-top, 0px)) 0 88px;
  }
  .hero-wave { height: 48px; }
  .contact-desk { align-items: flex-start; flex-direction: column; }
  .map-frame { min-height: 240px; height: 240px; }
  .hero h1 { max-width: none; font-size: clamp(1.85rem, 8.5vw, 2.45rem); }
  .hero-slide--ultrassom {
    background-image: url("../assets/hero/ultrassom-mobile.jpg");
    background-image: image-set(
      url("../assets/hero/ultrassom-mobile.webp") type("image/webp"),
      url("../assets/hero/ultrassom-mobile.jpg") type("image/jpeg")
    );
    background-position: center 22%;
  }
  .hero-slide::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 26%,
      rgba(255, 255, 255, 0.45) 52%,
      rgba(255, 255, 255, 0.12) 100%
    );
  }
  .quotes-head { margin-bottom: var(--space-stack-lg); flex-wrap: wrap; }
  .quote { flex-basis: min(100%, 100%); }
  .band-head { flex-wrap: wrap; gap: 12px; }
  .faq-item summary { min-height: 48px; }
}
