:root {
  --sky: #9bd9f2;
  --sun: #ffe576;
  --leaf: #b9d6a8;
  --rose: #f1abb3;
  --ink: #2f3a40;
  --paper: #fbfdff;
  --white: #ffffff;
  --line: #d6e1e8;
  --shadow-soft: 0 12px 26px rgba(47, 58, 64, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(155, 217, 242, 0.36) 0%, rgba(155, 217, 242, 0) 45%),
    radial-gradient(circle at 90% 20%, rgba(255, 229, 118, 0.32) 0%, rgba(255, 229, 118, 0) 48%),
    linear-gradient(180deg, #f9fcff 0%, #fdfcf9 55%, #f8fcf8 100%);
  line-height: 1.55;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 1rem 0 2rem 0;
}

#inicio,
#missao,
#quem-somos,
#terapias,
#contactos {
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background-color: rgba(251, 253, 255, 0.88);
  border-bottom: 1px solid rgba(214, 225, 232, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 5.25rem;
}

.brand-logo {
  width: 130px;
  height: auto;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 1.15rem;
  margin-right: 1.15rem;
}

.header-social a {
  display: inline-flex;
  transition: transform 160ms ease;
}

.header-social a:hover {
  transform: translateY(-1px);
}

.header-social a:focus-visible {
  outline: 3px solid #1f7ca7;
  outline-offset: 2px;
}

.header-social img {
  width: 1.92rem;
  height: 1.92rem;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.nav-list a {
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: #1d2730;
  border-bottom-color: var(--sky);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #1f7ca7;
  outline-offset: 2px;
}

.btn-primary {
  color: #1e2630;
  background: linear-gradient(140deg, var(--sun), #ffd94a);
  box-shadow: 0 8px 20px rgba(191, 151, 31, 0.28);
}

.btn-secondary {
  color: var(--ink);
  border: 2px solid var(--sky);
  background: rgba(155, 217, 242, 0.18);
}

.desktop-cta {
  white-space: nowrap;
}



.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(185, 214, 168, 0.42);
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  color: #1d2730;
}

h1 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.52rem, 2.2vw, 2.35rem);
}

h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
}

.lead {
  margin: 1rem 0 1.6rem;
  max-width: 55ch;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.section-intro {
  max-width: 72ch;
  margin-bottom: 1.8rem;
}

.section-intro p {
  margin: 1rem 0 0;
}

.image-card,
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.image-card img,
.therapy-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-image {
  margin: 0;
  aspect-ratio: 16 / 7;
}

.featured-image img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.therapies {
  position: relative;
}

.therapies::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(241, 171, 179, 0.16), rgba(185, 214, 168, 0.13));
  z-index: -1;
}

.therapy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.therapy-card {
  display: grid;
  grid-template-rows: 200px auto;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.therapy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(47, 58, 64, 0.16);
}

.therapy-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(47, 58, 64, 0.16);
  outline: 3px solid #1f7ca7;
  outline-offset: 2px;
}

.therapy-content {
  padding: 1rem;
}

.therapy-content p {
  margin: 0.7rem 0 0;
}

.therapy-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.8rem;
  font-weight: 800;
  color: #1f7ca7;
}

.therapy-cta::after {
  content: ">";
  transition: transform 180ms ease;
}

.therapy-card:hover .therapy-cta::after,
.therapy-card:focus-visible .therapy-cta::after {
  transform: translateX(3px);
}

.therapy-detail-main,
.default-page-main {
  min-height: 70vh;
}

.therapy-detail-shell,
.default-page-shell {
  display: grid;
  gap: 1.4rem;
}

.therapy-detail-header {
  display: grid;
  gap: 0.85rem;
}

.therapy-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.therapy-detail-card,
.therapy-detail-closing,
.default-page-content {
  padding: 1.2rem;
}

.therapy-detail-card h2 {
  margin-bottom: 0.8rem;
}

.therapy-detail-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.therapy-detail-card li + li {
  margin-top: 0.45rem;
}

.therapy-detail-closing p,
.default-page-content > :first-child {
  margin-top: 0;
}

.default-page-content > :last-child,
.therapy-detail-closing p:last-child {
  margin-bottom: 0;
}

.contacts {
  padding-bottom: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.contact-side {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.contact-list {
  margin: 0;
  padding: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  min-height: 460px;
  width: 100%;
  display: grid;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: 0;
}
.contact-list div + div {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.contact-list dt {
  font-weight: 800;
  margin-bottom: 0.18rem;
}

.contact-list dd {
  margin: 0;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.whatsapp-link img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

input,
textarea {
  border: 1px solid #bccbd4;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 115px;
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .desktop-cta {
    display: none;
  }

  .header-social {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 1rem;
    right: 1rem;
    margin: 0;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    background: rgba(251, 253, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .nav-list a {
    width: 100%;
    padding: 0.6rem 0.45rem;
    border-radius: var(--radius-sm);
    border-bottom: none;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible {
    background: rgba(155, 217, 242, 0.2);
  }

  .hero-grid,
  .contact-layout,
  .about-grid,
  .therapy-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.3rem;
  }

  .therapy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .container {
    width: min(1140px, calc(100% - 1.35rem));
  }

  .section {
    padding: 1rem 0 2rem 0;
  }

  .brand-logo {
    width: 110px;
  }

  .header-social {
    gap: 0.35rem;
  }

  .header-social img {
    width: 1.83rem;
    height: 1.83rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .therapy-grid {
    grid-template-columns: 1fr;
  }

  .therapy-card {
    grid-template-rows: 170px auto;
  }

  .therapy-content {
    padding: 1.1rem;
  }

  .therapy-cta {
    margin-top: 0.9rem;
    font-size: 1rem;
  }

  .featured-image {
    aspect-ratio: 5 / 3;
  }
}

.site-footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem 0;
  background: #f8fbfd;
  color: #556b7a;
}

.site-footer p {
  margin: 0;
}

