/*
 * Leader Guyana – Our Story Page Styles
 * page-story-lg.css  |  leader-child/css/
 */

/* ══════════════════════════════════════════════════════════
   HEADER — ensure sticky behaves same as every other page
   ══════════════════════════════════════════════════════════ */
body.page-template-page-story-lg #leader-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

/* ══════════════════════════════════════════════════════════
   PARENT THEME RESETS
   ══════════════════════════════════════════════════════════ */
.page-template-page-story-lg .site-main,
.page-template-page-story-lg main,
.page-template-page-story-lg #main,
.page-template-page-story-lg .entry-content,
.page-template-page-story-lg article {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.page-template-page-story-lg .entry-header {
    display: none !important;
}
.page-template-page-story-lg hr,
body.page-template-page-story-lg hr {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.lg-story-hero {
    position: relative;
    padding: clamp(5rem, 10vw, 7rem) 0 clamp(6rem, 11vw, 9rem);
    overflow: hidden;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

.lg-story-hero.hero--navy  { background: #242f3a !important; }
.lg-story-hero.hero--deep  { background: #0a2540 !important; }
.lg-story-hero.hero--brand { background: #00a8b5 !important; }

.lg-story-hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

.lg-story-hero__bg-glow {
    position: absolute;
    top: -10%; left: -5%;
    width: 40vw; height: 40vw;
    max-width: 480px; max-height: 480px;
    background: radial-gradient(circle, rgba(0,168,181,.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.lg-story-hero__inner {
    position: relative;
    z-index: 3;
}
.lg-story-hero__content {
    max-width: 720px;
}

.lg-story-hero__eyebrow {
    font-family: var(--font);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #00a8b5 !important;
    display: inline-block;
    border-left: 3px solid #00a8b5;
    padding-left: .75rem;
    margin-bottom: 1.4rem;
    animation: lgStoryFadeUp .65s ease both;
}

.lg-story-hero__headline,
.page-template-page-story-lg .lg-story-hero h1,
.page-template-page-story-lg .lg-story-hero h1.lg-story-hero__headline {
    font-family: var(--font) !important;
    font-size: clamp(2.4rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    color: #ffffff !important;
    margin: 0 0 1.3rem !important;
    padding: 0 !important;
    letter-spacing: -.01em;
    animation: lgStoryFadeUp .7s .1s ease both;
    display: block !important;
    visibility: visible !important;
    border: none !important;
    background: none !important;
}

.lg-story-hero__sub {
    font-family: var(--font);
    font-size: clamp(.95rem, 1.8vw, 1.05rem);
    color: rgba(255,255,255,.65) !important;
    max-width: 560px;
    line-height: 1.78;
    animation: lgStoryFadeUp .7s .18s ease both;
    display: block !important;
}

/* ── Bottom edge variants ── */
/* Diagonal — next section must be white */
/* bottom: -2px and height: 102px closes the sub-pixel gap at all zoom levels */
.lg-story-hero.hero--diagonal::after {
    content: '';
    position: absolute;
    bottom: -2px; left: -1px; right: -1px;
    height: 102px;
    background: #ffffff;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    pointer-events: none;
    z-index: 10;
}
.lg-story-hero.hero--straight {
    padding-bottom: clamp(4rem, 7vw, 6rem);
}
.lg-story-hero.hero--straight::after {
    display: none;
}
.lg-story-hero.hero--wave::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 80px;
    background: #ffffff;
    clip-path: ellipse(55% 100% at 50% 100%);
    pointer-events: none;
    z-index: 10;
}

@keyframes lgStoryFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   STORY SECTIONS
   ══════════════════════════════════════════════════════════ */
.lg-story-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    position: relative;
}
.lg-story-section--light    { background: #ffffff; }
.lg-story-section--offwhite { background: #f4f6f8; border-top: 3px solid #00a8b5; }
.lg-story-section--navy     {
    background: #242f3a;
    border-top: 3px solid #00a8b5;
    border-bottom: 3px solid #00a8b5;
}

/* ── Editorial two-column layout ── */
.lg-story-editorial {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}
@media (max-width: 780px) {
    .lg-story-editorial { grid-template-columns: 1fr; }
}

.lg-story-editorial__h2,
.page-template-page-story-lg .lg-story-editorial h2 {
    font-family: var(--font) !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    font-weight: 700 !important;
    color: #242f3a !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    position: sticky;
    top: 6rem;
}
.lg-story-editorial__h2--white,
.page-template-page-story-lg .lg-story-section--navy .lg-story-editorial h2 {
    color: #ffffff !important;
}

.lg-story-editorial__intro {
    font-family: var(--font);
    font-size: clamp(1.08rem, 1.4vw, 1.2rem);
    color: #53606b;
    line-height: 1.75;
    margin-top: 1rem;
}

.lg-story-editorial__body p {
    font-family: var(--font);
    font-size: clamp(1.05rem, 1.35vw, 1.18rem);
    color: #4d5862;
    line-height: 1.8;
    margin-bottom: 1.3rem;
}
.lg-story-editorial__body p:last-child { margin-bottom: 0; }
.lg-story-editorial__body--white p { color: rgba(255,255,255,.78); }

/* Lead paragraph — stronger opening line gives each section weight */
.lg-story-editorial__body p:first-of-type {
    font-size: clamp(1.18rem, 1.7vw, 1.4rem);
    color: #1d2730;
    font-weight: 500;
    line-height: 1.6;
}
.lg-story-editorial__body--white p:first-of-type { color: #ffffff; }
.lg-story-editorial__body--white strong { color: #ffffff; font-weight: 700; }

/* ── Bullet lists ── */
.lg-story-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 1.15rem !important;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.lg-story-list li {
    font-family: var(--font);
    font-size: .95rem;
    color: rgba(255,255,255,.72);
    line-height: 1.5;
    padding-left: 1.4rem;
    position: relative;
    list-style: none !important;
}
.lg-story-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .58em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #00a8b5;
}
.lg-story-list--blue li { color: #6f6f6e; }

/* ══════════════════════════════════════════════════════════
   SERVICES LIST (section 4)
   ══════════════════════════════════════════════════════════ */
.lg-story-services {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}
.lg-story-service-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e6ea;
}
.lg-story-service-item:first-child { border-top: 1px solid #e2e6ea; }

.lg-story-service-item__icon {
    width: 44px; height: 44px;
    border-radius: 4px;
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    margin-top: .15rem;
}
.lg-story-service-item__icon svg { width: 22px; height: 22px; display: block; }

.lg-story-service-item__h3,
.page-template-page-story-lg .lg-story-service-item h3 {
    font-family: var(--font) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #242f3a !important;
    margin: 0 0 .35rem !important;
    padding: 0 !important;
    border: none !important;
}
.lg-story-service-item__copy p {
    font-family: var(--font);
    font-size: .92rem;
    color: #6f6f6e;
    line-height: 1.68;
    margin: 0 0 .75rem;
}
.lg-story-service-item__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-family: var(--font);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #00a8b5;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}
.lg-story-service-item__link svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.lg-story-service-item__link:hover { color: #008a96; gap: .6rem; }
.lg-story-service-item__link:hover svg { transform: translateX(3px); }

.lg-story-services__footer {
    font-family: var(--font);
    font-size: .95rem;
    color: #53606b;
    line-height: 1.7;
    margin-top: 1.75rem;
    font-style: italic;
    border-left: 3px solid #00a8b5;
    padding-left: 1rem;
}

/* ══════════════════════════════════════════════════════════
   CTA — override parent theme stripping styles
   ══════════════════════════════════════════════════════════ */
.lg-story-cta,
.page-template-page-story-lg .lg-cta {
    position: relative !important;
    background: #242f3a !important;
    padding: clamp(4rem, 7vw, 6rem) 0 !important;
    text-align: center !important;
    border-top: 3px solid #00a8b5 !important;
    border-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%) 1 !important;
    display: block !important;
}
.lg-story-cta .lg-cta__dots,
.page-template-page-story-lg .lg-cta .lg-cta__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.lg-story-cta .lg-cta__inner,
.page-template-page-story-lg .lg-cta .lg-cta__inner {
    position: relative;
    z-index: 1;
}
.lg-story-cta .lg-cta__title,
.page-template-page-story-lg .lg-cta h2 {
    font-family: var(--font) !important;
    font-size: clamp(1.75rem, 3.5vw, 2.8rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin-bottom: .9rem !important;
    border: none !important;
    padding: 0 !important;
}
.lg-story-cta .lg-cta__body {
    font-family: var(--font);
    font-size: 1rem;
    color: rgba(255,255,255,.65);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.72;
}
.lg-story-cta .lg-cta__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .85rem;
}

/* ── Hero background image (cathedral placeholder) ── */
.lg-story-hero__bg-image {
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%);
    pointer-events: none;
    z-index: 2;
    transform-origin: center center;
    animation: lgStoryHeroDrift 16s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes lgStoryHeroDrift {
    0%   { transform: scale(1.06) translate(0%,   0%);   }
    100% { transform: scale(1.18) translate(-4%, 2.5%);  }
}
@media (prefers-reduced-motion: reduce) {
    .lg-story-hero__bg-image { animation: none; transform: scale(1.06); }
}

/* ══════════════════════════════════════════════════════════
   PARTNERSHIPS SECTION — two-column: copy left, circle right
   ══════════════════════════════════════════════════════════ */
.lg-story-partnerships {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
}
@media (max-width: 820px) {
    .lg-story-partnerships { grid-template-columns: 1fr; }
    .lg-story-circle-wrap { order: -1; }
}
.lg-story-partnerships__copy { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── Circle wrap — positions arc SVG and image together ── */
.lg-story-circle-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Size matches the image circle + arc overhang */
    width: clamp(280px, 36vw, 420px);
    height: clamp(280px, 36vw, 420px);
    margin: 0 auto;
}

/* ── Animated arc SVG — sits behind, oversized to frame the circle ── */
.lg-story-circle-arc {
    position: absolute;
    width: calc(100% + 80px);
    height: calc(100% + 80px);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

/* ── Image circle ── */
.lg-story-circle-img {
    width: clamp(280px, 36vw, 420px);
    height: clamp(280px, 36vw, 420px);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1.5px solid rgba(0,168,181,.3);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 620px) {
    .lg-story-hero.hero--diagonal::after,
    .lg-story-hero.hero--wave::after { height: 30px; }
    .lg-story-hero { padding-top: 3rem; padding-bottom: 2.5rem; }
    .lg-story-section { padding-top: 1.5rem; }
    .lg-story-editorial__h2 { position: static; }
    .lg-story-service-item { flex-direction: column; gap: .75rem; }
}

@media (max-width: 480px) {
    .lg-story-cta .lg-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .lg-story-cta .lg-cta__actions .btn {
        text-align: center;
        justify-content: center;
        padding-top: .85rem;
        padding-bottom: .85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-story-hero__eyebrow,
    .lg-story-hero__headline,
    .lg-story-hero__sub {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* ── LE teal→blue gradient accents (match Meet the Team) ── */
.lg-story-hero__eyebrow {
    background: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%) 1;
}
.lg-story-section--offwhite,
.lg-story-section--navy {
    border-image: linear-gradient(135deg,#00a8b5 0%,#0070b9 100%) 1;
}