/* ============================================================
   ABOUT PAGE — content styles
   Header, mobile menu and footer come from s-a-form.css;
   hover effects and navbar behaviors from universal-styles.css
   ============================================================ */

.about-main {
    background-color: #ffffff;
    padding: 0;
}

/* Override the generic centered h2 from s-a-form.css */
.about-main h2 {
    font-size: 28px;
    line-height: 1.3;
    text-align: left;
    color: #11554f;
}

/* ── HERO ───────────────────────────────────────────────────── */
.about-hero {
    background: linear-gradient(160deg, #f0f9ec 0%, #ffffff 70%);
    padding: 5em 1em 4em;
}
.about-hero-container {
    max-width: 820px;
    text-align: center;
}
.about-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-green, #11554f);
    background: #e3efdd;
    border-radius: 20px;
    padding: 6px 18px;
    margin-bottom: 1.4em;
}
.about-hero h1 {
    font-size: 40px;
    line-height: 1.2;
    color: #11554f;
    margin-bottom: 0.5em;
}
.about-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #5D5A88;
    max-width: 640px;
    margin: 0 auto;
}

/* ── STORY ──────────────────────────────────────────────────── */
.about-story {
    padding: 4em 1em;
}
.about-story-container {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5em;
    align-items: center;
}
.story-text {
    flex: 1;
}
.story-text h2 {
    margin-bottom: 0.8em;
}
.story-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #5D5A88;
    margin-bottom: 1.2em;
}
.story-text a {
    color: var(--accent-green, #11554f);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--primary-green, #6ea659);
    text-underline-offset: 3px;
    transition: color var(--transition-base);
}
.story-text a:hover {
    color: var(--primary-green, #6ea659);
}
.story-img {
    flex: 1;
    display: flex;
    justify-content: center;
}
.story-img img {
    width: 100%;
    max-width: 440px;
}

/* ── VISION & MISSION ───────────────────────────────────────── */
.vision-mission-section {
    padding: 1em 1em 4em;
}
.vm-container {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}
.vm-card {
    flex: 1;
    border-radius: 20px;
    padding: 2.4em 2em;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-bounce),
                box-shadow var(--transition-base);
    cursor: default;
}
.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px var(--shadow-green),
                0 4px 12px var(--shadow-soft);
}
.vm-vision {
    background: linear-gradient(145deg, #dcf1d2, #f0f9ec);
}
.vm-mission {
    background: linear-gradient(145deg, #EFF1F9, #f8f9fd);
}
.vm-card h2 {
    margin-bottom: 0.7em;
}
.vm-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #5D5A88;
}

/* ── WHY CHOOSE EPIC ────────────────────────────────────────── */
.why-epic {
    background-color: #f0f9ec;
    padding: 4em 1em;
}
.why-container {
    max-width: 1060px;
    margin: 0 auto;
}
.why-container > h2 {
    text-align: center;
    margin-bottom: 1.6em;
}
.why-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}
.why-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.8em 1.6em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-bounce),
                box-shadow var(--transition-base);
    cursor: default;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px var(--shadow-green),
                0 4px 12px var(--shadow-soft);
}
.why-num {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-green, #6ea659);
    margin-bottom: 0.8em;
}
.why-card h3 {
    text-align: left;
    font-size: 18px;
    line-height: 1.4;
    color: #11554f;
    margin-bottom: 0.6em;
    letter-spacing: 0;
}
.why-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #5D5A88;
}

/* ── GET IN TOUCH ───────────────────────────────────────────── */
.about-contact {
    padding: 4em 1em 1em;
}
.contact-container {
    max-width: 1060px;
    margin: 0 auto;
}
.contact-container > h2 {
    text-align: center;
    margin-bottom: 1.6em;
}
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}
.contact-card {
    display: block;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 2em 1.5em;
    cursor: pointer;
    transition: transform var(--transition-bounce),
                box-shadow var(--transition-base);
}
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px var(--shadow-green);
}
.contact-card img {
    width: 44px;
    margin-bottom: 0.8em;
}
.contact-card h3 {
    font-size: 17px;
    line-height: 1.4;
    color: #11554f;
    margin-bottom: 0.6em;
    letter-spacing: 0;
}
.contact-card p {
    margin: 0.3em 0;
    color: #5D5A88;
    font-size: 15px;
}
a.contact-card p {
    transition: color var(--transition-base);
}
a.contact-card:hover p {
    color: var(--primary-green, #6ea659);
}
.contact-card a {
    font-size: 15px;
    color: #5D5A88;
    transition: color var(--transition-base);
}
.contact-card a:hover {
    color: var(--primary-green, #6ea659);
}

/* ── OUR TEAM (markup shared with home page) ────────────────── */
.our-team {
    padding: 2em 0;
}
.our-team-container {
    width: 96%;
    min-width: 320px;
    margin: 2em auto;
}
.our-team-tittle {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    padding: 12px 36px;
    color: #11554f;
    background-color: #ffffff;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
    margin: 1em auto 2em;
}
.team-members-card-container {
    background-color: #F7F7F7;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em 0;
}
.card-rows {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.team-card-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    width: 88vw;
    max-width: 440px;
    margin: 10px auto;
}
.team-card-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s ease;
    pointer-events: none;
}
.team-card-wrapper:hover img {
    transform: scale(1.06);
    filter: brightness(0.75);
}
.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top,
        rgba(10, 51, 47, 0.92) 0%,
        rgba(10, 51, 47, 0.55) 60%,
        transparent 100%);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2em 1em;
    pointer-events: none;
}
.team-card-wrapper:hover .team-card-overlay {
    transform: translateY(0);
}
.team-card-overlay .overlay-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}
.team-card-overlay .overlay-role {
    color: var(--primary-green, #6ea659);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.18s, transform 0.35s ease 0.18s;
}
.team-card-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-green, #6ea659);
    transition: width 0.4s ease 0.05s;
}
.team-card-wrapper:hover .team-card-overlay::before {
    width: 100%;
}
.team-card-wrapper:hover .team-card-overlay .overlay-name,
.team-card-wrapper:hover .team-card-overlay .overlay-role {
    opacity: 1;
    transform: translateY(0);
}

/* ── CTA ────────────────────────────────────────────────────── */
.call-to-action {
    padding: 4em 1em 5em;
}
.about-cta-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(160deg, #f0f9ec, #ffffff);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3em 1.5em;
}
.about-cta-container h2 {
    text-align: center;
    margin-bottom: 0.6em;
}
.about-cta-container p {
    font-size: 16px;
    line-height: 1.7;
    color: #5D5A88;
    max-width: 520px;
    margin: 0 auto 1.8em;
}
.cta-enquire-btn {
    background: var(--primary-green, #6ea659);
    border-radius: 14px;
    padding: 12px 26px;
    width: fit-content;
    margin: 0 auto;
}
.cta-enquire-btn span {
    color: #ffffff;
    font-weight: 600;
    margin-right: 8px;
    text-wrap: nowrap;
}
.cta-enquire-btn img {
    width: 18px;
}

/* ── LARGER SCREENS ─────────────────────────────────────────── */
@media only screen and (min-width: 600px) {
    .card-rows {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
        width: 90%;
    }
    .team-card-wrapper {
        width: 44%;
        margin: 12px 0;
    }
}
@media only screen and (min-width: 900px) {
    .about-hero h1 {
        font-size: 52px;
    }
    .about-story-container {
        flex-direction: row;
    }
    .vm-container {
        flex-direction: row;
    }
    .why-cards {
        grid-template-columns: 1fr 1fr;
    }
    .contact-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media only screen and (min-width: 1280px) {
    .team-members-card-container {
        width: 62vw;
        margin: 0 auto;
    }
    .team-card-overlay .overlay-name { font-size: 17px; }
    .team-card-overlay .overlay-role { font-size: 13px; }
}
