/* ==========================================================
   Petal & Polish Nail Studio — styles.css
   Mobile first: base styles are for phones, then
   @media (min-width: ...) blocks scale up for tablet/desktop.
   ========================================================== */

/* ---------- 1. Brand settings (change colors/fonts here) ---------- */
:root {
  --cream: #FBF7F4;      /* Background */
  --rose: #D8A7A7;       /* Main accent: lines, shapes, details. Use sparingly */
  --rose-deep: #A35E68;  /* Rose for TEXT on cream: 4.5:1 contrast (passes WCAG AA) */
  --plum: #5E3A4E;       /* Buttons, headings */
  --blush: #F2DCDC;      /* Soft highlight, alt section backgrounds */
  --charcoal: #2E2A2B;   /* Body text */

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-btn: 10px;
  --radius-photo: 24px;
  --radius-gallery: 18px;

  --max-width: 1200px;
  --gutter: 20px;              /* side padding on phones */
  --section-space: 72px;       /* space between sections on phones */
  --header-height: 68px;
}

/* ---------- 2. Basic reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;  /* 17px */
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p, blockquote, figure, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius-btn);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Shared pieces ---------- */
.section { padding: var(--section-space) 0; }

.section-head { margin-bottom: 36px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plum);
}

.section-title {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--plum);
}
/* Bold, personality-heavy sections (Gallery, About, Perks) get bigger headings */
.section-title-lg { font-size: clamp(2.6rem, 10vw, 4.25rem); line-height: 1.02; }
.section-title em { font-style: italic; color: var(--rose-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--plum);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(94, 58, 78, 0.55);
}
.btn:active { transform: translateY(0); }

.btn-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.btn-full { width: 100%; }

.btn-cream { background: var(--cream); color: var(--plum); }
.btn-cream:hover { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45); }
.btn-cream:focus-visible { outline-color: var(--cream); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--plum);
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: var(--plum); }

/* ---------- 4. Image slots ----------
   Each photo box has data-slot="filename.webp". If that file isn't in /images yet,
   script.js adds .is-missing and this shows a soft labeled box instead of a broken image. */
.photo { position: relative; overflow: hidden; background: var(--blush); }
.photo.is-missing img { opacity: 0; }
.photo.is-missing::after {
  content: "Photo slot\A" attr(data-slot);
  white-space: pre;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  border: 1.5px dashed var(--rose);
  border-radius: inherit;
  background: var(--blush);
  color: var(--plum);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ---------- 5. Demo banner ---------- */
.demo-banner {
  background: var(--plum);
  color: var(--cream);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  padding: 9px var(--gutter);
}
.demo-banner a {
  color: var(--cream);
  font-weight: 500;
  text-underline-offset: 3px;
}
.demo-banner a:hover { color: var(--blush); }
.demo-banner a:focus-visible { outline-color: var(--cream); }

/* ---------- 6. Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 244, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--cream);
  border-bottom-color: rgba(216, 167, 167, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--plum);
  line-height: 1;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.logo-name em {
  font-style: italic;
  font-weight: 500;
  color: var(--rose-deep);
}
.logo-tag {
  margin-top: 4px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.75;
}

/* Phones: logo + Book Now only (no hamburger) */
.main-nav { display: none; }

/* ---------- 7. Hero ---------- */
.hero {
  padding: 40px 0 var(--section-space);
}

/* Phone order: copy, then image, then trust line */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "media"
    "trust";
  row-gap: 36px;
}
.hero-copy  { grid-area: copy; }
.hero-media { grid-area: media; }
.hero-trust { grid-area: trust; }

.hero-title {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.75rem, 11vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--plum);
}
.hero-title em {
  font-style: italic;
  color: var(--rose-deep);
}

.hero-text {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.btn-hero {
  width: 100%;          /* nearly full-width on phones (container adds side padding) */
  margin-top: 28px;
  min-height: 56px;
  font-size: 1.0625rem;
}

.hero-media {
  isolation: isolate;
  overflow: visible;
  background: none;
  margin-right: 12px;   /* room for the blush shape */
  border-radius: var(--radius-photo);
}
/* Blush shape peeking out behind the top-right corner */
.hero-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12px;
  right: -12px;
  width: 62%;
  height: 48%;
  background: var(--blush);
  border-radius: var(--radius-photo);
  filter: brightness(0.97);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-photo);
  background: var(--blush);
}
.hero-media.is-missing::after { aspect-ratio: 4 / 5; }

.hero-trust {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--plum);
}

/* ---------- 8. Services (quiet, functional) ---------- */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
  margin-bottom: 8px;
}

.tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--rose);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--plum);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tab:hover { background: var(--blush); }
.tab[aria-selected="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--cream);
}

.service-list { margin-top: 16px; }
.service-list:focus-visible { outline-offset: 6px; border-radius: 4px; }

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "info price"
    "info time";
  column-gap: 20px;
  row-gap: 2px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(216, 167, 167, 0.7);
}
.service-row:first-child { border-top: 1px solid rgba(216, 167, 167, 0.7); }
.service-info { grid-area: info; }
.service-name {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--charcoal);
}
.service-desc {
  margin-top: 4px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(46, 42, 43, 0.82);
}
.service-price {
  grid-area: price;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--plum);
}
.service-time {
  grid-area: time;
  text-align: right;
  font-size: 0.8125rem;
  color: rgba(46, 42, 43, 0.75);
}
.service-status { padding: 22px 0; color: rgba(46, 42, 43, 0.8); }

.services-foot {
  margin-top: 32px;
  max-width: 60ch;
}
.services-foot p { font-size: 0.9375rem; color: rgba(46, 42, 43, 0.85); }
.services-foot .text-link { margin-top: 8px; }

/* ---------- 9. Gallery (bold) ---------- */
.gallery { background: var(--blush); }
.gallery .photo, .gallery .photo.is-missing::after { background: #EACFCF; }

/* Phone: two-column staggered grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 40px; /* room for the staggered column */
}
.g-item:nth-child(even) { transform: translateY(40px); }

.g-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-gallery);
  cursor: zoom-in;
}
.g-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.g-item:nth-child(4n+2) .g-btn img,
.g-item:nth-child(4n+3) .g-btn img { aspect-ratio: 1 / 1; }
.g-btn:hover img { transform: scale(1.02); }
.g-btn:focus-visible { outline-offset: 3px; }

.g-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(251, 247, 244, 0.92);
  color: var(--plum);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.g-btn:hover .g-label,
.g-btn:focus-visible .g-label { opacity: 1; transform: none; }
.photo.is-missing .g-label { display: none; }

.gallery-foot { margin-top: 28px; text-align: center; }

/* ---------- 10. About Maya (bold) ---------- */
.about-grid {
  display: grid;
  gap: 36px;
}
.about-media {
  width: 78%;
  max-width: 380px;
  border-radius: var(--radius-photo);
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-media.is-missing::after { aspect-ratio: 4 / 5; }

.about-text { margin-top: 20px; display: grid; gap: 16px; max-width: 58ch; }

.credentials {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.credentials li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--plum);
}
.credentials li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50% 0;
  background: var(--rose);
  transform: rotate(45deg);
}

.signoff {
  margin-top: 28px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--plum);
}

/* ---------- 11. Petal Perks (bold, plum) ---------- */
.perks { background: var(--plum); color: var(--cream); }
.perks .eyebrow,
.perks .section-title { color: var(--cream); }
.perks .section-title em { color: var(--rose); }   /* 4.6:1 on plum */
.perks :focus-visible { outline-color: var(--cream); }
.perks .section-head { max-width: 640px; }

.perk-steps {
  display: grid;
  gap: 32px;
}
.perk {
  padding-top: 20px;
  border-top: 1px solid rgba(216, 167, 167, 0.5);
}
.perk-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 0.9;
  font-variant-numeric: lining-nums;
  color: var(--rose);
}
.perk h3 {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 500;
}
.perk p { margin-top: 6px; max-width: 32ch; color: rgba(251, 247, 244, 0.88); }

.perks-cta { margin-top: 44px; }
.perks-cta .btn { width: 100%; }
.perks-cta p { margin-top: 14px; font-size: 0.9375rem; color: rgba(251, 247, 244, 0.85); }

/* ---------- 12. Reviews (quiet) ---------- */
/* Phone: swipe sideways (no carousel buttons) */
.review-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  scroll-padding: 0 var(--gutter);
}
.review-list::-webkit-scrollbar { display: none; }
.review-list:focus-visible { outline-offset: -2px; border-radius: 8px; }

.review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(216, 167, 167, 0.45);
  border-radius: 16px;
}
.stars { color: var(--plum); letter-spacing: 0.15em; font-size: 0.9375rem; }
.review blockquote {
  flex: 1;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.35;
  color: var(--charcoal);
}
.review-name { margin-top: 20px; font-weight: 500; color: var(--plum); }
.review-tag {
  margin-top: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(46, 42, 43, 0.72);
}

/* ---------- 13. Policies (quiet) ---------- */
.policies { background: var(--blush); }

.acc-item { border-bottom: 1px solid rgba(94, 58, 78, 0.25); }
.acc-item:first-child { border-top: 1px solid rgba(94, 58, 78, 0.25); }

.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--plum);
  cursor: pointer;
}
.acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease;
}
.acc-icon::after { transform: rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }

/* Smooth open/close: grid rows animate from 0 to the content's height */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-inner p { padding: 0 32px 22px 0; max-width: 62ch; }

/* ---------- 14. Location & hours (quiet) ---------- */
.location-grid { display: grid; gap: 40px; }

.visit-blocks { display: grid; gap: 28px; margin-bottom: 20px; }

.mini-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
address { font-style: normal; line-height: 1.7; }
address a { color: var(--plum); text-underline-offset: 4px; }
.fine-print { margin-top: 6px; font-size: 0.8125rem; color: rgba(46, 42, 43, 0.72); }

.hours { display: grid; max-width: 340px; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(216, 167, 167, 0.5);
}
.hours dt { font-weight: 500; }
.hours dd { color: rgba(46, 42, 43, 0.85); }
.hours .is-closed dd { color: rgba(46, 42, 43, 0.78); }

.location-map img {
  width: 100%;
  border-radius: var(--radius-photo);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* ---------- 15. Contact ---------- */
.contact { background: var(--blush); }
.contact-intro { margin-top: 16px; max-width: 44ch; }

.contact-aside { margin-top: 28px; }
.skip-q { font-size: 1rem; }
.skip-q a { font-weight: 500; color: var(--plum); text-underline-offset: 4px; }

.socials { display: flex; gap: 10px; margin-top: 16px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  color: var(--plum);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.social:hover { background: var(--cream); transform: translateY(-1px); }
.social svg { width: 20px; height: 20px; }

.contact-form { display: grid; gap: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--plum);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(94, 58, 78, 0.35);
  border-radius: var(--radius-btn);
  background: var(--cream);
  color: var(--charcoal);
  font: inherit;
  font-size: 1rem;  /* 16px+ stops iPhones zooming in */
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--plum); outline-offset: 1px; border-color: var(--plum); }
.field [aria-invalid="true"] { border-color: #A3324A; }
.field-error { margin-top: 6px; font-size: 0.8125rem; color: #8E2B40; }
.field-error:empty { display: none; }

.form-status { font-size: 0.9375rem; color: var(--plum); }
.form-status:empty { display: none; }
.form-status.is-sent {
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  background: var(--cream);
  border: 1px solid var(--rose);
}

/* ---------- 16. Footer (plum) ---------- */
.site-footer {
  background: var(--plum);
  color: var(--cream);
  padding: 64px 0 32px;
}
.site-footer a { color: var(--cream); }
.site-footer :focus-visible { outline-color: var(--cream); }

.footer-name {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}
.footer-name em { font-style: italic; color: var(--rose); }
.footer-tagline {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--blush);
}

.footer-row {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(242, 220, 220, 0.25);
}
.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.footer-nav a {
  display: inline-block;
  padding: 8px 0;
  font-size: 0.9375rem;
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.socials-footer { margin-top: 0; }
.socials-footer .social { border-color: rgba(242, 220, 220, 0.45); color: var(--cream); }
.socials-footer .social:hover { background: rgba(251, 247, 244, 0.12); }

.footer-legal {
  margin-top: 32px;
  display: grid;
  gap: 6px;
  font-size: 0.8125rem;
  color: rgba(251, 247, 244, 0.8);
}
.footer-legal a { text-underline-offset: 3px; }

/* ---------- 17. Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 64px 16px 32px;
  border: 0;
  background: rgba(46, 42, 43, 0.94);
  color: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.lb-frame {
  width: min(88vw, calc((100vh - 180px) * 0.8));
  max-width: 640px;
  border-radius: var(--radius-gallery);
}
.lb-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.lb-frame.is-missing::after { aspect-ratio: 4 / 5; }
.lb-caption { margin-top: 14px; font-size: 0.9375rem; text-align: center; }
.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(251, 247, 244, 0.4);
  border-radius: 50%;
  background: rgba(46, 42, 43, 0.6);
  color: var(--cream);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(251, 247, 244, 0.15); }
.lightbox :focus-visible { outline-color: var(--cream); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; bottom: 20px; }
.lb-next { right: 12px; bottom: 20px; }

/* ---------- 18. Demo dialog ---------- */
.demo-dialog {
  width: min(420px, calc(100% - 40px));
  padding: 32px 28px 24px;
  border: 0;
  border-radius: 20px;
  background: var(--cream);
  color: var(--charcoal);
  box-shadow: 0 30px 60px -20px rgba(46, 42, 43, 0.35);
  text-align: center;
}
.demo-dialog::backdrop { background: rgba(46, 42, 43, 0.45); }
.demo-dialog h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--plum);
}
.demo-dialog p { margin: 12px 0 24px; }
.demo-dialog .btn { width: 100%; }
.demo-dialog .demo-credit {
  margin: 18px 0 0;
  font-size: 0.8125rem;
  color: rgba(46, 42, 43, 0.75);
}
.demo-credit a { color: var(--plum); }

/* ---------- 19. Scroll-in fade (only when JavaScript is on) ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* ==========================================================
   TABLET (600px and up)
   ========================================================== */
@media (min-width: 600px) {
  :root {
    --gutter: 24px;
    --section-space: 88px;
  }
  .btn-hero { width: auto; padding: 16px 36px; }
  .hero-media { max-width: 520px; margin-inline: auto; }
  .hero-trust { text-align: left; }

  .service-row {
    grid-template-columns: 1fr 90px 80px;
    grid-template-areas: "info time price";
    align-items: baseline;
  }
  .service-time { font-size: 0.875rem; }

  .gallery-grid { gap: 16px; }

  .perk-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .perks-cta { display: flex; align-items: center; gap: 24px; }
  .perks-cta .btn { width: auto; }
  .perks-cta p { margin-top: 0; }

  .review-list { grid-auto-columns: 60%; }

  .visit-blocks { grid-template-columns: 1fr 1fr; }
  .visit-blocks .visit-block:nth-child(2) { grid-row: span 2; }

  .footer-row { grid-template-columns: 1fr auto; align-items: center; }
  .footer-legal { grid-template-columns: 1fr; }
}

/* ==========================================================
   DESKTOP (960px and up)
   ========================================================== */
@media (min-width: 960px) {
  :root {
    --gutter: 32px;
    --section-space: 112px;
    --header-height: 80px;
  }

  .main-nav { display: block; margin-left: auto; }
  .main-nav ul {
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .main-nav a {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--charcoal);
    padding: 6px 0;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--rose);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .main-nav a:hover::after,
  .main-nav a:focus-visible::after { transform: scaleX(1); }
  .header-inner .btn-small { margin-left: 20px; }

  .logo-name { font-size: 1.875rem; }

  .section-head { margin-bottom: 48px; }

  .hero { padding: 64px 0 var(--section-space); }

  /* 45 / 55 split: copy left, photo right */
  .hero-grid {
    grid-template-columns: 45fr 55fr;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      ".     media"
      "copy  media"
      "trust media"
      ".     media";
    column-gap: 64px;
    row-gap: 0;
  }
  .hero-trust {
    margin-top: 28px;
    text-align: left;
  }
  .hero-title { font-size: clamp(3.5rem, 5.2vw, 4.75rem); }
  .hero-text { font-size: 1.125rem; }
  .btn-hero { margin-top: 36px; }

  .hero-media {
    max-width: none;
    margin: 0 24px 0 0;
  }
  .hero-media::before {
    top: -24px;
    right: -24px;
  }

  /* Services: heading left, menu right */
  .services .container {
    display: grid;
    grid-template-columns: 4fr 7fr;
    column-gap: 72px;
  }
  .services .section-head { grid-column: 1; grid-row: 1 / span 3; }
  .service-tabs, .service-list, .services-foot { grid-column: 2; }

  /* Gallery: editorial collage, large + stacked smaller photos */
  .gallery-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(84px, 8.4vw, 104px);
    gap: 18px;
    padding-bottom: 0;
  }
  .g-item:nth-child(even) { transform: none; }
  .g-item .g-btn img,
  .g-item:nth-child(4n+2) .g-btn img,
  .g-item:nth-child(4n+3) .g-btn img { aspect-ratio: auto; }
  .g1 { grid-column: 1 / 6;  grid-row: 1 / 6; }
  .g2 { grid-column: 6 / 9;  grid-row: 1 / 3; }
  .g3 { grid-column: 6 / 9;  grid-row: 3 / 6; }
  .g4 { grid-column: 9 / 13; grid-row: 1 / 4; }
  .g5 { grid-column: 9 / 13; grid-row: 4 / 6; }
  .g6 { grid-column: 1 / 4;  grid-row: 6 / 9; }
  .g7 { grid-column: 4 / 9;  grid-row: 6 / 9; }
  .g8 { grid-column: 9 / 13; grid-row: 6 / 9; }
  .gallery-foot { margin-top: 40px; }

  /* About: smaller portrait left, story right */
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    align-items: center;
  }
  .about-media { width: 100%; max-width: 420px; justify-self: end; }

  /* Perks */
  .perk-steps { gap: 48px; }
  .perk-num { font-size: 6rem; }

  /* Reviews: three columns */
  .review-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 24px;
  }
  .review { padding: 32px 28px; }

  /* Policies: heading left, accordions right */
  .policies-grid {
    display: grid;
    grid-template-columns: 4fr 7fr;
    column-gap: 72px;
    align-items: start;
  }

  /* Location: two columns */
  .location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
  }

  /* Contact: heading left, form right */
  .contact-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    column-gap: 80px;
    align-items: start;
  }

  .site-footer { padding: 88px 0 40px; }
  .footer-legal { grid-template-columns: 1fr auto; }
  .lb-prev { left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-next { right: 24px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-close { top: 20px; right: 24px; }
}

/* Touch screens: show gallery labels without hover */
@media (hover: none) {
  .g-label { opacity: 1; transform: none; font-size: 0.6875rem; padding: 4px 8px; }
}

/* Respect people who turn off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
}
