/* ---------------------------------------------------------------------------
   About us, to the approved mock-up: a centred hero over the landmarks, the
   why-we-built-it story card, the how-we-work grid, the team, and a closing
   questions card.

   Colours come from the shared --care-* and --sihatuna-* tokens so the page
   follows the visitor's theme. The hero is the one place the landmarks are
   allowed real presence — near half strength on the start side, dissolving
   long before the headline — where the other pages keep them to a whisper.
   --------------------------------------------------------------------------- */

/* ----- Hero --------------------------------------------------------------- */

.about-hero {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: grid;
    place-items: center;
    padding: 72px 0;
    border-block-end: 1px solid var(--care-border, #e4ece8);
    background:
        radial-gradient(circle at 82% 12%,
            color-mix(in srgb, var(--care-secondary, #4aa0d8) 8%, transparent),
            transparent 28%),
        linear-gradient(90deg,
            color-mix(in srgb, var(--care-surface, #edf6f2) 68%, transparent),
            color-mix(in srgb, var(--care-surface-soft, #f7fbfe) 97%, transparent) 58%,
            color-mix(in srgb, var(--care-surface-soft, #f7fbfe) 90%, transparent)),
        var(--care-surface, #edf6f2);
}

/* The same side-strip geometry as the other heroes — width capped at
   min(46vw, 620px) — so the landmarks draw at the same scale everywhere; a
   full-width layer let cover blow the artwork up to the viewport. Only the
   opacity stays higher here: the About hero is the one place the landmarks
   get real presence. The top overhang leaves the artwork's wordmark to
   overflow:hidden, and flipping the LTR layer flips its mask with it. */
.about-hero::before {
    content: "";
    position: absolute;
    inset-block: -14rem -40px;
    inset-inline-start: -40px;
    width: min(46vw, 620px);
    opacity: 0.44;
    background-image: url("/images/home/sihatuna-home-landmarks.webp");
    background-size: cover;
    background-position: center bottom;
    filter: saturate(0.72);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
    pointer-events: none;
}

[dir="ltr"] .about-hero::before {
    transform: scaleX(-1);
}

.about-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 68%, var(--care-surface, #edf6f2));
    pointer-events: none;
}

[data-bs-theme="dark"] .about-hero::before {
    opacity: 0.22;
    filter: saturate(0.55) brightness(0.72);
}

.about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--care-primary-dark, #055744);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.about-eyebrow::before {
    content: "";
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: var(--sihatuna-gold, #c49a37);
}

.about-hero h1 {
    margin: 22px 0 0;
    color: var(--care-ink, #163e5f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
}

/* Georgia carries no Arabic; the RTL heading takes the page's own face. */
[dir="rtl"] .about-hero h1,
[dir="rtl"] .about-photo-placeholder {
    font-family: inherit;
    letter-spacing: 0;
}

.about-hero p {
    max-width: 790px;
    margin: 22px auto 0;
    color: var(--care-muted, #55635f);
    font-size: 1.08rem;
    line-height: 1.75;
}

/* ----- Story cards -------------------------------------------------------- */

.about-section {
    padding: 44px 0;
}

.about-stack {
    display: grid;
    gap: 20px;
    max-width: 1120px;
    margin-inline: auto;
}

.about-story-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 26px;
    background: var(--care-card, #fff);
    box-shadow: var(--sihatuna-shadow-md, 0 14px 40px rgba(31, 92, 132, .09));
}

/* The quiet green disc in the card's outer corner, as the mock-up has it. */
.about-story-card::before {
    content: "";
    position: absolute;
    inset-block-end: -80px;
    inset-inline-end: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--care-primary-strong, #08765d) 6%, transparent);
    pointer-events: none;
}

.about-story-card h2 {
    margin: 0;
    color: var(--care-ink, #163e5f);
    font-size: 1.35rem;
}

.about-feature-story {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--care-card, #fff) 90%, transparent),
        color-mix(in srgb, var(--care-secondary, #4aa0d8) 12%, var(--care-card, #fff)));
}

.about-story-icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(145deg, var(--care-primary-dark, #055744), #3d94bb);
    box-shadow: var(--sihatuna-shadow-sm, 0 6px 20px rgba(31, 92, 132, .07));
    font-size: 1.7rem;
}

.about-story-copy {
    position: relative;
    z-index: 1;
}

.about-story-kicker {
    display: inline-flex;
    margin-block-end: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--care-primary-dark, #055744);
    background: color-mix(in srgb, var(--care-primary-strong, #08765d) 9%, var(--care-card, #fff));
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.about-story-copy p {
    margin: 12px 0 0;
    color: var(--care-ink, #163e5f);
    line-height: 1.75;
    font-size: 1rem;
}

[data-bs-theme="dark"] .about-story-copy p {
    color: var(--care-muted, #a8bbb4);
}

/* ----- How we work -------------------------------------------------------- */

.about-work-card {
    padding: 22px;
}

.about-work-card > h2 {
    margin: 0 0 16px;
}

.about-work-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.about-work-item {
    padding: 18px;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 20px;
    background: var(--care-surface, #edf6f2);
}

.about-work-item span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-block-end: 14px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg,
        var(--care-primary-dark, #055744),
        var(--care-primary-strong, #08765d));
    font-size: 0.8rem;
    font-weight: 800;
}

.about-work-item h3 {
    margin: 0;
    color: var(--care-ink, #163e5f);
    font-size: 1rem;
}

.about-work-item p {
    margin: 8px 0 0;
    color: var(--care-muted, #55635f);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ----- Team --------------------------------------------------------------- */

.about-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-block-end: 20px;
}

.about-section-heading h2 {
    margin: 0;
    color: var(--care-ink, #163e5f);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    letter-spacing: -0.02em;
}

.about-section-heading p {
    max-width: 560px;
    margin: 0;
    color: var(--care-muted, #55635f);
    line-height: 1.7;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.about-team-card {
    overflow: hidden;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 26px;
    background: var(--care-card, #fff);
    box-shadow: var(--sihatuna-shadow-md, 0 14px 40px rgba(31, 92, 132, .09));
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.about-team-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--care-primary-strong, #08765d) 28%, var(--care-border, #e4ece8));
    box-shadow: var(--sihatuna-shadow-lg, 0 22px 54px rgba(4, 65, 50, .13));
}

@media (prefers-reduced-motion: reduce) {
    .about-team-card {
        transition: none;
    }

    .about-team-card:hover {
        transform: none;
    }
}

.about-team-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--care-primary-strong, #08765d) 10%, var(--care-card, #fff)),
        color-mix(in srgb, var(--care-secondary, #4aa0d8) 12%, var(--care-card, #fff)));
}

.about-team-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("/images/patterns/sihatuna-pure-damascene-pattern.png");
    background-size: 220px auto;
}

.about-team-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-photo-placeholder {
    position: absolute;
    inset: 18px;
    z-index: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(145deg, var(--care-primary-dark, #055744), #3d94bb);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
    font-weight: 900;
    box-shadow: var(--sihatuna-shadow-sm, 0 6px 20px rgba(31, 92, 132, .07));
}

.about-team-body {
    padding: 20px;
    text-align: center;
}

.about-team-body h3 {
    margin: 0;
    color: var(--care-ink, #163e5f);
    font-size: 1.14rem;
}

.about-team-role {
    margin: 6px 0 0;
    color: var(--sihatuna-gold-text, #8a6a1c);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

[data-bs-theme="dark"] .about-team-role {
    color: #d9b45e;
}

.about-team-body > p:last-child,
.about-team-bio {
    margin: 12px 0 0;
    color: var(--care-muted, #55635f);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* The card shows three lines of a long story; the rest lives in the dialog. */
.about-team-bio {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

/* The mock-up's pill: soft green, rounded full, centred under the teaser. */
.about-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-block-start: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--care-primary-dark, #075b45);
    background: color-mix(in srgb, var(--care-primary-strong, #08765d) 9%, var(--care-card, #fff));
    font-size: 0.78rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .about-more-btn {
    color: #b8ead7;
}

/* ----- The whole card as the trigger --------------------------------------

   A real button wrapping the card's content, so the keyboard opens the
   profile without any script; the styling reset keeps the card looking like
   its neighbours. */
.about-team-card-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}

.about-team-card-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--care-primary-strong, #08765d) 34%, transparent);
    outline-offset: 5px;
    border-radius: 26px;
}

.about-team-photo {
    display: block;
}

.about-team-body {
    display: block;
}

.about-team-name {
    display: block;
    margin: 0;
    color: var(--care-ink, #163e5f);
    font-size: 1.14rem;
    font-weight: 700;
}

.about-team-role {
    display: block;
}

.about-team-bio {
    display: -webkit-box;
}



/* ----- The founder's profile dialog ---------------------------------------

   The mock-up's dialog on Bootstrap's modal machinery: the hero band with the
   portrait and chips, then the bio sections beside the at-a-glance card. */
.about-profile-dialog {
    max-width: min(980px, calc(100% - 24px));
}

.about-profile {
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 30px;
    background: var(--care-card, #fff);
    overflow: hidden;
}

.about-profile-header {
    border-block-end: 1px solid var(--care-border, #e4ece8);
    padding: 15px 18px;
}

.about-profile-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--care-primary-dark, #055744);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-profile-label::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--sihatuna-gold, #c49a37);
}

.about-profile-body-wrap {
    padding: 0;
}

.about-profile-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 30px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--care-primary-strong, #08765d) 9%, var(--care-card, #fff)),
        color-mix(in srgb, var(--care-secondary, #4aa0d8) 12%, var(--care-card, #fff)));
}

.about-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: url("/images/patterns/sihatuna-pure-damascene-pattern.png");
    background-size: 250px auto;
    pointer-events: none;
}

.about-profile-photo {
    position: relative;
    z-index: 1;
    width: 170px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(145deg, var(--care-primary-dark, #055744), #3d94bb);
    box-shadow: var(--sihatuna-shadow-lg, 0 22px 54px rgba(4, 65, 50, .13));
}

.about-profile-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-profile-photo .about-photo-placeholder {
    inset: 0;
    border: 1px solid color-mix(in srgb, #fff 30%, transparent);
    border-radius: 34px;
    font-size: 4.3rem;
}

.about-profile-title {
    position: relative;
    z-index: 1;
}

.about-profile-title h2 {
    margin: 0;
    color: var(--care-ink, #163e5f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

[dir="rtl"] .about-profile-title h2 {
    font-family: inherit;
    letter-spacing: 0;
}

.about-profile-role {
    display: inline-flex;
    margin-block-start: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--sihatuna-gold-text, #806321);
    background: color-mix(in srgb, var(--sihatuna-gold, #c49a37) 15%, transparent);
    font-size: 0.82rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .about-profile-role {
    color: #ebd390;
}

.about-profile-summary {
    max-width: 660px;
    margin: 16px 0 0;
    color: var(--care-muted, #55635f);
    font-size: 1rem;
    line-height: 1.75;
}

.about-profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 18px;
}

.about-profile-chip {
    padding: 7px 10px;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 999px;
    color: var(--care-primary-dark, #055744);
    background: var(--care-card, #fff);
    font-size: 0.78rem;
    font-weight: 800;
}

[data-bs-theme="dark"] .about-profile-chip {
    color: #c4f0de;
}

.about-profile-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 282px;
    gap: 20px;
    padding: 24px;
}

.about-profile-sections {
    display: grid;
    gap: 14px;
    align-content: start;
}

.about-profile-section {
    padding: 20px;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 22px;
    background: var(--care-card, #fff);
    box-shadow: var(--sihatuna-shadow-sm, 0 8px 22px rgba(4, 65, 50, .08));
}

.about-profile-section h3 {
    margin: 0;
    color: var(--care-ink, #163e5f);
    font-size: 1.05rem;
}

.about-profile-section p {
    margin: 10px 0 0;
    color: var(--care-muted, #55635f);
    font-size: 0.96rem;
    line-height: 1.85;
}

.about-profile-facts {
    align-self: start;
    display: grid;
    gap: 12px;
}

.about-profile-facts-card {
    padding: 18px;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 22px;
    background: linear-gradient(145deg,
        var(--care-card, #fff),
        var(--care-surface, #edf6f2));
    box-shadow: var(--sihatuna-shadow-sm, 0 8px 22px rgba(4, 65, 50, .08));
}

.about-profile-facts-card h3 {
    margin: 0 0 12px;
    color: var(--care-ink, #163e5f);
    font-size: 1rem;
}

.about-profile-fact {
    display: grid;
    gap: 3px;
    padding: 11px 0;
    border-block-start: 1px solid var(--care-border, #e4ece8);
}

.about-profile-fact:first-of-type {
    border-block-start: 0;
    padding-block-start: 0;
}

.about-profile-fact strong {
    color: var(--care-primary-dark, #055744);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-profile-fact span {
    color: var(--care-muted, #55635f);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ----- Questions card ----------------------------------------------------- */

.about-questions-card {
    margin-block-end: 46px;
    padding: 26px;
    border: 1px solid var(--care-border, #e4ece8);
    border-radius: 26px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--care-secondary, #4aa0d8) 16%, var(--care-card, #fff)),
        color-mix(in srgb, var(--care-primary-strong, #08765d) 9%, var(--care-card, #fff)));
    box-shadow: var(--sihatuna-shadow-md, 0 14px 40px rgba(31, 92, 132, .09));
}

.about-questions-card h2 {
    margin: 0 0 10px;
    color: var(--care-ink, #163e5f);
    font-size: 1.35rem;
}

.about-questions-card p {
    margin: 0 0 20px;
    color: var(--care-muted, #55635f);
    line-height: 1.7;
}

.about-questions-card .btn {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
}

/* ----- Responsive --------------------------------------------------------- */

@media (max-width: 1100px) {
    .about-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-work-grid {
        grid-template-columns: 1fr;
    }

    /* The profile dialog's columns stack before they can squeeze the bio
       into a one-letter-per-line sliver. */
    .about-profile-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .about-section-heading {
        display: block;
    }

    .about-section-heading p {
        margin-block-start: 8px;
    }

    .about-team-grid,
    .about-feature-story {
        grid-template-columns: 1fr;
    }

    .about-hero {
        min-height: 400px;
        padding: 52px 0;
    }

    .about-hero h1 {
        font-size: clamp(2.1rem, 9vw, 2.9rem);
    }

    .about-profile-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .about-profile-photo {
        width: 132px;
    }

    .about-profile-title h2 {
        font-size: 2rem;
    }

    .about-profile-columns {
        padding: 18px;
    }
}
