/**
 * DotIAM Tools — हेडर + फुटर रीडिज़ाइन (head-foot.css)
 * नई फ़ाइल — पुरानी style.css के साथ अतिरिक्त रूप से लोड होती है, replace नहीं करती।
 * इसलिए अगर कुछ टूटे तो भी बाकी साइट सुरक्षित रहती है।
 * home page (style-new.css) जैसा ही July डिज़ाइन सिस्टम — सभी क्लासेज़ 'jhf-' प्रीफ़िक्स के साथ।
 */

:root {
    --jhf-ink:        #26243A;
    --jhf-ink-soft:   #5D5A70;
    --jhf-ink-faint:  #918DA0;
    --jhf-bg:         #FFFDF9;
    --jhf-panel:      #FFFFFF;
    --jhf-line:       #F0E8DC;

    --jhf-pink:       #FF6B9A;
    --jhf-pink-deep:  #E84F80;
    --jhf-pink-tint:  #FFE3ED;
    --jhf-orange:     #FFA53D;

    --jhf-radius-sm:  12px;
    --jhf-radius-md:  18px;
    --jhf-radius-lg:  26px;

    --jhf-shadow-sm: 0 4px 16px rgba(38,36,58,0.07);
    --jhf-shadow-md: 0 14px 36px rgba(38,36,58,0.12);

    --jhf-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --jhf-font-display: 'Baloo 2', 'Poppins', sans-serif;
    --jhf-font-body:    'Poppins', sans-serif;
}

.jhf-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ================================================
   हेडर
================================================ */
.jhf-header {
    background: var(--jhf-panel);
    border-bottom: 1px solid var(--jhf-line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.jhf-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.jhf-logo { flex-shrink: 0; }
.jhf-logo img { height: 38px; display: block; }

/* डेस्कटॉप नेव */
.jhf-nav { display: flex; }
.jhf-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.jhf-nav-item { position: relative; }

.jhf-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-family: var(--jhf-font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--jhf-ink);
    padding: 10px 14px;
    border-radius: 50px;
    transition: all 0.25s var(--jhf-ease);
    white-space: nowrap;
}
.jhf-nav a:hover, .jhf-nav a.jhf-active { background: var(--jhf-pink); color: #fff; }
.jhf-caret { font-size: 10px; opacity: 0.65; }

/* डेस्कटॉप ड्रॉपडाउन — hover gap-bridge तकनीक (कोई dead-zone नहीं) */
.jhf-dropdown-toggle { display: none; }
.jhf-nav-item.jhf-has-dropdown { position: relative; }

.jhf-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--jhf-ease), transform 0.25s var(--jhf-ease), visibility 0.25s var(--jhf-ease);
    z-index: 1100;
}
.jhf-nav-item.jhf-has-dropdown:hover .jhf-dropdown,
.jhf-nav-item.jhf-has-dropdown:focus-within .jhf-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.jhf-dropdown-inner {
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--jhf-panel);
    border: 1px solid var(--jhf-line);
    border-radius: var(--jhf-radius-md);
    box-shadow: var(--jhf-shadow-md);
    padding: 8px;
    width: 240px;
    max-width: 240px;
    margin: 0;
}
.jhf-dropdown-inner li {
    list-style: none !important;
    display: block !important;
    width: 100% !important;
}
.jhf-dropdown-inner a {
    display: flex !important;
    align-items: center; gap: 10px;
    font-size: 14px; font-weight: 500;
    padding: 10px 12px; border-radius: 8px;
    color: var(--jhf-ink-soft);
    white-space: normal !important;
    width: 100% !important;
}
.jhf-dropdown-inner a:hover { background: var(--jhf-pink-tint); color: var(--jhf-pink-deep); }
.jhf-dropdown-icon { font-size: 15px; flex-shrink: 0; }

.jhf-dropdown-viewall {
    display: block;
    text-align: center;
    margin-top: 4px;
    padding: 10px 12px !important;
    font-weight: 700 !important;
    color: var(--jhf-pink-deep) !important;
    background: var(--jhf-pink-tint) !important;
    border-radius: 8px;
}

/* सर्च + हैमबर्गर */
.jhf-header-actions { display: flex; align-items: center; gap: 10px; }
.jhf-search-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--jhf-pink-tint);
    border-radius: 50%;
    color: var(--jhf-pink-deep);
    text-decoration: none;
    transition: all 0.25s var(--jhf-ease);
}
.jhf-search-btn:hover { background: var(--jhf-pink); color: #fff; }

.jhf-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: var(--jhf-pink-tint);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.jhf-burger span { width: 18px; height: 2.5px; background: var(--jhf-pink-deep); border-radius: 3px; transition: all 0.3s var(--jhf-ease); }
.jhf-burger.jhf-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.jhf-burger.jhf-active span:nth-child(2) { opacity: 0; }
.jhf-burger.jhf-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ================================================
   मोबाइल मेनू पैनल
================================================ */
.jhf-mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(38,36,58,0.45);
    z-index: 1300;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--jhf-ease), visibility 0.3s var(--jhf-ease);
}
.jhf-mobile-overlay.jhf-active { opacity: 1; visibility: visible; }

.jhf-mobile-menu {
    position: fixed; top: 0; right: -100%;
    width: min(340px, 88vw); height: 100vh;
    background: var(--jhf-panel);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 1400;
    transition: right 0.35s var(--jhf-ease);
    overflow-y: auto;
    padding: 18px 16px 40px;
}
.jhf-mobile-menu.jhf-active { right: 0; }

.jhf-mobile-close { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.jhf-mobile-close button {
    width: 36px; height: 36px; border: none; background: var(--jhf-pink-tint);
    border-radius: 50%; color: var(--jhf-pink-deep); font-size: 16px; cursor: pointer;
}

.jhf-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.jhf-mobile-menu > ul > li { border-bottom: 1px dashed var(--jhf-line); }
.jhf-mobile-menu > ul > li:last-child { border-bottom: none; }

.jhf-mobile-item-row { display: flex; align-items: center; justify-content: space-between; }
.jhf-mobile-menu a {
    display: block; font-family: var(--jhf-font-body); font-weight: 600; font-size: 15px;
    color: var(--jhf-ink); text-decoration: none; padding: 13px 6px;
}
.jhf-mobile-item-row > a { flex: 1; }

.jhf-mobile-toggle {
    width: 30px; height: 30px; border: none; background: var(--jhf-pink-tint);
    color: var(--jhf-pink-deep); border-radius: 8px; font-size: 13px; cursor: pointer;
    transition: transform 0.3s var(--jhf-ease), background 0.3s var(--jhf-ease); flex-shrink: 0;
}
.jhf-mobile-item-row.jhf-open .jhf-mobile-toggle { transform: rotate(180deg); background: var(--jhf-pink); color: #fff; }

.jhf-mobile-submenu {
    list-style: none; max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--jhf-ease); margin: 0; padding: 0;
}
.jhf-mobile-item-row.jhf-open + .jhf-mobile-submenu { max-height: 500px; padding-bottom: 8px; }
.jhf-mobile-submenu a {
    font-size: 13.5px; font-weight: 500; color: var(--jhf-ink-soft);
    padding: 9px 10px 9px 20px; position: relative;
}
.jhf-mobile-submenu a::before { content: "›"; position: absolute; left: 4px; color: var(--jhf-pink); }
.jhf-mobile-submenu .jhf-dropdown-viewall { color: var(--jhf-pink-deep) !important; font-weight: 700 !important; padding-left: 20px !important; }
.jhf-mobile-submenu .jhf-dropdown-viewall::before { content: "→"; }

.jhf-mobile-search {
    display: flex; align-items: center; gap: 8px; margin-top: 14px;
    background: var(--jhf-pink-tint); border-radius: 50px; padding: 12px 18px;
    text-decoration: none; color: var(--jhf-pink-deep);
    font-family: var(--jhf-font-body); font-weight: 600; font-size: 14px;
}

/* ================================================
   फुटर — Explore More Sites (लाइट सेक्शन)
================================================ */
.jhf-moresites-section { padding: 60px 0; background: var(--jhf-bg); border-top: 1px solid var(--jhf-line); }

.jhf-section-head-center { text-align: center; margin-bottom: 32px; }
.jhf-section-head-center h2 {
    font-family: var(--jhf-font-display); font-weight: 700; font-size: clamp(24px, 1.6vw + 18px, 32px);
    color: var(--jhf-ink); display: flex; align-items: center; justify-content: center; gap: 10px;
}
.jhf-section-head-center p { font-family: var(--jhf-font-body); color: var(--jhf-ink-soft); margin-top: 8px; font-size: 15px; }

.jhf-moresites-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.jhf-site-card {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--jhf-panel); border: 1px solid var(--jhf-line);
    border-radius: var(--jhf-radius-md); padding: 24px 20px;
    text-decoration: none; box-shadow: var(--jhf-shadow-sm);
    transition: all 0.3s var(--jhf-ease);
}
.jhf-site-card:hover { transform: translateY(-5px); box-shadow: var(--jhf-shadow-md); border-color: var(--jhf-pink); }
.jhf-site-icon { font-size: 28px; }
.jhf-site-card h3 { font-family: var(--jhf-font-display); font-size: 16px; font-weight: 700; color: var(--jhf-ink); }
.jhf-site-card p { font-family: var(--jhf-font-body); font-size: 13px; color: var(--jhf-ink-soft); line-height: 1.55; }
.jhf-site-arrow { margin-top: auto; font-family: var(--jhf-font-body); font-size: 13px; font-weight: 700; color: var(--jhf-pink-deep); }

/* ================================================
   मुख्य फुटर
================================================ */
.jhf-footer { background: #1C1B23; color: #fff; padding: 60px 0 24px; }

.jhf-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }

.jhf-footer-col h4 {
    font-family: var(--jhf-font-display); font-size: 16px; color: var(--jhf-orange);
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
.jhf-footer-col p { font-family: var(--jhf-font-body); font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.jhf-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; }
.jhf-footer-col a { font-family: var(--jhf-font-body); font-size: 13.5px; color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.25s var(--jhf-ease); }
.jhf-footer-col a:hover { color: var(--jhf-pink); padding-left: 4px; }

.jhf-footer-logo img { height: 34px; margin-bottom: 14px; }
.jhf-social-links { display: flex; gap: 8px; margin-top: 6px; }
.jhf-social-links a {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); border-radius: 8px; color: #fff;
    transition: all 0.25s var(--jhf-ease);
}
.jhf-social-links a:hover { background: var(--jhf-pink); transform: translateY(-2px); }

.jhf-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; }
.jhf-footer-bottom p { font-family: var(--jhf-font-body); font-size: 13px; color: rgba(255,255,255,0.55); margin: 3px 0; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--jhf-pink); outline-offset: 2px; }

/* ================================================
   RESPONSIVE — साइट-वाइड 6-tier सिस्टम
================================================ */
@media (min-width: 1280px) and (max-width: 1400px) {
    .jhf-container { max-width: 1200px; }
}

@media (max-width: 1280px) and (min-width: 1024px) {
    .jhf-nav a { font-size: 13.5px; padding: 9px 10px; }
    .jhf-footer-grid { grid-template-columns: 1.2fr repeat(2, 1fr); }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .jhf-nav { display: none; }
    .jhf-burger { display: flex; }
    .jhf-moresites-grid { grid-template-columns: repeat(2, 1fr); }
    .jhf-footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .jhf-container { padding: 0 16px; }
    .jhf-nav { display: none; }
    .jhf-burger { display: flex; }
    .jhf-logo img { height: 32px; }

    .jhf-moresites-section { padding: 40px 0; }
    .jhf-moresites-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jhf-site-card { padding: 16px; }

    .jhf-footer { padding: 40px 0 20px; }
    .jhf-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
}

@media (max-width: 580px) {
    .jhf-moresites-grid { grid-template-columns: 1fr 1fr; }
    .jhf-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 280px) {
    .jhf-moresites-grid, .jhf-footer-grid { grid-template-columns: 1fr; }
}