/* ============================================================
   NATURAL HEALING NIRVANA — Frontend Stylesheet
   Brand palette inspired by the logo's forest green & earth gold
   ============================================================ */

:root {
    /* ---- Brand palette ---- */
    --primary:        #2D6A4F;
    --primary-dark:   #1B4332;
    --primary-darker: #0F2D22;
    --primary-light:  #52796F;
    --mint:           #D8F3DC;
    --mint-deep:      #95D5B2;
    --cream:          #F8FBF5;
    --cream-warm:     #FBF7E8;

    --accent:         #DDA15E;
    --accent-light:   #F4D8B0;
    --accent-deep:    #BC6C25;

    --text-dark:      #1B4332;
    --text-body:      #2F3E46;
    --text-muted:     #6B8270;
    --white:          #ffffff;
    --bg:             #F9FBF9;

    --primary-color:   var(--primary);
    --secondary-color: var(--mint);
    --accent-color:    var(--accent);
    --text-light:      var(--primary-light);

    --shadow-sm:  0 2px 8px rgba(27, 67, 50, 0.06);
    --shadow:     0 8px 24px rgba(27, 67, 50, 0.10);
    --shadow-lg:  0 20px 50px rgba(27, 67, 50, 0.14);
    --shadow-glow: 0 0 0 4px rgba(45, 106, 79, 0.12);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --ease: cubic-bezier(.2,.7,.3,1);
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background-color: var(--bg);
    overflow-x: hidden;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 600px at 110% -10%, rgba(149, 213, 178, 0.18), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(221, 161, 94, 0.10), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6, .hero-title {
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
    line-height: 1.25;
}
h1, .display-4 { letter-spacing: -0.02em; }

.text-success    { color: var(--primary) !important; }
.text-accent     { color: var(--accent) !important; }
.text-primary    { color: var(--primary) !important; }
.text-dark       { color: var(--primary-dark) !important; }
.text-muted      { color: var(--text-muted) !important; }

.tracking-wider { letter-spacing: 0.18em; }

.hero-title .text-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bg-success h1, .bg-success h2, .bg-success h3, .bg-success h4, .bg-success h5, .bg-success h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-success .display-4, .bg-dark .display-4,
.bg-success .hero-title, .bg-dark .hero-title,
.text-white {
    color: var(--white) !important;
}
.bg-success i, .bg-success .fa-solid, .bg-success .fa-brands, .bg-success .fa-regular {
    color: var(--white) !important;
}
.bg-success p:not(.text-dark), .bg-success .lead:not(.text-dark),
.bg-dark    p:not(.text-dark), .bg-dark    .lead:not(.text-dark),
.bg-success label:not(.text-dark), .bg-dark label:not(.text-dark) {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}
.bg-dark {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%) !important;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(45, 106, 79, 0.25);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
}
.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    box-shadow: 0 10px 24px rgba(45, 106, 79, 0.35);
    transform: translateY(-2px);
    color: var(--white);
}
.btn-success:active { transform: translateY(0); }

.btn-outline-success {
    color: var(--primary);
    border: 1.5px solid var(--primary);
    font-weight: 600;
    transition: all .25s var(--ease);
}
.btn-outline-success:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.2);
}

.btn-outline-dark {
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-dark);
    font-weight: 600;
    transition: all .25s var(--ease);
}
.btn-outline-dark:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

.btn-light {
    background: var(--white);
    color: var(--primary-dark);
    border: 1px solid rgba(45, 106, 79, 0.12);
    font-weight: 600;
}
.btn-light:hover {
    background: var(--cream-warm);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.badge.bg-success {
    background: rgba(149, 213, 178, 0.25) !important;
    color: var(--primary-dark) !important;
    border: 1px solid rgba(45, 106, 79, 0.2);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.navbar {
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(45, 106, 79, 0.08);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    transition: box-shadow .3s var(--ease);
}
.navbar-brand { font-size: 1.5rem; }
.navbar-brand span.text-success {
    color: var(--primary-dark) !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 140%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-body) !important;
    font-weight: 500;
    position: relative;
    padding: 0.55rem 0.85rem !important;
    transition: color .25s var(--ease);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s var(--ease);
    border-radius: 1px;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }

.hero-section {
    background:
        radial-gradient(900px 500px at 80% 20%, rgba(221, 161, 94, 0.15), transparent 60%),
        linear-gradient(180deg, var(--cream-warm) 0%, var(--mint) 100%);
    padding: 110px 0 90px;
    min-height: 88vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}
.hero-section::before {
    width: 320px; height: 320px;
    top: -60px; left: -80px;
    background: radial-gradient(circle, rgba(149, 213, 178, 0.55), transparent 70%);
}
.hero-section::after {
    width: 380px; height: 380px;
    bottom: -100px; right: -100px;
    background: radial-gradient(circle, rgba(221, 161, 94, 0.30), transparent 70%);
}
.hero-section > .container { position: relative; z-index: 2; }

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}
.hero-section .lead {
    font-size: 1.12rem;
    color: var(--text-muted);
}
.hero-section img {
    animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Subpage header (the green hero strip) */
.bg-success.text-white.py-5.text-center {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.bg-success.text-white.py-5.text-center::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 20% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
        radial-gradient(500px 250px at 100% 100%, rgba(221, 161, 94, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.bg-success.text-white.py-5.text-center > .container { position: relative; z-index: 1; }
.bg-success.text-white.py-5.text-center .display-4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card {
    border: 1px solid rgba(27, 67, 50, 0.06);
    background: var(--white);
    border-radius: var(--r-md);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 106, 79, 0.15);
}

.service-card {
    border: 1px solid rgba(27, 67, 50, 0.06);
    border-radius: var(--r-lg);
    background:
        linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,251,245,1) 100%);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 50% -10%, rgba(149, 213, 178, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-flex;
    width: 70px; height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mint) 0%, rgba(149, 213, 178, 0.5) 100%);
    box-shadow: inset 0 0 0 1px rgba(45, 106, 79, 0.1);
    transition: transform .35s var(--ease);
}
.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-4deg);
}

.team-card {
    border-radius: var(--r-lg) !important;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(27, 67, 50, 0.06);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card img {
    background: var(--mint);
    transition: transform .6s var(--ease);
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.team-card:hover img { transform: scale(1.05); }

.rounded-4 { border-radius: var(--r-md) !important; }
.rounded-5 { border-radius: var(--r-lg) !important; }

section.py-5 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 32px;
    right: 32px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0%   { transform: scale(1);   opacity: .85; }
    100% { transform: scale(1.4); opacity: 0;   }
}
.whatsapp-float:hover {
    transform: scale(1.08);
    color: #fff;
    box-shadow: 0 16px 38px rgba(37, 211, 102, 0.55);
}
.whatsapp-float .whatsapp-label {
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: #128C7E;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity .25s ease, transform .25s ease;
}
.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 575.98px) {
    .whatsapp-float .whatsapp-label { display: none; }
}

footer.bg-dark {
    background: linear-gradient(180deg, #0F2D22 0%, #1B4332 100%) !important;
    position: relative;
    overflow: hidden;
}
footer.bg-dark::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(221, 161, 94, 0.06), transparent 60%);
    pointer-events: none;
}
footer h5 {
    color: var(--white) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}
footer .text-muted { color: rgba(255, 255, 255, 0.6) !important; }
footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    margin-right: 8px;
    transition: all .25s var(--ease);
}
footer .social-links a:hover {
    background: var(--accent);
    color: var(--white) !important;
    transform: translateY(-3px);
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color .25s var(--ease), padding-left .25s var(--ease);
    display: inline-block;
    padding: 4px 0;
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-links li { margin-bottom: 4px; }

.form-control, .form-select {
    background-color: var(--white) !important;
    color: var(--text-body) !important;
    border: 1.5px solid rgba(27, 67, 50, 0.10) !important;
    border-radius: var(--r-sm) !important;
    padding: 0.7rem 0.95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: rgba(82, 121, 111, 0.65) !important; }
.form-control:focus, .form-select:focus {
    box-shadow: var(--shadow-glow);
    border-color: var(--primary) !important;
}
.form-label { font-weight: 500; color: var(--primary-dark); font-size: 0.9rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.bg-success.bg-opacity-10 {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.10), rgba(149, 213, 178, 0.18)) !important;
}

.table { color: var(--text-body); }
.table > :not(caption) > * > * { padding: 0.85rem 1rem; }
.table thead th {
    background-color: var(--cream-warm);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(45, 106, 79, 0.1);
}
.table-hover > tbody > tr:hover > * { background-color: rgba(149, 213, 178, 0.14); }
.table-light, .table > :not(caption) > * > .table-light { background-color: var(--cream-warm); }

.section-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.22em;
    font-size: 0.78rem;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(149, 213, 178, 0.25);
    border: 1px solid rgba(45, 106, 79, 0.15);
    margin-bottom: 14px;
}

@media (max-width: 992px) {
    .hero-section { padding: 80px 0 60px; min-height: auto; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-section { padding: 60px 0 40px; min-height: auto; }
    .whatsapp-float {
        width: 54px; height: 54px;
        bottom: 22px; right: 22px;
        font-size: 24px;
    }
    .navbar-brand img { height: 45px !important; }
    .display-4 { font-size: 2.1rem; }
    section.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
}

/* ============================================================
   ADMIN / PORTAL SIDEBAR (shared bits — full admin in admin.css)
   ============================================================ */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    box-shadow: 1px 0 20px rgba(27, 67, 50, 0.06);
    border-right: 1px solid rgba(45, 106, 79, 0.06);
}
.sidebar .nav-link {
    padding: 12px 16px;
    color: var(--text-body) !important;
    border-radius: var(--r-sm);
    margin-bottom: 4px;
    font-weight: 500;
    transition: all .25s var(--ease);
    position: relative;
}
.sidebar .nav-link::after { display: none; }
.sidebar .nav-link i { width: 22px; color: var(--text-muted); transition: color .25s; }
.sidebar .nav-link:hover {
    background: rgba(149, 213, 178, 0.25);
    color: var(--primary-dark) !important;
    transform: translateX(2px);
}
.sidebar .nav-link:hover i { color: var(--primary); }
.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.25);
}
.sidebar .nav-link.active i { color: var(--white); }

.dashboard-card {
    border-radius: var(--r-md);
    border: 1px solid rgba(27, 67, 50, 0.06);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* ============================================================
   TOP UTILITY BAR + NAV DROPDOWN ENHANCEMENTS
   ============================================================ */
.top-bar a.hover-opacity { transition: opacity .2s ease; }
.top-bar a.hover-opacity:hover { opacity: 1 !important; }
.top-bar a { transition: color .2s ease; }

/* Open dropdown on hover for desktop */
@media (min-width: 992px) {
    .navbar .hover-dropdown:hover > .dropdown-menu,
    .navbar .hover-dropdown > .dropdown-menu:hover { display: block; }
    .navbar .hover-dropdown > .dropdown-menu { margin-top: 0; display: none; }
    /* invisible bridge so the menu doesn't close when crossing the gap */
    .navbar .hover-dropdown > .dropdown-menu::before {
        content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
    }
}
.navbar .dropdown-item { padding: .55rem 1.1rem; font-weight: 500; }
.navbar .dropdown-item:hover { background: var(--mint); color: var(--primary-dark); }
.navbar .dropdown-toggle::after { margin-left: .35em; vertical-align: .15em; }

/* ============================================================
   APPOINTMENT PAGE — TREATMENT SELECT + INFO PANELS
   ============================================================ */
.appt-info-card {
    background: var(--cream);
    border-radius: var(--r-md);
    border: 1px solid rgba(45,106,79,0.10);
    transition: transform .2s ease, box-shadow .2s ease;
}
.appt-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.appt-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--mint), rgba(149,213,178,0.5));
    color: var(--primary); display:inline-flex; align-items:center; justify-content:center;
}
.appt-step {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary); color:#fff; font-weight:700;
    display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
}

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-card { transition: transform .25s ease, box-shadow .25s ease; overflow:hidden; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .blog-img { height: 210px; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-img { transform: scale(1.06); }
.blog-tag {
    background: var(--mint); color: var(--primary-dark);
    font-size:.72rem; font-weight:600; padding:.3rem .8rem; border-radius:30px;
}
.blog-meta { font-size: .8rem; color: var(--text-muted); }
