/* =============================================================
   About Us Redesign — phase 9 (page-about-us.php only)
   Loaded conditionally on is_page('about-us') from functions.php.
   Reuses tokens defined site-wide in auth-redesign.css (--auth-*).
   Salient's parent stylesheet loads after this file via wp_head(),
   so heading rules need !important to win the cascade.

   Visual language mirrors the landing page (landing-redesign.css):
   navy/teal palette, Georgia serif headings, Poppins body, rounded
   cards. The section rhythm is intentionally different — About is
   narrative (hero → story → mission → differentiators → close)
   while landing is conversion-driven (hero → split → privacy CTA).
   ============================================================= */

.au {
    font-family: var(--auth-font-sans);
    font-weight: 500;
    color: var(--auth-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Same Salient-paragraph normalization the landing uses (see comment
   in landing-redesign.css). */
.au p {
    margin: 0 0 14px;
    padding: 0;
    color: var(--auth-text-secondary);
}
.au p:last-child { margin-bottom: 0; }

/* ---------- Eyebrow chip ---------- */
.au-eyebrow {
    display: inline-block;
    font-family: var(--auth-font-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--auth-teal);
    background: var(--auth-teal-light);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.au-eyebrow-light {
    color: var(--auth-white);
    background: rgba(255,255,255,0.12);
}

/* ---------- Shared section title ---------- */
.au-section-title {
    font-family: var(--auth-font-serif) !important;
    font-size: 42px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: var(--auth-navy) !important;
    margin: 0 0 18px !important;
    letter-spacing: -0.005em;
}
.au-section-title em {
    font-style: italic;
    color: var(--auth-teal);
}
.au-section-title-center { text-align: center; }

/* ---------- Buttons ----------
   Same visual treatment as .lp-btn but namespaced so the About CSS
   stays self-contained (landing-redesign.css doesn't load here). */
.au-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--auth-radius);
    font-family: var(--auth-font-sans);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, color 0.15s, transform 0.05s;
    border: 1px solid transparent;
    cursor: pointer;
}
.au-btn:active { transform: translateY(1px); }
.au-btn:focus-visible {
    outline: none;
    box-shadow: var(--auth-focus-ring);
}
.au-btn-chev { font-size: 16px; line-height: 1; }

.au-btn-primary {
    background: var(--auth-navy);
    color: var(--auth-white) !important;
}
.au-btn-primary:hover { background: var(--auth-navy-mid); color: var(--auth-white) !important; }

.au-btn-onlight {
    background: var(--auth-teal);
    color: var(--auth-white) !important;
}
.au-btn-onlight:hover { background: var(--auth-navy); color: var(--auth-white) !important; }

.au-btn-ghost {
    background: transparent;
    color: var(--auth-navy) !important;
    border-color: rgba(0,52,92,0.25);
}
.au-btn-ghost:hover {
    background: var(--auth-navy);
    color: var(--auth-white) !important;
    border-color: var(--auth-navy);
}

/* ---------- Section 1 — Hero ----------
   Different visual approach from the landing hero: rather than a
   full-bleed background photo, About uses a quieter cream surface
   with the image rendered as a framed card. Same warm-neutral
   palette so the two pages feel like siblings, not strangers. */
.au-hero {
    background: #dfdad4;
    padding: 88px 24px 96px;
    position: relative;
    overflow: hidden;
}
.au-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 56px;
    align-items: center;
}
.au-hero-title {
    font-family: var(--auth-font-serif) !important;
    font-size: 60px !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
    color: var(--auth-navy) !important;
    margin: 0 0 20px !important;
    letter-spacing: -0.01em;
}
.au-hero-title em {
    font-style: italic;
    color: var(--auth-teal);
}
.au .au-hero-lead {
    font-family: var(--auth-font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--auth-navy);
    max-width: 520px;
    margin: 0 0 28px;
}
.au-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Framed photo: rounded image with a subtle offset frame outline.
   The frame is a sibling absolutely positioned behind the image,
   nudged down/right — a small visual lift without leaning on heavy
   shadow. */
.au-hero-media {
    position: relative;
}
.au-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
    object-position: center top;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(11,31,58,0.18);
    position: relative;
    z-index: 1;
}
.au-hero-media-frame {
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1.5px solid var(--auth-teal);
    border-radius: 18px;
    opacity: 0.45;
    z-index: 0;
}

/* ---------- Section 2 — Founded story ---------- */
.au-founded {
    background: var(--auth-white);
    padding: 96px 24px;
}
.au-founded-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.au-founded-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(11,31,58,0.12);
}
.au-founded-text {
    max-width: 520px;
}
.au .au-founded-text p {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--auth-text-secondary);
    margin-bottom: 14px;
}
.au .au-founded-text p + p { margin-top: 0; }
.au-founded-text .au-btn { margin-top: 16px; }

/* ---------- Section 3 — Mission band ---------- */
.au-mission {
    background: var(--auth-navy);
    padding: 88px 24px;
    text-align: center;
    color: var(--auth-white);
}
.au-mission-inner {
    max-width: 820px;
    margin: 0 auto;
}
.au-mission-title {
    font-family: var(--auth-font-serif) !important;
    font-size: 46px !important;
    font-weight: 400 !important;
    line-height: 1.12 !important;
    color: var(--auth-white) !important;
    margin: 0 0 24px !important;
    letter-spacing: -0.005em;
}
.au-mission-title em {
    font-style: italic;
    color: var(--auth-cyan);
}
.au .au-mission p {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.84);
    margin-bottom: 14px;
}

/* ---------- Section 4 — How we're different ---------- */
.au-different {
    background: var(--auth-surface);
    padding: 96px 24px;
}
.au-different-inner {
    max-width: 1180px;
    margin: 0 auto;
}
.au-different-header {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 720px;
}
.au .au-different-intro {
    font-size: 15.5px;
    color: var(--auth-text-secondary);
    line-height: 1.65;
    margin: 0;
    text-align: center;
}
.au-different-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.au-card {
    background: var(--auth-white);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-lg);
    padding: 30px 28px;
    box-shadow: 0 1px 2px rgba(11,31,58,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
}
.au-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(11,31,58,0.10);
}
.au-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--auth-teal-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.au-card-icon-img {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: var(--auth-teal);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.au-card-icon-img--privacy {
    -webkit-mask-image: url(../images/landing/icon-privacy.png);
    mask-image: url(../images/landing/icon-privacy.png);
}
.au-card-icon-img--compensation {
    -webkit-mask-image: url(../images/landing/icon-compensation.png);
    mask-image: url(../images/landing/icon-compensation.png);
}
.au-card-icon-img--verified {
    -webkit-mask-image: url(../images/landing/icon-verified.png);
    mask-image: url(../images/landing/icon-verified.png);
}
.au-card-icon-img--heart {
    -webkit-mask-image: url(../images/landing/icon-heart.png);
    mask-image: url(../images/landing/icon-heart.png);
}
.au-card-title {
    font-family: var(--auth-font-serif) !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    color: var(--auth-navy) !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}
.au .au-card p {
    font-size: 14px;
    color: var(--auth-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---------- Section 5 — Why MedMerity delivers ---------- */
.au-delivers {
    background: var(--auth-white);
    padding: 96px 24px;
}
.au-delivers-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.au-delivers-text {
    max-width: 520px;
}
.au-checklist {
    list-style: none;
    margin: 8px 0 28px;
    padding: 0;
}
.au-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--auth-border);
    font-family: var(--auth-font-sans);
    font-size: 15px;
    color: var(--auth-navy);
    line-height: 1.55;
}
.au-checklist li:last-child { border-bottom: none; }
.au-check {
    flex-shrink: 0;
    margin-top: 2px;
}
.au-delivers-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(11,31,58,0.12);
}

/* ---------- Section 6 — Ready-to-transform CTA ---------- */
.au-cta {
    background: var(--auth-teal);
    padding: 80px 24px;
    text-align: center;
    color: var(--auth-white);
}
.au-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}
.au-cta-title {
    font-family: var(--auth-font-serif) !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    line-height: 1.15 !important;
    color: var(--auth-white) !important;
    margin: 0 0 14px !important;
    letter-spacing: -0.005em;
}
.au-cta-title em {
    font-style: italic;
    color: var(--auth-navy);
}
.au .au-cta p {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    margin: 0 auto 24px;
    max-width: 580px;
}
.au-cta .au-btn-onlight {
    background: var(--auth-white);
    color: var(--auth-navy) !important;
}
.au-cta .au-btn-onlight:hover {
    background: var(--auth-navy);
    color: var(--auth-white) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .au-hero { padding: 64px 24px 72px; }
    .au-hero-inner { gap: 36px; }
    .au-hero-title { font-size: 50px !important; }
    .au-section-title { font-size: 36px !important; }
    .au-mission-title { font-size: 38px !important; }
    .au-cta-title { font-size: 34px !important; }
    .au-founded, .au-delivers, .au-different { padding: 72px 24px; }
    .au-founded-inner, .au-delivers-inner { gap: 40px; }
}

@media (max-width: 820px) {
    .au-hero-inner,
    .au-founded-inner,
    .au-delivers-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .au-hero-media-frame { inset: 14px -14px -14px 14px; }
    .au-different-grid { grid-template-columns: 1fr; }
    .au-hero-title { font-size: 44px !important; }
    .au-section-title { font-size: 32px !important; }
    .au-mission-title { font-size: 34px !important; }
    .au-cta-title { font-size: 30px !important; }

    /* On mobile the founded image should sit above the text — the
       desktop "image left" reads as background; on stacked layouts
       the photo introduces the section. */
    .au-founded-media { order: -1; }
    /* Delivers image visually pairs with the checklist; placing the
       photo below on mobile keeps the headline-first hierarchy. */
}

@media (max-width: 560px) {
    .au-hero { padding: 48px 20px 56px; }
    .au-hero-title { font-size: 36px !important; }
    .au .au-hero-lead { font-size: 15.5px; }

    .au-founded, .au-delivers, .au-different { padding: 56px 20px; }
    .au-section-title { font-size: 28px !important; }

    .au-mission { padding: 64px 20px; }
    .au-mission-title { font-size: 30px !important; }
    .au .au-mission p { font-size: 14.5px; }

    .au-cta { padding: 56px 20px; }
    .au-cta-title { font-size: 26px !important; }

    .au-card { padding: 24px 22px; }
    .au-eyebrow { font-size: 11.5px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .au-card, .au-btn { transition: none !important; }
    .au-card:hover { transform: none !important; }
}
