
/* ==========================================
   KLCAR 2027
   MAIN STYLESHEET V1.0
   ========================================== */

:root {
    --navy: #07152f;
    --navy-light: #102649;
    --red: #e5092b;
    --red-dark: #b90923;
    --yellow: #ffda25;
    --white: #ffffff;
    --light: #f3f6fa;
    --text: #142038;
    --muted: #627086;
    --border: #e1e7ef;
    --radius: 22px;
    --shadow: 0 15px 45px rgba(7, 21, 47, .09);
    --transition: .3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    cursor: pointer;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

p {
    margin-bottom: 18px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

::selection {
    background: var(--red);
    color: white;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: var(--navy);
    color: white;
}

.section-dark p {
    color: #c2cde0;
}

.section-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -.045em;
    margin: 15px 0 25px;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-heading p {
    color: var(--muted);
}

.section-dark .section-heading p {
    color: #c2cde0;
}

.accent {
    color: var(--red);
}

.gradient-text {
    background: linear-gradient(100deg, #ff324f, #ffb524);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    color: var(--red);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.skip-link {
    position: fixed;
    left: 10px;
    top: -100px;
    background: white;
    padding: 12px 20px;
    z-index: 9999;
}

.skip-link:focus {
    top: 10px;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 27px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: .92rem;
    font-weight: 750;
    transition: transform var(--transition),
                background var(--transition),
                box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 8px 25px rgba(229, 9, 43, .25);
}

.btn-primary:hover {
    background: var(--red-dark);
    box-shadow: 0 12px 30px rgba(229, 9, 43, .35);
}

.btn-outline {
    border-color: rgba(255, 255, 255, .35);
    color: white;
    background: rgba(255, 255, 255, .06);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .15);
}

.btn-white {
    background: white;
    color: var(--red);
}

.btn-white:hover {
    background: #fff1f3;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--red);
    font-weight: 800;
}

/* SCROLL PROGRESS */

#scroll-progress {
    position: fixed;
    left: 0;
    top: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    z-index: 2000;
}

/* NAVIGATION */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    background: rgba(7, 21, 47, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background var(--transition),
                box-shadow var(--transition);
}

.header.scrolled {
    background: rgba(7, 21, 47, .98);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .2);
}

.nav-wrapper {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex-shrink: 0;
}

.brand img {
    object-fit: contain;
    border-radius: 8px;
}

.brand strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.1;
}

.brand strong span {
    color: var(--red);
}

.brand small {
    display: block;
    font-size: .52rem;
    letter-spacing: .1em;
    color: #b6c5db;
    margin-top: 6px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #c9d3e3;
    font-size: .85rem;
    font-weight: 650;
    transition: color var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
}

.nav-register {
    min-height: 40px;
    padding: 9px 22px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: white;
    margin: 6px 0;
    transition: transform var(--transition),
                opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* HERO */

.hero {
    min-height: 780px;
    min-height: max(780px, 100svh);
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--navy);
    color: white;
}

.hero-glow {
    position: absolute;
    width: 750px;
    height: 750px;
    right: -200px;
    top: -250px;
    background: radial-gradient(circle,
                rgba(229, 9, 43, .24), transparent 65%);
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(black, transparent);
    z-index: -1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: entrance .8s ease both;
}

.hero-eyebrow {
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse-ring 2s infinite;
}

.hero h1 {
    font-size: clamp(3.6rem, 7.4vw, 6.5rem);
    line-height: .94;
    font-weight: 950;
    letter-spacing: -.055em;
    margin-bottom: 28px;
}

.hero-description {
    font-size: 1.05rem;
    color: #c3cfe1;
    max-width: 510px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0;
}

.hero-meta span {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 7px;
    padding: 6px 14px;
    font-size: .83rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-note {
    font-size: .8rem;
    color: #9daec7;
    margin-top: 24px;
}

.hero-visual {
    position: relative;
    animation: entrance 1s .15s ease both;
}

.hero-poster {
    position: relative;
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .17);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
    animation: float-image 7s ease-in-out infinite;
}

.image-halo {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse,
                rgba(229, 9, 43, .28), transparent 70%);
    filter: blur(25px);
}

.floating-label {
    position: absolute;
    bottom: -25px;
    left: -25px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 15px;
    background: rgba(16, 38, 73, .96);
    border: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .3);
}

.floating-label strong {
    display: block;
    font-size: .9rem;
}

.floating-label small {
    color: #b9c6db;
    font-size: .72rem;
}

.heart-icon {
    font-size: 2rem;
    color: var(--red);
    animation: heartbeat 1.6s infinite;
}

.hero-ecg {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: -1;
    opacity: .16;
}

.hero-ecg path {
    fill: none;
    stroke: #ff2047;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    animation: ecg-draw 5s linear infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid #8090aa;
    border-radius: 20px;
}

.scroll-indicator span {
    position: absolute;
    left: 8px;
    top: 7px;
    width: 4px;
    height: 8px;
    border-radius: 5px;
    background: white;
    animation: scroll-dot 1.8s infinite;
}

/* COUNTDOWN */

.countdown-section {
    background: var(--red);
    color: white;
    padding: 32px 0;
}

.countdown-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.countdown-section .eyebrow {
    color: #ffd3db;
}

.countdown-section h2 {
    font-size: 1.6rem;
    margin-top: 8px;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.countdown-item {
    min-width: 100px;
    padding: 12px 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    background: rgba(255, 255, 255, .09);
}

.countdown-item strong {
    display: block;
    font-size: 2.3rem;
    font-weight: 900;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.countdown-item span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ABOUT */

.image-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-panel img {
    width: 100%;
    transition: transform .6s ease;
}

.image-panel:hover img {
    transform: scale(1.035);
}

.image-caption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 25px 20px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: white;
    font-size: .85rem;
}

.organiser {
    border-left: 4px solid var(--red);
    padding: 15px 20px;
    background: var(--light);
    border-radius: 0 10px 10px 0;
    margin: 25px 0;
}

.organiser strong,
.organiser > span {
    display: block;
}

/* HIGHLIGHTS */

.highlights-section {
    background: var(--navy);
    color: white;
    padding: 45px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.highlight {
    text-align: center;
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, .13);
}

.highlight:last-child {
    border: none;
}

.highlight-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--yellow);
}

.highlight p {
    margin: 0;
    font-size: .85rem;
    color: #c3cfe1;
}

/* ACTIVITIES */

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.activity-card {
    position: relative;
    overflow: hidden;
    background: white;
    padding: 32px 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--transition),
                box-shadow var(--transition),
                border-color var(--transition);
}

.activity-card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    box-shadow: var(--shadow);
}

.card-number {
    position: absolute;
    right: 18px;
    top: 8px;
    font-size: 3.8rem;
    font-weight: 900;
    color: #edf0f5;
    line-height: 1;
}

.activity-icon {
    width: 48px;
    height: 48px;
    color: var(--red);
    display: block;
    margin-bottom: 25px;
}

.activity-tag {
    display: inline-block;
    color: var(--red);
    font-size: .7rem;
    letter-spacing: .15em;
    font-weight: 800;
    margin-bottom: 10px;
}

.activity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.activity-card p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
}

/* CPR AWARENESS */

.awareness-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.awareness-card {
    overflow: hidden;
    background: var(--navy-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.1);
}

.awareness-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #fff;
}

.awareness-content {
    padding: 28px;
}

.awareness-content h3 {
    margin-bottom: 15px;
}

.awareness-content p {
    margin: 0;
}

.cpr-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 40px;
    gap: 18px;
}

.cpr-steps > div {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    padding: 25px 20px;
    background: rgba(255,255,255,.035);
}

.cpr-steps span {
    font-size: 1.7rem;
    color: var(--red);
    font-weight: 900;
}

.cpr-steps h3 {
    margin: 12px 0;
    font-size: 1rem;
}

.cpr-steps p {
    font-size: .85rem;
    margin: 0;
}

.metronome {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 35px;
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius);
    margin-top: 40px;
    padding: 40px;
}

.metronome h3 {
    font-size: 1.8rem;
    margin: 15px 0;
}

.metronome small {
    color: #9eacc2;
}

.metronome-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.beat-heart {
    color: var(--red);
    font-size: 6rem;
    line-height: 1;
    transition: transform .12s ease;
}

.beat-heart.beating {
    transform: scale(1.2);
}

.bpm {
    font-size: 1.4rem;
    letter-spacing: .1em;
}

#metronome-status {
    font-size: .75rem;
    color: #c2cde0;
    min-height: 20px;
}

.video-panel {
    padding: 30px;
    margin-top: 30px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius);
}

.video-panel h3 {
    margin-bottom: 15px;
}

.video-panel iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
}

.medical-disclaimer {
    font-size: .75rem;
    margin-top: 25px;
    opacity: .75;
}

/* PROGRAMME */

.detail-list {
    margin-top: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.detail-row span {
    color: var(--muted);
}

.detail-row strong {
    text-align: right;
}

.programme-panel {
    padding: 35px;
    border-radius: var(--radius);
    background: var(--light);
    border: 1px solid var(--border);
}

.programme-panel h3 {
    margin: 15px 0 30px;
    font-size: 1.7rem;
}

.timeline {
    border-left: 2px solid #f0a1ad;
    margin-left: 7px;
    padding-left: 25px;
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--red);
    border: 3px solid white;
    border-radius: 50%;
    left: -34px;
    top: 5px;
}

.timeline-item p {
    color: var(--muted);
    font-size: .85rem;
    margin: 6px 0 0;
}

.small-note {
    font-size: .75rem;
    color: var(--muted);
    margin: 0;
}

/* RACE KIT */

.kit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.kit-card {
    background: white;
    border: 1px solid var(--border);
    padding: 40px 25px;
    text-align: center;
    border-radius: var(--radius);
    transition: transform var(--transition),
                box-shadow var(--transition);
}

.kit-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.kit-icon {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    background: #fff0f3;
    color: var(--red);
    border-radius: 50%;
    margin: 0 auto 25px;
}

.kit-icon svg {
    width: 55px;
    height: 55px;
}

.kit-card h3 {
    margin-bottom: 12px;
}

.kit-card p {
    font-size: .85rem;
    color: var(--muted);
    margin: 0;
}

/* VENUE */

.venue-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.venue-info {
    padding: 40px;
    background: var(--navy);
    color: white;
}

.venue-label {
    color: var(--yellow);
    font-size: .75rem;
    letter-spacing: .15em;
    font-weight: 800;
}

.venue-info h3 {
    font-size: 1.9rem;
    margin: 15px 0;
}

.venue-info h4 {
    margin-bottom: 10px;
}

.venue-info p {
    color: #c2cde0;
}

.venue-divider {
    height: 1px;
    background: rgba(255,255,255,.15);
    margin: 25px 0;
}

.map-panel {
    min-height: 400px;
    background: #e5eaf0;
}

.map-panel iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    display: block;
}

.route-panel {
    margin-top: 30px;
}

.route-panel iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: var(--radius);
    margin-top: 20px;
}

/* FAQ */

.faq-layout {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 65px;
}

.faq-list details {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-list details[open] {
    border-color: var(--red);
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 48px 20px 22px;
    position: relative;
    font-weight: 700;
    font-size: .95rem;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--red);
    font-size: 1.5rem;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 22px 22px;
    color: var(--muted);
    font-size: .9rem;
    animation: entrance .25s ease;
}

/* REGISTRATION */

.registration-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #a90721, #e5092b);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.registration-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 70% 0,
                rgba(255,218,37,.22), transparent 60%);
}

.registration-section .eyebrow {
    color: #ffd6df;
}

.registration-content h2 {
    font-size: clamp(2.7rem, 6vw, 5rem);
    font-weight: 950;
    letter-spacing: -.05em;
    margin: 20px 0;
}

.registration-content h2 span {
    color: var(--yellow);
}

.registration-content > p {
    max-width: 650px;
    margin: 20px auto;
}

.registration-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}

#registration-message {
    font-size: .8rem;
    color: #ffe1e7;
}

/* FOOTER */

.footer {
    background: #050f22;
    color: #c2cde0;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr;
    gap: 45px;
}

.footer-brand {
    margin-bottom: 25px;
}

.footer h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer p {
    font-size: .85rem;
}

.footer-grid > div > a:not(.brand) {
    display: block;
    font-size: .85rem;
    margin-bottom: 10px;
}

.footer-grid > div > a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 40px;
    padding-top: 25px;
}

.footer-bottom p {
    font-size: .75rem;
    margin: 0;
}

/* FLOATING CONTROLS */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 25px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: var(--navy);
    color: white;
    box-shadow: var(--shadow);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s ease;
    font-size: 1.4rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-cta {
    display: none;
}

.toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--navy);
    color: white;
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    font-size: .85rem;
    text-align: center;
    max-width: 90%;
}

.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* SCROLL REVEAL */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease,
                transform .65s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ANIMATIONS */

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

@keyframes float-image {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.16); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(229,9,43,.65);
    }
    70%, 100% {
        box-shadow: 0 0 0 12px rgba(229,9,43,0);
    }
}

@keyframes ecg-draw {
    0% { stroke-dashoffset: 1600; }
    80%, 100% { stroke-dashoffset: 0; }
}

@keyframes scroll-dot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    80%, 100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* TABLET */

@media (max-width: 1050px) {

    .navigation {
        gap: 15px;
    }

    .hero-layout {
        gap: 35px;
    }

    .activity-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-column {
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(3rem, 7vw, 5.5rem);
    }
}

/* MOBILE NAVIGATION */

@media (max-width: 850px) {

    .nav-wrapper {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 25px 5%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
    }

    .navigation.open {
        display: flex;
    }

    .nav-link {
        padding: 8px 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero {
        padding-top: 125px;
        min-height: auto;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-inline: auto;
    }

    .hero-meta,
    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        max-width: 580px;
        width: 100%;
        margin-inline: auto;
    }

    .floating-label {
        left: 10px;
    }

    .countdown-layout {
        flex-direction: column;
        text-align: center;
    }

    .two-column,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .cpr-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .venue-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 70px 0;
    }
}

/* SMALL MOBILE */

@media (max-width: 560px) {

    body {
        padding-bottom: 65px;
    }

    .container {
        width: 90%;
    }

    .brand strong {
        font-size: 1.1rem;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 12vw, 4.5rem);
    }

    .hero-eyebrow {
        font-size: .62rem;
    }

    .hero-description {
        font-size: .95rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-poster {
        border-radius: 16px;
    }

    .countdown {
        width: 100%;
        gap: 7px;
    }

    .countdown-item {
        min-width: 0;
        padding: 12px 5px;
    }

    .countdown-item strong {
        font-size: 1.8rem;
    }

    .countdown-item span {
        font-size: .58rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 0;
    }

    .highlight:nth-child(2) {
        border: none;
    }

    .activity-grid,
    .awareness-grid,
    .kit-grid,
    .metronome,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        padding: 28px;
    }

    .metronome,
    .programme-panel,
    .venue-info {
        padding: 25px;
    }

    .cpr-steps {
        gap: 10px;
    }

    .cpr-steps > div {
        padding: 18px 14px;
    }

    .cpr-steps h3 {
        font-size: .85rem;
    }

    .detail-row {
        font-size: .85rem;
    }

    .map-panel,
    .map-panel iframe {
        min-height: 320px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .mobile-cta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 17px 6%;
        padding-bottom: max(17px, env(safe-area-inset-bottom));
        background: var(--red);
        color: white;
        font-weight: 800;
        z-index: 950;
        box-shadow: 0 -5px 20px rgba(0,0,0,.15);
    }

    .back-to-top {
        bottom: 80px;
        right: 15px;
    }

    .toast {
        bottom: 90px;
    }

    .registration-buttons .btn {
        width: 100%;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
