/*
 Theme Name: Hello Elementor Child - Hammerstone
 Theme URI: https://hammerstone.in
 Description: Child theme for Hello Elementor with custom About Us and Contact page templates for Hammerstone.
 Author: Hammerstone
 Author URI: https://hammerstone.in
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/

/* Fix dropdown menu text visibility */
.site-navigation .sub-menu {
    background: #fff !important;
}
.site-navigation .sub-menu a {
    color: #550B19 !important;
}
.site-navigation .sub-menu a:hover {
    color: #D6AE68 !important;
}
.site-navigation .menu-item-has-children > a::after {
    border-bottom-color: #550B19;
}

/* Mobile dropdown */
.site-navigation-dropdown ul.menu li.current-menu-item > a {
    background: #550B19 !important;
}
.site-navigation-dropdown .sub-menu {
    background: #550B19 !important;
}
.site-navigation-dropdown .sub-menu a {
    background: transparent !important;
    color: #ffffff !important;
}
.site-navigation-dropdown .sub-menu a:hover {
    color: #D6AE68 !important;
}

/* Mobile dropdown submenu arrow and toggle behavior */
.site-navigation-dropdown ul.menu li.menu-item-has-children > a {
    position: relative;
    padding-right: 50px;
}
.site-navigation-dropdown ul.menu li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 22px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #550B19;
    border-bottom: 2px solid #550B19;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
    pointer-events: none;
}
.site-navigation-dropdown ul.menu li.menu-item-has-children.elementor-active > a::after {
    transform: translateY(-50%) rotate(-135deg);
}
.site-navigation-dropdown ul.menu li.menu-item-has-children.current-menu-item > a::after {
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Hide default page title on Elementor-managed pages */
.elementor-page .page-header {
    display: none;
}

/* ============================================
   Timeline Section — used by HTML widget
   ============================================ */
.hs-section-alt {
    background: #FFF9F7;
    padding: 80px 20px;
}

.hs-section-center {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.hs-section-center h2 {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #550B19;
    margin: 0 0 10px;
}
.hs-section-center .hs-section-divider {
    width: 60px;
    height: 3px;
    background: #D6AE68;
    margin: 15px auto 20px;
    border-radius: 2px;
}
.hs-section-center > p {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #555;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.hs-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}
.hs-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #D6AE68;
    transform: translateX(-50%);
}
.hs-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}
.hs-timeline-item:nth-child(odd) {
    flex-direction: row;
}
.hs-timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.hs-timeline-content {
    width: 45%;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(85,11,25,0.06);
    border: 1px solid rgba(214,174,104,0.12);
    transition: transform 0.3s ease;
}
.hs-timeline-content:hover {
    transform: translateY(-3px);
}
.hs-timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    background: #D6AE68;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 3px solid #FFF3F0;
    box-shadow: 0 0 0 2px #D6AE68;
}
.hs-timeline-content .hs-year {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 400;
    color: #D6AE68;
    margin: 0 0 8px;
}
.hs-timeline-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    color: #550B19;
    margin: 0 0 8px;
}
.hs-timeline-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Hero glow animation */
.elementor-844 > .e-con:first-of-type {
    overflow: hidden;
}
.elementor-844 > .e-con:first-of-type::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(214,174,104,0.08) 0%, transparent 60%);
    animation: hsFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes hsFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 30px) rotate(5deg); }
}

@media (max-width: 768px) {
    .hs-section-alt { padding: 40px 15px; }
    .hs-section-center h2 { font-size: 26px; }
    .hs-timeline::before { left: 20px; }
    .hs-timeline-item:nth-child(odd),
    .hs-timeline-item:nth-child(even) { flex-direction: row; padding-left: 50px; }
    .hs-timeline-content { width: 100%; }
    .hs-timeline-dot { left: 20px; }
}

/* Top Bar */
.hs-topbar {
    background: #1a0609;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    width: 100%;
}
.hs-topbar-inner {
    padding: 8px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hs-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hs-topbar-social {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #550B19;
    border: 2px solid #D6AE68;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D6AE68 !important;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.hs-topbar-social svg {
    width: 18px;
    height: 18px;
}
.hs-topbar-social:hover {
    background: #D6AE68;
    border-color: #D6AE68;
    color: #550B19 !important;
}
.hs-topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hs-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #D6AE68;
}
.hs-topbar-item svg {
    flex-shrink: 0;
    color: #D6AE68;
}
.hs-topbar-item a {
    color: #D6AE68 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hs-topbar-item a:hover {
    color: #ffffff !important;
}
@media (max-width: 768px) {
    .hs-topbar-inner {
        flex-direction: column;
        gap: 6px;
        padding: 6px 15px;
    }
    .hs-topbar-item {
        font-size: 12px;
    }
}

/* Footer */
.site-footer.dynamic-footer {
    padding: 0 !important;
}
.hs-footer-main {
    background: #3d0f1a;
    padding: 60px 0 40px;
    color: #FFF3F0;
}
.hs-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
}
.hs-footer-heading {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
}
.hs-footer-about .custom-logo-link {
    display: inline-block;
    margin-bottom: 15px;
}
.hs-footer-about .custom-logo {
    max-width: 180px;
    height: auto;
}
.hs-footer-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
}
.hs-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hs-footer-menu li {
    margin-bottom: 10px;
}
.hs-footer-menu a {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hs-footer-menu a:hover {
    color: #ffffff;
}
.hs-footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hs-footer-contact-list li {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.hs-footer-contact-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.hs-footer-contact-list a:hover {
    color: #ffffff;
}
.hs-footer-icon {
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.site-footer.dynamic-footer .footer-inner {
    border-top: 1px solid rgba(214, 174, 104, 0.35);
    padding: 20px 20px;
}
.site-footer.dynamic-footer .footer-inner .copyright p {
    color: #ffffff;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .hs-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .hs-footer-main {
        padding: 40px 0 30px;
    }
    .hs-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}