/* ==========================================================================
   BRAID It Hair Salon — Public Design System
   ========================================================================== */

:root {
  --bg-black: #0D0D0D;
  --bg-purple-deep: #1A0B2E;
  --bg-purple-mid: #2D1B4E;
  --accent-purple: #A855F7;
  --accent-purple-hover: #9333EA;
  --lavender: #C4B5FD;
  --white: #FFFFFF;
  --gray-muted: #9CA3AF;
  --light-surface: #F5F3FF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 24px rgba(13, 13, 13, 0.08);

  --transition-fast: 0.2s ease;
  --transition-med: 0.35s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-purple);
  color: #fff;
  padding: 10px 16px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; margin: 0 0 12px; line-height: 1.2; }
em { font-style: italic; color: var(--accent-purple); font-family: var(--font-serif); }
.section-title-light em { color: var(--lavender); }
p { margin: 0 0 16px; }

.eyebrow {
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow-dark { color: var(--accent-purple-hover); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.btn-pill { border-radius: var(--radius-pill); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent-purple); color: #fff; }
.btn-primary:hover { background: var(--accent-purple-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn-light { background: var(--white); color: var(--bg-purple-deep); }
.btn-light:hover { background: var(--lavender); }

.btn-whatsapp { background: #25D366; color: #05230f; }
.btn-whatsapp:hover { background: #1ebd59; }

.btn-danger { border-color: #f87171; color: #f87171; }
.btn-danger:hover { background: #f87171; color: #fff; }

/* ---------------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--transition-fast);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { border-radius: 50%; }
.brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--gray-muted);
}

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a.active { color: var(--accent-purple); }

.header-cta { flex-shrink: 0; }
.header-cta-mobile { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 0;
  overflow: hidden;
}
.hero-media-full {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 15%;
}
.hero-media-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg-black) 0%, rgba(13,13,13,0.92) 22%, rgba(13,13,13,0.55) 42%, rgba(13,13,13,0.05) 62%, rgba(13,13,13,0) 75%),
    linear-gradient(0deg, var(--bg-black) 0%, rgba(13,13,13,0) 22%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 30px;
  padding-bottom: 70px;
}
.hero-copy { max-width: 620px; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-sub {
  color: var(--gray-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  background: rgba(26, 11, 46, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: -70px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.stat-item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stat-item div { min-width: 0; }
.stat-item span { display: block; overflow-wrap: break-word; }
.stat-icon-badge {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 1.15rem;
}
.stat-item strong { display: block; font-size: 1.3rem; font-family: var(--font-serif); }
.stat-item span { color: var(--gray-muted); font-size: 0.82rem; }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding: 130px 0 80px; }
.section-light { background: var(--light-surface); color: var(--bg-black); }
.section-light .eyebrow { color: var(--accent-purple-hover); }
.section-dark-purple { background: linear-gradient(180deg, var(--bg-purple-deep), var(--bg-black)); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-title-light { color: var(--white); }
.section-sub { color: var(--gray-muted); }
.section-cta { text-align: center; margin-top: 44px; }

/* index.php sections after the hero shouldn't double the negative-margin offset */
#services-preview { padding-top: 130px; }

/* ---------------------------------------------------------------------
   Cards / Grids
   --------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.services-grid.services-grid { grid-template-columns: repeat(3, 1fr); }

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: var(--bg-black);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(88, 28, 135, 0.18); }
.service-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-purple-mid); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-med); }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card h3 { font-size: 1.05rem; margin: 16px 16px 4px; }
.service-card .price { margin: 0 16px 16px; color: var(--accent-purple-hover); font-weight: 600; font-size: 0.9rem; }

.service-card-detailed { padding-bottom: 20px; }
.service-card-body { padding: 4px 18px 0; display: flex; flex-direction: column; flex: 1; }
.service-desc { font-size: 0.88rem; color: #4b5563; margin-bottom: 14px; }
.service-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 0.88rem; color: #4b5563; }
.service-meta .price { margin: 0; color: var(--accent-purple-hover); font-weight: 700; }
.service-card-detailed .btn { margin-top: auto; }

.gallery-preview-grid, .lightbox-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.lightbox-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-item, .lightbox-trigger {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  padding: 0;
  border: none;
  background: var(--bg-purple-mid);
}
.gallery-item img, .lightbox-trigger img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-med);
}
.gallery-item:hover img, .lightbox-trigger:hover img { transform: scale(1.08); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.feature-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--light-surface);
  color: var(--accent-purple-hover);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.3rem;
  border: 1.5px solid var(--accent-purple);
}
.feature-card h3 { font-size: 1.02rem; color: var(--bg-black); }
.feature-card p { font-size: 0.86rem; color: #4b5563; margin: 0; }

/* ---------------------------------------------------------------------
   Promo banner / CTA banner
   --------------------------------------------------------------------- */
.promo-banner {
  background: linear-gradient(120deg, var(--accent-purple-hover), var(--accent-purple));
  padding: 40px 0;
}
.promo-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.promo-badge {
  background: #fff;
  color: var(--accent-purple-hover);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.promo-copy { flex: 1; min-width: 220px; }
.promo-copy h2 { font-size: 1.5rem; margin-bottom: 4px; }
.promo-copy p { margin: 0; color: rgba(255,255,255,0.85); }

.cta-banner { background: var(--bg-purple-deep); padding: 80px 0; text-align: center; }
.cta-banner-inner p { color: var(--gray-muted); margin-bottom: 28px; }
.cta-banner-inner .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--bg-purple-deep); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr;
  gap: 32px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { color: var(--gray-muted); font-size: 0.88rem; margin-top: 14px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-muted); font-size: 0.88rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--accent-purple); }

.footer-contact li { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--gray-muted); font-size: 0.88rem; }
.footer-contact .ico { flex-shrink: 0; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.social-icon:hover { background: var(--accent-purple); border-color: var(--accent-purple); }

.mini-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-photo-grid img { border-radius: 6px; aspect-ratio: 1/1; object-fit: cover; }

.footer-bottom { padding: 22px 0; }
.footer-bottom p { margin: 0; text-align: center; color: var(--gray-muted); font-size: 0.82rem; }

/* ---------------------------------------------------------------------
   Inner pages: About / Services / Gallery / Book / Contact
   --------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--bg-purple-deep), var(--bg-black));
  padding: 150px 0 70px;
  text-align: center;
}
.page-hero-title { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero-sub { color: var(--gray-muted); max-width: 560px; margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-copy { color: var(--bg-black); }
.about-copy p { color: #4b5563; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; justify-content: center; }
.pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(107, 33, 168, 0.25);
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
  background: #fff;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.pill:hover { border-color: var(--accent-purple); color: var(--accent-purple-hover); }
.pill.active { background: var(--accent-purple); color: #fff; border-color: var(--accent-purple); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }

.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 2000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 40px 20px;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img { max-width: 90vw; max-height: 78vh; border-radius: var(--radius-md); object-fit: contain; }
.lightbox-overlay p { color: var(--gray-muted); margin-top: 16px; text-align: center; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { background: var(--accent-purple); }

/* Booking page */
.booking-options { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.booking-option {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-card); color: var(--bg-black);
}
.booking-option h2 { font-size: 1.3rem; color: var(--bg-black); }
.booking-option-sub { color: #4b5563; font-size: 0.9rem; margin-bottom: 24px; }
.booking-whatsapp-card { text-align: center; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.whatsapp-number-note { margin-top: 18px; font-size: 0.85rem; color: #4b5563; }

.booking-success {
  background: #fff; color: var(--bg-black); text-align: center;
  border-radius: var(--radius-lg); padding: 48px 32px; max-width: 560px; margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.booking-success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  margin: 0 auto 20px;
}
.booking-summary { text-align: left; background: var(--light-surface); border-radius: var(--radius-md); padding: 18px 22px; margin: 20px 0; }
.booking-summary li { margin-bottom: 6px; font-size: 0.92rem; }

/* Public forms (booking / contact) reuse admin-form look but on light cards */
.public-form label { color: #374151; }
.public-form input, .public-form select, .public-form textarea {
  background: #fff; border: 1.5px solid #e5e7eb; color: var(--bg-black);
}
.public-form input:focus, .public-form select:focus, .public-form textarea:focus {
  border-color: var(--accent-purple); outline: none;
}
.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: start; }
.contact-info-card, .contact-form-card {
  background: #fff; color: var(--bg-black); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-card); margin-bottom: 24px;
}
.contact-info-card h3, .contact-form-card h3 { color: var(--bg-black); font-size: 1.15rem; }
.contact-list li { color: #4b5563; }
.contact-list a { color: #4b5563; }
.contact-list a:hover { color: var(--accent-purple-hover); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 6px 0; font-size: 0.9rem; color: #4b5563; border-bottom: 1px dashed #e5e7eb; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--bg-black); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); line-height: 0; }

/* ---------------------------------------------------------------------
   Alerts (shared)
   --------------------------------------------------------------------- */
.alert { border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 20px; font-size: 0.9rem; }
.alert ul { padding-left: 18px; list-style: disc; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.empty-state { text-align: center; color: var(--gray-muted); padding: 40px 0; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .card-grid, .services-grid.services-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .lightbox-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid, .contact-grid, .booking-options { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .hero { min-height: 620px; padding-top: 100px; }
  .hero-media-full img { object-position: 68% 12%; }
  .hero-media-fade {
    background:
      linear-gradient(0deg, var(--bg-black) 0%, rgba(13,13,13,0.62) 45%, rgba(13,13,13,0.4) 70%),
      linear-gradient(180deg, var(--bg-black) 0%, rgba(13,13,13,0.15) 25%),
      rgba(13, 13, 13, 0.28);
  }
  .hero-title { font-size: 1.9rem; }
  .hero-copy { max-width: 100%; }
  .container { padding-left: 20px; padding-right: 20px; }
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-black);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 24px 20px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 4px; width: 100%; }
  .main-nav.is-open a { display: block; padding: 12px 0; }
  .main-nav.is-open .header-cta-mobile { display: inline-flex; margin-top: 10px; }

  .stats-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; padding: 20px 16px; margin-bottom: -110px; }
  .stat-item { gap: 8px; }
  .stat-icon-badge { width: 38px; min-width: 38px; height: 38px; font-size: 1rem; }
  .stat-item strong { font-size: 1.05rem; }
  .stat-item span { font-size: 0.72rem; }
  .section { padding-top: 160px; }
  #services-preview { padding-top: 150px; }
  .card-grid, .services-grid.services-grid, .feature-grid { grid-template-columns: 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .promo-inner { flex-direction: column; text-align: center; }
}
