/*
 * Integrated Report microsite (/eng/pbl-integrated-report/2026, /fr/…).
 * Shared look (colours, top bar, buttons, background): layout/report-theme.css.
 * Phone and tablet rules: report-2026-mobile.css.
 */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--subnav-h) + 8px); }
body { overflow-x: hidden; }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; background: var(--teal); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* ---------- Section bar (after the hero, sticks under the top nav) ---------- */
.subnav {
    position: sticky; top: var(--nav-h); z-index: 40; height: var(--subnav-h);
    background: rgba(7, 22, 33, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.subnav .wrap { height: 100%; display: flex; align-items: center; gap: 1rem; }
.subnav-label { flex: none; color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.subnav-links {
    display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
    padding-right: 24px;
}
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a {
    flex: none; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap;
    padding: .45rem .9rem; border-radius: 999px; transition: color .2s, background .2s;
}
.subnav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.subnav-links a.active { color: var(--deep); background: var(--teal); font-weight: 600; }
.subnav-links a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden;
    padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 1.02; margin: 1rem 0; }
.hero h1 .year { display: block; color: var(--teal); }
.hero .theme { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255, 255, 255, .85); font-style: italic; font-family: 'Playfair Display', Georgia, serif; }
.hero p.intro { color: rgba(255, 255, 255, .72); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.reveal.d1 { animation-delay: .1s; } .reveal.d2 { animation-delay: .25s; } .reveal.d3 { animation-delay: .4s; } .reveal.d4 { animation-delay: .55s; } .reveal.d5 { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.cover-stage { perspective: 1200px; display: flex; justify-content: center; }
.cover {
    width: min(360px, 78vw); aspect-ratio: 3 / 4.2; border-radius: 10px; position: relative; transform-style: preserve-3d;
    transform: rotateY(-14deg) rotateX(4deg); transition: transform .4s ease; box-shadow: 30px 40px 80px rgba(0, 0, 0, .45);
    animation: floaty 7s ease-in-out infinite; overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty { 50% { translate: 0 -14px; } }
.cover-placeholder {
    height: 100%; padding: 2rem 1.6rem; display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(150deg, #0e3346, #08BABB 140%); color: #fff;
}
.cover-placeholder .big { font-family: 'Playfair Display', Georgia, serif; font-size: 4.2rem; line-height: 1; }
.cover-placeholder small { letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; opacity: .8; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .22), transparent 40%); pointer-events: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; color: rgba(255, 255, 255, .6); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; }
.scroll-cue span { width: 22px; height: 36px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; background: currentColor; border-radius: 2px; translate: -50% 0; animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ---------- Preview / soon banners ---------- */
.preview-banner { position: fixed; bottom: 16px; left: 50%; translate: -50% 0; z-index: 70; background: #ffcc33; color: #2a2100; padding: .6rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); text-align: center; }
/* Phones: a full-width bar, so a two- or three-line message does not become a round blob */
@media (max-width: 600px) { .preview-banner { left: 16px; right: 16px; translate: none; max-width: none; border-radius: 14px; font-size: .8rem; } }
.soon-pill { display: inline-flex; align-items: center; gap: .5rem; background: rgba(8, 186, 187, .16); border: 1px solid rgba(8, 186, 187, .5); color: #bff7f7; padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.soon-pill i { animation: pulse 1.6s infinite; color: var(--teal); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- KPIs ---------- */
/* ---------- Top bar: back to Investor Relations (IR-16) ---------- */
.topnav nav a.back { display: inline-flex; align-items: center; gap: .4rem; margin-right: .3rem; }
.topnav nav a.back .bi { transition: transform .2s; }
.topnav nav a.back:hover .bi, .topnav nav a.back:focus-visible .bi { transform: translateX(-3px); }
.topnav nav a.back .back-short { display: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 2.5rem; }
@media (min-width: 901px) { .kpi-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi {
    background: var(--surface); border: 1px solid var(--orange-line); border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.kpi:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); border-color: var(--teal); background: var(--surface-hover); }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--orange-light)); transform: scaleX(0); transform-origin: left; transition: transform .6s ease; }
.kpi.in::before { transform: scaleX(1); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.kpi-head img { width: 42px; height: 42px; object-fit: contain; padding: 5px; border-radius: 50%; background: var(--orange); }
/* The report's icons (ticket IR-14): white on a PhoenixBev orange circle.
   The .svg is used as a mask, so it takes any colour. */
.kpi-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 1.3rem; box-shadow: 0 6px 18px rgba(243, 107, 33, .35); transition: transform .4s ease; }
.kpi-ico-svg { width: 42px; height: 42px; background: #fff; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.kpi:hover .kpi-ico { transform: rotate(-8deg) scale(1.08); }
.kpi-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin: .7rem 0 .2rem; letter-spacing: -.02em; }
.kpi-change { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; font-size: .85rem; padding: .15rem .55rem; border-radius: 999px; }
.kpi-change.up { color: #2fd27a; background: rgba(47, 210, 122, .14); }
.kpi-change.down { color: #ff7a7a; background: rgba(255, 122, 122, .14); }
.kpi-flag { font-size: .72rem; font-weight: 600; color: #ffd666; background: rgba(255, 204, 51, .14); padding: .15rem .5rem; border-radius: 6px; }
.bars { margin-top: 1rem; display: grid; gap: .4rem; }
.bar { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: .6rem; font-size: .72rem; color: var(--muted); }
.bar-track { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.bar-fill.now { background: linear-gradient(90deg, var(--teal), #1d9fb0); }
.bar-fill.prev { background: rgba(255, 255, 255, .35); }
.split { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; margin-top: 4rem; }

/* ---------- Dark band ---------- */
.band { background: linear-gradient(160deg, var(--deep), var(--navy)); color: #fff; }
.band .lead { color: rgba(255, 255, 255, .7); }
.paper { background: var(--paper); }

/* ---------- Leadership ---------- */
.msg { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.msg + .msg { margin-top: clamp(60px, 8vw, 100px); }
.msg.flip { grid-template-columns: 1fr 420px; }
.msg.flip .msg-photo { order: 2; }
.msg-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; background: #0e3346; }
.msg-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.msg:hover .msg-photo img { transform: scale(1.05); }
.msg-photo::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(7, 22, 33, .6)); }
.msg-headline { font-size: 1.6rem; margin: .6rem 0 0; }
.msg-excerpt { color: rgba(255, 255, 255, .75); }
blockquote { margin: 1rem 0 1.4rem; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; position: relative; padding-left: 1.4rem; border-left: 3px solid var(--teal); }
.msg-sign { margin-top: 1.4rem; }
.msg-sign strong { display: block; }
.msg-sign span { color: rgba(255, 255, 255, .65); font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal); font-weight: 600; text-decoration: none; margin-top: 1.2rem; }
.link-arrow i { transition: transform .25s; }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; margin-top: 2.5rem; }
.cards.c3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cards.c4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
    background: var(--surface); border: 1px solid var(--orange-line); border-radius: var(--radius); padding: 1.6rem;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); border-color: var(--teal); background: var(--surface-hover); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 1.5rem; transition: transform .4s ease; }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.card h3 { font-size: 1.15rem; margin: 1rem 0 .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .metric { margin-top: 1rem; font-weight: 800; font-size: 1.3rem; color: #fff; }
.num { font-family: 'Playfair Display', Georgia, serif; font-size: 3rem; line-height: 1; color: var(--teal); }

/* ---------- Footprint ---------- */
/* auto-fit (not auto-fill): fewer places than columns stretch to fill the row */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 2.5rem; }
.place { border-radius: var(--radius); padding: 1.8rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--orange-line); position: relative; overflow: hidden; transition: background .3s, transform .3s, border-color .3s; }
.place:hover { background: rgba(8, 186, 187, .12); transform: translateY(-4px); }
.place .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); position: relative; }
.place .dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--teal); animation: ping 2s infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.place h3 { margin: 1.1rem 0 .3rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; }
.place p { color: rgba(255, 255, 255, .7); margin: 0; }
.place a { color: var(--teal); }

/* ---------- Stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 2.5rem; }
.tile { border-radius: var(--radius); padding: 1.6rem; background: var(--surface); border: 1px solid var(--orange-line); transition: border-color .3s, background .3s; }
.tile .v { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.tile .l { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
/* Rows of four (Board at a glance, eight figures; IR-18): 4, then 2, then 1 across */
.tiles.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiles.tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles.tiles-4 { grid-template-columns: 1fr; } }

/* ---------- Shareholders ---------- */
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid rgba(255, 255, 255, .18); }
.timeline li { padding: 0 0 1.4rem 1.4rem; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.timeline .d { font-weight: 700; }
.timeline .e { color: var(--muted); }

/* ---------- Explore ---------- */
.chapters { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; counter-reset: ch; }
.chapters a, .chapters span {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; text-decoration: none;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--orange-line); transition: background .25s, transform .25s, border-color .25s;
}
.chapters a:hover { background: rgba(8, 186, 187, .16); transform: translateX(6px); }
.chapters li { counter-increment: ch; }
.chapters a::before, .chapters span::before { content: counter(ch, decimal-leading-zero); font-weight: 800; color: var(--teal); font-size: .85rem; }
.chapters span { opacity: .55; }
.downloads { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.archive { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.archive a { color: #fff; text-decoration: none; border: 1px solid var(--orange-line); padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; transition: background .2s, border-color .2s; }
.archive a:hover { background: rgba(8, 186, 187, .2); border-color: var(--teal); }

/* ---------- The report's elements (ticket IR-14) ----------
   Drawn as masks in PhoenixBev orange; files in images/investor-relations/
   reports/2026-integrated-microsite/, URLs set on <body> (--deco-dots, --deco-arc). */
/* Dotted arc at the foot of the hero */
.hero-arc {
    position: absolute; right: 4%; bottom: 0; width: min(560px, 46vw); aspect-ratio: 332.87 / 51.22; opacity: .9; pointer-events: none;
    background: var(--orange); -webkit-mask: var(--deco-arc) center bottom / contain no-repeat; mask: var(--deco-arc) center bottom / contain no-repeat;
}
/* Dotted element at the top right of each section */
section:not(.hero) > .wrap { position: relative; }
section:not(.hero) > .wrap::before {
    content: ''; position: absolute; top: -34px; right: 0; width: 110px; aspect-ratio: 89.32 / 44.57; opacity: .55; pointer-events: none;
    background: var(--orange); -webkit-mask: var(--deco-dots) center / contain no-repeat; mask: var(--deco-dots) center / contain no-repeat;
}
/* Back to top: the report's orange arrow */
.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 48px; height: 48px; border-radius: 50%;
    box-shadow: 0 10px 26px rgba(243, 107, 33, .4); opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, visibility .3s, transform .3s, box-shadow .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(243, 107, 33, .55); }
.to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.to-top img { width: 100%; height: 100%; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* Slide-in animations (AOS fade-left/right) start outside the screen: keep them from
   widening the page on phones (ticket RD-17) */
section { overflow-x: clip; }
