@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Madimi+One&display=swap');

:root {
    color-scheme: light dark;
    --brand-colour-main: #0096ff;
    --brand-highlight-main: #ff6fa3;
    --brand-selected-main: #91e9ff;
    --brand-black: #121212;
    --brand-white: #ffffff;
    --soft-grey: #b8b8b8;
    --deep-grey: #2a2a2a;
    --light-grey-tint: #f9f9f9;
    --dark-grey-tint: #282828;
    --bg-main: light-dark(var(--brand-white), var(--brand-black));
    --text-main: light-dark(var(--brand-black), var(--brand-white));
    --text-muted: light-dark(var(--soft-grey), var(--soft-grey));
    --line-main: light-dark(#e6e6e6, var(--deep-grey)); /* hairlines: header border etc. */
    --dm-sans: normal 500 1rem/1.5 "DM Sans", sans-serif;
    --madimi-one: normal 400 1rem/1.2 "Madimi One", sans-serif;
    --kern-main: 0.025em; 
    --max-width: 1800px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

.hidden
{
    display: none;
}

.zbs-portal-grid #zbs-nav-tabs li
{
    border: none !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

.container { 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 2rem; 
}

main {
    flex: 1; 
    max-width: var(--max-width); 
    /* padding: 0 2rem; */
    margin: auto; 
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font: var(--dm-sans);
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 600; }

p { line-height: 1.7; margin-bottom: 1.5rem; max-width: 70ch; }

/*/////////////////////*/
/*/// HEADER & NAV ////*/
/*/////////////////////*/
.site-header {
    background: var(--bg-main);
    border-bottom: 1px solid var(--line-main);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-logo img { height: 40px; width: auto; display: block; }

.nav-list { display: flex; list-style: none; gap: 30px; }
.nav-list a { 
    white-space: nowrap; /* keep each link on one line (caterpillar spans otherwise wrap) */
    color: var(--brand-colour-main); 
    text-transform: uppercase; letter-spacing: 1px; 
    text-decoration: none;
    letter-spacing: var(--kern-main);
    font: var(--madimi-one);

    font-size: 20px;
    display: inline-block; 
    transition: transform 0.3s ease, color 0.3s ease;
    backface-visibility: hidden;

}
.nav-list a:hover {
    color: var(--brand-highlight-main);
    transform: scale(1.1);
}

.current-menu-item > a,
.current_page_item > a {
    color: var(--brand-selected-main);
}

/* Targets the parent page link if you are on a sub-page */
.current-menu-ancestor > a {
    color: var(--brand-selected-main);
}

/*/////////////////////*/
/* Case Study     */
/*/////////////////////*/


.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    width: 100%;
}

.case-card {
    display: block;
    width: 100%;
    text-decoration: none;
    position: relative;
    overflow: visible;
}

.case-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    background: #121212;
    overflow: visible;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-image-wrapper img,
.case-image-wrapper .case-tile-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: left;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0) 40%
    );
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 10; /* Make sure it's above the image */
    pointer-events: none; /* Let the click go through to the anchor tag */
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-title {
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    text-align: left;
    padding: 20px;
    margin: 0;
    display: block;
    font-size: 20px;
    /* Add your specific brand font-family here */
}

/* Ensure the image fills the square */
.case-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*//////////////////////////*/
/*// Archive & Playground //*/
/*//////////////////////////*/

.main-portfolio-grid, .playground-grid {
    column-count: 5;
    column-gap: 0.6rem;
}

.main-portfolio-grid {
    padding: 2rem 2rem;
}

.playground-grid, .case-study-section {
    padding: 2rem 2rem;
}

.case-study-section {
    padding-bottom: 2rem !important;
}

.main-portfolio-grid {
    padding-top: 2rem !important;
}

.project-card, .playground-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 0.4rem;
    break-inside: avoid;
    position: relative;
    overflow: visible;
    background: var(--brand-black);
}

.project-image { 
    position: relative; 
    overflow: visible; 
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-image img, 
.project-image video {
    width: 100%;
    height: auto;
    display: block;
}

.project-image video { max-height: 70vh; object-fit: cover; }

/*/////////////////////*/
/* HOVER SCALE         */
/*/////////////////////*/

/* Universal Hover Trigger */
.project-card:hover .project-image,
.case-card:hover .case-image-wrapper,
.playground-item:hover .project-image {
    transform: scale(1.02);
    z-index: 50;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
}

/* Footer */
footer {
    background-color: var(--brand-colour-main);
    color: var(--brand-white);
    margin-top: auto;
    padding: 4rem 0 1.5rem;
}
footer p { color: var(--brand-white); margin: 0; max-width: none; }
footer a { color: var(--brand-white); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }

.footer-inner { display: flex; flex-direction: column; gap: 3rem; }

/* Call to action */
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-cta-title {
    font: var(--madimi-one);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    max-width: 18ch;
}
.footer-cta-button {
    flex-shrink: 0;
    padding: 0.8em 1.8em;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--brand-colour-main);
    background: var(--brand-white);
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
footer .footer-cta-button { color: var(--brand-colour-main); }
footer .footer-cta-button:hover { background: var(--brand-highlight-main); color: var(--brand-white); transform: scale(1.04); }

/* Columns */
.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); /* blue logo -> white */ }
.footer-brand p { opacity: 0.85; max-width: 32ch; }

.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    font: var(--madimi-one);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
}
footer .footer-links a:hover,
footer .footer-social a:hover,
footer .footer-top:hover { color: var(--brand-highlight-main); }
footer .footer-links .current-menu-item > a { color: var(--brand-selected-main); }

.footer-social a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }

/* Bottom row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

@media (max-width: 800px) {
    footer { padding-top: 3rem; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* Responsive Grid */
/* Wide monitors (bigger than a normal laptop/1080p screen): 6 across */
@media (min-width: 2000px) {
    :root { --max-width: 2300px; } /* let the site widen so 6 columns stay laptop-sized */
    .main-portfolio-grid, .playground-grid { column-count: 6; }
}

@media (max-width: 1100px) {
    .main-portfolio-grid, .playground-grid { column-count: 4; }
}


@media (max-width: 800px) {
     .case-study-grid { grid-template-columns: 1fr; }
    .main-portfolio-grid, .playground-grid { column-count: 2; }
    
}

@media (max-width: 600px) {
    .main-portfolio-grid, .playground-grid { column-count: 1; }
}


/*/////////////////////*/
/*//// HAMBURGER //////*/
/*/////////////////////*/

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--brand-colour-main);
}

.menu-item-has-children { position: relative; }

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 15px 0;
    list-style: none;
    z-index: 10;
}

.sub-menu li a {
    padding: 10px 2rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    text-decoration: none;
    font: var(--madimi-one);
}

.menu-item-has-children:hover > .sub-menu { display: block; }

.about-img-class {
    object-fit: cover;
    width: 40vw !important;
    height: 40vw !important;
    max-width: 20vw;
    max-height: 20vw;
    border-radius: 100% !important;
}

@media (max-width: 1000px) { /* header nav needs ~910px (5 items); hamburger at 1000 and below. Bump to 1100 if a 6th item is added */
    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        border-top: 1px solid var(--line-main);
        border-bottom: 1px solid var(--line-main);
        z-index: 1000;
    }

    .main-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0;
        display: flex;
    }

    .nav-list li a {
        padding: 20px 2rem;
        display: inline-block;
        text-decoration: none;
        letter-spacing: var(--kern-main);
        font: var(--madimi-one);
    }
}


/*/////////////////////*/
/*//// ABOUT.    //////*/
/*/////////////////////*/

.about-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 3rem; /* Balanced gap */
    align-items: flex-start; /* Pushes image and text to the top */
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 5rem;
}

.about-left {
    display: flex;
    flex-direction: column;
}

.about-right {
    flex: 1; /* Text column takes up less horizontal space */
    display: flex;
    flex-direction: column;
    max-width: 650px;
}

/* Tweak the container gap for mid-sized screens */
@media (max-width: 1100px) {
    .about-container {
        gap: 2rem;
        padding: 3rem 2rem;
    }
}

.about-left img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    object-fit: cover; /* Ensures it fills its space cleanly */
}

.about-right h1 {
    line-height: 3rem;
}

.about-right h2 {
    margin-top: 0;
    font-size: 2.5rem;
}

.about-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line-main);
}

/* Mobile Stack */
@media (max-width: 800px) {
    .about-container {
        flex-direction: column;
    }
}

/*/////////////////////*/
/*/////////////////////*/
/*/////////////////////*/


@keyframes caterpillarJump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Target the spans inside your menu links */
.nav-list a span {
    display: inline-block;
    pointer-events: none;
}

/* Trigger the wave on hover of the link */
.nav-list a:hover span {
    animation: caterpillarJump 0.4s ease-out;
    animation-delay: calc(var(--i) * 0.05s);
}
/*/////////////////////*/
/*//// CLIENT PORTAL //*/
/*/////////////////////*/
/* Jetpack CRM portal, restyled to brand. Selectors start with .page-content
   so they win over the plugin's own stylesheet (which loads after this one). */

.page-content .zbs-portal-grid {
    padding: 2rem 0 4rem;
    gap: 3rem;
    overflow: visible;
}
/* let grid columns shrink so the scrolling nav can't widen the page */
.page-content .zbs-portal-grid > * { min-width: 0; }

/* Headings */
.page-content .zbs-portal-content h2,
.page-content .zbs-portal-login h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.page-content .zbs-portal-content h3 {
    font: var(--madimi-one);
    font-size: 1.25rem;
    color: var(--brand-colour-main);
    margin: 2rem 0 0.75rem;
}

/* Side nav */
.page-content .zbs-portal-grid #zbs-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    border: none;
}
.page-content .zbs-portal-grid #zbs-nav-tabs li {
    border: none;
    list-style: none;
}
.page-content .zbs-portal-grid #zbs-nav-tabs a {
    display: block;
    padding: 0.5em 1em;
    border-radius: 999px;
    font: var(--madimi-one);
    font-size: 1.15rem;
    letter-spacing: var(--kern-main);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--brand-colour-main);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.page-content .zbs-portal-grid #zbs-nav-tabs a:hover {
    color: var(--brand-highlight-main);
    background: none;
}
.page-content .zbs-portal-grid #zbs-nav-tabs li.active a {
    background: var(--brand-colour-main);
    color: var(--brand-white);
}
.page-content .zbs-portal-grid #zbs-nav-tabs .fa {
    width: 1.2em;
    margin-right: 0.5em;
    font-size: 0.9em;
}

/* Body text & links */
.page-content .zbs-portal-content a:not(.contact-button),
.page-content .zbs-portal-login a {
    color: var(--brand-colour-main);
}
.page-content .zbs-portal-content a:not(.contact-button):hover,
.page-content .zbs-portal-login a:hover {
    color: var(--brand-highlight-main);
}

/* Shared form fields (details form + login) */
.page-content .zbs-portal-content label,
.page-content .zbs-portal-login label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    margin-bottom: 0.4rem;
}
.page-content .zbs-portal-content input[type="text"],
.page-content .zbs-portal-content input[type="email"],
.page-content .zbs-portal-content input[type="password"],
.page-content .zbs-portal-content select,
.page-content .zbs-portal-content textarea,
.page-content .zbs-portal-login input[type="text"],
.page-content .zbs-portal-login input[type="password"] {
    width: 100%;
    max-width: 32rem;
    height: auto;
    padding: 0.75em 1em;
    font: var(--dm-sans);
    color: var(--text-main);
    background: light-dark(var(--light-grey-tint), var(--dark-grey-tint));
    border: 1.5px solid light-dark(#e2e2e2, var(--deep-grey));
    border-radius: 12px;
    transition: border-color 0.2s ease;
}
.page-content .zbs-portal-content input:focus,
.page-content .zbs-portal-content select:focus,
.page-content .zbs-portal-content textarea:focus,
.page-content .zbs-portal-login input:focus {
    outline: none;
    border-color: var(--brand-colour-main);
}
.page-content .zbs-portal-content form p { max-width: none; margin-bottom: 1.25rem; }
.page-content .zbs-portal-content input[type="checkbox"],
.page-content .zbs-portal-login input[type="checkbox"] { accent-color: var(--brand-colour-main); }

/* Address group */
.page-content .zbs-portal-grid .zbs-multi-group-item {
    border-left: 3px solid var(--brand-colour-main);
    padding: 0.5rem 0 0.5rem 1.25rem;
}
.page-content .zbs-portal-grid .zbs-field-group-label {
    font: var(--madimi-one);
    font-size: 1.15rem;
    color: var(--brand-colour-main);
    margin-bottom: 1rem;
}

/* Buttons: same pill as "Request a job" */
.page-content .zbs-portal-content input[type="submit"],
.page-content .zbs-portal-login input[type="submit"],
.contact-button {
    display: inline-block;
    padding: 0.7em 1.6em;
    font: var(--dm-sans);
    font-weight: 600;
    color: var(--brand-white);
    background: var(--brand-colour-main);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.page-content .zbs-portal-content input[type="submit"]:hover,
.page-content .zbs-portal-login input[type="submit"]:hover,
.contact-button:hover {
    background: var(--brand-highlight-main);
    transform: scale(1.04);
}

/* Notices (e.g. "viewing as admin") */
.page-content .zbs-portal-grid .zbs-portal-content .alert {
    margin: 0 0 2rem;
    padding: 1rem 1.25rem;
    text-align: left;
    background: light-dark(var(--light-grey-tint), var(--dark-grey-tint));
    border-left: 3px solid var(--brand-highlight-main);
    border-radius: 12px;
}

/* Invoice / quote tables */
.page-content .zbs-portal-grid table { width: 100%; border-collapse: collapse; }
.page-content .zbs-portal-grid th {
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    border-bottom: 2px solid var(--brand-colour-main);
}
.page-content .zbs-portal-grid th,
.page-content .zbs-portal-grid td {
    padding: 0.75rem 0.5rem;
    border-left: none;
    border-right: none;
    border-top: none;
}
.page-content .zbs-portal-grid td { border-bottom: 1px solid light-dark(#e2e2e2, var(--deep-grey)); }

/* Login screen */
.page-content .zbs-portal-login { padding: 3rem 0 4rem; }
.page-content .zbs-portal-login p { margin-left: auto; margin-right: auto; }
.page-content .zbs-portal-login .login-form {
    width: 100%;
    max-width: 28rem;
    margin: 2rem auto 0;
    padding: 2rem;
    text-align: left;
    border: 1.5px solid light-dark(#e2e2e2, var(--deep-grey));
    border-radius: 20px;
}
.page-content .zbs-portal-login .login-form p { margin-bottom: 1.25rem; }
.page-content .zbs-portal-login .login-remember label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    text-transform: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.page-content .zbs-portal-login .login-submit input[type="submit"] { width: 100%; }
.page-content .zbs-portal-login .login-form > a { display: block; text-align: center; font-size: 0.9rem; }

/* Breakpoint synced with the site header (hamburger at 1000px):
   above 1000px the portal nav is a sidebar, at 1000px and below it's a row of pills. */
@media (min-width: 1001px) {
    .page-content .zbs-portal-grid { grid-template-columns: minmax(13rem, 1fr) 3fr; }
}

/* Mobile: nav becomes a scrollable row of pills */
@media (max-width: 1000px) {
    .page-content .zbs-portal-grid { gap: 2rem; padding-top: 1rem; }
    .page-content .zbs-portal-grid #zbs-nav-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    .page-content .zbs-portal-grid #zbs-nav-tabs a { font-size: 1rem; white-space: nowrap; }
}

/* Client portal extras (Drive files + request a job) */
.jasper-portal-extras { margin-top: 2rem; }
.jasper-drive-embed { width: 100%; height: 420px; border: 1.5px solid light-dark(#e2e2e2, var(--deep-grey)); border-radius: 12px; }


/*/////////////////////*/
/*//// CONTACT PAGE ///*/
/*/////////////////////*/

.contact-page { width: 100%; padding-top: 2rem; padding-bottom: 5rem; }

.contact-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 1rem;
}
.contact-intro { max-width: 40rem; font-size: 1.1rem; margin: 0 0 3rem; }

/* Package cards */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.package-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1.5px solid light-dark(#e2e2e2, var(--deep-grey));
    border-radius: 20px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.package-card:hover { border-color: var(--brand-colour-main); transform: translateY(-3px); }
.package-card.is-featured {
    background: var(--brand-colour-main);
    border-color: var(--brand-colour-main);
    color: var(--brand-white);
}

.package-name {
    font: var(--madimi-one);
    font-size: 1.5rem;
    letter-spacing: var(--kern-main);
    text-transform: uppercase;
    color: var(--brand-colour-main);
    margin: 0 0 0.25rem;
}
.package-price { font-weight: 700; font-size: 1.15rem; margin: 0 0 1.25rem; }
.package-card.is-featured .package-name { color: var(--brand-white); }

.package-includes { list-style: none; padding: 0; margin: 0 0 1.75rem; flex-grow: 1; }
.package-includes li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 0.6em;
    line-height: 1.4;
}
.package-includes li::before {
    content: "↘";
    position: absolute;
    left: 0;
    color: var(--brand-highlight-main);
}
.package-card.is-featured .package-includes li::before { color: var(--brand-selected-main); }

/* Pill button (matches portal) */
.package-choose {
    display: block;
    text-align: center;
    padding: 0.7em 1.4em;
    font-weight: 600;
    color: var(--brand-white);
    background: var(--brand-colour-main);
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.package-choose:hover { background: var(--brand-highlight-main); color: var(--brand-white); transform: scale(1.03); }
.package-card.is-featured .package-choose { background: var(--brand-white); color: var(--brand-colour-main); }
.package-card.is-featured .package-choose:hover { background: var(--brand-highlight-main); color: var(--brand-white); }

/* Add-ons */
.package-addons { margin-top: 2.5rem; }
.package-addons h3 {
    font: var(--madimi-one);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--brand-colour-main);
    margin: 0 0 0.75rem;
}
.package-addons ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.package-addons li {
    padding: 0.4em 1em;
    border: 1.5px solid light-dark(#e2e2e2, var(--deep-grey));
    border-radius: 999px;
    font-size: 0.95rem;
}

/* Form section */
.request-form {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1.5px solid light-dark(#e2e2e2, var(--deep-grey));
    max-width: 48rem;
    scroll-margin-top: 120px; /* clear the sticky header when jumping to #request */
}


/* Request form (Fluent Forms), restyled to brand */
.request-form .request-title {
    font: var(--madimi-one);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    color: var(--brand-colour-main);
    margin: 0 0 0.5rem;
}
.request-form .request-intro { font-size: 1.05rem; margin: 0 0 2rem; }

.request-form .fluentform .ff-el-group { margin-bottom: 1.5rem; }
.request-form .fluentform .ff-el-input--label label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
}
.request-form .fluentform .ff-el-is-required.asterisk-right label:after { color: var(--brand-highlight-main); }

.request-form .fluentform .ff-el-form-control {
    padding: 0.75em 1em;
    font: var(--dm-sans);
    color: var(--text-main);
    background: light-dark(var(--light-grey-tint), var(--dark-grey-tint));
    border: 1.5px solid light-dark(#e2e2e2, var(--deep-grey));
    border-radius: 12px;
    transition: border-color 0.2s ease;
}
.request-form .fluentform .ff-el-form-control:focus {
    border-color: var(--brand-colour-main);
    box-shadow: none;
    outline: none;
}
.request-form .fluentform .ff-el-form-control::placeholder { color: var(--text-muted); }

/* Package radios + checkboxes as selectable pills */
.request-form .fluentform .ff-el-form-check {
    display: inline-block;
    margin: 0 0.4rem 0.5rem 0;
}
.request-form .fluentform .ff-el-form-check-label {
    position: relative; /* keeps the hidden input inside the pill, so focusing it doesn't scroll the page */
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.5em 1.1em;
    border: 1.5px solid light-dark(#e2e2e2, var(--deep-grey));
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.request-form .fluentform .ff-el-form-check-label:hover { border-color: var(--brand-colour-main); }
.request-form .fluentform .ff-el-form-check-input {
    position: absolute !important; /* Fluent Forms sets relative */
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.request-form .fluentform .ff-el-form-check.ff_item_selected .ff-el-form-check-label,
.request-form .fluentform .ff-el-form-check-label:has(input:checked) {
    background: var(--brand-colour-main);
    border-color: var(--brand-colour-main);
    color: var(--brand-white);
}
.request-form .fluentform .ff-el-form-check-label:has(input:focus-visible) {
    outline: 2px solid var(--brand-highlight-main);
    outline-offset: 2px;
}

.request-form .package-summary {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--brand-highlight-main);
    border-radius: 12px;
    background: light-dark(var(--light-grey-tint), var(--dark-grey-tint));
}

/* Submit */
.request-form .fluentform .ff-btn-submit {
    padding: 0.8em 2em;
    font: var(--dm-sans);
    font-weight: 600;
    color: var(--brand-white);
    background: var(--brand-colour-main) !important;
    border: none;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.request-form .fluentform .ff-btn-submit:hover {
    background: var(--brand-highlight-main) !important;
    opacity: 1;
    transform: scale(1.04);
}


/*/////////////////////*/
/*//// PLAYGROUND /////*/
/*/////////////////////*/

.playground-page { width: 100%; }

.playground-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}
.playground-tab {
    flex-shrink: 0;
    padding: 0.45em 1.2em;
    font: var(--madimi-one);
    font-size: 1.1rem;
    letter-spacing: var(--kern-main);
    text-transform: uppercase;
    color: var(--brand-colour-main);
    background: none;
    border: 1.5px solid var(--line-main);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.playground-tab:hover { color: var(--brand-highlight-main); border-color: var(--brand-highlight-main); }
.playground-tab.is-active {
    background: var(--brand-colour-main);
    border-color: var(--brand-colour-main);
    color: var(--brand-white);
}
.playground-tab:focus-visible { outline: 2px solid var(--brand-highlight-main); outline-offset: 2px; }

.playground-item.is-hidden { display: none; }

.package-card.is-selected { border-color: var(--brand-highlight-main); }
.package-card.is-selected .package-choose,
.package-card.is-featured.is-selected .package-choose { background: var(--brand-highlight-main); color: var(--brand-white); }


/*/////////////////////*/
/*//// ARCHIVES & POSTS /*/
/*/////////////////////*/

.archive-page, .single-post { width: 100%; padding-top: 2rem; padding-bottom: 5rem; }

.archive-title, .single-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 2rem;
}
.case-image-empty { width: 100%; aspect-ratio: 16 / 9; background: var(--brand-black); }

.archive-empty a, .single-back { color: var(--brand-colour-main); }
.archive-empty a:hover, .single-back:hover { color: var(--brand-highlight-main); }

.archive-pagination .nav-links { display: flex; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap; }
.archive-pagination .page-numbers {
    padding: 0.4em 1em;
    border: 1.5px solid var(--line-main);
    border-radius: 999px;
    color: var(--brand-colour-main);
    text-decoration: none;
}
.archive-pagination .page-numbers.current { background: var(--brand-colour-main); border-color: var(--brand-colour-main); color: var(--brand-white); }

.single-image img { width: 100%; height: auto; display: block; border-radius: 12px; }
.single-content { max-width: 45rem; margin-top: 2rem; }
.single-content p { margin-bottom: 1em; }
.single-back {
    display: inline-block;
    margin-top: 2.5rem;
    font: var(--madimi-one);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    text-decoration: none;
}


/*/////////////////////*/
/*//// GAME DEV PAGE ////*/
/*/////////////////////*/

.game-page { width: 100%; padding-bottom: 5rem; }

.game-hero { padding-top: 4rem; padding-bottom: 2rem; }
.game-kicker {
    font: var(--madimi-one);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-highlight-main);
    margin: 0 0 0.75rem;
}
.game-title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}
.game-intro { max-width: 40rem; font-size: 1.2rem; margin: 0; }

.game-cover img { width: 100%; height: auto; display: block; border-radius: 12px; }

.game-content { margin-top: 3rem; }
.game-content > * { max-width: 45rem; margin-bottom: 1.25rem; }
.game-content > .wp-block-image,
.game-content > .wp-block-gallery,
.game-content > .wp-block-video,
.game-content > .wp-block-embed,
.game-content > .wp-block-columns { max-width: none; margin: 2.5rem 0; }
.game-content img, .game-content video { border-radius: 12px; max-width: 100%; height: auto; }
.game-content h2 {
    font: var(--madimi-one);
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--brand-colour-main);
    margin-top: 3.5rem;
}
.game-content a { color: var(--brand-colour-main); }
.game-content a:hover { color: var(--brand-highlight-main); }

/* Visually hidden but readable by screen readers / search engines */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* About: "Let's Collaborate" is an h2 for valid heading order, but keeps the small h3 look */
.about-right h2.about-contact-title { font-size: 1rem; font-weight: 500; margin-top: 0; }

/* Instagram icon in the header */
.site-logo { margin-right: auto; }
.header-instagram {
    display: flex;
    position: relative;
    top: -1px;
    margin-left: 30px;
    color: var(--brand-colour-main);
    transition: color 0.2s ease, transform 0.2s ease;
}
.header-instagram:hover { color: var(--brand-highlight-main); transform: scale(1.1); }
.header-instagram:focus-visible { outline: 2px solid var(--brand-highlight-main); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 1000px) {
    .header-instagram { order: 2; margin-left: 0; margin-right: 20px; }
    .menu-toggle { order: 3; }
}

.portal-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font: var(--madimi-one);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    color: var(--brand-colour-main);
    text-decoration: none;
}
.portal-back:hover { color: var(--brand-highlight-main); }

/* Form success message ("Thanks – your request is in!") */
.request-form .ff-message-success {
    position: relative;
    margin: 0;
    padding: 2.25rem 2.25rem 2.25rem 2.5rem;
    background: light-dark(var(--light-grey-tint), var(--dark-grey-tint));
    border: none;
    border-left: 4px solid var(--brand-highlight-main);
    border-radius: 20px;
    box-shadow: none;
    color: var(--text-main);
}
.request-form .ff-message-success p { margin: 0 0 0.75rem; max-width: 45ch; font-size: 1.1rem; line-height: 1.6; }
.request-form .ff-message-success p:last-child { margin-bottom: 0; }
.request-form .ff-message-success p:first-child,
.request-form .ff-message-success p:first-child strong {
    font: var(--madimi-one);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: var(--kern-main);
    color: var(--brand-colour-main);
}
.request-form .ff-message-success p.ff-spam-note {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line-main);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Portal login: error message sits above the login card, not beside it */
.page-content .zbs-client-portal-wrap:has(> .zbs-portal-login) { display: block; }
.page-content .zbs-client-portal-wrap > .alert {
    max-width: 28rem;
    height: auto;
    margin: 2.5rem auto 0;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    color: var(--text-main);
    background: light-dark(var(--light-grey-tint), var(--dark-grey-tint));
    border: none;
    border-left: 4px solid var(--brand-highlight-main);
    border-radius: 12px;
}
