/* =========================================================
   Sukanya Oosterse Massage Techniek
   Shared Components
========================================================= */

/* ======================================================
   Header
====================================================== */

.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-white);
}

.site-header__inner {
  position: relative;
  display: grid;
  width: min(calc(100% - 56px), 1420px);
  height: 100%;
  margin-inline: auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* ======================================================
   Logo
====================================================== */

.site-logo {
  display: block;
  justify-self: center;
}

.site-logo img {
  width: 130px;
  height: auto;
}

/* ======================================================
   Hamburger button
====================================================== */

.menu-button {
  display: flex;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  justify-self: start;
  gap: 4px;
  padding: 0;
  color: var(--color-gold-dark);
}

.menu-button span {
  display: block;
  width: 16px;
  height: 1px;
  background-color: currentColor;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

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

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

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

/* ======================================================
   Buttons
====================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: var(--radius-small);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.button--appointment {
  min-width: 208px;
  min-height: 48px;
  justify-self: end;
  padding-inline: 24px;
  background-color: var(--color-gold-dark);
  color: var(--color-white);
}

.button--appointment:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.button__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

/* ======================================================
   Navigation overlay
====================================================== */

.site-navigation {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 99;
  visibility: hidden;
  background-color: rgba(248, 245, 237, 0.99);
  opacity: 0;
  transform: translateY(-14px);
  transition:
    visibility 250ms ease,
    opacity 250ms ease,
    transform 250ms ease;
}

.site-navigation.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.site-navigation__inner {
  display: flex;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.site-navigation__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.site-navigation__link {
  color: var(--color-gold-dark);
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.site-navigation__link:hover,
.site-navigation__link.is-active {
  color: var(--color-green);
}

/* ======================================================
   Text links
====================================================== */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-green);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--color-gold-dark);
}

.text-link span {
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.text-link:hover span {
  transform: translateX(4px);
}

/* ======================================================
   Treatment cards
====================================================== */

.treatment-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-white);
  color: var(--color-gold-dark);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.treatment-card:hover {
  color: var(--color-gold-dark);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.treatment-card__image {
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
}

.treatment-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.treatment-card:hover .treatment-card__image img {
  transform: scale(1.03);
}

.treatment-card__body {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  text-align: center;
}

.treatment-card__title {
  color: var(--color-gold-dark);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.9;
  text-transform: uppercase;
}

/* ======================================================
   Value cards
====================================================== */

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.value-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--color-gold-dark);
}

.value-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.value-card__title {
  margin-top: 18px;
  color: var(--color-green);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.value-card__text {
  max-width: 230px;
  margin-top: 24px;
  color: var(--color-text);
  font-size: 0.68rem;
  line-height: 2;
}

/* ======================================================
   Footer
====================================================== */

.site-footer {
  border-top: 42px solid var(--color-white);
  background-color: var(--color-cream);
  color: var(--color-gold-dark);
}

.site-footer__main {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.1fr)
    minmax(120px, 0.7fr)
    minmax(180px, 0.9fr)
    minmax(190px, 0.9fr);
  gap: 70px;
  align-items: start;
  padding-block: 100px 92px;
}

.site-footer__brand img {
  width: 130px;
  height: auto;
}

.site-footer__title {
  margin-bottom: 30px;
  color: var(--color-gold-dark);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__links a,
.site-footer__text {
  color: var(--color-gold-dark);
  font-size: 0.73rem;
  line-height: 1.75;
}

.site-footer__links a:hover {
  color: var(--color-green);
}

.site-footer__text + .site-footer__text {
  margin-top: 28px;
}

.site-footer__bottom {
  border-top: 4px solid var(--color-white);
  background-color: var(--color-footer-bottom);
}

.site-footer__bottom p {
  max-width: none;
  padding: 36px 0;
  color: var(--color-white);
  font-size: 0.66rem;
  line-height: 1.7;
  text-align: center;
}

/* ======================================================
   Tablet
====================================================== */

@media (max-width: 1023px) {
  .site-header__inner {
    width: min(calc(100% - 40px), 920px);
  }

  .site-logo img {
    width: 100px;
  }

  .button--appointment {
    min-width: 180px;
    min-height: 44px;
    padding-inline: 18px;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
  }
}

/* ======================================================
   Mobile
====================================================== */

@media (max-width: 767px) {
  .site-header__inner {
    width: calc(100% - 28px);
  }

  .site-logo img {
    width: 104px;
  }

  .button--appointment {
    min-width: auto;
    min-height: 40px;
    padding-inline: 13px;
  }

  .button--appointment span {
    display: none;
  }

  .button__icon {
    width: 19px;
    height: 19px;
  }

  .menu-button {
    width: 38px;
    height: 38px;
  }

  .treatment-card {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .treatment-card__body {
    min-height: 130px;
  }

  .value-card__text {
    max-width: 290px;
  }

  .site-footer {
    border-top-width: 24px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 68px;
  }

  .site-footer__brand img {
    width: 150px;
  }

  .site-footer__title {
    margin-bottom: 22px;
  }

  .site-footer__bottom p {
    padding: 28px 0;
    font-size: 0.6rem;
  }
}