/* ============================================================
   HEALING HANDS NEPAL — STYLESHEET
   ============================================================
   BRAND SWAP: Change the 6 variables under :root to switch
   from logo_2 (black) to logo_1 (charcoal) or any other
   palette in one shot. Nothing else needs to change.
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────── */
:root {
  /* ▸ PRIMARY PALETTE — logo_2.jpeg (black + gold) */
  --brand-dark:   #000000;
  --brand-gold:   #fbea78;
  --brand-gold-deep: #d4a847;
  --ink:          #1a1a1a;
  --ink-soft:     #555555;
  --bg:           #fafaf7;

  /* ▸ ALTERNATE PALETTE — logo_1.jpeg (charcoal + gold)
     Uncomment below and comment above to switch:
  --brand-dark:   #2b2d2c;
  --brand-gold:   #fbea78;
  --brand-gold-deep: #c9a43d;
  --ink:          #222222;
  --ink-soft:     #5a5a5a;
  --bg:           #f7f6f2;
  */

  /* ▸ Derived / fixed */
  --white:        #ffffff;
  --bg-warm:      #f0ece2;
  --border:       #e0ddd4;
  --danger:       #c0392b;
  --success:      #27ae60;

  /* ▸ Type scale */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --fs-hero:      clamp(2rem, 5vw, 3.5rem);
  --fs-h1:        clamp(1.75rem, 4vw, 2.75rem);
  --fs-h2:        clamp(1.35rem, 3vw, 2rem);
  --fs-h3:        clamp(1.1rem, 2.5vw, 1.4rem);
  --fs-body:      1rem;
  --fs-small:     0.875rem;

  /* ▸ Spacing */
  --space:        clamp(1rem, 3vw, 2rem);
  --space-lg:     clamp(2rem, 6vw, 5rem);
  --radius:       6px;
  --max-width:    1140px;
}

/* ── 2. Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-gold-deep); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--brand-dark);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p + p { margin-top: 1em; }

/* ── 3. Accessibility ─────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--brand-dark); color: var(--brand-gold);
  padding: .5em 1em; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

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

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

/* ── 4. Layout ────────────────────────────────────────── */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space); }

.section {
  padding: var(--space-lg) 0;
}
.section--dark {
  background: var(--brand-dark);
  color: var(--bg);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--brand-gold); }
.section--dark a { color: var(--brand-gold); }
.section--dark a:hover { color: var(--white); }

.section--warm { background: var(--bg-warm); }

.section-head { margin-bottom: var(--space); }
.section-head.center { text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-gold-deep);
  margin-bottom: .5rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space);
}
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space);
}

/* ── 5. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: .04em;
  padding: .75em 1.75em;
  border-radius: var(--radius);
  border: 2px solid var(--brand-dark);
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  text-align: center;
}
.btn:hover, .btn:focus-visible {
  background: var(--brand-dark);
  color: var(--brand-gold);
}

.btn-gold {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--brand-dark);
}
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--brand-gold-deep);
  border-color: var(--brand-gold-deep);
  color: var(--brand-dark);
}

.btn-wa {
  background: #25D366;
  border-color: #25D366;
  color: var(--white);
}
.btn-wa:hover { background: #1da851; border-color: #1da851; color: var(--white); }

/* ── 6. Header & Navigation ──────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(251,234,120,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--brand-gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}
.brand:hover { color: var(--white); }
.brand-logo { border-radius: 50%; }
.brand-name em { font-weight: 500; font-size: .85em; }

/* Nav toggle (mobile) */
.nav-toggle {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 1px solid rgba(251,234,120,.3);
  border-radius: var(--radius);
  padding: .4rem .7rem;
  color: var(--brand-gold);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  transition: transform .25s;
  position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after  { top:  6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: rotate(-45deg); top: 0; }

/* Primary nav */
.primary-nav ul { list-style: none; }
.primary-nav > ul > li > a {
  color: rgba(255,255,255,.85);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: .5rem 0;
  display: block;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a[aria-current] {
  color: var(--brand-gold);
}

.btn-nav {
  background: var(--brand-gold);
  color: var(--brand-dark) !important;
  border: none;
  padding: .5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-nav:hover { background: var(--brand-gold-deep); }

/* Mobile nav */
@media (max-width: 899px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--brand-dark);
    border-top: 1px solid rgba(251,234,120,.1);
    padding: 1rem var(--space);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.06); }
  .primary-nav > ul > li > a { padding: .75rem 0; }

  /* Dropdowns on mobile */
  .has-sub > ul {
    display: none;
    padding-left: 1.2rem;
  }
  .has-sub.is-open > ul { display: block; }
  .has-sub > ul > li > a {
    color: rgba(255,255,255,.6);
    font-size: var(--fs-small);
    display: block;
    padding: .35rem 0;
  }
  .has-sub > ul > li > a:hover { color: var(--brand-gold); }
}

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block !important; }
  .primary-nav > ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  /* Dropdown */
  .has-sub { position: relative; }
  .has-sub > ul {
    display: none;
    position: absolute;
    top: 100%; left: -.5rem;
    background: var(--brand-dark);
    border: 1px solid rgba(251,234,120,.15);
    border-radius: var(--radius);
    min-width: 200px;
    padding: .5rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .has-sub:hover > ul,
  .has-sub:focus-within > ul { display: block; }
  .has-sub > ul > li > a {
    display: block;
    padding: .45rem 1rem;
    color: rgba(255,255,255,.75);
    font-size: var(--fs-small);
    white-space: nowrap;
  }
  .has-sub > ul > li > a:hover { color: var(--brand-gold); background: rgba(251,234,120,.06); }
}

/* ── 7. Hero ──────────────────────────────────────────── */
.hero {
  background: var(--brand-dark);
  color: var(--bg);
  padding: var(--space-lg) 0;
  text-align: center;
}
.hero h1 {
  font-size: var(--fs-hero);
  color: var(--brand-gold);
  margin-bottom: .5rem;
}
.hero p {
  max-width: 600px;
  margin: .75rem auto;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
}
.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* ── 8. Service Cards (homepage) ─────────────────────── */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.service-card-img {
  aspect-ratio: 3/2;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: var(--fs-small);
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; }

.service-card-body {
  padding: 1.25rem;
}
.service-card-body h3 { margin-bottom: .5rem; }
.service-card-body p { color: var(--ink-soft); font-size: var(--fs-small); }

.service-card .price-from {
  display: block;
  font-weight: 600;
  color: var(--brand-gold-deep);
  margin-top: .75rem;
}

/* ── 9. Rates Tables ─────────────────────────────────── */
.rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.rates-table caption { font-size: 0; }
.rates-table th,
.rates-table td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rates-table thead th {
  background: var(--brand-dark);
  color: var(--brand-gold);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .04em;
}
.rates-table tbody tr:hover { background: rgba(251,234,120,.06); }
.price-cell { font-weight: 600; white-space: nowrap; }
.svc-desc {
  display: block;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  font-weight: 400;
}

/* Responsive table */
@media (max-width: 600px) {
  .rates-table thead { display: none; }
  .rates-table tr {
    display: block;
    border-bottom: 2px solid var(--border);
    padding: .75rem 0;
  }
  .rates-table td {
    display: block;
    padding: .2rem 0;
    border: none;
  }
  .rates-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: var(--fs-small);
    color: var(--ink-soft);
    margin-right: .5rem;
  }
}

/* ── 10. Quote / Testimonial Cards ───────────────────── */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space); }

.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.quote blockquote {
  font-style: italic;
  margin: .75rem 0;
  line-height: 1.6;
}
.quote cite {
  font-style: normal;
  font-weight: 600;
  display: block;
}
.quote .aff { display: block; color: var(--ink-soft); font-size: var(--fs-small); }
.stars { color: var(--brand-gold-deep); letter-spacing: .15em; }

/* ── 11. Gallery ─────────────────────────────────────── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: var(--space);
}
.gallery-filters button {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .4rem 1.2rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gallery-filters button:hover,
.gallery-filters button.active {
  background: var(--brand-dark);
  color: var(--brand-gold);
  border-color: var(--brand-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--bg-warm);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white);
  padding: 2rem .75rem .75rem;
  font-size: var(--fs-small);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: var(--space);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
}
.lightbox-caption {
  color: var(--white);
  margin-top: 1rem;
  font-size: var(--fs-body);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  padding: .5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── 12. Blog Cards ──────────────────────────────────── */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space); }
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.post-card-body { padding: 1.25rem; }
.post-card-body h3 a { color: var(--ink); }
.post-card-body h3 a:hover { color: var(--brand-gold-deep); }
.post-card-body time { font-size: var(--fs-small); color: var(--ink-soft); }
.post-content { max-width: 720px; margin: 0 auto; }
.post-content h2 { margin: 2rem 0 .75rem; }
.post-content p { margin-bottom: 1rem; }

/* ── 13. Forms ────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  margin-bottom: .35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  background: var(--white);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(251,234,120,.25);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-inline { grid-template-columns: 1fr; } }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: var(--fs-small);
}
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.alert-error   { background: #fbe9e7; border: 1px solid #ef9a9a; color: #c62828; }

/* Honeypot */
.hp { position: absolute; left: -9999px; }

/* ── 14. Footer ───────────────────────────────────────── */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.75);
  padding: var(--space-lg) 0 var(--space) 0;
}
.site-footer h3 { color: var(--brand-gold); font-size: var(--fs-h3); margin-bottom: .75rem; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--brand-gold); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space);
}
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── 15. WhatsApp Float ──────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 90;
  background: #25D366;
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); color: var(--white); }

/* ── 16. Photo Placeholder ───────────────────────────── */
.photo-placeholder {
  background: var(--bg-warm);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-small);
  padding: 2rem;
  min-height: 250px;
}
.photo-placeholder .icon {
  font-size: 2.5rem;
  margin-bottom: .5rem;
  opacity: .5;
}

/* ── 17. Admin Panel ─────────────────────────────────── */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: var(--space); }
.admin-nav {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: var(--space);
  border-bottom: 2px solid var(--border);
  padding-bottom: .75rem;
}
.admin-nav a { font-weight: 600; font-size: var(--fs-small); }
.admin-nav a.active { color: var(--brand-dark); border-bottom: 2px solid var(--brand-gold-deep); }

.admin-table {
  width: 100%; border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: .6rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
}
.admin-table th { font-weight: 600; background: var(--bg-warm); }

/* ── 18. Misc ─────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
