/* ==========================================================================
   Launch & Handover Centre
   File: /css/handover.css
   Notes:
   - Built specifically for /handover/index.php
   - Fully namespaced so it does not interfere with homepage/global styling
   - Uses existing site variables where possible
   ========================================================================== */

/* ==========================================================================
   Core Wrapper
   ========================================================================== */
.handover-page {
    --handover-bg: var(--bg-color, #ffffff);
    --handover-surface: var(--card-bg, #ffffff);
    --handover-surface-soft: rgba(255, 255, 255, 0.62);
    --handover-text: var(--text-color, #333333);
    --handover-text-soft: var(--secondary-text, #666666);
    --handover-border: var(--border-color, #dddddd);
    --handover-accent: var(--primary-color, #ffcc00);
    --handover-accent-2: var(--secondary-color, #ff9900);
    --handover-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
    --handover-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
    --handover-radius-xl: 28px;
    --handover-radius-lg: 22px;
    --handover-radius-md: 18px;
    --handover-radius-sm: 14px;

    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255, 204, 0, 0.10), transparent 22%),
        radial-gradient(circle at left 30%, rgba(255, 153, 0, 0.06), transparent 18%),
        var(--handover-bg);
    color: var(--handover-text);
    overflow: hidden;
}

body.dark-mode .handover-page {
    --handover-surface-soft: rgba(255, 255, 255, 0.04);
}

.handover-page *,
.handover-page *::before,
.handover-page *::after {
    box-sizing: border-box;
}

.handover-page a {
    text-decoration: none;
}

.handover-page img {
    display: block;
    max-width: 100%;
}

.handover-page h1,
.handover-page h2,
.handover-page h3,
.handover-page p,
.handover-page ul {
    margin-top: 0;
}

.handover-page .container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.handover-hero {
    padding: 76px 0 30px;
}

.handover-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 410px);
    gap: 24px;
    align-items: stretch;
}

.handover-hero__content,
.handover-hero__card {
    min-width: 0;
}

.handover-eyebrow-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.handover-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.12);
    border: 1px solid rgba(255, 204, 0, 0.16);
    color: var(--handover-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.handover-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: var(--handover-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.dark-mode .handover-status-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.handover-title {
    margin-bottom: 16px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 12ch;
}

.handover-subtitle {
    margin-bottom: 28px;
    max-width: 62ch;
    color: var(--handover-text-soft);
    font-size: 1.05rem;
    line-height: 1.82;
}

.handover-client-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.handover-client-meta__item {
    padding: 16px;
    border-radius: var(--handover-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--handover-surface-soft);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
}

body.dark-mode .handover-client-meta__item {
    border-color: rgba(255, 255, 255, 0.07);
}

.handover-client-meta__label {
    display: block;
    margin-bottom: 6px;
    color: var(--handover-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.handover-client-meta__item strong {
    display: block;
    color: var(--handover-text);
    font-size: 1rem;
    line-height: 1.45;
}

.handover-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.handover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease,
        color 0.28s ease,
        border-color 0.28s ease;
}

.handover-btn:hover,
.handover-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--handover-shadow-hover);
}

.handover-btn--primary {
    background: linear-gradient(90deg, var(--handover-accent), var(--handover-accent-2));
    color: #000000;
}

.handover-btn--primary:hover,
.handover-btn--primary:focus-visible {
    background: #000000;
    color: var(--handover-accent);
}

body.dark-mode .handover-btn--primary:hover,
body.dark-mode .handover-btn--primary:focus-visible {
    background: #ffffff;
    color: #000000;
}

.handover-btn--secondary {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.09);
    color: var(--handover-text);
}

.handover-btn--secondary:hover,
.handover-btn--secondary:focus-visible {
    background: #000000;
    border-color: #000000;
    color: var(--handover-accent);
}

body.dark-mode .handover-btn--secondary {
    border-color: rgba(255, 255, 255, 0.10);
}

body.dark-mode .handover-btn--secondary:hover,
body.dark-mode .handover-btn--secondary:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.handover-btn--ghost {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(0, 0, 0, 0.09);
    color: var(--handover-text);
}

body.dark-mode .handover-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

.handover-btn--small {
    padding: 12px 16px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Brand Card
   ========================================================================== */
.handover-brand-card {
    height: 100%;
    padding: 22px;
    border-radius: var(--handover-radius-xl);
    border: 1px solid rgba(255, 204, 0, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
        var(--handover-surface);
    box-shadow: var(--handover-shadow);
    backdrop-filter: blur(16px);
}

body.dark-mode .handover-brand-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
        var(--handover-surface);
}

.handover-brand-card__top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.handover-brand-card__logo-wrap,
.handover-brand-card__logo-fallback {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 22px;
    overflow: hidden;
}

.handover-brand-card__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.handover-brand-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.handover-brand-card__logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--handover-accent), var(--handover-accent-2));
    color: #000000;
    font-size: 1.85rem;
    font-weight: 800;
}

.handover-brand-card__label {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--handover-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.handover-brand-card__text h2 {
    margin-bottom: 4px;
    color: var(--handover-text);
    font-size: 1.4rem;
    line-height: 1.18;
}

.handover-brand-card__text p {
    margin-bottom: 0;
    color: var(--handover-text-soft);
    line-height: 1.65;
}

.handover-brand-card__divider {
    width: 100%;
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(
        90deg,
        rgba(255, 204, 0, 0.28),
        rgba(0, 0, 0, 0.08),
        transparent
    );
}

body.dark-mode .handover-brand-card__divider {
    background: linear-gradient(
        90deg,
        rgba(255, 204, 0, 0.28),
        rgba(255, 255, 255, 0.08),
        transparent
    );
}

.handover-brand-card__details {
    display: grid;
    gap: 14px;
}

.handover-brand-card__detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.handover-brand-card__detail span {
    color: var(--handover-text-soft);
    font-size: 0.95rem;
}

.handover-brand-card__detail strong {
    color: var(--handover-text);
    font-size: 0.95rem;
    text-align: right;
}

/* ==========================================================================
   Shared Section Styles
   ========================================================================== */
.handover-section {
    padding: 30px 0;
}

.handover-section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.handover-section-heading__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--handover-accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.handover-section-heading h2 {
    margin-bottom: 10px;
    font-size: clamp(1.95rem, 4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.handover-section-heading p {
    margin-bottom: 0;
    color: var(--handover-text-soft);
    line-height: 1.8;
}

/* ==========================================================================
   Summary Grid
   ========================================================================== */
.handover-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.handover-summary-card {
    padding: 20px;
    border-radius: var(--handover-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--handover-surface);
    box-shadow: var(--handover-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .handover-summary-card {
    border-color: rgba(255, 255, 255, 0.07);
}

.handover-summary-card:hover,
.handover-summary-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--handover-shadow-hover);
}

.handover-summary-card__label {
    display: block;
    margin-bottom: 8px;
    color: var(--handover-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.handover-summary-card__value {
    margin-bottom: 0;
    color: var(--handover-text);
    font-size: 1.08rem;
    line-height: 1.5;
    font-weight: 700;
}

/* ==========================================================================
   Links Grid
   ========================================================================== */
.handover-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.handover-link-card {
    padding: 22px;
    border-radius: var(--handover-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--handover-surface);
    box-shadow: var(--handover-shadow);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

body.dark-mode .handover-link-card {
    border-color: rgba(255, 255, 255, 0.07);
}

.handover-link-card:hover,
.handover-link-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--handover-shadow-hover);
    border-color: rgba(255, 204, 0, 0.24);
}

.handover-link-card__icon {
    position: relative;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 204, 0, 0.18), rgba(255, 153, 0, 0.12)),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.18);
}

.handover-link-card__icon::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--handover-accent);
    border-right: 2px solid var(--handover-accent);
    transform: rotate(45deg);
}

.handover-link-card h3 {
    margin-bottom: 8px;
    color: var(--handover-text);
    font-size: 1.1rem;
}

.handover-link-card p {
    margin-bottom: 16px;
    color: var(--handover-text-soft);
    line-height: 1.75;
}

.handover-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--handover-accent);
    font-weight: 700;
    transition: color 0.28s ease, transform 0.28s ease;
}

.handover-inline-link:hover,
.handover-inline-link:focus-visible {
    color: var(--handover-text);
    transform: translateX(2px);
}

/* ==========================================================================
   Two Column Panels
   ========================================================================== */
.handover-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.handover-panel {
    padding: 24px;
    border-radius: var(--handover-radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--handover-surface);
    box-shadow: var(--handover-shadow);
}

body.dark-mode .handover-panel {
    border-color: rgba(255, 255, 255, 0.07);
}

.handover-panel__heading {
    margin-bottom: 18px;
}

.handover-panel__heading h2 {
    margin-bottom: 0;
    font-size: 1.55rem;
    line-height: 1.2;
}

/* ==========================================================================
   Deliverables
   ========================================================================== */
.handover-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.handover-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--handover-text-soft);
    line-height: 1.75;
}

.handover-check-list__icon {
    position: relative;
    width: 22px;
    height: 22px;
    margin-top: 4px;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--handover-accent), var(--handover-accent-2));
}

.handover-check-list__icon::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    width: 6px;
    height: 10px;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    transform: rotate(45deg);
}

/* ==========================================================================
   Notes
   ========================================================================== */
.handover-note-list {
    display: grid;
    gap: 14px;
}

.handover-note-item {
    padding: 16px 16px 16px 18px;
    border-left: 3px solid rgba(255, 204, 0, 0.42);
    border-radius: 0 14px 14px 0;
    background: rgba(255, 255, 255, 0.46);
}

body.dark-mode .handover-note-item {
    background: rgba(255, 255, 255, 0.04);
}

.handover-note-item h3 {
    margin-bottom: 8px;
    color: var(--handover-text);
    font-size: 1rem;
}

.handover-note-item p {
    margin-bottom: 0;
    color: var(--handover-text-soft);
    line-height: 1.75;
}

/* ==========================================================================
   Next Steps
   ========================================================================== */
.handover-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.handover-next-card {
    padding: 22px;
    border-radius: var(--handover-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: var(--handover-surface);
    box-shadow: var(--handover-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .handover-next-card {
    border-color: rgba(255, 255, 255, 0.07);
}

.handover-next-card:hover,
.handover-next-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--handover-shadow-hover);
}

.handover-next-card h3 {
    margin-bottom: 8px;
    color: var(--handover-text);
    font-size: 1.08rem;
}

.handover-next-card p {
    margin-bottom: 16px;
    color: var(--handover-text-soft);
    line-height: 1.75;
}

/* ==========================================================================
   Reveal Animation
   ========================================================================== */
.handover-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.58s ease, transform 0.58s ease;
}

.handover-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Copy Feedback Helper
   ========================================================================== */
.handover-copy-confirm {
    display: inline-block;
    margin-top: 10px;
    color: var(--handover-text-soft);
    font-size: 0.88rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.handover-copy-confirm.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .handover-hero__inner,
    .handover-two-col {
        grid-template-columns: 1fr;
    }

    .handover-summary-grid,
    .handover-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .handover-next-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .handover-hero {
        padding-top: 58px;
    }

    .handover-client-meta,
    .handover-summary-grid,
    .handover-links-grid {
        grid-template-columns: 1fr;
    }

    .handover-title {
        max-width: 100%;
    }
}

@media (max-width: 580px) {
    .handover-page .container {
        width: min(100% - 1.1rem, 100%);
    }

    .handover-brand-card {
        padding: 18px;
    }

    .handover-brand-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .handover-brand-card__detail {
        flex-direction: column;
        align-items: flex-start;
    }

    .handover-brand-card__detail strong {
        text-align: left;
    }

    .handover-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .handover-btn {
        width: 100%;
    }

    .handover-section {
        padding: 24px 0;
    }
}