/**
 * Hero Section CSS
 * Consolidated styles for hero sections (breadcrumbs + headings)
 * Used across all pages
 */

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */

.breadcrumb-nav {
    padding: 0;
    margin: 0 0 24px 0;
    background: transparent;
    border-bottom: none;
    position: relative;
    width: 100%;
    display: block;
    clear: both;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Center align breadcrumbs */
    list-style: none;
    margin: 0 auto; /* Center the list */
    padding: 15px;
    font-size: 13px;
    line-height: 1.4;
    font-family: var(--font-heading, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    width: 100%;
    max-width: 100%;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.breadcrumb-item a:hover {
    color: #111111;
    text-decoration: none;
}

.breadcrumb-item--active span {
    color: #111111;
    font-weight: 500;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    color: #ced4da;
    font-size: 11px;
    font-weight: 300;
}

.breadcrumb-wrapper {
    position: relative;
    width: 100%;
    margin: 32px 0 24px 0; /* Added 32px top margin for spacing above breadcrumbs */
    padding: 0;
    z-index: 0; /* Lower than header */
    display: block;
    clear: both;
    text-align: center; /* Center align wrapper content */
}

/* Breadcrumbs in page-title-area */
.page-title-area .breadcrumb-nav {
    padding: 0;
    margin: 0; /* Reset margins - will be controlled by order */
    order: 2; /* Breadcrumbs appear after heading visually */
    margin-top: 12px; /* Reduced spacing below heading */
    margin-bottom: 0; /* Remove bottom margin to reduce gap before work-area-4 */
}

/* breadcrumb-wrapper used in testimonials.php - needs same ordering */
.page-title-area .breadcrumb-wrapper {
    order: 2; /* Breadcrumbs appear after heading visually */
    margin: 0; /* Reset margins - will be controlled by order */
    margin-top: 12px; /* Reduced spacing below heading */
    margin-bottom: 0; /* Remove bottom margin to reduce gap before work-area-4 */
}

/* Breadcrumbs in work-area-4 */
.work-area-4 .breadcrumb-nav {
    padding: 0;
    margin: 0; /* Reset margins - will be controlled by order */
    order: 2; /* Breadcrumbs appear after heading visually */
    margin-top: 28px; /* Add spacing below heading */
}

/* CRITICAL: Hide breadcrumbs in header area - prevent them from appearing above logo */
/* Multiple selectors to catch any possible placement */
header .breadcrumb-nav,
header .breadcrumb-wrapper,
header .breadcrumb-list,
.header-area-2 .breadcrumb-nav,
.header-area-2 .breadcrumb-wrapper,
.header-area-2 .breadcrumb-list,
.header-main .breadcrumb-nav,
.header-main .breadcrumb-wrapper,
.header-main .breadcrumb-list,
.header-area-2__inner .breadcrumb-nav,
.header-area-2__inner .breadcrumb-wrapper,
.header-area-2__inner .breadcrumb-list,
.header__logo + .breadcrumb-nav,
.header__logo + .breadcrumb-wrapper,
.header__logo ~ .breadcrumb-nav,
.header__logo ~ .breadcrumb-wrapper,
.header__nav + .breadcrumb-nav,
.header__nav + .breadcrumb-wrapper,
.header__cta + .breadcrumb-nav,
.header__cta + .breadcrumb-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Ensure header stays above breadcrumbs - header is position:absolute */
header,
.header-area-2 {
    z-index: 999 !important;
}

.header-main {
    z-index: 999 !important;
    position: relative;
}

/* Work-area-4 also needs margin-top for absolute header */
.work-area-4 {
    margin-top: 100px !important;
    position: relative !important;
    z-index: 0 !important;
    top: auto !important;
}

/* Reduce gap when work-area-4 follows page-title-area */
.page-title-area + .work-area-4 {
    margin-top: 20px !important; /* Reduced gap when following hero section */
}

/* Force breadcrumbs to ONLY appear in hero sections */
.breadcrumb-nav:not(.page-title-area .breadcrumb-nav):not(.work-area-4 .breadcrumb-nav),
.breadcrumb-wrapper:not(.page-title-area .breadcrumb-wrapper):not(.work-area-4 .breadcrumb-wrapper) {
    display: none !important;
}

/* Ensure breadcrumbs ONLY appear inside hero sections */
.page-title-area .breadcrumb-wrapper,
.page-title-area .breadcrumb-nav,
.work-area-4 .breadcrumb-wrapper,
.work-area-4 .breadcrumb-nav {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* ============================================
   PAGE TITLE AREA (Hero Section Container)
   ============================================ */

/* CRITICAL: Header is position:absolute, so we need margin-top to account for header height */
.page-title-area {
    position: relative !important;
    margin-top: 100px !important; /* Account for absolute header height (80px header + 20px spacing) */
    padding-top: 0 !important;
    clear: both !important;
    overflow: visible;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    z-index: 0 !important; /* Lower than header */
    top: auto !important;
    left: auto !important;
    right: auto !important;
}

/* CRITICAL: Ensure page-title-area starts AFTER header */
main > .page-title-area {
    margin-top: 100px !important; /* Account for absolute header */
    padding-top: 0 !important;
    position: relative !important;
    top: auto !important;
    z-index: 0 !important; /* Lower than header */
}

.page-title-area-inner {
    padding-top: 0 !important; /* Removed extra padding since we have margin-top on parent */
    padding-bottom: 0 !important; /* Remove any padding-bottom from section-spacing-top */
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Override section-spacing-top padding when applied to page-title-area-inner */
.page-title-area-inner.section-spacing-top {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.page-title-area .container.large {
    overflow: visible;
    max-width: 100%;
    width: 100%;
}

/* Responsive adjustments for work-area-4 and page-title-area */
@media only screen and (max-width: 1199px) {
    .work-area-4 {
        margin-top: 90px !important;
    }
    
    .page-title-area + .work-area-4 {
        margin-top: 18px !important; /* Reduced gap on tablets */
    }
    
    .page-title-area,
    main > .page-title-area {
        margin-top: 90px !important; /* Smaller header on tablets */
    }
}

@media (max-width: 768px) {
    .work-area-4 {
        margin-top: 80px !important;
    }
    
    .page-title-area + .work-area-4 {
        margin-top: 16px !important; /* Reduced gap on mobile */
    }
    
    .page-title-area,
    main > .page-title-area {
        margin-top: 80px !important; /* Smaller header on mobile */
    }
}

@media (max-width: 480px) {
    .work-area-4 {
        margin-top: 70px !important;
    }
    
    .page-title-area + .work-area-4 {
        margin-top: 12px !important; /* Reduced gap on small mobile */
    }
    
    .page-title-area,
    main > .page-title-area {
        margin-top: 70px !important; /* Smaller header on small mobile */
    }
}

/* ============================================
   PAGE TITLE WRAPPER & TITLE
   ============================================ */

.page-title-wrapper {
    text-align: center;
    margin-top: 4rem; /* Add spacing above heading */
    overflow: visible;
    order: 1; /* Heading appears first visually */
}

.page-title-wrapper .page-title {
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    font-family: var(--font_thunder);
    font-size: 22rem;
    font-weight: 600;
    line-height: 0.8;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/* Responsive page title sizes */
@media only screen and (max-width: 1919px) {
    .page-title-wrapper .page-title {
        font-size: 385px !important;
    }
}

@media only screen and (max-width: 1399px) {
    .page-title-wrapper .page-title {
        font-size: 325px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .page-title-wrapper .page-title {
        font-size: 265px !important;
    }
}

@media only screen and (max-width: 991px) {
    .page-title-wrapper {
        margin-bottom: 10px;
    }
    
    .page-title-wrapper .page-title {
        font-size: 185px !important;
    }
}

@media only screen and (max-width: 767px) {
    .page-title-wrapper .page-title {
        font-size: 125px !important;
    }
}

@media (max-width: 575px) {
    .page-title-wrapper .page-title {
        font-size: 90px !important;
    }
}

/* ============================================
   WORK AREA 4 (Portfolio Hero Sections)
   ============================================ */

/* Our-works: single-line main heading from 15" laptop and up */
@media (min-width: 1366px) {
    body:has(.work-area-4) .page-title-wrapper .page-title {
        white-space: nowrap;
        font-size: min(20vw, 280px) !important;
    }
    body:has(.work-area-4) .work-area-4 .section-subtitle {
        white-space: nowrap;
    }
}

/* Section subtitle SVG wavy underline – ensure visible in our-works */
.work-area-4 .subtitle-wrapper .section-subtitle {
    position: relative;
    padding-bottom: 14px;
    display: inline-block;
}

.work-area-4 .subtitle-wrapper .section-subtitle svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 7px;
    display: block;
    pointer-events: none;
}

.work-area-4 .section-header .subtitle-wrapper {
    overflow: visible;
}

/* Main page title SVG wavy underline (our-works) */
body:has(.work-area-4) .page-title-wrapper .page-title .page-title-inner {
    position: relative;
    padding-bottom: 14px;
    display: inline-block;
}

body:has(.work-area-4) .page-title-wrapper .page-title .page-title-inner svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 7px;
    display: block;
    pointer-events: none;
}

body:has(.work-area-4) .page-title-wrapper .page-title .svg-elem-1 {
    -webkit-animation: animate-svg-stroke-1 5s ease-in-out 0s both infinite;
    animation: animate-svg-stroke-1 5s ease-in-out 0s both infinite;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .page-title-area .breadcrumb-nav,
    .work-area-4 .breadcrumb-nav {
        margin-top: 10px; /* Reduced spacing below heading on mobile */
        margin-bottom: 0; /* Remove bottom margin to reduce gap */
    }
    
    /* breadcrumb-wrapper used in testimonials.php */
    .page-title-area .breadcrumb-wrapper,
    .work-area-4 .breadcrumb-wrapper {
        margin: 24px 0 0 0; /* Reduced top margin on mobile */
    }
    
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .breadcrumb-separator {
        margin: 0 8px;
        font-size: 10px;
    }
    
    .page-title-area,
    main > .page-title-area {
        margin-top: 80px !important; /* Smaller header on mobile */
    }
    
    .page-title-wrapper {
        margin-top: 30px; /* Reduced top spacing on mobile */
    }
}

@media (max-width: 480px) {
    .page-title-area .breadcrumb-nav,
    .work-area-4 .breadcrumb-nav {
        margin-top: 8px; /* Reduced spacing below heading on small mobile */
        margin-bottom: 0; /* Remove bottom margin to reduce gap */
    }
    
    /* breadcrumb-wrapper used in testimonials.php */
    .page-title-area .breadcrumb-wrapper,
    .work-area-4 .breadcrumb-wrapper {
        margin-top: 8px; /* Reduced spacing below heading on small mobile */
        margin-bottom: 0; /* Remove bottom margin to reduce gap */
    }
    
    .breadcrumb-list {
        font-size: 11px;
    }
    
    .page-title-area,
    main > .page-title-area {
        margin-top: 70px !important; /* Smaller header on small mobile */
    }
    
    .page-title-wrapper {
        margin-top: 24px; /* Reduced top spacing on small mobile */
        margin-bottom: 8px; /* Reduced gap before breadcrumbs on small mobile */
    }
}
