/* ===============================================
   Pages Styles (About, Contact, Services)
   =============================================== */

.page-hero {
    margin-top: 4.5rem;
    min-height: 44vh;
    background-image: url('../../uploads/images/map-bg (1).jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero__overlay {
    min-height: inherit;
    display: grid;
    align-items: center;
    background: linear-gradient(120deg, rgba(3, 12, 35, 0.65), rgba(4, 120, 87, 0.45));
}

.page-hero__content {
    padding: 6rem 0 4rem;
}

.page-hero__label {
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.page-hero__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.page-hero__subtitle {
    margin: 1rem 0 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.about-section {
    width: 100%;
    padding: 4rem 0 2.5rem;
    background: #f8fafc;
}

.about-container {
    max-width: 1220px;
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 2.2rem;
    align-items: center;
}

.about-image {
    min-width: 0;
}

.about-img {
    width: 100%;
    border-radius: 1.35rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
    object-fit: cover;
    max-height: 520px;
}

.about-label {
    color: #0f7b45;
    font-weight: 700;
    letter-spacing: 0.13rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.about-heading {
    color: #111827;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.17;
    margin-bottom: 1rem;
}

.about-text {
    color: #4b5c70;
    font-size: 1.02rem;
    line-height: 1.86;
    margin-bottom: 0.9rem;
}

.mission-section--about {
    background: #f8fafc;
    padding: 0 0 4rem;
}

.mission-container--about {
    max-width: 1220px;
    display: grid;
    grid-template-columns: 1.05fr minmax(260px, 460px);
    gap: 1.2rem;
}

.mission-container--about .mission-text-block {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.8rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
}

.mission-container--about .mission-item + .mission-item {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e5e7eb;
}

.mission-container--about .mission-title {
    color: #0f7b45;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.45rem;
}

.mission-container--about .mission-text {
    color: #526173;
    line-height: 1.8;
}

.mission-container--about .mission-image {
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 320px;
}

.mission-container--about .mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-page {
    --contact-overlay: linear-gradient(120deg, rgba(3, 12, 35, 0.65), rgba(4, 120, 87, 0.45));
    --contact-radius-lg: 1.15rem;
    --contact-radius-md: 0.9rem;
    --contact-panel-shadow: 0 24px 50px rgba(2, 6, 23, 0.28);
    background: #f8fafc;
}

.contact-page__hero {
    margin-top: 4.5rem;
    min-height: 48vh;
    display: flex;
    align-items: stretch;
    background-image: url('../../uploads/images/map-bg (1).jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.contact-page__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 32, 22, 0.65), rgba(7, 50, 33, 0.75));
    z-index: 1;
}

.contact-page__hero-overlay {
    width: 100%;
    display: grid;
    align-items: center;
    background: transparent;
    position: relative;
    z-index: 2;
    min-height: inherit;
}

.contact-page__hero-content {
    width: 100%;
    padding: 6rem 0 4rem;
    color: #ffffff;
}

.contact-page__hero-label {
    font-size: 0.78rem;
    letter-spacing: 0.2rem;
    font-weight: 700;
    margin: 0 0 0.65rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.contact-page__hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
    color: #ffffff;
    font-weight: 700;
}

.contact-page__hero-subtitle {
    margin: 1.2rem 0 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.contact-page__content {
    width: min(92%, 1320px);
    margin: 2.5rem auto 3.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-auto-rows: 1fr;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    min-height: 480px;
}

.contact-card {
    background: #ffffff;
    height: 100%;
    display: flex;
}

.contact-card__inner {
    padding: 2.5rem 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card__label,
.contact-card__group-label {
    font-size: 0.75rem;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0;
    font-weight: 700;
}

.contact-card__title {
    margin: 0.8rem 0 0;
    font-size: clamp(1.65rem, 3.8vw, 2.35rem);
    line-height: 1.2;
    color: #111827;
}

.contact-card__divider {
    margin: 1.3rem 0 1.45rem;
    width: 68px;
    height: 3px;
    border-radius: 999px;
    background: #10b981;
}

.contact-card__group {
    margin-bottom: 1.2rem;
}

.contact-card__text {
    margin: 0.45rem 0 0;
    line-height: 1.72;
    color: #4b5563;
    font-size: 0.96rem;
}

.contact-card__text--address {
    display: flex;
    flex-direction: column;
}

.contact-card__link {
    color: #10b981;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
    color: #059669;
    border-color: #059669;
}

.contact-card__link--email {
    word-break: break-word;
}

.contact-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-card__socials {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 1.3rem;
}

.contact-card__social-link {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-card__social-link:hover,
.contact-card__social-link:focus-visible {
    transform: translateY(-2px);
    background: #10b981;
    color: #fff;
}

.contact-map {
    width: 100%;
    height: 100%;
    background: #dbeafe;
    overflow: hidden;
}

.contact-map__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-section {
    padding: 0 0 4rem;
    background: #f8fafc;
}

.contact-container {
    max-width: 1100px;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-label {
    color: #0f7b45;
    font-weight: 700;
    letter-spacing: 0.16rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.contact-heading {
    color: #111827;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.7rem;
}

.contact-description {
    color: #5a6c80;
    line-height: 1.8;
}

.alert {
    padding: 1.1rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert p {
    margin: 0 0 0.4rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 2.1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.93rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 0.88rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.65rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media screen and (max-width: 479px) {
    .contact-form .form-control {
        padding: 0.75rem 0.875rem;
        min-height: 44px;
        font-size: 1.05rem;
    }

    .contact-form label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .contact-form .form-group {
        margin-bottom: 1rem;
    }

    .contact-form textarea.form-control {
        min-height: 120px;
    }

    .contact-form .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===============================================
   About Team Section
   =============================================== */

.about-team-section {
    background: #f8fafc;
    padding: 0 0 4rem;
}

.about-team-container {
    max-width: 1220px;
}

.about-team-intro {
    margin-bottom: 1rem;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.about-team-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 0.85rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.about-team-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    overflow: hidden;
}

.about-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-team-name {
    margin: 0.75rem 0 0;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.35;
}

@media screen and (max-width: 1024px) {
    .about-team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 520px) {
    .about-team-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 145px;
}

.contact-form .btn {
    width: 100%;
    padding: 0.95rem 1rem;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form .btn:hover {
    background: #059669;
}

.contact-info {
    display: none;
}

[data-contact-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-contact-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.empty__page {
    min-height: 70vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 2rem;
}

.empty__page h1 {
    color: #111827;
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
}

.empty__page p {
    color: #64748b;
    margin-bottom: 1.3rem;
}

@media screen and (max-width: 1024px) {
    .about-container,
    .mission-container--about,
    .contact-page__content {
        grid-template-columns: 1fr;
    }

    .contact-map,
    .contact-map__iframe {
        min-height: 24rem;
    }
}

@media screen and (max-width: 680px) {
    .page-hero__content,
    .contact-page__hero-content {
        padding-top: 5.2rem;
        padding-bottom: 3.2rem;
    }

    .contact-card__inner,
    .contact-form-wrapper,
    .mission-container--about .mission-text-block {
        padding: 1.3rem 1.1rem;
    }

    .contact-card__grid {
        grid-template-columns: 1fr;
    }

    .contact-page__content {
        width: min(95%, 1240px);
        border-radius: var(--contact-radius-md);
        margin-bottom: 2rem;
    }
}

/* Extra-small screens (mobile phones < 480px) */
@media screen and (max-width: 479px) {
    .page-hero__content,
    .contact-page__hero-content {
        padding-top: 3rem;
        padding-bottom: 1.5rem;
    }

    .contact-card__inner,
    .contact-form-wrapper,
    .mission-container--about .mission-text-block {
        padding: 1rem 0.75rem;
    }

    .page-hero__content h1,
    .contact-page__hero-content h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .page-hero__content p,
    .contact-page__hero-content p {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }

    .contact-page__content {
        width: min(98%, 1240px);
        margin-bottom: 1rem;
    }

    .mission-container--about {
        grid-template-columns: 1fr;
    }
}
