:root {
  --accent: #6141ac;
  --secondary: #7a5ea8;
  --pink: #e26890;
  --warm: #cd9b8b;
  --bg: #eddcd5;
  --text: #3a2c30;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
header,
footer {
  background: var(--accent);
  color: #fff;
  padding: 1rem 1.5rem;
}
header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(0, 1fr);
  align-items: center;
  padding: 0rem 0;
  border-bottom: 0.3rem solid var(--pink);
}
.header-logo {
  display: block;
  width: 8rem;
  height: auto;
  margin-left: 1.5rem;
  align-self: start;
}
.header-content {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  min-width: 0;
}
header h1 {
  margin: 0;
  font-size: 2.2rem;
}
@media (min-width: 64.0625rem) {
  :root {
    /* Logo height (8rem) + bottom border (0.3rem) */
    --header-height: 8.3rem;
  }
  html {
    scroll-padding-top: var(--header-height);
  }
  header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}
@media (max-width: 64rem) {
  header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .header-content {
    grid-column: 1;
    width: 100%;
    max-width: 46rem;
    margin: 0 auto;
  }
}
nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
}
nav a[aria-current="page"] {
  text-decoration: underline;
}
nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 0.15rem;
}
main {
  max-width: 46rem;
  margin: 2rem auto;
  padding: 0 1.5rem;
}
h2 {
  color: var(--accent);
}
.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.practice-info {
  overflow-wrap: anywhere;
}
.practice-info address {
  font-style: normal;
}
.practice-info a {
  color: var(--accent);
}
.team-photo {
  display: none;
}
.staff-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.staff-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.4rem;
}
.staff-gallery figure {
  min-width: 0;
  margin: 0;
}
.staff-gallery figcaption {
  margin-top: 0.35rem;
  text-align: center;
  font-weight: 600;
  color: var(--accent);
}
.phone-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
}
.whatsapp-label {
  display: inline-flex;
  align-items: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.whatsapp-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  color: #25d366;
  flex: 0 0 auto;
}
@media (min-width: 80rem) {
  .home-columns {
    max-width: none;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) 43rem minmax(0, 1fr);
    gap: 0;
  }
  .home-columns > section {
    grid-column: 2;
  }
  .team-photo {
    display: block;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: min(calc(100% - 3.5rem), 34.56rem);
    height: auto;
    margin-top: 1.8rem;
    margin-left: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 3.8rem);
    align-self: start;
  }
  .practice-info {
    grid-column: 3;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
    min-width: 0;
    max-width: 16rem;
    margin-left: 2rem;
    margin-right: 1.5rem;
  }
  .practice-info .staff-gallery {
    width: min(43rem, calc(50vw - 25rem));
  }
}
.button,
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.button:hover,
button:hover {
  background: var(--secondary);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
nav a:focus-visible {
  outline-color: #fff;
}
label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}
fieldset {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--secondary);
  border-radius: 0.4rem;
  font: inherit;
}
form button {
  margin-top: 1.2rem;
}
#status {
  margin-top: 1rem;
  font-weight: 600;
}
footer {
  text-align: center;
  margin-top: 3rem;
  border-top: 0.3rem solid var(--warm);
}
