/* Prima Hair and Day Spa: shared styles (replaces the CSS that was copy-pasted into every page) */
:root {
  --ink: #f6eef7;
  --ink-soft: #e6d5ea;
  --accent: #f2dce0;
  --accent-2: #d8b4e2;
  --brand: #844ea5;
  --brand-dark: #6b3b88;
  --panel: rgba(32, 8, 46, 0.42);
  --panel-line: rgba(255, 255, 255, 0.16);
  --header-h: 140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 150px; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background-color: #52235f;
  background-image: linear-gradient(rgba(132, 88, 165, 0.6), rgba(82, 35, 95, 0.6)), url('assets/img/background_img.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.55); }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  background: #fff; color: #3a1646; padding: 0.6rem 1rem; border-radius: 6px; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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

/* ---------- Header ---------- */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 0.5rem 1.5rem;
}
header.site-header .logo-link { display: inline-flex; }
header.site-header img.logo {
  height: 120px; width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
}
nav.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; margin-top: 0.5rem; }
nav.main-nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem;
  padding: 0.35rem 0.1rem; border-bottom: 2px solid transparent;
  text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.7);
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.fade-top {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(26, 0, 38, 1), rgba(26, 0, 38, 0));
  pointer-events: none; z-index: 999;
}

/* ---------- Layout ---------- */
main { flex: 1 0 auto; }

.hero { padding: 4rem 1.5rem 2rem; text-align: center; color: var(--accent); }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0 auto; text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.6); }
.hero .cta-row { margin-top: 1.75rem; }

.section {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto 1.75rem;
  padding: 2.5rem 2rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.section h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; margin: 0 0 1rem; color: var(--accent); }
.section p { margin: 0 0 1rem; }
.section > :last-child { margin-bottom: 0; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

/* ---------- Home ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: center; }
.about-grid img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); display: block; }

.service-links { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.service-links a {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center;
  padding: 1rem 0.5rem; border-radius: 12px; text-decoration: none; color: #fff; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--panel-line);
  transition: transform 0.2s ease, background 0.2s ease;
}
.service-links a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.16); }
.service-links img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }

.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.visit-grid h3 { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--accent-2); }
.visit-grid p { margin: 0; }

.hours { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours th, .hours td { padding: 0.25rem 0; text-align: left; font-weight: 400; }
.hours th { padding-right: 1.5rem; color: var(--ink-soft); }
.hours tr.closed td { opacity: 0.8; }

/* ---------- Services ---------- */
.svc-grid { width: min(1000px, calc(100% - 2rem)); margin: 0 auto 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.svc-tile {
  position: relative; display: block; height: 190px; border-radius: 12px; overflow: hidden; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); transition: transform 0.25s ease;
}
.svc-tile:hover, .svc-tile[aria-expanded="true"] { transform: scale(1.03); }
.svc-tile[aria-expanded="true"] { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.svc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-tile .caption {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.5rem;
  color: #fff; font-weight: 700; font-size: 1.4rem; background: linear-gradient(rgba(20, 0, 30, 0.25), rgba(20, 0, 30, 0.5));
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.8);
}
.svc-panels { width: min(1000px, calc(100% - 2rem)); margin: 0 auto 1.75rem; }
.svc-panel {
  background: rgba(255, 255, 255, 0.1); border-left: 4px solid var(--accent-2); border-radius: 10px;
  padding: 1.5rem; margin-bottom: 1.25rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.svc-panel h2 { margin: 0 0 0.25rem; font-family: 'Playfair Display', Georgia, serif; color: var(--accent); font-size: 1.7rem; }
.svc-panel .svc-intro { margin: 0 0 1rem; color: var(--ink-soft); }
.svc-panel ul { list-style: none; margin: 0; padding: 0; }
.svc-panel li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.svc-panel li:last-child { border-bottom: 0; }
.svc-panel .svc-name { font-weight: 600; }
.svc-panel .svc-price { white-space: nowrap; text-align: right; color: var(--accent); }
.svc-note { text-align: center; color: var(--ink-soft); }
/* With JavaScript, show one category at a time. Without it, every price list is visible. */
.js .svc-panel { display: none; }
.js .svc-panel.active { display: block; animation: fadeIn 0.3s ease-in-out; }
.js .svc-panels-hint { display: block; }
.svc-panels-hint { display: none; text-align: center; color: var(--ink-soft); margin: 0 0 1.5rem; }

/* ---------- Gallery ---------- */
.gallery-hint { color: var(--ink-soft); font-size: 0.95rem; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ba {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; cursor: pointer; background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); transition: transform 0.3s ease;
}
.ba:hover { transform: scale(1.03); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s ease; }
.ba .img-after { opacity: 0; }
.ba:hover .img-after, .ba:focus-visible .img-after, .ba.is-after .img-after { opacity: 1; }
.ba .label {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; z-index: 2;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 0.95rem; color: #fff; text-shadow: 1px 1px 3px #000;
  transition: opacity 0.45s ease;
}
.ba .label-before { background: rgba(190, 40, 40, 0.88); }
.ba .label-after { background: rgba(30, 150, 60, 0.9); opacity: 0; }
.ba:hover .label-before, .ba:focus-visible .label-before, .ba.is-after .label-before { opacity: 0; }
.ba:hover .label-after, .ba:focus-visible .label-after, .ba.is-after .label-after { opacity: 1; }

.feature-img { display: block; width: 100%; max-width: 800px; height: auto; margin: 1.5rem auto 0; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }

/* ---------- Team ---------- */
.team-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 2rem; }
.team-member { flex: 0 1 300px; text-align: center; }
.team-member img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); display: block; background: rgba(0, 0, 0, 0.25); }
.member-name { margin-top: 1rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.member-roles { color: var(--accent-2); font-style: italic; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.contact-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.contact-list li { margin-bottom: 0.6rem; }
.contact-list strong { color: var(--accent-2); display: inline-block; min-width: 4.5rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.social-row a { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.social-row a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

form.contact-form { display: flex; flex-direction: column; gap: 0.35rem; }
form.contact-form label { font-weight: 600; font-size: 0.95rem; }
form.contact-form input, form.contact-form textarea {
  padding: 0.75rem; margin-bottom: 0.75rem; border: 2px solid transparent; border-radius: 8px; font: inherit; font-size: 1rem; width: 100%;
  color: #2a1432; background: #fff; text-shadow: none;
}
form.contact-form input:focus, form.contact-form textarea:focus { border-color: var(--accent-2); outline: none; }
form.contact-form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5rem; margin: 0.5rem 0 0; font-weight: 600; }
.form-status.error { color: #ffb3b3; }

.map-wrap { margin-top: 1.5rem; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.35); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Footer ---------- */
footer.site-footer { text-align: center; padding: 2rem 1.5rem 2.5rem; font-size: 0.92rem; color: var(--ink-soft); }
footer.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin-bottom: 0.8rem; }
footer.site-footer nav a { color: #fff; text-decoration: none; }
footer.site-footer nav a:hover { text-decoration: underline; }
footer.site-footer p { margin: 0.2rem 0; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 150px; }
  header.site-header { flex-direction: column; align-items: center; text-align: center; }
  header.site-header img.logo { height: 70px; }
  nav.main-nav { gap: 0.2rem 1rem; margin-top: 0.2rem; }
  nav.main-nav a { font-size: 0.95rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-tile { height: 150px; }
  .section { padding: 2rem 1.25rem; }
  .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  html { scroll-padding-top: 160px; }
}

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

/* Legibility for notes that sit directly on the background photo */
.svc-note, .svc-panels-hint { text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.75); }
