/* Arboretum Nails & Spa — shared styles */

:root {
  --bg: #fafafa;
  --bg-secondary: #efebe6;
  --action: #36454f;
  --accent: #9ca392;
  --text: #2c3338;
  --text-muted: #6b7378;
  --price: #7a8288;
  --white: #ffffff;
  --max: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  transition: background 0.35s var(--ease);
}

.site-header__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--action);
  line-height: 1;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--action);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--action);
  margin: 0.3rem auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background: var(--action);
  color: var(--white);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  background: color-mix(in srgb, var(--action) 85%, var(--accent));
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid color-mix(in srgb, var(--white) 55%, transparent);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--white) 12%, transparent);
  transform: translateY(-1px);
}

/* ——— Layout ——— */

main {
  flex: 1;
}

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--oat {
  background: var(--bg-secondary);
}

.section__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--action);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section__text {
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__text {
  margin-inline: auto;
}

/* ——— Home hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media .placeholder,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      color-mix(in srgb, var(--action) 92%, transparent) 0%,
      color-mix(in srgb, var(--action) 68%, transparent) 28%,
      color-mix(in srgb, var(--action) 28%, transparent) 52%,
      color-mix(in srgb, var(--action) 10%, transparent) 100%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--accent) 18%, transparent),
      transparent 50%
    );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 10vh, 6rem);
  animation: rise-in 1s var(--ease) both;
}

.hero__brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.25rem, 10vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow:
    0 1px 2px color-mix(in srgb, var(--action) 85%, transparent),
    0 4px 16px color-mix(in srgb, var(--action) 70%, transparent),
    0 12px 36px color-mix(in srgb, var(--action) 50%, transparent);
}

.hero__brand em {
  font-style: normal;
  color: #f3f4ef;
}

.hero__lead {
  max-width: 28rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: color-mix(in srgb, var(--white) 94%, transparent);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ——— About ——— */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-grid .section__text {
  margin-top: 0.5rem;
}

.about-grid p + p {
  margin-top: 1rem;
}

/* ——— Image placeholders ——— */

.placeholder {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--bg-secondary) 80%, var(--accent)),
      var(--bg-secondary) 40%,
      color-mix(in srgb, var(--accent) 35%, var(--bg-secondary))
    );
  position: relative;
  overflow: hidden;
}

.placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--action) 55%, transparent);
  text-align: center;
  padding: 1rem;
}

.placeholder--tall {
  aspect-ratio: 4 / 5;
}

.placeholder--hero {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(
      ellipse at 30% 40%,
      color-mix(in srgb, var(--accent) 45%, #c5b8a8),
      transparent 55%
    ),
    linear-gradient(
      160deg,
      #c8b9a8 0%,
      #a8b09a 45%,
      #6d7a70 100%
    );
}

.placeholder--hero::after {
  color: color-mix(in srgb, var(--white) 70%, transparent);
  align-items: flex-start;
  padding-top: 35vh;
}

/* ——— Home gallery preview ——— */

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-preview__item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  animation: fade-up 0.7s var(--ease) both;
}

.gallery-preview__item:nth-child(4n + 1) { animation-delay: 0.05s; }
.gallery-preview__item:nth-child(4n + 2) { animation-delay: 0.12s; }
.gallery-preview__item:nth-child(4n + 3) { animation-delay: 0.19s; }
.gallery-preview__item:nth-child(4n + 4) { animation-delay: 0.26s; }

.gallery-preview__item .placeholder,
.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery-preview__item:hover .placeholder,
.gallery-preview__item:hover img {
  transform: scale(1.04);
}

.section__cta {
  margin-top: 2rem;
  text-align: center;
}

/* ——— Page hero (inner pages) ——— */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem));
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-secondary) 70%, var(--bg)),
      var(--bg)
    );
}

.page-hero__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  animation: rise-in 0.8s var(--ease) both;
}

.page-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  color: var(--action);
  line-height: 1.05;
}

.page-hero__text {
  margin-top: 0.75rem;
  max-width: 32rem;
  color: var(--text-muted);
}

.page-hero--gallery {
  padding-bottom: 0.5rem;
}

.section--gallery {
  padding-top: 1rem;
}

.section--services {
  padding-top: 1.25rem;
}

/* ——— Services ——— */

.services-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.services-jump a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.services-jump a:hover {
  color: var(--action);
}

.services-cols {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.service-col__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--action);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.service-group__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--action);
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.service-row__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.service-row__price {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--price);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.service-row__note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.35rem;
}

.service-footnote {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.4;
}

.service-footnote + .service-footnote {
  margin-top: 0.2rem;
}

/* ——— Gallery page ——— */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gallery-grid__item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  animation: fade-up 0.65s var(--ease) both;
  cursor: pointer;
}

.gallery-grid__item:nth-child(4n + 1) { animation-delay: 0.04s; }
.gallery-grid__item:nth-child(4n + 2) { animation-delay: 0.1s; }
.gallery-grid__item:nth-child(4n + 3) { animation-delay: 0.16s; }
.gallery-grid__item:nth-child(4n + 4) { animation-delay: 0.22s; }

.gallery-grid__item .placeholder,
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery-grid__item:hover .placeholder,
.gallery-grid__item:hover img {
  transform: scale(1.05);
}

.gallery-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.gallery-note a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Lightbox ——— */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 4rem;
  background: color-mix(in srgb, var(--action) 82%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 94vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 1.5rem 3rem color-mix(in srgb, #000 35%, transparent);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--white) 12%, transparent);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: color-mix(in srgb, var(--white) 22%, transparent);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
}

.lightbox__nav--prev {
  left: 0.75rem;
}

.lightbox__nav--next {
  right: 0.75rem;
}

body.lightbox-open {
  overflow: hidden;
}

/* ——— Footer ——— */

.site-footer {
  background: var(--action);
  color: color-mix(in srgb, var(--white) 88%, transparent);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  margin-top: auto;
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.site-footer__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.site-footer__body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
}

.site-footer__book {
  display: block;
  margin-top: 0.75rem;
}

.site-footer a {
  transition: color 0.25s var(--ease);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--white) 88%, transparent);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-footer__social:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.site-footer__copy {
  width: min(100% - 2.5rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--white) 45%, transparent);
  letter-spacing: 0.04em;
}

/* ——— Animations ——— */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ——— Responsive ——— */

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

  .about-grid .placeholder--tall {
    max-width: 28rem;
    margin-inline: auto;
  }

  .service-groups {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-preview,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .service-groups {
    grid-template-columns: 1fr;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nav-open .site-header {
    background: var(--white);
    border-bottom-color: transparent;
  }

  .brand {
    position: relative;
    z-index: 120;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 120;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.15rem;
    letter-spacing: 0.16em;
    color: var(--action);
  }

  body.nav-open {
    overflow: hidden;
  }

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

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

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

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
