/* Megumi Health */

:root {
  --blue: #436184;
  --blue-light: #cad4e0;
  --blue-pale: #e4eaf1;
  --rose: #a25d5a;
  --rose-dark: #802b26;
  --blush: #ebd8d7;
  --text: #222;
  --text-muted: #555;
  --white: #fff;
  --header-height: 72px;
  --font-sans: "Roboto", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rose);
}

a:hover {
  color: var(--rose-dark);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 800px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--white);
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 40px;
}

.site-header__logo img {
  width: 48px;
  height: auto;
}

.site-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--rose);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin-bottom: 6px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .site-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--rose);
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn--primary {
  background: var(--rose);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--rose);
}

.btn--outline:hover {
  background: var(--rose);
  color: var(--white);
}

/* Sections */

.section {
  padding: 90px 0;
}

.section__title {
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
}

.section__title--left {
  text-align: left;
  margin-bottom: 24px;
}

.section__title--left::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 16px;
  background: var(--rose);
}

.section__lead {
  margin: -32px 0 56px;
  text-align: center;
  font-size: 1.15rem;
}

/* Hero */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + 40px) 0 60px;
  background: url("../images/hero.jpg") center / cover no-repeat;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--blue);
}

.hero__subtitle {
  margin: 16px 0 56px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--blue);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Approach */

.approach__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.approach__text p {
  font-size: 1.1rem;
}

.approach__image {
  width: 100%;
  border-radius: 4px;
}

@media (max-width: 800px) {
  .approach__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Team */

.team {
  background: var(--blue-light);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 56px 40px;
  list-style: none;
}

.person {
  text-align: center;
}

.person img {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: 50%;
  object-fit: cover;
}

.person h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.person h3 a {
  color: inherit;
  text-decoration: none;
}

.person h3 a:hover {
  color: var(--rose);
}

.person p {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
}

/* Services */

.services {
  background: var(--blue);
  color: var(--white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}

.service {
  text-align: center;
}

.service img {
  margin: 0 auto 24px;
}

.service h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 500;
}

.service p {
  margin: 0 0 1em;
  font-size: 0.95rem;
}

/* Referrals */

.accordion {
  margin-bottom: 12px;
  background: var(--blush);
}

.accordion summary {
  position: relative;
  padding: 22px 60px 22px 24px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}

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

.accordion summary::before,
.accordion summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s;
}

.accordion summary::after {
  transform: rotate(90deg);
}

.accordion[open] summary::after {
  transform: rotate(0deg);
}

.accordion__body {
  padding: 0 24px 24px;
}

.accordion__body p {
  margin: 0 0 1em;
}

.accordion__body ul {
  margin: 0 0 1em 20px;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--blue-pale);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1);
}

.contact__details {
  padding: 80px 60px;
}

.contact__details dl {
  margin: 0;
}

.contact__details dt {
  font-weight: 500;
}

.contact__details dd {
  margin: 0 0 20px;
}

@media (max-width: 800px) {
  .contact {
    grid-template-columns: 1fr;
  }

  .contact__details {
    order: -1;
    padding: 60px 20px;
  }
}

/* Partners */

.partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 40px;
  align-items: center;
  justify-items: center;
  list-style: none;
}

.partners__grid img {
  max-width: 160px;
  max-height: 110px;
  width: auto;
}

@media (max-width: 720px) {
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .partners__grid img {
    max-width: 130px;
  }
}

/* Footer */

.site-footer {
  padding: 28px 0;
  background: var(--blue);
  color: var(--white);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* 404 */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
}

.not-found img {
  width: 90px;
  margin-bottom: 32px;
}

.not-found h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.5rem;
  color: var(--blue);
}

.not-found p {
  margin: 16px 0 32px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
