/* ==========================================================================
   Rose Nails & Beauty — shared stylesheet
   Mobile-first. No build step: plain CSS3 only (constitution Principle I).
   ========================================================================== */

/* ---- Design tokens -------------------------------------------------- */
:root {
  /* Brand palette (research.md §3 / §7, spec.md FR-002) */
  --color-cream: #fbf4ee;
  --color-cream-soft: #f4e7dc;
  --color-surface: #ffffff;
  --color-rose: #c48a93;
  --color-rose-dark: #8b4a56;
  --color-rose-deep: #6e3540;
  --color-gold: #be9b5e;
  --color-gold-light: #e7d3a6;
  --color-gold-text: #856429; /* darkened for AA contrast on cream (research.md §3 / accessibility) */
  --color-black: #241c1b;
  --color-text: #382b29;
  --color-text-muted: #6f5c58;
  --color-border: #e7d6cd;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 12px 30px -14px rgba(110, 53, 64, 0.35);
  --header-height: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-rose-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-rose-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.75em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(110, 53, 64, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-gold);
  color: var(--color-rose-deep);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-gold);
  color: var(--color-black);
}

/* ---- Site header / nav ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 244, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-rose-deep);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-rose-deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.primary-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.primary-nav.is-open {
  display: flex;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.6rem 0.25rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.nav-link.active {
  color: var(--color-rose-dark);
}

.nav-cta {
  align-self: flex-start;
}

/* ---- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-cream-soft) 0%, var(--color-cream) 55%, var(--color-surface) 100%);
  padding: 3rem 0 3.5rem;
}

.hero-feature {
  padding: 3.5rem 0 4.5rem;
}

.hero-motif {
  position: absolute;
  right: -10%;
  top: -15%;
  width: 60%;
  max-width: 420px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--color-gold-text);
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.hero-highlights {
  display: grid;
  gap: 0.55rem;
  padding-left: 1rem;
  color: var(--color-text-muted);
}

.hero-highlights li {
  position: relative;
}

.hero-highlights li::before {
  content: "•";
  color: var(--color-rose-dark);
  font-weight: 700;
  position: absolute;
  left: -0.8rem;
}

.hero-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-media-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.1rem;
  color: var(--color-text-muted);
  box-shadow: 0 18px 30px -22px rgba(36, 28, 27, 0.8);
}

.hero-media-card p {
  margin: 0;
}

/* ---- Section shells ---------------------------------------------------- */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--color-surface);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading p {
  color: var(--color-text-muted);
}

/* ---- Service category cards (homepage overview) ----------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.category-card img {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
}

.category-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.service-previews {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.service-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-preview-content {
  padding: 1.1rem 1.15rem 1.25rem;
}

.service-preview-content h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.service-preview-content p {
  color: var(--color-text-muted);
  margin: 0 0 0.7rem;
}

.service-preview-content a {
  color: var(--color-rose-dark);
  font-weight: 700;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--color-text-muted);
}

.about-card {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-card-content {
  padding: 1.25rem;
}

.cta-banner {
  padding-top: 1rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(196, 138, 147, 0.16), rgba(190, 155, 94, 0.16));
  border: 1px solid var(--color-border);
  border-radius: 26px;
  padding: 2rem 1.25rem;
}

/* ---- Hours / location snapshot card ------------------------------------ */
.info-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-list {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 0.35rem;
}

.hours-list li:last-child {
  border-bottom: none;
}

/* ---- Services page ------------------------------------------------------ */
.service-category {
  margin-bottom: 2.5rem;
}

.service-category-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--color-gold-light);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}

.service-category-heading img {
  width: 32px;
  height: 32px;
}

.service-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.service-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.service-item h4 {
  font-family: var(--font-heading);
  color: var(--color-rose-deep);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.service-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.pricing-note {
  background: var(--color-cream-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.pricing-note p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

/* ---- Gallery ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  border: none;
  background: none;
  padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(110, 53, 64, 0.85), rgba(110, 53, 64, 0));
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(36, 28, 27, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  z-index: 1000;
}

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

.lightbox-content {
  max-width: 640px;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.lightbox-content img {
  width: 100%;
}

.lightbox-caption {
  padding: 1rem 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-rose-deep);
}

/* ---- Contact page --------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-card a {
  color: var(--color-rose-dark);
  font-weight: 600;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-cream-soft);
  color: var(--color-rose-deep);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--color-rose-dark);
  color: #fff;
}

/* ---- Policy / About content ------------------------------------------- */
.prose {
  max-width: 70ch;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.policy-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ---- Reference policy page --------------------------------------------- */
.policy-page {
  padding: 4.5rem 0 6rem;
  background: #fff;
}

.policy-container {
  max-width: 1080px;
}

.policy-intro {
  margin: 0 auto 5.2rem;
  text-align: center;
}

.policy-intro h1 {
  margin-bottom: 1.25rem;
  color: #222;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 600;
  text-transform: uppercase;
}

.policy-intro p {
  max-width: 920px;
  margin: 0 auto;
  color: #292929;
  font-size: 1.05rem;
  line-height: 1.85;
}

.policy-image {
  width: 100%;
  aspect-ratio: 49 / 20;
  object-fit: cover;
}

.policy-content {
  padding: 3.8rem 3.25rem 0;
  color: #252525;
  font-size: 0.98rem;
  line-height: 1.42;
}

.policy-content section + section {
  margin-top: 1.65rem;
}

.policy-content h2 {
  margin-bottom: 1.45rem;
  color: #252525;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.policy-content ul {
  display: grid;
  gap: 0.14rem;
  list-style: none;
}

.policy-content li {
  position: relative;
  padding-left: 0.72rem;
}

.policy-content li::before {
  content: "•";
  position: absolute;
  left: 0;
}

@media (max-width: 639px) {
  .policy-page {
    padding: 3rem 0 4rem;
  }

  .policy-intro {
    margin-bottom: 3.2rem;
  }

  .policy-intro p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .policy-image {
    aspect-ratio: 16 / 9;
  }

  .policy-content {
    padding: 2.5rem 0 0;
    font-size: 0.92rem;
  }
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--color-rose-deep);
  color: #f6e9e2;
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer a {
  color: #f6e9e2;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-gold-light);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social .social-link {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.footer-social .social-link:hover,
.footer-social .social-link:focus-visible {
  background: var(--color-gold);
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: rgba(246, 233, 226, 0.75);
  margin: 0;
}

/* ---- Tablet breakpoint --------------------------------------------------- */
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

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

/* ---- Desktop breakpoint --------------------------------------------------- */
@media (min-width: 1000px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    padding: 0;
    gap: 1.75rem;
  }

  .primary-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-link {
    border-bottom: none;
    padding: 0.3rem 0.1rem;
    position: relative;
  }

  .nav-link.active::after,
  .nav-link:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--color-gold);
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: 560px;
  }

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

  .about-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 2rem;
  }

  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }

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

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

  .footer-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1280px) {
  .section {
    padding: 4.5rem 0;
  }
}

/* ==========================================================================
   Reference-site visual treatment
   Recreates the original black, gold and photographic Rose Nails layout while
   keeping the hand-authored site responsive and usable on small screens.
   ========================================================================== */
:root {
  --color-cream: #ffffff;
  --color-cream-soft: #f7f1e9;
  --color-rose: #b89552;
  --color-rose-dark: #8d6b2d;
  --color-rose-deep: #17120c;
  --color-gold: #c5a35a;
  --color-gold-light: #f0d98f;
  --color-gold-text: #8a6725;
  --color-black: #050505;
  --color-text: #1c1c1c;
  --color-text-muted: #5e5e5e;
  --color-border: #d9c59a;
  --header-height: 92px;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
}

body {
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  position: relative;
  color: #fff;
  background-color: #1b1105;
  background-image:
    linear-gradient(90deg, rgba(20, 12, 3, 0.93), rgba(25, 16, 6, 0.62)),
    url("../img/rose-header-bg.png");
  background-size: cover;
  background-position: center;
  border: 0;
}

.header-inner {
  min-height: var(--header-height);
}

.brand-logo {
  width: 134px;
  height: auto;
}

.nav-toggle {
  border: 1px solid rgba(240, 217, 143, 0.65);
  background: rgba(0, 0, 0, 0.42);
}

.nav-toggle span {
  background: var(--color-gold-light);
}

.primary-nav {
  top: var(--header-height);
  color: #fff;
  background: #120c05;
  border-bottom-color: #5d4826;
}

.nav-link {
  color: #fff;
  border-bottom-color: rgba(240, 217, 143, 0.2);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-gold-light);
}

.btn-header {
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  color: #16100a;
  background: linear-gradient(#f7f4e9, #bdb7a6);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  font-weight: 400;
}

.btn-header:hover,
.btn-header:focus-visible {
  color: #000;
  background: #fff;
}

.reference-hero {
  position: relative;
  height: clamp(410px, 61vw, 850px);
  overflow: hidden;
  background: #7d6552;
}

.reference-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.reference-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(75, 45, 19, 0.08), transparent 55%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.reference-services {
  padding: 3.3rem 0 5rem;
  color: #fff;
  background: #030303;
}

.reference-services .container {
  max-width: 1380px;
}

.reference-services h2 {
  margin-bottom: 3rem;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-align: center;
  text-transform: uppercase;
}

.reference-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 0.85rem;
}

.reference-service {
  display: grid;
  grid-template-rows: auto minmax(6.6rem, auto) auto;
  align-items: start;
  text-align: center;
}

.reference-service-media {
  overflow: hidden;
  border: 4px solid #fff;
  background: #fff;
}

.reference-service-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.45s ease;
}

.reference-service-media:hover img,
.reference-service-media:focus-within img {
  opacity: 0.72;
  transform: scale(1.025);
}

.reference-service h3 {
  align-self: center;
  margin: 1.5rem 0 1.15rem;
  color: #b69a49;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.25vw, 1.28rem);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
}

.reference-service h3 span {
  display: block;
  margin-top: 0.22rem;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92em;
  font-weight: 700;
}

.reference-service a {
  justify-self: center;
  min-width: 142px;
  border: 1px solid #fff;
  padding: 0.72rem 1rem;
  color: #fff;
  background-color: #241708;
  background-image:
    linear-gradient(90deg, rgba(28, 15, 3, 0.9), rgba(62, 42, 14, 0.68)),
    url("../img/rose-header-bg.png");
  background-size: 520px auto;
  background-position: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.reference-service a:hover,
.reference-service a:focus-visible {
  color: #fff;
  border-color: var(--color-gold-light);
  filter: brightness(1.35);
}

.reference-cta {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #706454 url("../img/rose-banner.jpg") center / cover no-repeat;
  text-align: center;
}

.reference-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 21, 14, 0.32);
}

.reference-cta-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.reference-cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.reference-cta p {
  margin: 0 auto 1.5rem;
  font-size: clamp(0.9rem, 1.7vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.btn-gold {
  border: 1px solid #b6934f;
  border-radius: 0;
  padding: 0.7rem 1.6rem;
  color: #fff;
  background: rgba(43, 31, 15, 0.88);
  text-transform: uppercase;
  font-size: 0.7rem;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  color: #17120c;
  background: var(--color-gold-light);
}

.reference-about {
  padding: 4rem 0 5rem;
  background: #fff;
}

.reference-about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.reference-about-media {
  overflow: hidden;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: 0 0 0 1px #c8c8c8, 0 10px 28px rgba(0, 0, 0, 0.12);
}

.reference-about-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.reference-about-media:hover img {
  opacity: 0.55;
  transform: scale(1.015);
}

.reference-about-copy h2 {
  margin-bottom: 2rem;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  text-align: left;
  text-transform: uppercase;
}

.reference-about-copy h3 {
  margin-top: 1.35rem;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
}

.reference-about-copy p {
  color: #252525;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.48;
}

.reference-about-copy strong,
.text-link {
  color: var(--color-gold-text);
}

.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.site-footer {
  padding: 0;
  color: #eee;
  background: #030303;
}

.site-footer .footer-inner {
  position: relative;
  max-width: none;
  min-height: 0;
  padding: 0;
  gap: 0;
  grid-template-columns: 1fr;
  background: #030303;
}

.site-footer .footer-visual {
  position: relative;
  min-height: 390px;
  align-self: stretch;
  overflow: hidden;
  background-color: #e9e5d8;
  background-image: url("../img/footer-architecture.jpg");
  background-repeat: no-repeat;
  background-position: 46% center;
  background-size: 105% auto;
  animation: footerArchitectureMotion 14s ease-in-out infinite alternate;
}

.site-footer .footer-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 18% 12% 23%;
  background: url("../img/rose-logo.png") center / contain no-repeat;
  filter: drop-shadow(1px 3px 1px rgba(0, 0, 0, 0.68));
  pointer-events: none;
}

.site-footer .footer-visual::before {
  content: "© 2023 by ROSE NAILS & BEAUTY.\\A Powered and secured by KTT Technology";
  position: absolute;
  z-index: 2;
  left: 14%;
  right: 10%;
  bottom: 7%;
  color: #292929;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: pre-line;
  pointer-events: none;
}

.site-footer .footer-visual > * {
  opacity: 0;
  pointer-events: none;
}

@keyframes footerArchitectureMotion {
  from {
    background-position: 46% center;
    background-size: 105% auto;
  }

  to {
    background-position: 56% center;
    background-size: 116% auto;
  }
}

.site-footer .footer-inner > .footer-col:nth-child(2) {
  padding: 3rem 1.5rem;
  font-size: 0.94rem;
}

.site-footer .footer-inner > .footer-col:nth-child(2) > p {
  margin-bottom: 1.55rem;
}

.footer-hours {
  margin-top: 3rem;
}

.footer-hours h3 {
  margin-bottom: 0.75rem;
  color: #ac9145;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.footer-hours p {
  margin: 0;
  line-height: 1.6;
}

.site-footer .footer-links {
  align-items: flex-start;
  padding: 1rem 1.5rem 3rem;
  gap: 1.35rem;
}

.site-footer .footer-links a {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-footer .footer-links .footer-home {
  color: #ac9145;
}

.site-footer .footer-inner > .footer-col:nth-child(4) {
  padding: 0 1.5rem 3rem;
}

.site-footer .footer-social {
  flex-direction: row;
  gap: 1.25rem;
}

.site-footer .footer-social .social-link {
  width: 32px;
  height: 32px;
  color: #fff;
  background: transparent;
}

.site-footer a {
  color: #eee;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-gold-light);
}

.footer-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  overflow: hidden;
}

@media (min-width: 640px) {
  .reference-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1rem;
  }

  .reference-about-grid {
    grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
    gap: 3rem;
  }
}

@media (min-width: 1000px) {
  :root {
    --header-height: 128px;
  }

  .brand-logo {
    width: 190px;
  }

  .primary-nav {
    background: transparent;
  }

  .primary-nav ul {
    gap: 1.85rem;
  }

  .nav-link.active::after,
  .nav-link:hover::after {
    background: var(--color-gold-light);
  }

  .reference-service-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .reference-about {
    padding: 5rem 0 6rem;
  }

  .reference-about-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 5rem;
    align-items: stretch;
  }

  .reference-about-media {
    height: 100%;
  }

  .reference-about-media img {
    height: 100%;
    aspect-ratio: auto;
  }

  .reference-about-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .reference-about-copy h2 {
    margin-bottom: 1.5rem;
  }

  .reference-about-copy p {
    margin-bottom: 0;
  }

  .site-footer .footer-inner {
    min-height: 520px;
    grid-template-columns: 36% minmax(360px, 1fr) 190px 82px;
    align-items: stretch;
  }

  .site-footer .footer-visual {
    min-height: 520px;
  }

  .site-footer .footer-inner > .footer-col:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4.3rem 3.6rem 3.4rem;
    font-size: 1rem;
  }

  .site-footer .footer-inner > .footer-col:nth-child(2) > p {
    margin-bottom: 1.25rem;
  }

  .footer-hours {
    margin-top: auto;
    padding-top: 2rem;
  }

  .site-footer .footer-links {
    justify-content: center;
    padding: 3rem 1rem;
    gap: 2.3rem;
  }

  .site-footer .footer-inner > .footer-col:nth-child(4) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
  }

  .site-footer .footer-social {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 120px;
  }

  .reference-service-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .reference-service img {
    aspect-ratio: 1.65 / 1;
  }

  .reference-service h3 {
    min-height: auto;
    font-size: 0.88rem;
  }
}

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

  .site-footer .footer-visual {
    animation: none;
    background-position: center;
    background-size: 108% auto;
  }
}

/* Shared gold-sparkle artwork for the site's branded action buttons. */
.btn-primary,
.btn-outline,
.btn-header,
.btn-gold,
.reference-service a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.88);
  background-color: #2b1b09;
  background-image: url("../img/button-gold-sparkle-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  box-shadow: 0 6px 18px rgba(22, 13, 3, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible,
.btn-header:hover,
.btn-header:focus-visible,
.btn-gold:hover,
.btn-gold:focus-visible,
.reference-service a:hover,
.reference-service a:focus-visible {
  color: #fff;
  border-color: var(--color-gold-light);
  background-color: #2b1b09;
  background-image: url("../img/button-gold-sparkle-bg.png");
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* Compact pearl-finish voucher button used in the main navigation. */
.btn.btn-header {
  padding: 0.78rem 1.6rem;
  border: 1.5px solid #fff;
  color: #1c1b18;
  background-color: #d8d4c6;
  background-image: radial-gradient(
    ellipse at center,
    #f7f4eb 0%,
    #e4e0d3 50%,
    #aaa590 78%,
    #6f6b59 100%
  );
  background-position: center;
  background-size: 100% 100%;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(72, 66, 49, 0.25),
    0 3px 9px rgba(0, 0, 0, 0.28);
}

.btn.btn-header:hover,
.btn.btn-header:focus-visible {
  color: #111;
  border-color: #fff;
  background-color: #e6e2d6;
  background-image: radial-gradient(
    ellipse at center,
    #fffdf7 0%,
    #efebe0 50%,
    #bbb5a0 78%,
    #7c7763 100%
  );
  filter: brightness(1.05);
  transform: translateY(-1px);
}
