/**
 * आरतीसंध्या — हेडर + फुटर रीडिज़ाइन (style1.css)
 * home3.css / single1.css / archive1.css जैसा ही थीम — विज़ुअल consistency के लिए
 * नोट: यह सिर्फ़ header1.php और footer1.php के लिए है — बाकी पेज इससे नहीं जुड़े
 * सभी क्लासेज़ 'hf1-' प्रीफ़िक्स के साथ
 */

:root {
    --hf1-maroon:      #8A1220;
    --hf1-maroon-deep: #4A0E17;
    --hf1-saffron:     #E9871E;
    --hf1-marigold:    #F6B93B;

    --hf1-ink:         #2A1810;
    --hf1-ink-soft:    #6B4A3A;
    --hf1-ink-faint:   #9C8172;
    --hf1-cream:       #FFF3E0;
    --hf1-tint:        #FFFAF2;
    --hf1-line:        #F0DFC6;
    --hf1-white:       #FFFFFF;

    --hf1-radius-sm: 10px;
    --hf1-radius-md: 16px;
    --hf1-radius-lg: 24px;

    --hf1-shadow-sm: 0 2px 10px rgba(90, 30, 15, 0.08);
    --hf1-shadow-md: 0 14px 32px rgba(90, 30, 15, 0.16);

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

    --hf1-font-display: 'Noto Serif Devanagari', 'Tiro Devanagari Hindi', serif;
    --hf1-font-body: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    --hf1-font-utility: 'Poppins', 'Noto Sans Devanagari', sans-serif;
}

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

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

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

/* लोगो */
.hf1-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hf1-logo img { height: 42px; width: auto; }

.hf1-logo h1 {
    font-family: var(--hf1-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--hf1-maroon);
    margin: 0;
}

/* डेस्कटॉप नेव */
.hf1-nav { display: flex; }
.hf1-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.hf1-nav-item { position: relative; }

.hf1-nav a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-family: var(--hf1-font-body);
    font-weight: 600;
    font-size: 14.5px;
    color: var(--hf1-ink);
    padding: 10px 13px;
    border-radius: 50px;
    transition: all 0.25s var(--hf1-ease);
    white-space: nowrap;
}

.hf1-nav a:hover,
.hf1-nav a.hf1-active {
    background: var(--hf1-maroon);
    color: #fff;
}

.hf1-caret { font-size: 10px; opacity: 0.6; }

/* डेस्कटॉप ड्रॉपडाउन */
.hf1-dropdown-toggle { display: none; }

.hf1-dropdown {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding-top: 12px; /* अदृश्य bridge — mouse यहां से गुज़रते हुए भी hover टूटे नहीं */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--hf1-ease), transform 0.25s var(--hf1-ease), visibility 0.25s var(--hf1-ease);
    z-index: 1100;
}

.hf1-nav-item:hover .hf1-dropdown,
.hf1-nav-item:focus-within .hf1-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hf1-dropdown-inner {
    list-style: none;
    background: var(--hf1-white);
    border: 1px solid var(--hf1-line);
    border-radius: var(--hf1-radius-md);
    box-shadow: var(--hf1-shadow-md);
    padding: 8px;
    min-width: 220px;
    margin: 0;
}

.hf1-dropdown a {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--hf1-ink-soft);
}
.hf1-dropdown a:hover { background: var(--hf1-cream); color: var(--hf1-maroon); }

/* सर्च + हैमबर्गर */
.hf1-header-actions { display: flex; align-items: center; gap: 10px; }

.hf1-search-btn {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--hf1-cream);
    border-radius: 50%;
    color: var(--hf1-maroon);
    text-decoration: none;
    transition: all 0.25s var(--hf1-ease);
}
.hf1-search-btn:hover { background: var(--hf1-marigold); color: var(--hf1-maroon-deep); }

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

/* ================================================
   मोबाइल मेनू पैनल
================================================ */
.hf1-mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(340px, 88vw);
    height: 100vh;
    background: var(--hf1-white);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    z-index: 1400;
    transition: right 0.35s var(--hf1-ease);
    overflow-y: auto;
    padding: 20px 18px 40px;
}
.hf1-mobile-menu.hf1-active { right: 0; }

.hf1-mobile-overlay {
    position: fixed; inset: 0;
    background: rgba(20,10,5,0.45);
    z-index: 1300;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--hf1-ease), visibility 0.3s var(--hf1-ease);
}
.hf1-mobile-overlay.hf1-active { opacity: 1; visibility: visible; }

.hf1-mobile-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.hf1-mobile-close button {
    width: 38px; height: 38px;
    border: none; background: var(--hf1-cream);
    border-radius: 50%; color: var(--hf1-maroon);
    font-size: 18px; cursor: pointer;
}

.hf1-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.hf1-mobile-menu > ul > li {
    border-bottom: 1px dashed var(--hf1-line);
}
.hf1-mobile-menu > ul > li:last-child { border-bottom: none; }

.hf1-mobile-item-row { display: flex; align-items: center; justify-content: space-between; }

.hf1-mobile-menu a {
    display: block;
    font-family: var(--hf1-font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--hf1-ink);
    text-decoration: none;
    padding: 13px 6px;
}
.hf1-mobile-menu a:hover, .hf1-mobile-menu a.hf1-active { color: var(--hf1-maroon); }

.hf1-mobile-item-row > a { flex: 1; }

.hf1-mobile-toggle {
    width: 32px; height: 32px;
    border: none;
    background: var(--hf1-cream);
    color: var(--hf1-maroon);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s var(--hf1-ease), background 0.3s var(--hf1-ease);
    flex-shrink: 0;
}
.hf1-mobile-item-row.hf1-open .hf1-mobile-toggle {
    transform: rotate(180deg);
    background: var(--hf1-maroon);
    color: #fff;
}

.hf1-mobile-submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--hf1-ease);
}
.hf1-mobile-item-row.hf1-open + .hf1-mobile-submenu {
    max-height: 400px;
    padding-bottom: 10px;
}
.hf1-mobile-submenu a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--hf1-ink-soft);
    padding: 9px 10px 9px 22px;
    position: relative;
}
.hf1-mobile-submenu a::before { content: "›"; position: absolute; left: 6px; color: var(--hf1-saffron); }

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

/* ================================================
   फुटर — FOOTER
================================================ */

/* क्रॉस-प्रमोशन: स्पिरिचुअल टूल्स */
.hf1-tools-section { padding: 60px 0; background: var(--hf1-maroon-deep); }

.hf1-section-head { text-align: center; margin-bottom: 34px; }
.hf1-section-head h2 {
    font-family: var(--hf1-font-display);
    font-size: 26px;
    color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hf1-section-head p { font-family: var(--hf1-font-body); color: rgba(255,246,235,0.7); margin-top: 8px; font-size: 14px; }

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

.hf1-tool-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--hf1-radius-md);
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s var(--hf1-ease);
}
.hf1-tool-card:hover { background: rgba(255,255,255,0.1); border-color: var(--hf1-marigold); transform: translateY(-4px); }

.hf1-tool-icon { font-size: 28px; margin-bottom: 10px; }
.hf1-tool-card h3 { font-family: var(--hf1-font-body); font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.hf1-tool-card p { font-family: var(--hf1-font-body); font-size: 12px; color: rgba(255,246,235,0.65); line-height: 1.5; }
.hf1-tool-arrow { margin-top: 12px; font-family: var(--hf1-font-utility); font-size: 12px; font-weight: 700; color: var(--hf1-marigold); }

/* More Sites */
.hf1-moresites-section { padding: 56px 0; background: var(--hf1-twilight, #2C1440); }

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

.hf1-site-card {
    display: flex; flex-direction: column; gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--hf1-radius-md);
    padding: 22px 18px;
    text-decoration: none;
    transition: all 0.3s var(--hf1-ease);
}
.hf1-site-card:hover { background: rgba(255,255,255,0.1); border-color: var(--hf1-marigold); transform: translateY(-4px); }
.hf1-site-icon { font-size: 26px; }
.hf1-site-card h3 { font-family: var(--hf1-font-body); font-size: 15px; font-weight: 700; color: #fff; }
.hf1-site-card p { font-family: var(--hf1-font-body); font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.hf1-site-arrow { margin-top: auto; font-family: var(--hf1-font-utility); font-size: 12px; font-weight: 700; color: #a78bfa; }

/* मुख्य फुटर */
.hf1-footer {
    background: linear-gradient(160deg, var(--hf1-maroon) 0%, var(--hf1-maroon-deep) 100%);
    color: #fff;
    padding: 60px 0 24px;
}

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

.hf1-footer-col h3 {
    font-family: var(--hf1-font-display);
    font-size: 18px;
    color: var(--hf1-marigold);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.hf1-footer-col p {
    font-family: var(--hf1-font-body);
    font-size: 13.5px;
    line-height: 1.8;
    color: rgba(255,246,235,0.8);
}

.hf1-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hf1-footer-col a {
    font-family: var(--hf1-font-body);
    font-size: 13.5px;
    color: rgba(255,246,235,0.8);
    text-decoration: none;
    transition: all 0.25s var(--hf1-ease);
}
.hf1-footer-col a:hover { color: var(--hf1-marigold); padding-left: 4px; }

.hf1-footer-email { margin-top: 14px; }
.hf1-footer-email a { color: rgba(255,246,235,0.85); text-decoration: none; }

.hf1-social-links { display: flex; gap: 10px; margin-top: 18px; }
.hf1-social-links a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    transition: all 0.25s var(--hf1-ease);
}
.hf1-social-links a:hover { background: var(--hf1-marigold); color: var(--hf1-maroon-deep); transform: translateY(-3px); }

.hf1-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 22px;
    text-align: center;
}
.hf1-footer-bottom p { font-family: var(--hf1-font-body); font-size: 13px; color: rgba(255,246,235,0.7); margin-bottom: 8px; }
.hf1-footer-bottom a { color: rgba(255,246,235,0.7); text-decoration: none; margin: 0 8px; }
.hf1-footer-bottom a:hover { color: var(--hf1-marigold); }

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

/* ================================================
   RESPONSIVE — same 5-tier system used site-wide
================================================ */
@media (min-width: 1280px) and (max-width: 1400px) {
    .hf1-container { max-width: 1200px; }
}

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

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

@media (max-width: 767px) {
    .hf1-container { padding: 0 16px; }
    .hf1-nav { display: none; }
    .hf1-burger { display: flex; }
    .hf1-logo img { height: 34px; }
    .hf1-logo h1 { font-size: 19px; }

    .hf1-tools-section, .hf1-moresites-section { padding: 40px 0; }
    .hf1-section-head h2 { font-size: 20px; }
    .hf1-tools-grid, .hf1-moresites-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hf1-tool-card, .hf1-site-card { padding: 14px; }
    .hf1-tool-icon, .hf1-site-icon { font-size: 22px; }
    .hf1-tool-card h3, .hf1-site-card h3 { font-size: 13px; }
    .hf1-tool-card p, .hf1-site-card p { font-size: 11px; }

    .hf1-footer { padding: 40px 0 20px; }
    .hf1-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 28px; }
    .hf1-footer-col h3 { font-size: 16px; }
}

@media (max-width: 280px) {
    .hf1-container { padding: 0 10px; }
    .hf1-tools-grid, .hf1-moresites-grid, .hf1-footer-grid { grid-template-columns: 1fr; }
    .hf1-logo h1 { font-size: 16px; }
}