@font-face {
  font-family: "Garamond Premier Pro";
  src:
    url("../assets/fonts/garamond-premier-pro-regular.woff2") format("woff2"),
    url("../assets/fonts/garamond-premier-pro-regular.woff") format("woff"),
    url("../assets/fonts/garamond-premier-pro-regular.ttf") format("truetype"),
    local("Garamond Premier Pro"),
    local("GaramondPremierPro");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Garamond Premier Pro";
  src:
    url("../assets/fonts/garamond-premier-pro-semibold.woff2") format("woff2"),
    url("../assets/fonts/garamond-premier-pro-semibold.woff") format("woff"),
    url("../assets/fonts/garamond-premier-pro-semibold.ttf") format("truetype"),
    local("Garamond Premier Pro Semibold"),
    local("GaramondPremierPro-Semibold"),
    local("Garamond Premier Pro");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #fffaf9;
  --surface: #ffffff;
  --surface-alt: #fff3f9;
  --surface-strong: #fff7fb;
  --text: #2d2630;
  --muted: #6f6274;
  --primary: #b96c9e;
  --primary-dark: #9d4f83;
  --accent: #f4cfde;
  --accent-dark: #7f5c72;
  --border: #eadde7;
  --shadow: 0 16px 40px rgba(32, 20, 31, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-size-scale: 1.10;
  --font-regular: "Garamond Premier Pro", "Garamond Premier", Garamond, Georgia, serif;
  --font-semibold: "Garamond Premier Pro", "Garamond Premier", Garamond, Georgia, serif;
  --font-box: var(--font-semibold);
  --font-service: var(--font-regular);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Prevent any overflowing element from creating a horizontal scrollbar
     on ANY screen size. clip (unlike hidden) does not create a scroll
     container, so position:sticky on the nav continues to work. */
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100vw; /* hard cap — prevents any child from inflating the layout viewport */
  overscroll-behavior-y: none; /* prevent iOS/Android bounce-scroll past the footer */
  font-family: var(--font-regular);
  font-size: calc(1rem * var(--font-size-scale));
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 207, 222, 0.45), transparent 24%),
    var(--bg);
  line-height: 1.6;
}

body * {
  font-family: var(--font-regular);
}

p,
li,
span,
a,
button,
input,
select,
textarea,
label,
small,
figcaption,
blockquote,
dd,
dt,
td,
th {
  font-family: var(--font-regular);
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
.brand,
.nav-links a,
.btn,
.eyebrow,
.section-kicker,
.hero-card-label,
.promo-label,
.hero-highlights li,
.service-type-box,
.service-name,
.service-menu-list strong,
.contact-info-panel h3,
.contact-quick-link,
.business-hours,
.field-group label,
.contact-form > label:not(.consent-row),
.required-star,
.form-success,
.form-error {
  font-family: var(--font-semibold);
  font-weight: 600;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

section[id] {
  scroll-margin-top: 96px;
}

/* Home target is the very top of the page — no offset needed */
main#home {
  scroll-margin-top: 0;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

@media (min-width: 1440px) {
  .container {
    width: min(1240px, 90%);
  }

  .hero-layout,
  .split-layout {
    gap: 2.6rem;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 221, 231, 0.95);
}

.nav {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: calc(1.08rem * var(--font-size-scale));
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 85px;
  max-width: 320px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.brand-logo:hover {
  opacity: 0.9;
}


.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 0.35rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-dark);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary-dark);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(circle at 15% 10%, #f7e4ef 0%, transparent 36%),
    radial-gradient(circle at 90% 14%, #ffeedd 0%, transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* When a banner image is set, remove the default gradient */
.hero.has-banner {
  background: none;
  padding: 0;
}

.hero.has-banner .container {
  position: relative;
  z-index: 1;
  padding-top: 5.5rem;
  padding-bottom: 4rem;
}

/* ── Social icons bar (top-right of hero) ──────────────────────────────────── */
/*  ↓ Adjust this one number to scale all three icons up or down  */
.social-icons-bar {
  --social-icon-size: 50px;   /* ← change this to resize all icons */
  --social-icon-gap: 1.1rem;  /* ← change this to adjust spacing between icons */

  position: absolute;
  top: 1.0rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--social-icon-gap);
  z-index: 20;
}

.social-icon-link {
  display: block;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55));
  flex-shrink: 0;
  /* Kill every flavour of mobile press highlight */
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  tap-highlight-color: rgba(0,0,0,0);
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

/* Icons as background-image — no <img> element means no iOS image-save overlay */
#social-yelp      { background-image: url('/assets/social/yelp.png');      }
#social-instagram { background-image: url('/assets/social/instagram.png'); }
#social-facebook  { background-image: url('/assets/social/facebook.png');  }

/* Ensure absolutely no background flash on any press / focus state */
.social-icon-link:active,
.social-icon-link:focus,
.social-icon-link:focus-visible {
  background-color: transparent;
  outline: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* Hover effect — restricted to real pointer devices (mouse/trackpad) only.
   On touchscreens the browser emulates :hover after a tap and it gets "stuck"
   because there is no mouseleave to clear it.  (hover:hover) + (pointer:fine)
   matches only when a hover-capable, fine-pointer input is the primary device,
   i.e. desktop mice — never touchscreens. */
@media (hover: hover) and (pointer: fine) {
  .social-icon-link:hover {
    transform: scale(1.15);
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
  }
}

/* Touch feedback: scale up only while the finger is physically down.
   :active releases the instant the finger lifts — no stuck state. */
.social-icon-link:active {
  transform: scale(1.08);
  opacity: 0.8;
}

.hero-layout,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.split-layout > * {
  min-width: 0;
  /* Belt-and-suspenders: children of the grid should never be wider than the track */
  max-width: 100%;
}

.hero-content {
  max-width: 700px;
}

/* Right column of the hero grid — holds the Book Now button */
.hero-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
}

/* Hero Book Now button — stands out against any banner image */
.hero-cta .btn {
  background: rgba(185, 108, 158, 0.88);  /* more opaque so it reads on busy banners */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.75); /* white ring creates contrast on any bg */
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.45),          /* dark drop-shadow for depth */
    0 0  0 4px rgba(200, 40, 40, 1);          /* solid red outer ring */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); /* keeps text crisp on photo bg */
  letter-spacing: 0.04em;
  /* Desktop size ↓ — adjust padding/font-size here */
  padding: 1.2rem 2.6rem;
  font-size: 1.15rem;
}

/* Hover / keyboard-focus — pointer devices only so mobile tap-focus can't get stuck */
@media (hover: hover) and (pointer: fine) {
  .hero-cta .btn:hover,
  .hero-cta .btn:focus-visible {
    background: rgba(157, 79, 131, 0.96);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.55),
      0 0  0 4px rgba(200, 40, 40, 1);
    outline: none;
  }
}

/* Touch press — darkens only while finger is physically down; releases on lift */
.hero-cta .btn:active {
  background: rgba(157, 79, 131, 0.96);
  outline: none;
}

.eyebrow,
.section-kicker,
.hero-card-label,
.promo-label {
  margin: 0 0 0.8rem;
  color: var(--primary-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: calc(0.78rem * var(--font-size-scale));
}

.hero h1,
.info-section h2,
.featured-services h2 {
  margin: 0;
  font-size: clamp(calc(2rem * var(--font-size-scale)), calc(4vw * var(--font-size-scale)), calc(3.25rem * var(--font-size-scale)));
  line-height: 1.15;
  /* Prevent text from ever escaping its containing block */
  overflow-wrap: break-word;
  max-width: 100%;
}

.hero-copy,
.section-intro,
.info-section p,
.menu-card,
.contact-card,
.gift-card-option,
.gallery-item figcaption {
  color: var(--muted);
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 24px rgba(185, 108, 158, 0.2);
}

.btn:hover,
.btn:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: #fff;
  border-color: transparent;
}

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

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.hero-highlights li::before {
  content: "•";
  color: var(--primary);
  font-size: calc(1.25rem * var(--font-size-scale));
}

.hero-card,
.service-card,
.stat-card,
.menu-card,
.gift-card-option,
.promo-card,
.gallery-item,
.contact-card,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.6rem;
  background: linear-gradient(180deg, #fffafc 0%, #fff 100%);
}

.hero-card h2 {
  font-size: calc(1.55rem * var(--font-size-scale));
  margin-bottom: 0.75rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.hero-card-meta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.hero-card-meta span {
  color: var(--accent-dark);
  font-weight: 600;
}

.hero-card-meta strong {
  font-size: calc(1.2rem * var(--font-size-scale));
}

.featured-services,
.info-section {
  padding: 4.75rem 0;
  /* Contain children that could otherwise inflate the page layout width */
  overflow-x: hidden;
}

.featured-services {
  padding-top: 1.5rem;
}

.info-section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 243, 249, 0.85));
}

.info-section-accent {
  background: linear-gradient(180deg, rgba(244, 207, 222, 0.18), rgba(255, 255, 255, 0));
}

.featured-services h2,
.info-section h2 {
  font-size: clamp(calc(1.7rem * var(--font-size-scale)), calc(3vw * var(--font-size-scale)), calc(2.45rem * var(--font-size-scale)));
}

.section-intro {
  margin: 0.8rem 0 0;
  max-width: 64ch;
}

.services-showcase {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 247, 251, 0.8));
}

#services-heading,
#gallery-heading {
  text-align: center;
}

#services-heading::after,
#gallery-heading::after,
#gift-cards-heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 10px auto 0;
}

.service-showcase-list {
  margin-top: 2.25rem;
  display: grid;
  gap: 0;
}

.service-feature {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1.7rem 0;
}

.service-feature + .service-feature {
  border-top: 2px dotted rgba(111, 98, 116, 0.35);
  margin-top: 1.4rem;
}

.service-visual {
  width: 420px;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  justify-self: start;
  align-self: start;
  margin-left: -0.5rem;
  box-shadow: 0 22px 40px rgba(58, 35, 53, 0.18);
}

.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(49, 20, 42, 0.18));
  pointer-events: none;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-visual-manicure img {
  object-position: center 42%;
}

.service-visual-pedicure img {
  object-position: center 62%;
}

.service-visual-waxing img {
  object-position: center 34%;
}

.service-visual-nails img {
  object-position: center 40%;
}

.service-details {
  min-width: 0;
}

.service-type-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffafc, #fff);
  box-shadow: 0 18px 38px rgba(32, 20, 31, 0.11);
  text-align: center;
  font-family: var(--font-box);
}

.service-type-box h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(calc(1.35rem * var(--font-size-scale)), calc(2.5vw * var(--font-size-scale)), calc(1.95rem * var(--font-size-scale)));
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: inherit;
}

.service-menu-list {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.service-menu-item {
  padding-bottom: 0.95rem;
  border-bottom: 1px dashed rgba(111, 98, 116, 0.22);
}

.service-menu-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-menu-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-name {
  color: var(--text);
  font-size: calc(1.14rem * var(--font-size-scale));
  font-weight: 800;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow-wrap: break-word;
  font-family: var(--font-semibold);
}

.service-dots {
  flex: 1;
  min-width: 1rem;
  border-bottom: 2px dotted rgba(111, 98, 116, 0.35);
  transform: translateY(1px);
}

.service-menu-list strong {
  color: var(--primary-dark);
  font-size: calc(1.18rem * var(--font-size-scale));
  font-weight: 800;
  white-space: nowrap;
  font-family: var(--font-semibold);
}

.service-item-description {
  margin: 0.35rem 0 0;
  max-width: 76ch;
  color: var(--muted);
  font-family: var(--font-service);
  font-size: calc(1.14rem * var(--font-size-scale));
  line-height: 1.6;
}

/* Duration is kept in the DOM but hidden — remove this rule to show it again */
.service-duration {
  display: none;
}

.service-grid,
.stats-grid,
.menu-grid,
.gift-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

.service-grid,
.menu-grid,
.gift-grid,
.contact-grid {
  margin-top: 2rem;
}

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

.service-card,
.menu-card,
.gift-card-option,
.contact-card,
.stat-card {
  padding: 1.25rem;
}

.service-card h3,
.menu-card h3,
.gift-card-option h3,
.contact-card h3,
.stat-card strong {
  margin: 0 0 0.6rem;
}

.service-price {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.stats-grid {
  margin-top: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card strong {
  display: block;
  font-size: calc(1.35rem * var(--font-size-scale));
  color: var(--text);
}

.stat-card span {
  color: var(--muted);
}

.image-panel {
  min-height: 260px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: end start;
  padding: 1.4rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.image-panel::before {
  display: none;
}

.image-panel > span {
  position: relative;
  z-index: 1;
}

.image-panel-large {
  min-height: 420px;
  background: none;
}

.price-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.price-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.price-list strong {
  color: var(--text);
}

.promo-card {
  padding: 1.5rem;
  background: linear-gradient(180deg, #fff7fb, #fff);
}

.promo-card h3 {
  margin: 0 0 0.75rem;
  font-size: calc(1.5rem * var(--font-size-scale));
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.gift-card-option strong {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-dark);
  font-size: calc(1.2rem * var(--font-size-scale));
}

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

.gallery-item {
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 16px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img {
    transform: scale(1);
  }

  .gallery-item:hover {
    transform: scale(1.08);
  }
}

.gallery-item.is-pressing {
  transform: scale(1.08);
}


.gallery-load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.contact-section {
  padding-bottom: 5.5rem;
}

.contact-section .split-layout {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.contact-info-panel h3 {
  margin: 0;
  font-size: calc(2.7rem * var(--font-size-scale));
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--font-semibold);
}

.contact-info-panel p {
  margin: 0.9rem 0 2.2rem;
  color: var(--muted);
  font-size: calc(1.14rem * var(--font-size-scale));
  font-family: var(--font-service);
}

.contact-quick-links {
  margin: 0.9rem 0 2.2rem;
  display: grid;
  gap: 0.6rem;
}

.contact-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  text-decoration: none;
  font-size: calc(1.42rem * var(--font-size-scale));
  font-family: var(--font-semibold);
  font-weight: 600;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-link-icon {
  width: 1em;
  height: 1em;
  color: var(--primary-dark);
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.contact-link-icon--map {
  width: 1em;
  height: 1em;
}


.contact-quick-link:hover,
.contact-quick-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: none;
}

.business-hours {
  margin: 0.9rem 0 2.2rem;
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: calc(1.42rem * var(--font-size-scale));
  font-family: var(--font-semibold);
}

.business-hours-row {
  display: grid;
  grid-template-columns: 8.5ch minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: baseline;
}

.business-hours-day {
  text-align: right;
  white-space: nowrap;
}

.business-hours-time {
  white-space: nowrap;
}

.contact-info-panel p:last-child {
  margin-bottom: 0;
}

.contact-map-iframe {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
  display: block;
  overflow: hidden;
}

@media (max-width: 720px) {
  .contact-map-iframe {
    height: 260px;
    margin-top: 1rem;
  }
}

.contact-form {
  padding: 0;
  display: grid;
  gap: 1rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  width: 100%;
  max-width: 760px;
  justify-self: end;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

/* Each field: label text → input → error stacked in normal block flow */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field-group label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.field-group input,
.field-group select,
.field-group textarea {
  display: block;
}

/* Standalone consent-row labels keep their own styles */
.contact-form label.consent-row {
  display: grid;
}

/* Standalone labels outside field-group (if any) */
.contact-form > label:not(.consent-row) {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
}

.required-star {
  color: #d33232;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--border);
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
  box-shadow: 0 0 0 30px #ffffff inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form label.consent-row {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.65rem;
  row-gap: 0;
  color: var(--muted);
  font-weight: 500;
}

.consent-row > span {
  display: block;
  line-height: 1.5;
  margin-top: -0.05rem;
}

.consent-row span.salon-name-text {
  display: inline;
}

.consent-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.2rem 0 0;
  padding: 0;
}

.consent-row a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.consent-row a:hover,
.consent-row a:focus-visible {
  text-decoration: underline;
}

.form-input.form-input--error,
.contact-form textarea.form-input--error {
  border-color: #d33232 !important;
  background-color: rgba(211, 50, 50, 0.04);
}

.form-error {
  display: none;
  margin-top: 0.3rem;
  font-size: calc(0.85rem * var(--font-size-scale));
  color: #d33232;
  font-weight: 600;
}

.form-error:not(:empty) {
  display: block;
}

.form-success {
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 12px;
  background-color: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
  text-align: center;
  border: 1px solid #a5d6a7;
}

.form-send-error {
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 12px;
  background-color: #fdecea;
  color: #c0392b;
  font-weight: 600;
  text-align: center;
  border: 1px solid #f5c6c2;
}

.contact-form .btn {
  justify-self: center;
  width: auto;
  min-width: 10.625rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

/* ─── Hamburger toggle button ─────────────────────────────────────────────── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  z-index: 1100;
  transition: background 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  transform-origin: center;
}

.nav-toggle:hover {
  background: var(--surface-alt);
}

/* X state */
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Breakpoints (largest → smallest) ───────────────────────────────────── */

@media (min-width: 1440px) {
  .container {
    width: min(1280px, 90%);
  }

  .hero-layout,
  .split-layout {
    gap: 3rem;
  }

  .hero {
    padding: 6.5rem 0 5rem;
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .contact-section .split-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: 100%;
    justify-self: stretch;
  }

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

  .service-feature {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .service-visual {
    width: 340px;
  }

  .service-grid,
  .menu-grid,
  .gift-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .service-feature {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.15rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .service-feature + .service-feature {
    border-top: 1px solid var(--border);
    margin-top: 0.9rem;
  }

  .service-visual {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }

  /* Mobile service row — all three items (name · dots · price) stay in the same
     flex row. Font size is reduced so long names fit on one line. */
  .service-menu-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.82rem;
  }

  .service-name {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .service-dots {
    flex: 1;
    min-width: 1rem;
    overflow: hidden;
  }

  .service-menu-list strong {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  section[id] {
    scroll-margin-top: 120px;
  }


  /* ── Hamburger nav ── */
  .nav {
    flex-wrap: wrap;
    padding: 0.75rem 0;
    min-height: unset;
    position: relative;
  }

  /* ── Logo — mobile size (adjust these two values independently) ── */
  .brand-logo {
    height: 80px;      /* ← mobile logo height  */
    max-width: 240px;  /* ← mobile logo max-width */
  }

  .nav-toggle {
    display: flex;
  }

  /* Slide animation — collapsed by default */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100vw;
    z-index: 999;
    gap: 0;
    padding: 0 0 0;
    background: rgba(255, 250, 249, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(234, 221, 231, 0.95);
    box-shadow: 0 8px 24px rgba(32, 20, 31, 0.10);
    /* Slide animation — collapsed by default */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.6s ease-in-out,
                padding    0.6s ease-in-out,
                visibility 0s   linear 0.6s;
  }

  .nav-links.nav-open {
    max-height: 420px;    /* enough for all nav items with room to spare */
    padding: 0.5rem 0 0.75rem;
    visibility: visible;
    transition: max-height 0.6s ease-in-out,
                padding    0.6s ease-in-out,
                visibility 0s   linear 0s;
  }


  .nav-links li {
    width: 100%;
    padding: 0 1rem;
  }

  .nav-links a {
    display: block;
    width: fit-content;
    padding: 0.6rem 0.25rem;
    font-size: calc(1rem * var(--font-size-scale));
  }

  .hero {
    padding-top: 3.5rem;
  }

  /* Hero button — revert to default size on mobile */
  .hero-cta .btn {
    padding: 0.9rem 1.35rem;
    font-size: 1rem;
  }

  /* Shift social icons down to clear the shorter mobile nav */
  .social-icons-bar {
    --social-icon-size: 34px;  /* ← mobile size (adjust independently) */
    --social-icon-gap: 0.85rem; /* ← mobile spacing */
    top: 0.5rem;
    right: 0.75rem;
  }


  .featured-services,
  .info-section {
    padding: 3.5rem 0;
  }

  .hero-copy,
  .section-intro,
  .info-section p,
  .menu-card,
  .contact-card,
  .gift-card-option,
  .gallery-item figcaption {
    font-size: calc(1rem * var(--font-size-scale));
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-feature {
    grid-template-columns: 1fr;
    padding: 1.25rem 0;
  }

  .service-visual {
    width: min(100%, 400px);
    aspect-ratio: 16 / 11;
    margin-left: 0;
    margin-inline: auto;
    justify-self: center;
  }

  .service-type-box {
    min-height: clamp(46px, 11.5vw, 56px);
    padding: clamp(0.52rem, 1.7vw, 0.7rem) clamp(0.62rem, 2.3vw, 0.82rem);
  }

  .service-type-box h3 {
    line-height: 1.12;
  }

  .service-menu-row {
    /* Name takes only the space it needs; dots fill the remaining gap; price pins right */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.3rem;
  }

  .service-dots {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .service-name {
    /* Allow the name to wrap onto as many lines as needed */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .service-menu-list strong {
    /* Keep price pinned to the top of the row = aligned with first line of name */
    align-self: start;
  }


  .service-grid,
  .menu-grid,
  .gift-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .info-section h2,
  .featured-services h2 {
    font-size: clamp(calc(1.8rem * var(--font-size-scale)), calc(7vw * var(--font-size-scale)), calc(2.35rem * var(--font-size-scale)));
  }

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

  .image-panel-large {
    min-height: 240px;
    width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    border-radius: var(--radius-md);
  }

  /* ── About image — mobile only ─────────────────────────────────────────────
     Override the 100vw full-bleed above so the image stays within the section
     (which now has overflow-x: hidden), centres itself, and sits closer to the
     text above it. Desktop is unaffected. */
  #about .image-panel-large {
    width: 100%;        /* fill the grid track — already centred by margin-inline: auto on .container */
    margin-left: 0;     /* cancel the negative bleed margin */
    align-self: center; /* centre vertically in the grid row (mainly a safety net) */
  }

  #about .split-layout {
    gap: 0rem;       /* ← change this value to control space between text and image (0 = touching, 1rem = small gap, etc.) */
  }
}

@media (max-width: 540px) {
  .container {
    width: min(1140px, 94%);
  }

  .contact-info-panel h3 {
    font-size: calc(2.1rem * var(--font-size-scale));
  }

  .contact-quick-link,
  .business-hours {
    font-size: calc(1.2rem * var(--font-size-scale));
  }
}

@media (max-width: 430px) {
  html {
    /* Apply a single proportional scale for iPhone 12 Pro-size screens and smaller. */
    font-size: clamp(13px, 3.4vw, 14px);
    /* The root font-size is already being scaled down above, so reset
       --font-size-scale to 1 to avoid double-scaling all calc() values. */
    --font-size-scale: 1;
  }

  /* Prevent iOS auto-zoom on focus, which can create horizontal overflow. */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .hero {
    padding: 2.6rem 0 2.2rem;
  }

  .hero-actions {
    width: 100%;
  }

  .service-type-box {
    min-height: 2.85rem;
    padding: 0.42rem 0.58rem;
  }

  .service-type-box h3 {
    line-height: 1.1;
    letter-spacing: 0.1em;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.75rem 0.85rem;
  }



  .service-menu-row {
    gap: 0.3rem; /* tightest gap on smallest screens — maximises name space */
  }

  .service-menu-item {
    padding-bottom: 0.6rem;
  }
}

/* ─── Gift Card CTA card ──────────────────────────────────────────────────── */

/* Gift cards section — stack vertically, card centred below text */
#gift-cards .split-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#gift-cards .split-layout > *:first-child {
  width: 100%;
  text-align: center;
}

#gift-cards-heading {
  text-align: center;
}

.gc-cta-card {
  background: linear-gradient(160deg, #fff7fb 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  width: 100%;
  max-width: 520px;
}

.gc-cta-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 0.4rem;
}

.gc-cta-icon svg {
  width: 100%;
  height: 100%;
}

.gc-cta-card h3 {
  margin: 0 0 0.25rem;
  font-size: calc(1.5rem * var(--font-size-scale));
}

.gc-cta-card p {
  margin: 0;
  color: var(--muted);
}

.gc-modal-open-btn {
  margin-top: 0.75rem;
  align-self: center;
}

/* ─── Gift Card Modal ─────────────────────────────────────────────────────── */

.gc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gc-modal.is-open {
  display: flex;
  touch-action: none; /* blocks scroll-through to the page on iOS without moving the scroll position */
}

.gc-modal-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y; /* re-enable vertical scroll inside the form */
}

.gc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 20, 31, 0.55);
  animation: gc-fade-in 0.22s ease forwards;
}

@keyframes gc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gc-modal-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(580px, 94vw);
  height: min(860px, 90vh);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(32, 20, 31, 0.32);
  overflow: hidden;
  animation: gc-slide-up 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes gc-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.gc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}

.gc-modal-title {
  font-family: var(--font-semibold);
  font-weight: 600;
  font-size: calc(1rem * var(--font-size-scale));
  color: var(--text);
  letter-spacing: 0.01em;
}

.gc-modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.gc-modal-close:hover,
.gc-modal-close:focus-visible {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
}

.gc-modal-close:focus {
  outline: none;
}

.gc-modal-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px var(--primary);
}


.gc-modal-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #fff;
  color: var(--muted);
  font-size: calc(0.95rem * var(--font-size-scale));
  z-index: 2;
}

.gc-loader-pulse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  border-top-color: var(--primary);
  animation: gc-spin 0.8s linear infinite;
}

@keyframes gc-spin {
  to { transform: rotate(360deg); }
}

.gc-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ── Gift Card Purchase Form ──────────────────────────────────────────────── */

.gc-modal-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gc-form-wrap {
  padding: 1.5rem 1.75rem 2rem;
  margin: 0 auto;
}

.gc-purchase-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gc-form-section {
  margin-bottom: 1.25rem;
}

.gc-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.gc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0;
}

.gc-form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.gc-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  color: var(--muted);
}

.gc-form-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: calc(0.92rem * var(--font-size-scale));
  font-family: var(--font-main);
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.gc-form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(185, 108, 158, 0.12);
}

.gc-textarea {
  resize: vertical;
  min-height: 72px;
}

/* Amount buttons */
.gc-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}


.gc-amount-btn {
  padding: 0.65rem 0;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 700;
  font-size: calc(0.95rem * var(--font-size-scale));
  font-family: var(--font-main);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}

.gc-amount-btn:hover {
  border-color: var(--primary);
  background: rgba(185, 108, 158, 0.06);
  transform: translateY(-1px);
}

.gc-amount-btn--active {
  border-color: var(--primary);
  background: rgba(185, 108, 158, 0.10);
  color: var(--primary);
}

/* Divider */
.gc-form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 1rem;
}

.gc-form-divider::before,
.gc-form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.gc-form-divider span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

/* PIN note */
.gc-pin-note {
  font-size: calc(0.82rem * var(--font-size-scale));
  color: var(--muted);
  background: rgba(185, 108, 158, 0.06);
  border: 1px solid rgba(185, 108, 158, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Error */
.gc-form-error {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: #DC2626;
  font-size: calc(0.85rem * var(--font-size-scale));
  margin-bottom: 1rem;
}

/* Submit */
.gc-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Success state */
.gc-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 340px;
  padding: 2rem 1.75rem;
  gap: 1rem;
}

.gc-success-icon {
  font-size: 3.5rem;
  line-height: 1;
  animation: gc-slide-up 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.gc-success-title {
  font-size: calc(1.4rem * var(--font-size-scale));
  margin: 0;
  color: var(--text);
}

.gc-success-msg {
  color: var(--muted);
  font-size: calc(0.95rem * var(--font-size-scale));
  max-width: 380px;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .gc-modal {
    padding: 0;
    align-items: flex-end;
  }

  .gc-modal-box {
    width: 100%;
    height: 92svh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .gc-form-wrap {
    padding: 1.25rem 1rem 1.5rem;
  }

  /* Prevent iOS Safari from zooming in on focus (triggers when font-size < 16px) */
  .gc-form-input,
  .gc-purchase-form textarea {
    font-size: 16px;
  }

  .gc-form-row {
    grid-template-columns: 1fr;
  }
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  animation: lb-fade-in 0.22s ease forwards;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  border-radius: 10px;
  overflow: visible;
  animation: lb-zoom-in 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  /* Keep a stable compositing layer for mobile Safari/zoomed rendering. */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes lb-zoom-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  display: block;
  max-width: min(88vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.lightbox-close {
  position: absolute;
  /* Place the close button outside the image corner (not over the photo). */
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  background: rgba(45, 38, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-close:active {
  background: var(--primary);
  border-color: var(--primary-dark);
  transform: scale(1.08);
}

.lightbox-close:focus {
  outline: none;
}

.lightbox-close:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  background: rgba(45, 38, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  opacity: 1;
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(1.05);
  background: var(--primary);
  border-color: var(--primary-dark);
}

.lightbox-nav:focus {
  outline: none;
}

.lightbox-nav:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}

@media (hover: hover) and (pointer: fine) {
  .lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary-dark);
    transform: scale(1.12);
  }

  .lightbox-nav:hover {
    transform: translateY(-50%) scale(1.07);
    background: var(--primary);
    border-color: var(--primary-dark);
  }
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 640px) {
  .lightbox-overlay,
  .lightbox-content {
    /* Avoid animation flicker on mobile when viewport is zoomed. */
    animation: none;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav svg {
    width: 20px;
    height: 20px;
    filter: none;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-img {
    max-width: 94vw;
    max-height: 82svh;
    border-radius: 8px;
  }

  .lightbox-close {
    top: -14px;
    right: -14px;
  }
}

/* ── Service skeleton loader ─────────────────────────────────── */
@keyframes skel-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.service-skeleton {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  animation: skel-shimmer 1.4s infinite linear;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1200px 100%;
  border-radius: 4px;
}

.skel-img {
  flex: 0 0 280px;
  height: 200px;
  background: rgba(0,0,0,.08);
  border-radius: 6px;
}

.skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
}

.skel-line {
  height: 14px;
  background: rgba(0,0,0,.1);
  border-radius: 4px;
  width: 80%;
}
.skel-line--title { height: 20px; width: 40%; }
.skel-line--short { width: 55%; }
