/* =====================================================================
   Nahas Skin Clinic: homepage, About, FAQ (2026 refresh)
   Loaded after the theme CSS. All classes are prefixed "nh-".
   ===================================================================== */
:root {
  --nh-green: #1ba617;        /* brand (logo / theme colour) */
  --nh-green-dark: #137a19;   /* buttons and links: AA contrast on white */
  --nh-green-deep: #0e5512;
  --nh-ink: #1f2d24;
  --nh-muted: #56665b;
  --nh-tint: #f3f8f3;
  --nh-line: #e1eae2;
  --nh-radius: 16px;
  --nh-shadow: 0 10px 30px rgba(20, 60, 25, .08);
}

.nh-section { padding: 88px 0; color: var(--nh-ink); }
.nh-tint { background: var(--nh-tint); }
.nh-eyebrow {
  display: inline-block; margin: 0 0 12px; font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--nh-green-dark);
}
.nh-h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; font-weight: 700; color: var(--nh-ink); margin: 0 0 16px; }
.nh-h3 { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--nh-ink); margin: 0 0 10px; }
.nh-sub { color: var(--nh-muted); font-size: 17px; margin: 0 0 8px; }
.nh-section p { color: var(--nh-muted); font-size: 16px; line-height: 1.75; }
.nh-head { max-width: 720px; margin: 0 auto 44px 0; }
.nh-head.text-center { margin-left: auto; margin-right: auto; }
.nh-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.nh-head-row .nh-h2 { margin-bottom: 0; }
.nh-rounded { border-radius: var(--nh-radius); width: 100%; height: auto; display: block; }
.nh-link { color: var(--nh-green-dark); font-weight: 600; text-decoration: none; }
.nh-link:hover { color: var(--nh-green-deep); text-decoration: underline; }
.nh-link i { font-size: 13px; margin-left: 4px; }

/* Buttons */
.nh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.nh-btn-primary, a.nh-btn-primary { background: var(--nh-green-dark); color: #fff !important; }
.nh-btn-primary:hover, .nh-btn-primary:focus { background: var(--nh-green-deep); color: #fff; }
.nh-btn-outline { border-color: var(--nh-green-dark); color: var(--nh-green-dark); background: #fff; }
.nh-btn-outline:hover, .nh-btn-outline:focus { background: var(--nh-green-dark); color: #fff; }
.nh-btn:focus-visible, .nh-faq summary:focus-visible, .nh-card-link:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; }

/* Hero (the theme header is position:absolute over the top of the page) */
.nh-hero {
  padding: 170px 0 80px;
  background: radial-gradient(1200px 500px at 85% 10%, #e3f2e3 0%, rgba(227,242,227,0) 60%), linear-gradient(180deg, #f7fbf7 0%, #ffffff 100%);
}
.nh-hero-title { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; font-weight: 700; color: var(--nh-ink); margin: 0 0 20px; }
.nh-lead { font-size: 18px; line-height: 1.7; color: var(--nh-muted); margin: 0 0 28px; max-width: 560px; }
.nh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.nh-hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.nh-hero-facts li { color: var(--nh-ink); font-weight: 500; font-size: 15px; }
.nh-hero-facts i { color: var(--nh-green); margin-right: 6px; }
.nh-hero-media { position: relative; padding: 0 0 40px 40px; }
.nh-hero-img { width: 100%; height: auto; border-radius: 24px; box-shadow: var(--nh-shadow); display: block; }
.nh-hero-inset {
  position: absolute; left: 0; bottom: 0; width: 42%; max-width: 230px;
  border: 6px solid #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--nh-shadow);
}
.nh-hero-inset img { width: 100%; height: auto; display: block; }

/* At-a-glance strip */
.nh-strip { background: var(--nh-green-deep); color: #fff; padding: 28px 0; }
.nh-strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nh-strip-list li { border-left: 3px solid var(--nh-green); padding-left: 14px; }
.nh-strip-list strong { display: block; font-size: 16px; font-weight: 600; color: #fff; }
.nh-strip-list span { display: block; font-size: 14px; color: #cfe6d0; margin-top: 2px; }

/* Conditions */
.nh-conditions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nh-conditions a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1px solid var(--nh-line); border-radius: 12px; padding: 16px 18px;
  color: var(--nh-ink); font-weight: 500; text-decoration: none; height: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.nh-conditions a::after { content: "\f054"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px; color: var(--nh-green); }
.nh-conditions a:hover { border-color: var(--nh-green); box-shadow: var(--nh-shadow); color: var(--nh-green-deep); }

/* Cards */
.nh-card {
  background: #fff; border: 1px solid var(--nh-line); border-radius: var(--nh-radius);
  padding: 28px; height: 100%; display: block;
}
.nh-card p { margin: 0; font-size: 15px; }
.nh-card p a { color: var(--nh-green-dark); font-weight: 500; }
.nh-card-link { text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.nh-card-link:hover { transform: translateY(-3px); box-shadow: var(--nh-shadow); border-color: #cfe3d0; }
.nh-card-link .nh-h3 { flex: 1; }
.nh-card-icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.nh-more { color: var(--nh-green-dark); font-weight: 600; font-size: 14px; }
.nh-more i { font-size: 12px; margin-left: 4px; }
.nh-icon {
  width: 52px; height: 52px; border-radius: 14px; background: #e4f3e4; color: var(--nh-green-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px;
}
.nh-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }

/* Doctor */
.nh-doctor-img { box-shadow: var(--nh-shadow); }
.nh-quals { font-weight: 600; color: var(--nh-ink) !important; margin-top: -6px; }

/* Steps */
.nh-steps { list-style: none; counter-reset: nh-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nh-steps li { counter-increment: nh-step; background: #fff; border-radius: var(--nh-radius); padding: 28px 24px; border: 1px solid var(--nh-line); position: relative; }
.nh-steps li::before {
  content: counter(nh-step); display: inline-flex; width: 38px; height: 38px; border-radius: 50%;
  background: var(--nh-green-dark); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px;
}
.nh-steps strong { display: block; font-size: 18px; color: var(--nh-ink); margin-bottom: 6px; }
.nh-steps span { display: block; color: var(--nh-muted); font-size: 15px; line-height: 1.6; }

/* FAQ (native details/summary: works without JavaScript) */
.nh-faq details { border: 1px solid var(--nh-line); border-radius: 12px; background: #fff; margin-bottom: 12px; }
.nh-faq details[open] { border-color: #cfe3d0; box-shadow: 0 6px 18px rgba(20,60,25,.06); }
.nh-faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 17px;
  color: var(--nh-ink); position: relative; line-height: 1.45;
}
.nh-faq summary::-webkit-details-marker { display: none; }
.nh-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: #e4f3e4; color: var(--nh-green-dark);
  font-size: 20px; line-height: 28px; text-align: center; font-weight: 500;
}
.nh-faq details[open] summary::after { content: "\2212"; }
.nh-faq-a { padding: 0 22px 18px; }
.nh-faq-a p { margin: 0; font-size: 16px; }
.nh-faq-a a { color: var(--nh-green-dark); font-weight: 500; }
.nh-faq-group { margin-bottom: 44px; }
.nh-faq-group h2 { font-size: 22px; font-weight: 700; margin: 0 0 18px; color: var(--nh-ink); }
.nh-faq-nav { position: sticky; top: 110px; }
.nh-faq-nav ul { list-style: none; padding: 0; margin: 0 0 24px; }
.nh-faq-nav ul a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--nh-ink); font-weight: 500; text-decoration: none; }
.nh-faq-nav ul a:hover { background: var(--nh-tint); color: var(--nh-green-deep); }
.nh-note { background: var(--nh-tint); border-radius: var(--nh-radius); padding: 22px; }
.nh-note p { font-size: 15px; margin: 0 0 14px; }
.nh-note p a { color: var(--nh-green-dark); font-weight: 600; white-space: nowrap; }

/* Appointment + contact */
.nh-cta { background: linear-gradient(180deg, #ffffff 0%, var(--nh-tint) 100%); }
.nh-form-card, .nh-contact { background: #fff; border: 1px solid var(--nh-line); border-radius: 20px; padding: 36px; height: 100%; box-shadow: var(--nh-shadow); }
.nh-label { display: block; font-size: 14px; font-weight: 600; color: var(--nh-ink); margin-bottom: 6px; }
.nh-form-card .form-control, .nh-form-card .form-select { height: 50px; border-radius: 10px; border-color: #cfd9d0; }
.nh-form-card .form-control:focus, .nh-form-card .form-select:focus { border-color: var(--nh-green); box-shadow: 0 0 0 3px rgba(27,166,23,.15); }
.nh-form-card .form-check-label { color: var(--nh-muted); }
.nh-form-card .form-check-label a { color: var(--nh-green-dark); }
.nh-contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.nh-contact-list li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--nh-line); color: var(--nh-ink); }
.nh-contact-list li:last-child { border-bottom: 0; }
.nh-contact-list i { width: 20px; color: var(--nh-green); margin-top: 4px; text-align: center; }
.nh-contact-list a { color: var(--nh-ink); text-decoration: none; font-weight: 500; }
.nh-contact-list a:hover { color: var(--nh-green-dark); text-decoration: underline; }
.nh-map { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--nh-tint); }
.nh-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* About page */
.nh-about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.nh-about-facts li { background: var(--nh-tint); border-radius: 12px; padding: 16px 18px; color: var(--nh-ink); font-weight: 500; }
.nh-about-facts li i { color: var(--nh-green); margin-right: 8px; }
.nh-list { padding-left: 0; list-style: none; margin: 0; }
.nh-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--nh-muted); line-height: 1.65; }
.nh-list li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--nh-green); font-size: 14px; }
.nh-cols { columns: 2; column-gap: 32px; }
.nh-cols li { break-inside: avoid; }
.nh-photo-row { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.nh-photo-row picture:first-child { grid-row: span 2; }
.nh-photo-row picture, .nh-photo-row img { height: 100%; }
.nh-photo-row img { object-fit: cover; }

/* Treatment page body (content comes from admin) */
.nh-service-content h2 { font-size: 22px; font-weight: 700; color: var(--nh-ink); margin: 28px 0 10px; }
.nh-service-content ul { padding-left: 20px; }
.nh-service-content li { margin-bottom: 6px; }

/* Verified dermatologist badge (links to IADVL Kerala verification page) */
.nh-verified { text-decoration: none; color: var(--nh-ink); }
.nh-verified-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #bfe0c0; font-size: 14px; font-weight: 600; color: var(--nh-green-deep);
  box-shadow: 0 2px 8px rgba(20,60,25,.06);
}
.nh-verified-pill:hover { border-color: var(--nh-green); color: var(--nh-green-deep); text-decoration: none; }
.nh-verified-pill .fa-user-check { color: var(--nh-green); }
.nh-verified-ext { font-size: 11px; opacity: .7; }
.nh-hero-badge { margin-top: 20px; }
.nh-verified-full {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 6px 0 22px;
  border: 1px solid #bfe0c0; border-radius: 14px; background: #f5fbf5; max-width: 560px;
}
.nh-verified-full:hover { border-color: var(--nh-green); text-decoration: none; color: var(--nh-ink); }
.nh-verified-icon {
  flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--nh-green-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.nh-verified-text strong { display: block; font-size: 16px; color: var(--nh-ink); }
.nh-verified-text span { display: block; font-size: 14px; line-height: 1.55; color: var(--nh-muted); margin-top: 2px; }
.nh-verified-text u { color: var(--nh-green-dark); font-weight: 600; text-decoration: underline; }
.nh-verified-footer {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 10px;
  background: #fff; border: 1px solid #cfe3d0; font-size: 13px; font-weight: 600; color: var(--nh-green-deep) !important;
}

/* Floating quick actions: WhatsApp, Call, Appointment */
.nh-fab { position: fixed; left: 18px; bottom: 18px; z-index: 9990; display: flex; flex-direction: column; gap: 10px; }
.nh-fab-btn {
  position: relative; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff !important; font-size: 22px; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}
.nh-fab-btn:hover, .nh-fab-btn:focus-visible { transform: scale(1.06); box-shadow: 0 10px 24px rgba(0,0,0,.24); color: #fff; }
.nh-fab-btn:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; }
.nh-fab-whatsapp { background: #0e7a43; font-size: 26px; }
.nh-fab-call { background: var(--nh-green-dark); }
.nh-fab-appt { background: #0b4f8a; }
.nh-fab-label {
  position: absolute; left: 66px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: var(--nh-ink); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.nh-fab-btn:hover .nh-fab-label, .nh-fab-btn:focus-visible .nh-fab-label { opacity: 1; }
@media (max-width: 767px) {
  .nh-fab {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; background: #fff;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom);
  }
  .nh-fab-btn {
    flex: 1; width: auto; height: 58px; border-radius: 0; box-shadow: none; flex-direction: column; gap: 2px; font-size: 19px;
  }
  .nh-fab-whatsapp { font-size: 21px; }
  .nh-fab-btn:hover, .nh-fab-btn:focus-visible { transform: none; box-shadow: none; }
  .nh-fab-label { position: static; transform: none; opacity: 1; background: none; padding: 0; font-size: 12px; }
  body { padding-bottom: 58px; }
  button.back-to-top { bottom: 74px !important; }
}
@media print { .nh-fab { display: none; } }

/* Responsive */
@media (max-width: 1199px) {
  .nh-conditions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .nh-section { padding: 64px 0; }
  .nh-hero { padding: 130px 0 56px; }
  .nh-strip-list { grid-template-columns: repeat(2, 1fr); }
  .nh-steps { grid-template-columns: repeat(2, 1fr); }
  .nh-faq-nav { position: static; }
}
@media (max-width: 767px) {
  .nh-section .row.g-5, .nh-hero .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; }
  .nh-conditions { grid-template-columns: repeat(2, 1fr); }
  .nh-gallery { grid-template-columns: 1fr; }
  .nh-photo-row { grid-template-columns: 1fr; grid-template-rows: auto; }
  .nh-photo-row picture:first-child { grid-row: auto; }
  .nh-photo-row picture:nth-child(n+2) { display: none; }
  .nh-gallery picture:nth-child(n+2) { display: none; }
  .nh-form-card, .nh-contact { padding: 24px; }
  .nh-cols { columns: 1; }
  .nh-hero-media { padding: 0 0 30px 24px; }
}
@media (max-width: 575px) {
  .nh-hero { padding: 110px 0 44px; }
  .nh-conditions, .nh-strip-list, .nh-steps, .nh-about-facts { grid-template-columns: 1fr; }
  .nh-btn { width: 100%; }
  .nh-faq summary { font-size: 16px; padding: 16px 52px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .nh-card-link, .nh-btn, .nh-conditions a, .nh-fab-btn { transition: none; }
  .nh-fab-btn:hover { transform: none; }
  .nh-card-link:hover { transform: none; }
}
