/* About Page Specific Styles */

/* Hero Section */
.about-hero {
    padding-left: 20px;
    padding-right: 20px;
    /* Extra vertical padding for content-rich hero (adds to .hero-fullbleed base) */
    /* override with extra padding for desktop only */
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
}

@media (max-width: 1024px) {
    .about-hero {
        padding-top: calc(var(--header-height-mobile) + 60px);
        padding-bottom: 60px;
    }
}


.about-hero h1 {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-image-wrapper {
    max-width: 320px;
    margin: 0 auto 25px;
}

.hero-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    /* animation: float 6s ease-in-out infinite;*/
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-intro {
    font-size: clamp(18px, 2.5vw, 22px);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.95;
}

/* About Sections */
.about-section {
    position: relative;
}

/* About Cards */
.about-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

/* When card has pre-fade, include fade transitions along with hover box-shadow */
.about-card.pre-fade {
    transition: box-shadow 0.3s ease, opacity 0.8s ease-out, transform 0.8s ease-out;
}

/*
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
*/

.bg-tan .about-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-blue), #00a8d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 140, 188, 0.3);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
}

.about-card h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.about-card p {
    font-size: clamp(15px, 2.5vw, 18px);
    line-height: 1.8;
    color: var(--dark-grey);
    opacity: 0.85;
}

/* Section Illustrations - Our Legacy & Our Mission */
.section-illustration {
    max-width: 280px;
    margin: 0 auto 25px;
}

.section-illustration img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.1));
}

/* CTA Section Illustration - Join Our Journey */
.cta-illustration {
    max-width: 320px;
    margin: 30px auto;
}

.cta-illustration img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .section-illustration {
        max-width: 200px;
    }

    .cta-illustration {
        max-width: 240px;
        margin: 25px auto;
    }
}

@media (max-width: 480px) {
    .section-illustration {
        max-width: 160px;
        margin-bottom: 20px;
    }

    .cta-illustration {
        max-width: 200px;
        margin: 20px auto;
    }
}



/* Why Choose Us - Text + Image Layout */
.why-choose-content {
    display: flex;
    align-items: flex-start;
    /* Align from top on desktop */
    gap: 40px;
    text-align: left;
    /* Justified text on desktop */
}

/* Wider card for Why Choose Us section */
.about-card.wide {
    max-width: 950px;
}

.about-card.wide h2 {
    margin-bottom: 28px;
    /* Larger gap after title */
}

.why-choose-text {
    flex: 1;
}

.why-choose-text p {
    margin: 0;
}

.why-choose-image {
    flex: 0 0 auto;
    max-width: 320px;
}

.why-choose-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .why-choose-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .why-choose-image {
        max-width: 200px;
        order: -1;
        margin: 0 auto;
        /* Image appears first on mobile, centered */
    }
}

/* CTA Section */
/* Staggered fade-in delays for CTA section */
.cta-delay-1 {
    transition-delay: 0.1s !important;
}

.cta-delay-2 {
    transition-delay: 0.3s !important;
    transition-duration: 1s !important;
}

.about-cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 400;
    margin-bottom: 30px;
}

.cta-content {
    padding: 20px 0;
}

.cta-text {
    font-size: clamp(18px, 2.5vw, 22px);
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.7;
    opacity: 0.95;
}

.contact-text {
    font-size: 16px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.contact-text a {
    color: var(--accent-tan);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s;
}

.contact-text a:hover {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* hero padding handled by .hero-fullbleed in style.css */

    .hero-image-wrapper {
        max-width: 220px;
        margin-bottom: 30px;
    }

    .about-card {
        padding: 40px 25px;
        border-radius: 16px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 28px;
        height: 28px;
    }

    .about-section.section-padding {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        margin-bottom: 30px;
    }

    .hero-image-wrapper {
        max-width: 180px;
    }

    .about-card {
        padding: 30px 20px;
    }

    .about-card h2 {
        font-size: 24px;
    }

    .about-card p {
        font-size: 16px;
    }
}