/* ================= BASIC RESET ================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: #17213b;
}


/* ================= COLOURS ================= */

:root {
    --blue: #06356f;
    --dark-blue: #052c5d;
    --pink: #ed3d83;
    --yellow: #f5c400;
    --light-grey: #ededed;
}


/* ================= CAVEAT LEAN ================= */

/* Caveat — very slight left lean */

.pink-text,
section h2,
section h3,
.final-message h3 {
    display: inline-block;
    font-style: normal;
    transform: skewX(3deg);
}


/* ================= IMAGE PLACEHOLDERS ================= */

/* Temporary boxes for images */

.image-placeholder,
.process-image,
.execution-image,
.detail-image {
    background: #d8d8d8;
    color: #666;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;

    object-fit: cover;
}

.logo-placeholder {
    display: block;
    object-fit: contain;
}


/* ================= HERO ================= */

.hero {
    background: var(--blue) url('./Assets/HeroBackground.png') center center / cover no-repeat;
    color: white;

    min-height: 580px;
    padding: 45px 4%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 40px;
}


/* Hero text */

.hero-content {
    width: 35%;
}

/* Logo space */

.hero-logo {
    margin-top: 25px;
}

.logo-placeholder {
    width: 56px;
    height: 56px;

    display: block;
    object-fit: contain;
}


.brand {
    font-size: 13px;
    letter-spacing: 4px;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-weight: 800;
    font-size: 55px;
    line-height: 0.95;

    margin: 0 0 20px;
}

.pink-text {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: #ff5c9c;
    font-size: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 14px;
    line-height: 1.5;

    max-width: 330px;
}

.project-info {
    font-size: 11px;
    line-height: 1.2;

    margin-top: 30px;
}


/* Hero image */

.hero-image {
    width: 60%;
    height: 420px;
}


/* ================= SECTION HEADINGS ================= */

section h2 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 26px;

    display: inline-block;

    margin: 0 0 30px;

    padding-bottom: 10px;

    /* Single curved underline — shallow arc */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8'%3E%3Cpath d='M0 6 Q40 2 80 6' stroke='%2306356f' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 80px 10px;

    border-bottom: none;
}


/* ================= RATIONALE ================= */

.rationale {
    padding: 35px 4%;
    background: white;
}

.rationale-layout {
    display: flex;
    align-items: stretch;
    gap: 30px;
}


/* Rationale text */

.rationale-text {
    width: 28%;

    font-size: 13px;
    line-height: 1.45;
}


/* Four columns */

.ideas {
    width: 72%;

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

.idea {
    text-align: center;

    padding: 0 20px;

    border-left: 1px solid #ddd;
}

.icon {
    color: var(--pink);
    font-size: 62px;
    margin: 0;
    line-height: 1;
}

.idea h3 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    color: var(--blue);
    font-size: 24px;
}

.idea p {
    font-size: 15px;
    line-height: 1.4;
}


/* ================= CREATIVE ================= */

.creative {
    background: var(--blue);
    color: white;

    min-height: 250px;

    padding: 35px 4%;

    display: flex;
    align-items: center;

    gap: 50px;
}

.creative-text {
    width: 27%;
}

.creative h2 {
    font-family: 'Caveat', cursive;
    color: white;

    /* White single curved underline — shallow arc */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='8' viewBox='0 0 80 8'%3E%3Cpath d='M0 6 Q40 2 80 6' stroke='%23ffffff' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.creative-text p {
    font-size: 13px;
    line-height: 1.5;
}


/* Large typography */

.typography-placeholder {
    width: 73%;
    height: 200px;

    display: block;
    object-fit: cover;

    border: 3px solid white;
}


/* ================= PROCESS ================= */

.process {
    padding: 35px 4%;
}

.process-container {
    display: flex;
    align-items: center;

    gap: 12px;
}

.process-step {
    flex: 1;
}

.process-image {
    width: 100%;
    height: 120px;

    margin-bottom: 12px;
}

.process-step h3 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 16px;
    margin: 5px 0;
}

.process-step p {
    font-size: 11px;
    line-height: 1.4;
}

.arrow {
    color: var(--pink);
    font-size: 25px;
}


/* ================= EXECUTION ================= */

.execution {
    background: var(--light-grey);

    padding: 35px 4%;
}

.execution-container {
    display: grid;

    grid-template-columns: 3fr 2fr;

    gap: 8px;
}

.execution-image {
    height: 300px;
}


/* ================= DETAILS ================= */

.details-section {
    padding: 35px 4%;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-btn {
    flex-shrink: 0;

    background: var(--blue);
    color: white;
    border: none;
    border-radius: 50%;

    width: 38px;
    height: 38px;

    font-size: 18px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.carousel-btn:hover {
    background: var(--pink);
    transform: scale(1.1);
}

.details-scroll-wrapper {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.details-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.details-grid {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: none;
}

/* Pause auto-scroll on hover handled by JS */

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.detail-image {
    height: auto;
    width: auto;
    max-height: 200px;
    flex-shrink: 0;
}


/* ================= IMPACT ================= */

.impact {
    padding: 35px 4%;
}

.impact-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Left column */

.impact-left {
    width: 28%;
}

.impact-left h2 {
    margin-bottom: 15px;
}

.impact-left p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Middle column */

.final-message {
    width: 38%;
    text-align: center;
}

.final-message h3 {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 28px;
    margin: 4px 0;
    color: var(--blue);
    letter-spacing: 1px;
}

.pink-final {
    color: var(--pink) !important;
}

/* Scratchy underline beneath the final message */

.scratchy-line {
    margin: 12px auto 0;
    width: 180px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='10' viewBox='0 0 180 10'%3E%3Cpath d='M0 7 C20 3 35 9 55 5 C75 1 90 8 110 4 C130 0 150 7 180 5' stroke='%2306356f' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 180px 10px;
}

/* Right column */

.impact-list {
    width: 28%;
}

.impact-list p {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    margin: 6px 0;
    font-size: 16px;
}

.asterisk {
    color: var(--pink);
    margin-right: 6px;
    font-size: 14px;
}


/* ================= FOOTER ================= */

footer {
    background: var(--blue);

    color: white;

    padding: 15px 4%;

    display: flex;

    justify-content: space-between;

    font-size: 10px;
}


/* ================= HOVERS ================= */

/* Detail images — zoom inside fixed card, box stays still */

.detail-card {
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 4px;
}

.detail-image {
    height: auto;
    width: auto;
    max-height: 200px;
    display: block;
    transition: transform 0.35s ease;
}

.detail-card:hover .detail-image {
    transform: scale(1.08);
}


/* Rationale idea cards — subtle lift */

.idea {
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 4px;
}

.idea:hover {
    transform: translateY(-4px);
    background: #f9f9f9;
}

.idea:hover .icon {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}


/* Process steps — lift */

.process-step {
    transition: transform 0.2s ease;
}

.process-step:hover {
    transform: translateY(-4px);
}

.process-image {
    transition: box-shadow 0.2s ease;
}

.process-step:hover .process-image {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Execution images — zoom on hover */

.execution-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.execution-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* Impact list items — pink on hover */

.impact-list p {
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: default;
}

.impact-list p:hover {
    color: var(--pink);
    transform: translateX(4px);
}


/* Creative typography image — zoom on hover */

.typography-placeholder {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.typography-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    /* Hero becomes one column */

    .hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content,
    .hero-image {
        width: 100%;
    }

    .hero h1 {
        font-size: 42px;
    }


    /* Rationale */

    .rationale-layout {
        flex-direction: column;
    }

    .rationale-text,
    .ideas {
        width: 100%;
    }

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


    /* Creative */

    .creative {
        flex-direction: column;
        align-items: flex-start;
    }

    .creative-text,
    .typography-placeholder {
        width: 100%;
    }


    /* Process */

    .process-container {
        flex-direction: column;
    }

    .arrow {
        transform: rotate(90deg);
    }


    /* Execution */

    .execution-container {
        grid-template-columns: 1fr;
    }


    /* Details */

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


    /* Footer */

    footer {
        flex-direction: column;
    }

    /* Impact */

    .impact-content {
        flex-direction: column;
    }

    .impact-left,
    .final-message,
    .impact-list {
        width: 100%;
    }
}