/*
Theme layout stylesheet for Shubhaarambh Events
Version: 2.0.0
Purpose: one clean production CSS file for header, hero, pages, footer and responsive fixes.
*/

/* ===============================
   GLOBAL SAFETY / PERFORMANCE
=============================== */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 92px;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-width: 0;
}

#page-wrapper,
.site,
.site-main,
main,
section {
    max-width: 100%;
}

img,
svg,
video,
iframe,
embed,
object {
    max-width: 100%;
}

.container,
.container-wide {
    width: min(100% - 32px, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.container-wide {
    max-width: 1400px;
}

.grid,
.grid-2,
.grid-3,
.grid-4,
.footer-grid,
.contact-grid,
.why-us-grid,
.portfolio-grid,
.gallery-grid,
.content-area {
    min-width: 0;
}

.card,
.service-card,
.blog-card,
.pricing-card,
.team-card,
.testimonial-card,
.contact-card,
.portfolio-card,
.gallery-item,
.sidebar-widget {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ===============================
   HEADER
=============================== */
#site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
    transform: translateY(0) !important;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
    will-change: auto;
}

#site-header.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 6px 30px rgba(0,0,0,0.12);
}

.admin-bar #site-header { top: 32px !important; }

.header-inner {
    min-height: 74px;
    gap: 18px;
}

.site-logo,
.custom-logo-link {
    flex: 0 0 auto;
    min-width: 0;
}

.site-logo img,
.custom-logo-link img {
    max-height: 58px;
    width: auto;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.menu-toggle:focus-visible,
#main-navigation a:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 3px;
}

#main-navigation ul li ul li:last-child {
    border-bottom-radius: 0 0 8px 8px;
}

/* ===============================
   HERO SECTION
=============================== */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: clamp(10px, 0vw, 150px) 0 clamp(10px, 0vw, 110px);
    background: #111;
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('https://shubhaarambh-events.com/wp-content/uploads/2026/05/May-16-2026-04_32_27-PM.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.01);
}

.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    width: min(100%, 780px);
    position: relative;
    z-index: 3;
    color: #fff;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--wp--preset--color--luminous-vivid-orange);
    background: rgba(255,255,255,0.14);
    border:1px solid var(--primary-light);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    text-shadow: 0 2px 8px var(--bg-cream);
}

.hero-tag i { color: var(--primary-light); }

.hero-content h1 {
    font-size: clamp(1.rem, 6vw, 5rem);
    line-height: 1.04;
    font-weight: 800;
    color: #fff;
    margin: 0 0 24px;
    letter-spacing: -1.3px;
    text-shadow: 0 5px 24px rgb(0 0 0 / 50%);
}

.hero-content p {
    width: min(100%, 680px);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    color: var(--wp--preset--color--luminous-vivid-orange, #ff6900);
    font-weight: 500;
    line-height: 1.85;
    margin: 0 0 34px;
    padding-right:170px;
    text-shadow: 0 3px 16px rgb(255 255 255 / 50%);
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.hero-outline-btn {
    border: 1px solid rgba(255,255,255,0.65);
    color: #fff;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
}

.hero-outline-btn:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 760px);
}

.hero-stat-box {
    background: rgba(0,0,0,0.28);
    padding: 18px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(8px);
    min-width: 0;
}

.hero-stat-box .number {
    display: block;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1;
    font-weight: 800;
    color: #fff;
}

.hero-stat-box .label {
    color: rgba(255,255,255,0.86);
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.hero-marquee-wrap {
    background: var(--primary);
    padding: 13px 0;
    overflow: hidden;
}

.hero-marquee {
    display: flex;
    gap: 38px;
    animation: marquee 24s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.hero-marquee span {
    flex: 0 0 auto;
    color: rgba(255,255,255,0.94);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-marquee span em {
    color: rgba(255,255,255,0.52);
    font-style: normal;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-33.33%); }
}

/* Old hero slider is intentionally disabled in v2.0.0. */
.hero-media,
.hero-slider,
.hero-slides,
.hero-slider-overlay,
.slider-dots,
.hero-float-card,
.hero-side-image {
    display: none !important;
}

/* ===============================
   PAGE / CARD / WIDGET FIXES
=============================== */
.page-hero {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
    isolation: isolate;
}

.page-hero-content {
    width: min(100%, 900px);
    margin-left: auto;
    margin-right: auto;
}

.page-hero h1,
.page-hero p,
.breadcrumb {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.breadcrumb {
    flex-wrap: wrap;
    line-height: 1.7;
}

.card-img,
.blog-img,
.team-img,
.portfolio-item,
.gallery-item,
.gallery-page-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    transform: translateZ(0);
}

.card-img img,
.blog-img img,
.team-img img,
.portfolio-item img,
.gallery-item img,
.gallery-page-item img,
.wp-post-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
}

.card:hover .card-img img,
.blog-card:hover .blog-img img,
.team-card:hover .team-img img,
.portfolio-item:hover img,
.gallery-item:hover img,
.gallery-page-item:hover img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1.06) !important;
}

.team-overlay,
.portfolio-overlay,
.gallery-overlay {
    pointer-events: none;
}

.team-card:hover .team-overlay {
    background: rgba(44,24,16,0.62);
}

.portfolio-item:hover .portfolio-overlay,
.gallery-item:hover .gallery-overlay {
    background: rgba(44,24,16,0.58);
}

.service-card .service-icon,
.card .service-icon,
.grid .service-icon {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    color: inherit !important;
    overflow: visible !important;
    line-height: 1 !important;
    transform: translateZ(0);
}

.service-card .service-icon img,
.service-card .service-icon svg,
.card .service-icon img,
.card .service-icon svg,
.grid .service-icon img,
.grid .service-icon svg {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    display: block !important;
    max-width: 46px !important;
    max-height: 46px !important;
    object-fit: contain !important;
    transform: none !important;
}

.service-card:hover .service-icon,
.card:hover .service-icon,
.grid .service-card:hover .service-icon {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    background: var(--bg-light) !important;
    border-color: var(--primary) !important;
    color: inherit !important;
    transform: scale(1.08) translateZ(0) !important;
}

.sidebar,
.sidebar-widget,
.sidebar-widget * {
    max-width: 100%;
}

.sidebar-widget {
    overflow: hidden;
}

.sidebar-widget input[type="search"],
.sidebar-widget input[type="text"],
.sidebar-widget input[type="email"],
.sidebar-widget input[type="tel"],
.sidebar-widget select,
.sidebar-widget textarea {
    width: 100%;
    min-width: 0;
}

.sidebar-widget a {
    overflow-wrap: anywhere;
}

.whatsapp-float,
#scroll-top {
    max-width: calc(100vw - 24px);
}

/* ===============================
   FOOTER
=============================== */
.footer-widget h4 { font-family: var(--font-heading); }
.footer-links a:hover { color: var(--primary-light) !important; }
.footer-social a:hover { transform: translateY(-3px); }

/* ===============================
   DESKTOP STYLES
=============================== */
@media (min-width: 769px) {
    .blog-card,
    .service-card,
    .team-card,
    .pricing-card,
    .card {
        will-change: transform;
    }
}

/* ===============================
   TABLET STYLES
=============================== */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100%, 560px);
    }

    .content-area {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .content-area > *,
    .sidebar {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 782px) {
    .admin-bar #site-header { top: 46px !important; }
}

/* ===============================
   MOBILE STYLES
=============================== */
@media (max-width: 768px) {
    html { scroll-padding-top: 76px; }

    .top-bar { display: none; }

    .container,
    .container-wide,
    .hero-container {
        width: min(100% - 28px, 480px) !important;
        max-width: 480px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .header-inner {
        min-height: 66px;
        padding: 8px 0;
    }

    .site-logo img,
    .custom-logo-link img {
        max-height: 48px;
    }

    .header-cta .btn,
    .header-phone {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex !important;
        flex: 0 0 44px;
    }

    #main-navigation {
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        display: none;
        max-height: calc(100vh - 84px);
        overflow-y: auto;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(255,255,255,0.98);
        box-shadow: 0 18px 55px rgba(0,0,0,0.15);
    }

    #main-navigation.open {
        display: block;
    }

    #main-navigation ul {
        align-items: stretch;
        width: 100%;
        gap: 4px;
    }

    #main-navigation ul li a {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    #main-navigation ul li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
        display: none;
        margin: 4px 0 6px 10px;
        padding-left: 8px;
        border-left: 2px solid var(--border);
        border-top: 0;
        box-shadow: none;
        background: transparent;
    }

    #main-navigation ul li ul.show {
        display: flex;
    }

    .hero-section {
        min-height: calc(100vh - 66px);
        padding: 62px 0 58px;
        text-align: center;
    }

    .hero-section .hero-bg {
        background-position: center top;
    }

    .hero-section .hero-overlay {
        background: rgba(0, 0, 0, 0.44);
    }

    .hero-content {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tag {
        max-width: 100%;
        white-space: normal;
        justify-content: center;
        text-align: center;
        font-size: 0.76rem;
        line-height: 1.35;
        padding: 8px 12px;
        margin: 0 auto 18px;
    }

    .hero-content h1 {
        max-width: 390px;
        margin: 0 auto 18px;
        font-size: clamp(2.05rem, 10vw, 3rem);
        line-height: 1.06;
        letter-spacing: -0.6px;
    }

    .hero-content p {
        max-width: 390px;
        margin: 0 auto 24px;
        font-size: 0.96rem;
        line-height: 1.68;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 360px;
        margin: 0 auto 24px;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-stat-box {
        padding: 14px 10px;
        border-radius: 14px;
        text-align: left;
    }

    .hero-stat-box .number {
        font-size: 1.45rem;
    }

    .hero-stat-box .label {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .hero-marquee-wrap {
        padding: 10px 0;
    }

    .hero-marquee {
        gap: 24px;
        animation-duration: 32s;
    }

    .hero-marquee span {
        font-size: 0.78rem;
        gap: 8px;
    }

    .section,
    .section-sm,
    .section-lg {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-hero {
        width: 100% !important;
        max-width: 100% !important;
        padding: 58px 14px !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .page-hero-content {
        width: min(100%, 390px) !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .page-hero h1 {
        font-size: clamp(2rem, 10vw, 2.75rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 16px !important;
        text-align: center !important;
    }

    .page-hero p {
        max-width: 360px !important;
        font-size: clamp(1rem, 4.3vw, 1.15rem) !important;
        line-height: 1.65 !important;
        text-align: center !important;
        margin: 0 auto 20px !important;
    }

    .breadcrumb {
        justify-content: center !important;
        gap: 8px !important;
        font-size: 0.92rem !important;
        padding: 0 6px !important;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto,
    .portfolio-grid,
    .gallery-grid,
    .gallery-page-grid,
    .footer-grid,
    .contact-grid,
    .why-us-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .blog-card,
    .card,
    .service-card,
    .team-card,
    .pricing-card,
    .sidebar-widget {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px !important;
    }

    .blog-card:hover,
    .card:hover,
    .service-card:hover,
    .team-card:hover,
    .pricing-card:hover {
        transform: none !important;
    }

    .blog-img,
    .card-img {
        aspect-ratio: 4 / 3 !important;
    }

    .blog-body,
    .card-body {
        padding: 22px !important;
    }

    .sidebar-widget form[method="get"] {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .sidebar-widget form[method="get"] input[type="search"] {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
    }

    .sidebar-widget form[method="get"] button {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .whatsapp-float {
        right: 16px !important;
        bottom: 82px !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 1.55rem !important;
    }

    #scroll-top {
        right: 16px !important;
        bottom: 18px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 14px !important;
    }

    .footer-bottom,
    .footer-bottom > div {
        max-width: 100% !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 600px) {
    .admin-bar #site-header { top: 0 !important; }
}

@media (max-width: 420px) {
    .container,
    .container-wide,
    .hero-container {
        width: min(100% - 24px, 390px) !important;
    }

    .hero-content h1 {
        font-size: clamp(1.92rem, 11vw, 2.45rem);
        max-width: 330px;
    }

    .hero-content p,
    .hero-buttons,
    .hero-stats {
        max-width: 330px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: 52px !important;
        padding-bottom: 52px !important;
    }

    .page-hero h1 {
        font-size: clamp(1.9rem, 11vw, 2.45rem) !important;
    }

    .sidebar-widget {
        padding: 22px !important;
    }
}

@media (hover: none) {
    .service-card:hover,
    .card:hover,
    .blog-card:hover,
    .team-card:hover,
    .pricing-card:hover {
        transform: none !important;
    }

    .service-card:hover .service-icon,
    .card:hover .service-icon {
        transform: none !important;
        background: var(--bg-light) !important;
        border-color: var(--border) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .hero-marquee {
        animation: none;
        transform: none;
    }
}
