/* ========================================
   ABOUT PAGE STYLES
======================================== */

/* Our Story */
.our-story {
    padding: 80px 0;
    background: var(--white);
}

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

.story-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.story-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.story-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
    color: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.4);
}

.badge-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.badge-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.story-content h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.story-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.story-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.value-item {
    padding: 25px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.value-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.value-item :is(h3, h4) {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

/* Why Choose Us (the HTML uses .why-choose-us) */
.why-choose,
.why-choose-us {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.feature-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-card-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Our Values */
.our-values {
    padding: 80px 0;
    background: var(--white);
}

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

.value-card {
    padding: 40px 30px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--light-accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.value-number {
    font-size: 64px;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 15px;
}

.value-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Service Areas */
.service-areas {
    padding: 80px 0;
    background: var(--light-bg);
}

/* Map Container: map with a frosted card in the corner (same as the home page) */
.map-container {
    position: relative;
    width: 100%;
    height: 460px;
    margin-bottom: 32px;
    overflow: hidden;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-xl);
    background: var(--paper);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.4) contrast(1.05);
}

.map-overlay {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    background: rgba(245, 246, 244, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 24px 50px -24px rgba(23, 19, 15, 0.45);
    color: var(--graphite);
    text-decoration: none;
    transition: transform var(--dur) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .map-overlay:hover {
        transform: translateY(-3px);
    }
}

.map-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.map-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
}

.map-details h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.map-details p {
    color: var(--slate);
    margin-bottom: 8px;
}

.map-cta {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--red-deep);
}

.areas-note {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
}

.areas-note p {
    font-size: 18px;
    color: var(--text-dark);
}

.areas-note a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

.areas-note a:hover {
    color: var(--light-accent);
}

/* Certifications */
.certifications {
    padding: 80px 0;
    background: var(--white);
}

.cert-content {
    max-width: 900px;
    margin: 0 auto;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.cert-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: var(--transition);
}

.cert-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.cert-check {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--light-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}

.cert-item h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cert-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

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

    .story-image img {
        height: 500px;
    }

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

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

    .cert-list {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
    }

    .map-info {
        gap: 15px;
    }

    .map-icon {
        font-size: 36px;
    }

    .map-details h3 {
        font-size: 20px;
    }

    .map-details p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .story-image img {
        height: 400px;
    }

    .story-badge {
        bottom: 20px;
        right: 20px;
        padding: 20px 25px;
    }

    .badge-number {
        font-size: 36px;
    }

    .badge-text {
        font-size: 12px;
    }

    .story-content h2 {
        font-size: 32px;
    }

    .story-values {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-icon {
        width: 70px;
        height: 70px;
    }

    .feature-card-icon svg {
        width: 35px;
        height: 35px;
    }

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

    .value-number {
        font-size: 48px;
    }

}

@media (max-width: 480px) {
    .story-image img {
        height: 300px;
    }

    .story-content h2 {
        font-size: 28px;
    }

    .story-content p {
        font-size: 15px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .map-container {
        height: 320px;
        border-radius: 12px;
    }

    .map-overlay {
        padding: 20px;
    }

    .map-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .map-icon {
        font-size: 28px;
    }

    .map-details h3 {
        font-size: 18px;
    }

    .map-details p {
        font-size: 13px;
    }

    .map-cta {
        font-size: 12px;
    }

    .areas-note {
        padding: 20px;
    }

    .areas-note p {
        font-size: 15px;
    }
}
