/* =============================================================
   home.css — Avon Alloys Home Page styles
   Loaded only on index.php via $page_stylesheet
   Load order: bootstrap → all.min → main.css → dark.css → home.css
   ============================================================= */

/* ── Contact CTA card — blue brand colour ── */
.contact-area .contact-cta-wrap { background: #1B3F8A !important; }
.contact-area .contact-cta-wrap .contact-cta .title { color: #fff !important; }
.contact-area .contact-cta-wrap .contact-cta .text  { color: #fff !important; }

/* ── Quality heading — responsive font + constrained width ── */
#quality .section-title .title {
    font-size: clamp(26px, 3.5vw, 46px);
    max-width: 760px;
}
#quality .section-title .text {
    max-width: 680px;
    opacity: .75;
    font-size: 16px;
    line-height: 1.75;
}

/* ── Brand section — remove excessive whitespace ── */
.brand-area-one .brand-wrapper { padding-top: 40px !important; padding-bottom: 60px !important; }
.brand-area-one .marquee-wrap  { margin-bottom: 0 !important; }

/* ── Brand/clients marquee — compact cells, smooth infinite scroll ── */
.brand-area-one .brand-logo {
    flex: 0 0 auto !important;
    width: 150px !important;
    padding: 18px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.brand-area-one .brand-logo img {
    height: 36px !important;
    width: auto !important;
    max-width: 110px !important;
    object-fit: contain !important;
    mix-blend-mode: screen;
    opacity: 0.85;
}

/* =============================================================
   SITE-HERO — Full-screen video background hero
   ============================================================= */

.site-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    background: #080c14;
}

/* Media wrapper */
.site-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.site-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@media (prefers-reduced-motion: reduce) {
    .site-hero__video { display: none; }
    .site-hero__media { background-image: var(--hero-poster); background-size: cover; background-position: center; }
}

/* Dark gradient overlay */
.site-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        108deg,
        rgba(4, 10, 22, 0.90) 0%,
        rgba(4, 10, 22, 0.62) 48%,
        rgba(4, 10, 22, 0.28) 100%
    );
}

/* Decorative vertical lines */
.site-hero__vlines {
    position: absolute;
    top: 0;
    right: 90px;
    height: 100%;
    z-index: 2;
    display: flex;
    gap: 28px;
    pointer-events: none;
}
.site-hero__vline {
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255,255,255,0.07) 35%,
        rgba(255,255,255,0.07) 65%,
        transparent 100%
    );
}

/* Content area */
.site-hero__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    padding-bottom: 90px;
}
.site-hero__inner {
    max-width: 860px;
}

/* Label */
.site-hero__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-hero__label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--hero-accent, #2B7ED4);
    flex-shrink: 0;
}

/* Main title */
.site-hero__title {
    font-size: clamp(52px, 8.5vw, 115px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0 0 20px;
}
.site-hero__title--accent {
    display: block;
    color: var(--hero-accent, #2B7ED4);
}
.site-hero__title--light {
    display: block;
    color: #ffffff;
}

/* Company name */
.site-hero__company {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-hero__company::after {
    content: '';
    display: inline-block;
    width: 48px;
    height: 2px;
    background: rgba(255,255,255,0.22);
}

/* Description */
.site-hero__desc {
    font-size: 15px;
    line-height: 1.78;
    color: rgba(255,255,255,0.72);
    max-width: 560px;
    margin: 0 0 30px;
}

/* Pills */
.site-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.site-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.04);
}
.site-hero__pill:hover,
.site-hero__pill:focus {
    background: var(--hero-accent, #2B7ED4);
    border-color: var(--hero-accent, #2B7ED4);
    color: #fff;
}

/* Scroll hint */
.site-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.38);
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.site-hero__scroll-line {
    width: 1px;
    height: 38px;
    background: linear-gradient(to bottom, var(--hero-accent, #2B7ED4), transparent);
    animation: heroScrollPulse 2s ease-in-out infinite;
}
@keyframes heroScrollPulse {
    0%, 100% { opacity: 1;   transform: scaleY(1); }
    50%       { opacity: 0.4; transform: scaleY(0.5); }
}

/* Page-load entrance — GSAP animates these in */
.site-hero__label,
.site-hero__title,
.site-hero__company,
.site-hero__desc,
.site-hero__pills {
    opacity: 0;
}

/* ── Hero responsive ── */
@media (max-width: 991px) {
    .site-hero__content  { padding-bottom: 110px; }
    .site-hero__vlines   { display: none; }
}
@media (max-width: 767px) {
    .site-hero         { height: 100svh; min-height: 600px; }
    .site-hero__title  { font-size: 50px; letter-spacing: -1px; }
    .site-hero__content{ padding-bottom: 90px; }
    .site-hero__scroll { display: none; }
}
@media (max-width: 480px) {
    .site-hero__title   { font-size: 40px; }
    .site-hero__company { font-size: 11px; letter-spacing: 3px; }
}

/* =============================================================
   Quality section — card layout + step badge
   ============================================================= */

/* Step badge pill */
.quality-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2B7ED4;
    margin-bottom: 18px;
}
#quality .card-single-item  { align-items: stretch; }
#quality .card-text-content { overflow: hidden; flex-shrink: 0; width: 60px; }
#quality .card-text-content .card-content { overflow: hidden; max-height: 100%; }
#quality .project-image img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Quality keywords divider bar */
.quality-keywords-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 32px 0 48px;
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,0.10);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.quality-keywords-bar span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.quality-keywords-bar .sep {
    font-size: 5px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0;
}

/* =============================================================
   Mobile fixes
   ============================================================= */
@media (max-width: 767px) {
    /* About section — reduce padding, fix parallax image gaps */
    #about .about-wrapper         { padding-top: 48px !important; padding-bottom: 48px !important; }
    #about .about-video           { flex-direction: column !important; gap: 16px !important; }
    #about .about-video .thumb    { height: auto !important; width: 100% !important; }
    #about .about-video .thumb img {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Hide video play button on mobile — image only */
    #about .video-btn.video-popup { display: none !important; }

    /* Quality section — kill GSAP scroll-pin gaps */
    #quality .project-card-wrapper { background: transparent !important; }
    #quality .card-single-item {
        transform: none !important;
        opacity: 1 !important;
        position: static !important;
        margin-bottom: 24px !important;
    }
    #quality .card-text-content { width: auto !important; }
}

/* ── Vijay Gupta founder overlay — Why Choose Us section ────────── */
.avon-founder-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.avon-founder-thumb img {
    width: 100%;
    height: 715px;
    display: block;
    object-fit: cover;
    object-position: top center;
}
.avon-founder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px 18px 16px;
    border-top: 2px solid rgba(212, 160, 23, 0.55);
}
.avon-founder-overlay__name {
    font-size: 14px;
    font-weight: 700;
    color: #D4A017;
    margin: 0 0 3px;
    line-height: 1.3;
}
.avon-founder-overlay__title {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 9px;
    font-weight: 500;
}
.avon-founder-overlay__line {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.58);
    margin: 0 0 3px;
}
.avon-founder-overlay__line:last-child { margin: 0; }
