/* ============================================================
   Frontpage redesign styles
   ============================================================ */

/* ---------- Global overrides for the frontpage ---------- */
body {
    background-color: #f5f5f0;
}

body .our-story {
    background-color: #f5f5f0;
}

section h2 {
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 0.02em;
}

.frontpage-header {
    background-color: #f5f5f0;
    box-shadow: none;
    padding: 20px 0;
}

.frontpage-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frontpage-header .logo img {
    filter: brightness(0) saturate(100%) invert(14%) sepia(93%) saturate(3015%) hue-rotate(325deg) brightness(68%) contrast(118%);
    max-height: 55px;
}

.frontpage-header .main-nav ul li a {
    position: relative;
    background-color: transparent !important;
    border-radius: 0;
    color: #1a1a1a;
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.frontpage-header .main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.frontpage-header .main-nav ul li a:hover::after,
.frontpage-header .main-nav ul li a.active::after {
    width: 80%;
}

/* ---------- Hero ---------- */
.frontpage-hero {
    position: relative;
    background-color: #f5f5f0;
    color: #1a1a1a;
    padding: 60px 0 80px;
    overflow: visible;
    height: auto;
    min-height: auto;
}

.frontpage-hero .container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-headline {
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 32px;
    color: #1a1a1a;
}

.headline-line {
    display: block;
}

.headline-line.accent {
    color: var(--primary-color);
}

.hero-description {
    font-family: 'Noto Nastaliq Urdu', 'jameel-noori-nastaleeq', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 480px;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image:hover img {
    transform: scale(1.05);
}

/* ---------- Stats strip ---------- */
.stats-strip {
    background-color: #f5f5f0;
    padding: 60px 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.stats-strip .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
    padding: 20px 30px;
    position: relative;
    transition: transform 0.35s ease;
    cursor: default;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.35s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
}

.stat-item:hover::after {
    width: 60px;
}

.stat-value {
    display: flex;
    align-items: flex-start;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number {
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-plus {
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 4px;
}

.stat-label {
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    text-transform: uppercase;
}

/* ---------- Business panels ---------- */
.business-panel {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.business-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.business-panel:hover::before {
    transform: scale(1.04);
}

.business-panel .panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    z-index: 1;
}

.business-panel .container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1300px;
}

.panel-content {
    display: flex;
    width: 100%;
}

.panel-text {
    color: #fff;
    max-width: 520px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.business-panel:hover .panel-text {
    transform: translateY(-6px);
}

.panel-text.left-aligned {
    margin-right: auto;
    text-align: left;
}

.panel-text.right-aligned {
    margin-left: auto;
    text-align: left;
}

.panel-text h2 {
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-align: left;
    margin-bottom: 24px;
    color: #fff;
}

.panel-text p {
    font-family: 'Noto Nastaliq Urdu', 'jameel-noori-nastaleeq', Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 28px;
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #fff;
}

.panel-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.agricultural-panel {
    background-image: url('../images/group/agricultural-panel.jpg');
}

.fmcg-panel {
    background-image: url('../images/group/fmcg-panel.jpg');
}

.distribution-panel {
    background-image: url('../images/distribution/2fbwdb7jtdrme0cq267rtsgs20.jpg');
}

.coverage-panel {
    background-image: url('../images/distribution/nt8hczfgb1rme0cr41k8d6bt9r.jpg');
}

.partner-panel {
    background-image: url('../images/distribution/zcv08t1f21rm80cr41pa313n60.jpg');
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        aspect-ratio: 16 / 9;
        max-width: 100%;
    }

    .panel-text.right-aligned {
        margin-left: 0;
    }

    .panel-text.left-aligned,
    .panel-text.right-aligned {
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .frontpage-header {
        padding: 15px 0;
    }

    .frontpage-header .container {
        justify-content: center;
        position: relative;
    }

    .frontpage-header .logo img {
        max-height: 45px;
    }

    .frontpage-hero {
        padding: 40px 0 50px;
    }

    .hero-headline {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .stats-strip {
        padding: 40px 0;
    }

    .stats-strip .container {
        flex-direction: column;
        gap: 30px;
    }

    .business-panel {
        min-height: 420px;
    }

    .panel-text h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.4rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-plus {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}
