/* Dr Health Nature Cure — public site */
:root {
  --neem: #1E4B3B;
  --neem-deep: #153628;
  --turmeric: #D99A1E;
  --turmeric-deep: #B47C10;
  --mist: #E8F0EC;
  --paper: #FFFFFF;
  --ink: #1A2A24;
  --sage: #5B776B;
  --line: #D5E1DB;
  --radius: 14px;
  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 30, 75, 59;
  --bs-link-hover-color-rgb: 21, 54, 40;
}

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

body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
h1, h2, h3, h4, .font-head { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; color: var(--neem-deep); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.35rem; }
p { max-width: 68ch; }
.lead-text { font-size: 1.15rem; color: #2E4239; }
.text-muted-sage { color: var(--sage) !important; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--neem); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: .5rem; }

/* Buttons */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.4rem; }
.btn-turmeric { background: var(--turmeric); border-color: var(--turmeric); color: #1D1505; }
.btn-turmeric:hover, .btn-turmeric:focus { background: var(--turmeric-deep); border-color: var(--turmeric-deep); color: #fff; }
.btn-neem { background: var(--neem); border-color: var(--neem); color: #fff; }
.btn-neem:hover, .btn-neem:focus { background: var(--neem-deep); border-color: var(--neem-deep); color: #fff; }
.btn-outline-neem { border: 1.5px solid var(--neem); color: var(--neem); background: transparent; }
.btn-outline-neem:hover { background: var(--neem); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .navbar { padding: .55rem 0; }
.brand-logo { max-height: 56px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; color: var(--neem); font-size: 1.25rem; line-height: 1.1; }
.site-nav .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .7rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--neem); }
.site-nav .nav-item.has-sub { display: flex; align-items: center; flex-wrap: nowrap; position: relative; }
.site-nav .nav-link, .site-nav .btn { white-space: nowrap; }
@media (max-width: 1199.98px) { .site-nav .nav-item.has-sub { flex-wrap: wrap; } }
.site-nav .sub-toggle { border: 0; background: none; color: var(--sage); padding: .4rem .35rem; line-height: 1; }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(21,54,40,.12); padding: .5rem; min-width: 250px; }
.site-nav .dropdown-item { border-radius: 8px; padding: .45rem .8rem; white-space: normal; }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--mist); color: var(--neem-deep); }
@media (min-width: 1200px) {
  .site-nav .nav-item.has-sub:hover > .dropdown-menu,
  .site-nav .nav-item.has-sub:focus-within > .dropdown-menu { display: block; top: 100%; left: 0; margin-top: 0; }
  .site-nav .nav-item.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
}
@media (max-width: 1199.98px) {
  .site-nav { padding: .5rem 0 1rem; }
  .site-nav .nav-item.has-sub > .nav-link { flex: 1; }
  .site-nav .sub-toggle { padding: .6rem .9rem; }
  .site-nav .dropdown-menu { position: static !important; transform: none !important; width: 100%; box-shadow: none; border: 0; background: var(--mist); margin: 0 0 .4rem; }
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--mist); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .4rem 0 0; color: var(--sage); }

/* Hero — the arch window */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 78%); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; }
.hero-text { font-size: 1.15rem; color: #2E4239; }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--neem); max-width: 470px; margin-inline: auto; box-shadow: 0 30px 60px -30px rgba(21,54,40,.45); }
.arch img, .arch video, .arch iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.arch::after { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px 999px 8px 8px; pointer-events: none; }

/* Media blocks */
.media-frame { border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; background: radial-gradient(circle at 30% 25%, #F4F8F6, var(--mist) 70%); color: #9DB7AA; font-size: 3rem; }

/* Zigzag rows */
.zig { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.zig + .zig { border-top: 1px solid var(--line); }
.stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.stat-value { font-family: var(--font-head); font-size: 2.4rem; color: var(--neem); font-weight: 700; line-height: 1; }
.stat-label { color: var(--sage); margin-top: .35rem; }
.doctor-photo { aspect-ratio: 4 / 5; max-width: 420px; }
.doctor-role { color: var(--turmeric-deep); font-weight: 600; margin-bottom: .75rem; }

/* Scrolling rails */
.rail-wrap { position: relative; }
.rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1.25rem; scrollbar-width: thin; scrollbar-color: #B8CBC2 transparent; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.rail-btns { display: flex; gap: .5rem; }
.rail-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--neem); background: #fff; color: var(--neem); display: inline-flex; align-items: center; justify-content: center; }
.rail-btn:hover { background: var(--neem); color: #fff; }
.rail-btn:disabled { opacity: .35; pointer-events: none; }

.square-card { width: min(300px, 78vw); aspect-ratio: 1 / 1; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.t-card .stars { color: var(--turmeric); letter-spacing: 2px; font-size: 1rem; }
.t-card .t-text { flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; margin: .75rem 0; color: #2E4239; font-size: 1rem; }
.t-card .t-name { font-weight: 700; color: var(--neem-deep); display: flex; align-items: center; gap: .6rem; }
.t-card .t-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.t-card .t-quote { position: absolute; right: 1.1rem; top: .4rem; font-family: var(--font-head); font-size: 4rem; color: var(--mist); line-height: 1; }

.c-card { padding: 0; color: #fff; text-decoration: none; border: 0; cursor: pointer; text-align: left; }
.c-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-card .ph { position: absolute; inset: 0; }
.c-card .c-body { position: relative; margin-top: auto; padding: 1.25rem; background: linear-gradient(0deg, rgba(14,36,27,.9), rgba(14,36,27,0)); padding-top: 3rem; }
.c-card .c-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: #fff; }
.c-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--neem); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; transition: transform .2s; }
.c-card:hover .play, .c-card:focus-visible .play { transform: translate(-50%, -60%) scale(1.08); }

.b-card { width: min(300px, 78vw); text-decoration: none; color: inherit; display: block; }
.b-card .b-img { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.b-card .b-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.b-card:hover .b-img img { transform: scale(1.03); }
.b-card .b-cat { display: inline-block; margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--neem); background: var(--mist); border-radius: 999px; padding: .15rem .7rem; }
.b-card h3 { font-size: 1.15rem; margin: .55rem 0 .4rem; }
.b-card:hover h3 { color: var(--neem); text-decoration: underline; text-underline-offset: 3px; }
.b-card .b-desc { font-size: .97rem; color: #3A4E45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .5rem; }
.b-meta { font-size: .88rem; color: var(--sage); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem 1.5rem; }
.grid-cards .square-card, .grid-cards .b-card { width: 100%; }

/* Listing rows (therapies, programs, conditions) */
.list-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.list-row h2 a { color: inherit; text-decoration: none; }
.list-row h2 a:hover { color: var(--neem); text-decoration: underline; }
@media (max-width: 767.98px) { .list-row { grid-template-columns: 1fr; } .list-row .media-frame { order: -1; } }

.condition-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; list-style: none; padding: 0; }
.condition-links a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; height: 100%; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; background: #fff; }
.condition-links a:hover { border-color: var(--neem); color: var(--neem); background: var(--mist); }

/* Page header + content */
.page-head { background: var(--mist); padding: 2.25rem 0 2.5rem; }
.breadcrumb { font-size: .92rem; margin-bottom: .75rem; }
.breadcrumb a { color: var(--sage); }
.breadcrumb-item.active { color: var(--ink); }
.prose { font-size: 1.07rem; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose blockquote { border-left: 4px solid var(--turmeric); padding: .25rem 0 .25rem 1rem; color: #33483F; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: #fff; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li a { display: block; padding: .45rem .6rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.side-box li a:hover, .side-box li a.current { background: var(--mist); color: var(--neem-deep); font-weight: 600; }
.cta-box { background: var(--neem); color: #E7F1EC; border-radius: var(--radius); padding: 1.5rem; }
.cta-box h3 { color: #fff; }

/* Appointment form */
.appt-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 24px 50px -36px rgba(21,54,40,.45); }
.form-label { font-weight: 600; font-size: .95rem; }
.form-control, .form-select { border-radius: 10px; border-color: #C9D8D0; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--neem); box-shadow: 0 0 0 .2rem rgba(30,75,59,.15); }
.req { color: #B3261E; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .9rem; }
.contact-list i { color: var(--neem); font-size: 1.2rem; margin-top: .1rem; }

/* Footer */
.site-footer { background: var(--neem-deep); color: #CFE0D7; padding: 3.5rem 0 0; font-size: .98rem; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer a { color: #E9F3EE; text-decoration: none; }
.site-footer a:hover { color: var(--turmeric); text-decoration: underline; }
.footer-contact a { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .55rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-right: .4rem; }
.social a:hover { background: var(--turmeric); border-color: var(--turmeric); color: #1D1505; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding: 1.1rem 0; font-size: .9rem; color: #A9C4B7; }

/* Video modal */
.video-modal .modal-content { background: #000; border: 0; border-radius: var(--radius); overflow: hidden; }
.video-modal .btn-close { position: absolute; right: .5rem; top: -2.5rem; filter: invert(1); opacity: 1; }
.video-modal .modal-dialog { margin-top: 3.5rem; }

.empty-note { background: var(--mist); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--sage); }
.pagination { --bs-pagination-color: var(--neem); --bs-pagination-active-bg: var(--neem); --bs-pagination-active-border-color: var(--neem); }

@media (max-width: 575.98px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .doctor-photo { max-width: 300px; }
  .section-head { align-items: start; }
}
