/*
  SA Nail & Spa site styles
  Update the CSS variables below to quickly adapt the template for another salon.
*/

:root {
  --bg: #faf6f3;
  --bg-soft: #f3ebe5;
  --bg-warm: #f8ede6;
  --panel: rgba(255, 252, 250, 0.88);
  --panel-strong: #ffffff;
  --text: #2e2224;
  --text-soft: #7a636a;
  --line: rgba(81, 49, 57, 0.1);
  --accent: #b06478;
  --accent-dark: #8c4a5e;
  --accent-deep: #6b3548;
  --accent-soft: #f0d4dc;
  --accent-glow: rgba(176, 100, 120, 0.15);
  --gold: #c9a96e;
  --gold-soft: rgba(201, 169, 110, 0.12);
  --shadow: 0 24px 64px rgba(46, 34, 36, 0.1), 0 8px 20px rgba(46, 34, 36, 0.06);
  --shadow-soft: 0 12px 32px rgba(46, 34, 36, 0.07);
  --shadow-hover: 0 32px 72px rgba(46, 34, 36, 0.14), 0 12px 28px rgba(46, 34, 36, 0.08);
  --radius: 28px;
  --radius-sm: 20px;
  --radius-xs: 14px;
  --site-width: 1140px;
  --header-height: 80px;
  --gutter: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(240, 212, 220, 0.5), transparent),
    radial-gradient(ellipse 60% 40% at 80% 5%, rgba(201, 169, 110, 0.12), transparent);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(250, 246, 243, 0.82);
  border-bottom: 1px solid rgba(81, 49, 57, 0.06);
  overflow: visible;
}

.topbar,
.section,
.site-footer {
  width: min(calc(100% - (var(--gutter) * 2)), var(--site-width));
  margin: 0 auto;
}

.topbar {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(81, 49, 57, 0.1);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(81, 49, 57, 0.16);
}

.menu-toggle span {
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  box-shadow: 0 4px 16px rgba(140, 74, 94, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-text strong {
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.brand-text small {
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.header-cta {
  display: none;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-xs);
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 16px rgba(46, 34, 36, 0.2);
  transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: #1a1012;
  box-shadow: 0 8px 24px rgba(46, 34, 36, 0.25);
}

.site-nav {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--site-width)) / 2 + var(--gutter)));
  top: calc(100% + 4px);
  width: min(260px, calc(100vw - (var(--gutter) * 2)));
  margin: 0;
  display: grid;
  gap: 2px;
  padding: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: none;
  border: 1px solid rgba(81, 49, 57, 0.08);
  transition:
    max-height 280ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.site-nav.is-open {
  max-height: 340px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  box-shadow: var(--shadow);
}

.site-nav a {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  background: var(--bg-warm);
  color: var(--accent-dark);
}

/* ─── Sections ─── */

.section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
}

/* ─── Typography ─── */

.hero-copy h1,
.section-heading h2,
.hero-card h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
}

.eyebrow {
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* ─── Hero ─── */

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
}

.hero-copy,
.hero-card,
.service-card,
.review-card,
.info-card,
.contact-panel {
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(3.6rem, 11vw, 7.5rem);
  max-width: none;
  background: linear-gradient(135deg, var(--text) 40%, var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  max-width: 28rem;
  margin: 0.8rem 0 0;
  font-size: clamp(1.1rem, 2.8vw, 1.45rem);
  color: var(--accent-dark);
  line-height: 1.3;
  font-weight: 500;
}

.hero-text,
.about-text,
.review-card p,
.service-card p,
.info-card p,
.contact-panel > p,
.hero-card p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  font-size: 1rem;
}

/* ─── Buttons ─── */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 8px 28px rgba(140, 74, 94, 0.3);
}

.button-primary:hover {
  background: linear-gradient(135deg, #5c2b3c, var(--accent-dark));
  box-shadow: 0 12px 36px rgba(140, 74, 94, 0.35);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(81, 49, 57, 0.14);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.button-secondary:hover {
  background: #fff;
  border-color: rgba(81, 49, 57, 0.22);
  box-shadow: var(--shadow-hover);
}

/* ─── Hero highlights ─── */

.hero-highlights {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-highlights li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--accent));
  box-shadow: 0 0 0 4px var(--gold-soft);
}

/* ─── Hero meta ─── */

.hero-meta {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.hero-meta div + div {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(81, 49, 57, 0.06);
}

.hero-meta dt {
  color: var(--accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero-meta dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-meta a {
  text-decoration: none;
  transition: color 180ms ease;
}

.hero-meta a:hover {
  color: var(--accent-dark);
}

/* ─── Hero card (photo) ─── */

.hero-card,
.service-card,
.review-card,
.info-card,
.contact-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card::after,
.service-card::after,
.review-card::after,
.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.5), transparent 35%);
  pointer-events: none;
}

.hero-card-content {
  padding: 1.5rem;
}

.hero-visual {
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 34, 36, 0) 30%, rgba(46, 34, 36, 0.65) 100%),
    linear-gradient(135deg, rgba(176, 100, 120, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-photo-caption {
  position: relative;
  z-index: 2;
  width: min(100% - 1.5rem, 320px);
  margin: 0 0.75rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(46, 34, 36, 0.5);
  backdrop-filter: blur(16px) saturate(1.2);
  color: #fff;
  box-shadow: 0 16px 40px rgba(22, 12, 15, 0.3);
}

.hero-photo-caption p,
.hero-photo-caption .card-label {
  color: rgba(255, 255, 255, 0.85);
}

.hero-photo-caption h2 {
  color: #fff;
}

.card-label {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

/* ─── About ─── */

.about-text {
  max-width: 42rem;
  margin: 0;
  font-size: 1.05rem;
}

/* ─── Services ─── */

.services-grid,
.review-grid,
.info-layout {
  display: grid;
  gap: 0.85rem;
}

.service-card,
.review-card,
.info-card {
  padding: 1.6rem;
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.service-card:hover,
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.service-card h3,
.review-card h3,
.info-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.service-card p,
.review-card p,
.info-card p {
  margin: 0;
  font-size: 0.92rem;
}

/* Service card decorative icons */
.service-card {
  padding-top: 2.2rem;
}

.service-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(201, 169, 110, 0.15));
  position: relative;
  z-index: 1;
}

.service-card:nth-child(1)::before { background: linear-gradient(135deg, #f0d4dc, #fce8ed); }
.service-card:nth-child(2)::before { background: linear-gradient(135deg, #d4e8f0, #e8f4fc); }
.service-card:nth-child(3)::before { background: linear-gradient(135deg, #e8d4f0, #f4e8fc); }
.service-card:nth-child(4)::before { background: linear-gradient(135deg, #f0e4d4, #fcf2e8); }
.service-card:nth-child(5)::before { background: linear-gradient(135deg, #d4f0e0, #e8fcf0); }
.service-card:nth-child(6)::before { background: linear-gradient(135deg, #f0d4d4, #fce8e8); }

/* ─── Reviews ─── */

.review-card {
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--panel), var(--panel)),
    linear-gradient(135deg, var(--accent), var(--gold));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 0.6rem;
  right: 1.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-soft);
  pointer-events: none;
  z-index: 1;
}

.review-card h3 {
  position: relative;
  z-index: 1;
}

.review-card p {
  position: relative;
  z-index: 1;
}

/* ─── Gallery ─── */

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

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  box-shadow: var(--shadow-soft);
  min-height: 200px;
  position: relative;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, filter 400ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(46, 34, 36, 0.2));
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.02);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item-large {
  grid-column: span 2;
}

/* ─── Business info ─── */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}

.text-link:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
}

.hours-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(81, 49, 57, 0.06);
  font-size: 0.92rem;
}

.hours-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hours-list li span:first-child {
  font-weight: 600;
}

.hours-list li span:last-child {
  color: var(--text-soft);
}

/* ─── Contact CTA ─── */

.contact-panel {
  padding: 2.5rem 1.8rem;
  background: linear-gradient(145deg, var(--accent-deep), var(--accent-dark) 50%, var(--accent));
  border: none;
  color: #fff;
  text-align: center;
}

.contact-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(201, 169, 110, 0.2), transparent),
    radial-gradient(ellipse 40% 40% at 80% 0%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.contact-panel .eyebrow {
  color: var(--accent-soft);
  position: relative;
  z-index: 1;
}

.contact-panel .eyebrow::before {
  background: linear-gradient(90deg, var(--accent-soft), var(--gold));
}

.contact-panel h2 {
  color: #fff;
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 28rem;
  margin: 0 auto;
}

.contact-panel > p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 32rem;
  margin: 1rem auto 0;
  position: relative;
  z-index: 1;
}

.contact-panel .hero-actions {
  justify-content: center;
  position: relative;
  z-index: 1;
}

.contact-panel .button-primary {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.contact-panel .button-primary:hover {
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.contact-panel .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: none;
}

.contact-panel .button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* ─── Footer ─── */

.site-footer {
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0.3rem 0;
}

.site-footer p:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--text);
}

.site-footer a {
  text-decoration: none;
  transition: color 180ms ease;
}

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

/* ─── Reveal animation ─── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(0.23, 1, 0.32, 1), transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children reveals */
.services .reveal,
.reviews .reveal {
  transition-delay: 0ms;
}

/* ─── Tablet ─── */

@media (min-width: 720px) {
  :root {
    --gutter: 2rem;
  }

  .topbar,
  .section,
  .site-footer {
    width: min(calc(100% - (var(--gutter) * 2)), var(--site-width));
  }

  .header-cta {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 2.5rem;
    padding-top: 3.5rem;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .hero-meta div + div {
    padding-top: 0;
    padding-left: 1rem;
    border-top: 0;
    border-left: 1px solid rgba(81, 49, 57, 0.06);
  }

  .services-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius);
  }

  .gallery-grid {
    gap: 0.85rem;
  }
}

/* ─── Desktop ─── */

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    grid-auto-rows: 240px;
  }

  .gallery-item-large {
    grid-column: span 1;
    grid-row: span 2;
  }
}

/* ─── Reduced motion ─── */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
