/**
 * ESP About Pages Styles
 *
 * About, Mission, History, and Team pages for Equipment Solutions Parts
 */

/* Body Background */
.esp-about-body {
    background-color: #f7f7f7;
}

/* ========================================
   ROOT ABOUT PAGE - Category Cards
   ======================================== */

/* Page Header */
.esp-about-header {
    padding: 2.5rem 0;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.esp-about-header__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
}

.esp-about-header__description {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0;
    max-width: 48rem;
    line-height: 1.6;
}

/* Category Cards Section */
.esp-about-cards {
    padding: 3rem 0 4rem;
}

.esp-about-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .esp-about-cards__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Individual Card */
.esp-about-card {
    display: block;
    text-decoration: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.esp-about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.esp-about-card__image {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-color: #374151;
}

.esp-about-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: background 0.3s ease;
}

.esp-about-card:hover .esp-about-card__overlay {
    background: linear-gradient(to top, rgba(201, 162, 39, 0.9) 0%, rgba(201, 162, 39, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.esp-about-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   SUB-PAGES - Hero, Navigation, Content
   ======================================== */

/* Hero Banner */
.esp-about-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #374151;
}

.esp-about-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .esp-about-hero {
        height: 400px;
    }
}

/* Sub-Navigation */
.esp-about-subnav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
}

.esp-about-subnav__buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.esp-about-subnav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.esp-about-subnav__btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.esp-about-subnav__btn--active {
    background: #C9A227;
    color: #fff;
    border-color: #C9A227;
}

.esp-about-subnav__btn--active:hover {
    background: #b8931f;
    color: #fff;
}

/* Page Title Section */
.esp-about-title {
    padding: 3rem 0 2.5rem;
    background: #fff;
    text-align: center;
    border-bottom: 3px solid #C9A227;
}

.esp-about-title__heading {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    letter-spacing: 2.5px;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-transform: uppercase;
}

.esp-about-title__subtitle {
    font-size: 1.25rem;
    color: #C9A227;
    margin: 0.75rem 0 0;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.03em;
}

/* Main Content Area */
.esp-about-content {
    padding: 3.5rem 0 4rem;
}

.esp-about-content__body {
    max-width: 56rem;
    margin: 0 auto 3rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 3rem;
}

.esp-about-content__body:last-child {
    margin-bottom: 0;
}

.esp-about-content__wrapper {
    max-width: 56rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 3rem;
}

@media (max-width: 768px) {
    .esp-about-content__body {
        padding: 1.5rem;
        border-radius: 0;
        margin: 0 -1rem 2rem;
    }

    .esp-about-content__wrapper {
        padding: 1.5rem;
        border-radius: 0;
        margin: 0 -1rem;
    }
}

/* Content Typography */
.esp-about-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #C9A227;
    display: inline-block;
}

.esp-about-content h2:first-child {
    margin-top: 0;
}

/* Reset block display after h2 to ensure proper flow */
.esp-about-content h2 + p,
.esp-about-content h2 + div {
    clear: both;
}

.esp-about-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem;
}

.esp-about-content p {
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
    margin: 0 0 1.25rem;
}

.esp-about-content p:last-child {
    margin-bottom: 0;
}

.esp-about-content ul {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.esp-about-content li {
    font-size: 1rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.esp-about-content li:last-child {
    margin-bottom: 0;
}

.esp-about-content strong {
    color: #1f2937;
    font-weight: 600;
}

/* Lead/Intro Paragraph */
.esp-about-content__intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
}

/* ========================================
   MISSION PAGE - Four Pillars
   ======================================== */

.esp-about-pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0 1rem;
}

@media (min-width: 768px) {
    .esp-about-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.esp-about-pillar {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid #C9A227;
    box-shadow: none;
}

.esp-about-pillar h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.esp-about-pillar p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
}

/* ========================================
   HISTORY PAGE - Timeline
   ======================================== */

.esp-about-timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 0;
}

@media (min-width: 768px) {
    .esp-about-timeline {
        padding-left: 2rem;
        border-left: 3px solid #C9A227;
    }
}

.esp-about-timeline__item {
    position: relative;
    margin-bottom: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: none;
    box-shadow: none;
}

.esp-about-timeline__item:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .esp-about-timeline__item::before {
        content: '';
        position: absolute;
        left: -2.625rem;
        top: 1.5rem;
        width: 12px;
        height: 12px;
        background: #C9A227;
        border-radius: 50%;
        border: 3px solid #f7f7f7;
    }
}

.esp-about-timeline__year {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: #C9A227;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.esp-about-timeline__content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
}

.esp-about-timeline__content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 0.75rem;
}

.esp-about-timeline__content p:last-child {
    margin-bottom: 0;
}

/* Quote Block */
.esp-about-quote {
    margin: 2rem 0 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 0.5rem;
    text-align: center;
    border-left: 4px solid #C9A227;
}

.esp-about-quote blockquote {
    font-size: 1.125rem;
    font-weight: 500;
    font-style: italic;
    color: #C9A227;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .esp-about-quote blockquote {
        font-size: 1.25rem;
    }
}

/* ========================================
   TEAM PAGE
   ======================================== */

/* Team Section */
.esp-about-team-section {
    max-width: 56rem;
    margin: 0 auto 2.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem 2.5rem 2.5rem;
}

.esp-about-team-section:last-child {
    margin-bottom: 0;
}

.esp-about-team-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #C9A227;
    text-align: left;
    display: inline-block;
}

.esp-about-team-section__intro {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 1rem 0 1.5rem;
    text-align: left;
}

/* Role Cards (new Team page layout) */
.esp-about-team-roles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.esp-about-role-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #C9A227;
}

@media (min-width: 640px) {
    .esp-about-role-card {
        flex-direction: row;
        gap: 1.25rem;
        align-items: flex-start;
    }
}

.esp-about-role-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C9A227;
    border-radius: 0.375rem;
    color: #fff;
}

.esp-about-role-card__icon svg {
    width: 24px;
    height: 24px;
}

.esp-about-role-card__content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.375rem;
}

.esp-about-role-card__content p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #4b5563;
    margin: 0;
}

.esp-about-role-card__content em {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Highlighted Role Card */
.esp-about-role-card--highlight {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-left-color: #C9A227;
}

.esp-about-role-card--highlight .esp-about-role-card__icon {
    background: #C9A227;
    color: #fff;
}

.esp-about-role-card--highlight .esp-about-role-card__content h3 {
    color: #fff;
}

.esp-about-role-card--highlight .esp-about-role-card__content p {
    color: #d1d5db;
}

/* Team Contact CTA */
.esp-about-team-contact {
    max-width: 56rem;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 0.75rem;
    text-align: center;
}

.esp-about-team-contact p {
    font-size: 1rem;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.6;
}

.esp-about-team-contact a {
    color: #C9A227;
    font-weight: 600;
    text-decoration: none;
}

.esp-about-team-contact a:hover {
    color: #e5c547;
    text-decoration: underline;
}

/* Team Grid */
.esp-about-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .esp-about-team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .esp-about-team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Team Card */
.esp-about-team-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esp-about-team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.esp-about-team-card__image {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #e5e7eb;
    overflow: hidden;
}

.esp-about-team-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder for missing images */
.esp-about-team-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    height: 200px;
}

.esp-about-team-card__image--placeholder svg {
    width: 64px;
    height: 64px;
    color: #9ca3af;
}

.esp-about-team-card__info {
    padding: 1rem;
    text-align: center;
}

.esp-about-team-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.esp-about-team-card__title {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem;
}

.esp-about-team-card__contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.esp-about-team-card__email,
.esp-about-team-card__phone {
    font-size: 0.8125rem;
    color: #C9A227;
    text-decoration: none;
    transition: color 0.15s ease;
}

.esp-about-team-card__email:hover,
.esp-about-team-card__phone:hover {
    color: #b8931f;
    text-decoration: underline;
}

/* Team Content Wrapper (for team page) */
.esp-about-team-content {
    padding: 3rem 0 4rem;
}

.esp-about-team-content .esp-container {
    max-width: 80rem;
}

/* ========================================
   MOBILE ADJUSTMENTS
   ======================================== */

@media (max-width: 640px) {
    .esp-about-header {
        padding: 1.5rem 0;
    }

    .esp-about-header__title {
        font-size: 1.75rem;
    }

    .esp-about-header__description {
        font-size: 1rem;
    }

    .esp-about-cards {
        padding: 2rem 0 3rem;
    }

    .esp-about-card__image {
        height: 200px;
    }

    .esp-about-hero {
        height: 180px;
    }

    .esp-about-subnav__buttons {
        gap: 0.5rem;
    }

    .esp-about-subnav__btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .esp-about-title {
        padding: 2rem 0 1.5rem;
    }

    .esp-about-title__heading {
        font-size: 1.75rem;
    }

    .esp-about-title__subtitle {
        font-size: 1rem;
    }

    .esp-about-content {
        padding: 2rem 0 2.5rem;
    }

    .esp-about-content h2 {
        font-size: 1.125rem;
        margin: 1.75rem 0 0.75rem;
    }

    .esp-about-team-section {
        padding: 1.5rem;
        margin: 0 -1rem 2rem;
        border-radius: 0;
    }

    .esp-about-team-section__title {
        font-size: 1.125rem;
    }

    .esp-about-team-contact {
        margin: 0 -1rem;
        border-radius: 0;
        padding: 1.25rem 1.5rem;
    }

    .esp-about-role-card {
        padding: 1rem 1.25rem;
    }

    .esp-about-role-card__icon {
        width: 40px;
        height: 40px;
    }

    .esp-about-role-card__icon svg {
        width: 20px;
        height: 20px;
    }

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

    .esp-about-team-card__info {
        padding: 0.75rem;
    }

    .esp-about-team-card__name {
        font-size: 0.9375rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .esp-about-hero,
    .esp-about-subnav,
    .esp-header,
    .esp-footer,
    .esp-breadcrumbs,
    .esp-footer-cta {
        display: none !important;
    }

    .esp-about-content__wrapper {
        box-shadow: none;
        padding: 0;
    }

    .esp-about-team-card {
        box-shadow: none;
        border: 1px solid #e5e5e5;
    }
}
