/* ==========================================================================
   JAD GROUP -- ABOUT PAGES STYLES
   Styles for: who-we-are, objectives, policies, team pages.
   Shared styles (reset, variables, nav, footer, buttons) live in global.css.
   ========================================================================== */


/* ==========================================================================
   1. COMPANY OVERVIEW
   ========================================================================== */

.company-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.company-overview-text h2 {
    margin-bottom: 20px;
}

.company-overview-text p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

.company-overview-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.company-overview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.company-overview-img::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 100px;
    height: 100px;
    border-right: 4px solid var(--gold);
    border-bottom: 4px solid var(--gold);
    border-radius: 0 0 12px 0;
    pointer-events: none;
}


/* ==========================================================================
   2. TIMELINE
   ========================================================================== */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--gold) 0%,
        rgba(200, 150, 62, 0.3) 100%
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.2);
    z-index: 1;
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}


/* ==========================================================================
   3. ENTITIES GRID
   ========================================================================== */

.entities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.entity-card {
    background: var(--navy);
    padding: 40px;
    border-radius: 12px;
    border-top: 3px solid var(--gold);
    transition: all var(--transition);
}

.entity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.entity-card h3 {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.entity-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.entity-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entity-services li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 18px;
    position: relative;
}

.entity-services li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}


/* ==========================================================================
   4. VALUES GRID
   ========================================================================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    transition: all var(--transition);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-size: 1.5rem;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}


/* ==========================================================================
   5. CEO QUOTE
   ========================================================================== */

.ceo-quote {
    background: var(--navy);
    padding: 80px 0;
}

.ceo-quote-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 56px;
    align-items: center;
}

.ceo-quote-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(200, 150, 62, 0.3);
    flex-shrink: 0;
}

.ceo-quote-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-quote-content blockquote {
    position: relative;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 28px;
    padding-left: 48px;
}

.ceo-quote-content blockquote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -12px;
    font-size: 5rem;
    color: var(--gold);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.6;
}

.ceo-info .name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.ceo-info .title {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
}


/* ==========================================================================
   6. POLICIES
   ========================================================================== */

.policies-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.policy-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.policy-section:nth-child(even) {
    direction: rtl;
}

.policy-section:nth-child(even) > * {
    direction: ltr;
}

.policy-section-img {
    border-radius: 12px;
    overflow: hidden;
}

.policy-section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.policy-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-sm);
}

.policy-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.policy-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}

.policy-card ul {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-card ul li {
    font-size: 0.85rem;
    color: var(--text-body);
    padding-left: 20px;
    position: relative;
}

.policy-card ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}


/* ==========================================================================
   7. TEAM GRID
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--grey-light);
    transition: all var(--transition);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.team-card-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--grey-light);
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition);
}

.team-card:hover .team-card-img img {
    filter: grayscale(0%);
}

.team-card-info {
    padding: 24px;
}

.team-card-info .name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.team-card-info .role {
    font-size: 0.85rem;
    color: var(--grey-dark);
}

.team-card-info .social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.team-card-info .social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--off-white);
    color: var(--grey-dark);
    font-size: 0.8rem;
    transition: all var(--transition);
}

.team-card-info .social-links a:hover {
    background: var(--gold);
    color: var(--white);
}


/* ==========================================================================
   8. RESPONSIVE -- ABOUT PAGES
   ========================================================================== */

/* --- 1024px Breakpoint --- */
@media (max-width: 1024px) {

    .company-overview {
        gap: 40px;
    }

    .entities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceo-quote-grid {
        gap: 40px;
    }

    .policy-section {
        gap: 32px;
    }
}

/* --- 768px Breakpoint --- */
@media (max-width: 768px) {

    .company-overview {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .company-overview-img {
        order: -1;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-item::before {
        left: -24px;
        width: 12px;
        height: 12px;
    }

    .entities-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .entity-card {
        padding: 32px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .value-card {
        padding: 32px;
    }

    .ceo-quote {
        padding: 56px 0;
    }

    .ceo-quote-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .ceo-quote-photo {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .ceo-quote-content blockquote {
        font-size: 1.05rem;
        padding-left: 0;
        text-align: center;
    }

    .ceo-quote-content blockquote::before {
        position: static;
        display: block;
        font-size: 3.5rem;
        margin-bottom: 8px;
    }

    .ceo-info {
        text-align: center;
    }

    .policy-section,
    .policy-section:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .policy-section-img {
        order: -1;
    }

    .policy-card {
        padding: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-card-img {
        aspect-ratio: 4 / 3;
    }
}

/* --- 480px Breakpoint --- */
@media (max-width: 480px) {

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item::before {
        left: -20px;
        width: 10px;
        height: 10px;
    }

    .timeline-item {
        margin-bottom: 36px;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .entity-card {
        padding: 24px;
    }

    .value-card {
        padding: 24px;
    }

    .value-card-icon {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .policy-card {
        padding: 24px;
    }

    .team-card-info {
        padding: 20px;
    }

    .team-value-pill {
        padding: 12px 18px;
        font-size: 0.8rem;
    }
}


/* ==========================================================================
   TEAM VALUE PILL BADGES
   ========================================================================== */

.team-value-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--off-white);
    border-radius: 50px;
    border: 1px solid var(--grey-light);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}
