* {
    box-sizing: border-box;
}

html{
    width: 100%;
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body{
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background-color: #080b12;
    color: #f5f7fa;
    font-family: "Arial", "Helvetica", sans-serif;
}

/* Global container utility used across pages to center content and provide consistent padding */
.container {
    width: min(70rem, 100%);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Mobile-first readability helpers */
html { font-size: 16px; }
@media (max-width: 900px) {
    html { font-size: 16px; }
}

/* Make images and iframes responsive by default */
img, picture, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve tap targets and spacing on small screens */
@media (max-width: 900px) {
    .site-nav nav a,
    .site-nav .contact-button,
    .hero-button {
        padding: 0.85rem 1rem;
    }

    .site-banner {
        padding: 0.65rem 0.9rem;
    }
}

/* Ensure form controls are legible on small screens */
input, textarea, button {
    font-size: 1rem;
}

/* Slightly reduce heavy shadows on very small devices for performance */
@media (max-width: 480px) {
    .contact-form-wrap,
    .portfolio-slide,
    .jack-van-image-card {
        box-shadow: none;
    }
}

.site-banner {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    background: #f5b700;
    color: #ffffff;
    font-weight: 700;
    transition: top 0.35s ease, bottom 0.35s ease;
}

.site-banner a {
    color: inherit;
    text-decoration: underline;
}

.banner-socials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    justify-self: center;
}

.banner-facebook,
.banner-bark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none !important;
}

.banner-bark svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
    display: block;
}

.banner-message {
    justify-self: center;
    white-space: nowrap;
    text-align: center;
}

.banner-phone {
    justify-self: center;
    font-size: 1.5rem;
    text-decoration: none !important;
}

.banner-phone i {
    font-size: 1.5rem;
}

.site-banner.banner-bottom {
    position: fixed;
    top: auto;
    bottom: 0;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    width: 100%;
    align-self: flex-start;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
    padding: 0.75rem max(1.5rem, calc((100% - 70rem) / 2));
    background: #555b63;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    width: clamp(5.5rem, 12vw, 7.5rem);
    height: auto;
    max-width: 7.5rem;
    object-fit: contain;
}

.site-nav nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #080b12;
    cursor: pointer;
    font-size: 1.5rem;
}

.site-nav nav a {
    color: #080b12;
    font-weight: 700;
    text-decoration: none;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible {
    color: #f5b700;
}

.site-nav .contact-button {
    padding: 0.9rem 1.5rem;
    border-radius: 0.3rem;
    background: #f5b700;
    color: #080b12;
    font-size: 1.05rem;
}

.site-nav .contact-button:hover,
.site-nav .contact-button:focus-visible {
    background: #ffd45a;
    color: #080b12;
}

.jack-van-section {
    position: relative;
    min-height: 48rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.75fr);
    gap: 3rem;
    align-items: start;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
    text-align: center;
}
.jack-van-section::before {
    position: absolute;
    z-index: -2;
    inset: -1rem;
    background: url("../images/triplet-vanlads.jpg") center / cover no-repeat;
    content: "";
    filter: blur(2px);
}

.jack-van-section::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    content: "";
}

.jack-van-content {
    width: auto;
    margin-left: max(1.5rem, calc((100vw - 70rem) / 2));
    padding: 5rem 1.5rem;
}

.jack-van-image-card {
    align-self: center;
    width: min(100% - 1.5rem, 28rem);
    margin-right: max(1.5rem, calc((100vw - 70rem) / 2));
    overflow: hidden;
    border: 0.35rem solid #000000;
    border-radius: 1rem;
    background: #000000;
}

.jack-van-image-card img {
    display: block;
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.jack-van-content h1 {
    max-width: none;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.05;
    white-space: nowrap;
    text-align: left;
}

.jack-van-content h1 strong {
    display: inline-block;
}

.jack-van-content h2 {
    max-width: 38rem;
    margin: 1.5rem 0 0;
    color: #ffffff;
    font-size: clamp(0.85rem, 1.5vw, 1.15rem);
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.promise-list {
    display: grid;
    gap: 0.65rem;
    margin: 2rem 0 0;
    padding: 0;
    color: #ffffff;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 700;
    list-style: none;
    text-align: left;
}

.promise-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.promise-list i {
    flex: 0 0 auto;
    margin-top: 0.25rem;
    color: #f5b700;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border: 2px solid #f5b700;
    border-radius: 0.35rem;
    background: #f5b700;
    color: #080b12;
    font-weight: 700;
    text-decoration: none;
}

.hero-button:hover,
.hero-button:focus-visible {
    background: #ffd45a;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(2px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.review-badge:hover,
.review-badge:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1;
}

.fb-badge .badge-icon {
    background: #1877f2;
    color: #ffffff;
}

.google-badge .badge-icon {
    background: #4285f4;
    color: #ffffff;
}

.myjobquote-badge .badge-icon {
    background: #0f172a;
    color: #f5b700;
}

.bark-badge .badge-icon {
    background: #ff8a00;
    color: #ffffff;
}

.badge-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.badge-stars {
    color: #f5b700;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.badge-copy small {
    margin-top: 0.15rem;
    color: #edf3fb;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.customer-reviews {
    padding: 2.5rem 1rem;
    background: #15202e;
    color: #ffffff;
    text-align: center;
}

.customer-reviews .container { max-width: 52rem; }
.customer-reviews h2 { margin: 0 0 1rem; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.customer-reviews-widget { max-width: 42rem; margin: 0 auto; min-height: 8rem; }
.customer-reviews p { margin: 1rem 0 0; }
.customer-reviews a { color: #ffd056; font-weight: 700; }
.customer-reviews a:focus-visible { outline: 3px solid #ad7600; outline-offset: 3px; }
.customer-reviews-widget:not(:empty) + p { display: none; }
/* The supplied widget's icon font does not render reliably on the preview host. */
.customer-reviews-widget .icon-star::before {
    content: "★" !important;
    font-family: Arial, sans-serif !important;
    color: #f5b700 !important;
}

.facebook-post-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto 2rem;
}

.facebook-post {
    position: relative;
    z-index: 1;
    width: min(500px, calc(50% - 0.75rem));
    min-height: 670px;
    margin: 0;
    overflow: hidden;
    background: #ffffff;
}

.facebook-post iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 670px;
    min-height: 670px;
    aspect-ratio: auto;
    border: 0;
    -webkit-transform: translateZ(0);
}

.facebook-post:not(.facebook-post-right) {
    transform: none;
}

.facebook-post-right {
    z-index: 4;
    min-height: 670px;
    margin: 0;
}

.facebook-post-right iframe {
    height: 670px;
}

.intro-section {
    position: relative;
    z-index: auto;
    min-height: 30rem;
    margin-top: calc(-5rem - 100px);
    padding: 2rem 1.5rem 6rem;
    border-radius: 50% 50% 0 0 / 5rem 5rem 0 0;
    background: #ffffff;
    color: #080b12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.intro-section h2 {
    position: relative;
    z-index: 2;
    align-self: center;
    width: 100%;
    margin: 0;
    color: #080b12;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-align: center;
}

.intro-content {
    width: min(70rem, 100%);
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    margin: 0 0 0.75rem;
}

.intro-content p {
    margin: 0;
    color: #5d6878;
}

.seo-copy {
    padding: 2.5rem 0 1.5rem;
    background: #ffffff;
    color: #080b12;
}

.seo-copy .container {
    max-width: 64rem;
}

.seo-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-align: center;
}

.seo-copy p {
    margin: 0 0 1rem;
    color: #38414e;
    font-size: 1.05rem;
    line-height: 1.7;
}

.seo-copy p:last-child {
    margin-bottom: 0;
}

.map-section {
    position: relative;
    z-index: 2;
    min-height: 48rem;
    margin-top: -5rem;
    overflow: hidden;
    background: url("../images/doncaster mapo.png") center 45% / cover no-repeat;
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.25s ease;
}

.map-section.is-active {
    box-shadow: none;
}

/* Embedded map variant: keep decorative curves but place them above the map and below text */
.map-section.map-embed {
    background: none;
    box-shadow: none;
    position: relative;
    margin-top: 0;
}

.map-section.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 0; /* map behind decorative curves and content */
}

.map-section.map-embed::before {
    position: absolute;
    top: -1px;
    left: -10%;
    width: 120%;
    height: 7rem;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: #ffffff;
    content: "";
    z-index: 1; /* sits above the map but below page text */
}

.map-section.map-embed::after {
    position: absolute;
    right: -10%;
    bottom: -4rem;
    left: -10%;
    height: 8rem;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #000000;
    content: "";
    z-index: 1;
}

.map-section.map-embed .container {
    position: relative;
    z-index: 2; /* content above curves */
}

@media (hover: hover) and (pointer: fine) {
    .map-section:hover {
        box-shadow: none;
    }
}

.map-section::before {
    position: absolute;
    top: -1px;
    left: -10%;
    width: 120%;
    height: 7rem;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: #ffffff;
    content: "";
}

.map-section::after {
    position: absolute;
    right: -10%;
    bottom: -4rem;
    left: -10%;
    height: 8rem;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #000000;
    content: "";
}

.map-section h2 {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: max-content;
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease;
}

.map-section.is-active h2 {
    opacity: 0;
    visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .map-section:hover h2 {
        opacity: 0;
        visibility: hidden;
    }
}

.fourth-section {
    position: relative;
    min-height: 28rem;
    margin-top: -1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    overflow: hidden;
    background: #000000;
    padding: 2rem 1rem 4rem;
}

.fourth-section::before {
    display: none;
}

.fourth-section h2 {
    position: relative;
    z-index: 1;
    order: 1;
    width: 100%;
    margin: 0;
    color: #f5b700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-align: center;
}

.portfolio-posts {
    position: relative;
    z-index: 1;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(1rem, 2vw, 2.5rem);
    width: min(1100px, calc(100% - 2rem));
    margin: 2rem auto 0;
}

.portfolio-post {
    display: flex;
    justify-content: center;
    width: 100%;
}

.portfolio-post iframe {
    display: block;
    width: min(100%, 500px);
    max-width: 500px;
    height: 714px;
    margin: 0 auto;
    border: 0;
    overflow: hidden;
    background: #ffffff;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: min(70rem, 100%);
}

.example-card {
    display: flex;
    flex: 1 1 0;
    min-height: 10rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #000000;
    color: #ffffff;
    text-align: center;
}

.example-card i {
    margin-bottom: 0.75rem;
    color: #f5b700;
    font-size: 2rem;
}

.example-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.example-card:last-child {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
}

.view-more-button {
    position: relative;
    z-index: 1;
    order: 3;
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 0.35rem;
    background: #f5b700;
    color: #080b12;
    font-weight: 700;
    text-decoration: none;
}

main {
    max-width: 70rem;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.page-space {
    height: 150vh;
}

.page-content {
    max-width: 70rem;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.page-content > p:not(.eyebrow) {
    max-width: 42rem;
    color: #b7bfca;
}

.portfolio-page {
    max-width: 75rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
}

.portfolio-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.eyebrow {
    margin: 0;
    color: #f5b700;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16rem;
    text-transform: uppercase;
}

.portfolio-showcase h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    text-align: center;
}

.portfolio-slider {
    width: min(100%, 68rem);
    margin-top: 1rem;
    overflow: hidden;
}

.portfolio-track {
    display: flex;
    transition: transform 0.7s ease;
    will-change: transform;
}

.portfolio-slide {
    position: relative;
    flex: 0 0 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(245, 183, 0, 0.35);
    border-radius: 1.25rem;
    background: #111722;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.35);
}

.portfolio-slide img {
    display: block;
    width: 100%;
    height: clamp(22rem, 42vw, 40rem);
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(8, 11, 18, 0), rgba(8, 11, 18, 0.92));
    color: #ffffff;
}

.slide-caption span {
    color: #dfe6ef;
    font-size: 0.78rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(245, 183, 0, 0.5);
    border-radius: 999px;
    background: rgba(245, 183, 0, 0.08);
    color: #f5b700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
    background: rgba(245, 183, 0, 0.18);
    transform: translateY(-1px);
}

.slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.slider-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
    background: #f5b700;
    transform: scale(1.25);
}

.portfolio-copy {
    width: min(1100px, 100%);
    margin: 2rem auto 0;
    text-align: center;
}

.portfolio-copy h2 {
    margin: 0 0 0.5rem;
    color: #080b12;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.portfolio-copy p {
    margin: 0;
    color: #5d6878;
    font-size: 1rem;
}

.facebook-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: min(1100px, 100%);
    margin-top: 2rem;
}

.facebook-feed-grid .facebook-post {
    width: 100%;
    max-width: 500px;
    min-height: 670px;
    margin: 0 auto;
}

.facebook-feed-grid .facebook-post iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 500 / 670;
    margin: 0 auto;
    border: 0;
    background: #ffffff;
}

@media (max-width: 48rem) {
    .intro-section {
        margin-top: 0;
        border-radius: 2rem 2rem 0 0;
    }

    .intro-section h2 {
        margin-top: 0;
    }

    .facebook-feed-grid {
        grid-template-columns: 1fr;
    }

    .facebook-post-row {
        flex-direction: column;
        align-items: center;
    }

    .facebook-post,
    .facebook-post-right,
    .facebook-feed-grid .facebook-post {
        width: 100%;
        max-width: 100%;
        min-height: 670px;
        overflow: visible;
        margin-left: auto;
        margin-right: auto;
    }

    .facebook-post iframe,
    .facebook-post-right iframe,
    .facebook-feed-grid .facebook-post iframe {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: 670px !important;
        min-height: 670px;
        border: 0;
        transform: none;
        -webkit-transform: none;
    }
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-details a {
    padding: 1rem 1.25rem;
    background: #f5b700;
    color: #080b12;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 30rem) {
    .example-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .example-card:nth-child(7) {
        grid-column: 1 !important;
    }

    .example-card:nth-child(8) {
        grid-column: 2 !important;
    }

    .intro-section h2 {
        margin-top: 0;
    }

    .facebook-post-row {
        flex-direction: column;
        align-items: center;
    }

    .facebook-post,
    .facebook-post-right {
        width: min(100%, 500px);
        max-width: 100%;
        min-height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .facebook-post iframe,
    .facebook-post-right iframe,
    .facebook-feed-grid .facebook-post iframe {
        width: 100%;
        max-width: 100%;
        height: 670px;
        min-height: 670px;
        aspect-ratio: auto;
        transform: none;
        -webkit-transform: none;
    }

    .site-banner {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        height: 3.5rem;
        min-height: 3.5rem;
        padding: 0.65rem 0.75rem;
    }

    .banner-socials {
        gap: 0.5rem;
    }

    .banner-message {
        min-width: 0;
        font-size: 0.85rem;
    }

    .banner-facebook,
    .banner-bark,
    .banner-phone,
    .banner-phone i {
        font-size: 1.2rem;
    }

    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        margin-top: 3.5rem;
        padding: 1rem;
    }

    .site-nav nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding-top: 0.5rem;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.75rem;
        right: 1rem;
    }

    .site-nav nav.menu-open {
        display: flex;
    }

    .site-nav nav a {
        padding: 0.7rem 0;
        font-size: 0.9rem;
    }

    .site-nav .contact-button {
        padding: 0.75rem 0.9rem;
    }

    .jack-van-section {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .jack-van-content {
        width: 100%;
        margin: 0 auto;
        padding: 5rem 1rem 2rem;
    }

    .jack-van-section::before {
        background-position: 90% 28%;
        background-size: 270% auto;
    }

    .jack-van-content h1,
    .jack-van-content h2 {
        white-space: normal;
    }

    .promise-list {
        display: flex;
        flex-direction: column;
    }

    .hero-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-badges {
        justify-content: flex-start;
    }

    .review-badge {
        flex: 1 1 12rem;
    }

    .jack-van-image-card {
        width: calc(100% - 2rem);
        margin: 1rem 1rem 3rem;
    }

    .portfolio-posts {
        grid-template-columns: 1fr;
        width: min(500px, calc(100% - 2rem));
    }

    .portfolio-post iframe {
        width: 100%;
        height: 714px;
    }

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

    .example-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .example-card:nth-child(7) {
        grid-column: 1 !important;
    }

    .example-card:nth-child(8) {
        grid-column: 2 !important;
    }
}

/* Contact form styles - professional card layout */
.contact-section {
    padding: 2rem 0 4rem;
}

.contact-grid {
    display: flex;
    gap: 2.25rem;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-form-wrap {
    flex: 1 1 60%;
    background: linear-gradient(180deg, rgba(10,14,18,0.9), rgba(14,20,26,0.95));
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 12px 40px rgba(2,6,23,0.6);
}

.contact-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-wrap .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }
.contact-form-wrap .form-note { font-size: 0.9rem; line-height: 1.55; margin: 0; }
.contact-form-wrap .form-note a { color: #f5b700; }

.contact-form-wrap label {
    display: block;
    font-weight: 700;
    color: #dfe6ef;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.03);
    color: #e6eef8;
    font-size: 0.95rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.contact-form-wrap input::placeholder,
.contact-form-wrap textarea::placeholder {
    color: rgba(230,238,248,0.45);
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    outline: none;
    border-color: #f5b700;
    box-shadow: 0 8px 30px rgba(245,183,0,0.08);
    transform: translateY(-1px);
}

#contact-result {
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 0.6rem;
    font-weight: 700;
    display: none;
}

#contact-result.contact-success {
    display: block;
    background: rgba(34,197,94,0.08);
    color: #b7f3d0;
    border: 1px solid rgba(34,197,94,0.15);
}

#contact-result.contact-error {
    display: block;
    background: rgba(239,68,68,0.06);
    color: #ffd6d6;
    border: 1px solid rgba(239,68,68,0.12);
}

#contact-submit {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: #f5b700;
    color: #080b12;
    padding: 0.85rem 1.1rem;
    font-weight: 800;
    border-radius: 0.6rem;
    cursor: pointer;
    align-self: flex-start;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#contact-submit:hover,
#contact-submit:focus-visible {
    background: #ffd45a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,183,0,0.12);
}

.contact-info {
    flex: 0 0 320px;
    color: #dfe6ef;
    line-height: 1.6;
}

.contact-info h2 {
    margin-top: 0;
    color: #f5b700;
}

.contact-info p,
.contact-info a {
    color: #cbd6e6;
}

.contact-info .map-section {
    min-height: 12rem;
    margin-top: 1rem;
    border-radius: 0.6rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.03);
    /* Small embedded maps shouldn't get the hero decorative overlays — remove them */
    background: none !important;
    box-shadow: none !important;
    position: relative;
}

.contact-info .map-section::before,
.contact-info .map-section::after {
    display: none !important;
    content: none !important;
}

/* Make iframes or images inside the contact map fill the small map area */
.contact-info .map-section iframe,
.contact-info .map-section img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 12rem;
    border: 0;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-grid {
        flex-direction: column;
    }

    .contact-info {
        order: 2;
        width: 100%;
    }

    .contact-form-wrap {
        order: 1;
    }
}

@media (max-width: 480px) {
    .contact-form-wrap {
        padding: 1rem;
    }

    .contact-form-wrap label {
        font-size: 0.85rem;
    }

    #contact-submit {
        width: 100%;
    }
}

/* Center the "View more" button across all devices */
.view-more-button {
    display: block;
    margin: 1.5rem auto 0;
    text-align: center;
}

/* Make the contact form span the full device width (with side margin) on small screens */
@media (max-width: 900px) {
    .contact-form-wrap {
        width: calc(100% - 2rem);
        max-width: none;
        margin: 0 1rem;
        flex: none;
    }

    .contact-info {
        width: calc(100% - 2rem);
        margin: 1rem auto 0;
    }
}

@media (max-width: 480px) {
    .contact-form-wrap {
        margin: 0 0.75rem;
        padding: 0.8rem;
    }
}

/* Footer styles */
.site-footer {
    background: #05060a;
    color: #9fb0c8;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 1rem 0;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
}

.site-footer a {
    color: #f5b700;
    text-decoration: none;
    font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

@media (min-width: 700px) {
    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* When the site banner is fixed to the bottom, add extra spacing so it doesn't cover content */
body.has-fixed-banner .site-footer {
    /* Make room for the banner (about 3rem) plus a little breathing room and safe-area inset */
    padding-bottom: calc(4rem + env(safe-area-inset-bottom));
}

/* Also push main content up so the footer isn't visually stuck under the banner on scroll-to-bottom */
body.has-fixed-banner main,
body.has-fixed-banner .site-main,
body.has-fixed-banner .page-content {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
}

/* Small screens: the banner can be slightly taller — increase the safety padding */
@media (max-width: 480px) {
    body.has-fixed-banner .site-footer {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }

    body.has-fixed-banner main,
    body.has-fixed-banner .site-main,
    body.has-fixed-banner .page-content {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom));
    }
}
/* Review patch: clearer contact feedback and readable form inputs. */
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea { font-size: 16px; }
.site-banner, .banner-facebook, .banner-bark { color: #080b12; }
.site-nav nav a:not(.contact-button), .menu-toggle { color: #ffffff; }
.portfolio-copy h2 { color: #f5b700; }
.portfolio-copy p { color: #cbd6e6; }

/* Real job photographs: readable without a slider or Facebook embeds. */
.portfolio-showcase > p:last-child { max-width: 64ch; color: #d7e2ef; }
.project-group { margin: 2.25rem 0; }
.project-group h2, .project-enquiry h2 { color: #f5b700; }
.project-group p, .project-enquiry p { color: #d7e2ef; max-width: 70ch; }
.project-grid, .home-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-grid figure { margin: 0; background: #121927; border-radius: .65rem; overflow: hidden; }
.project-grid img, .home-projects img { display: block; width: 100%; height: 16rem; object-fit: cover; }
.project-grid figcaption { padding: .8rem 1rem; color: #f3f6fa; }
.home-projects { margin: 1.25rem auto; }
.home-projects a { display: block; overflow: hidden; border-radius: .65rem; background: #121927; color: #fff; text-decoration: none; }
.home-projects span { display: block; padding: .8rem 1rem; font-weight: 700; }
.home-projects a:focus-visible, .project-enquiry a:focus-visible { outline: 3px solid #f5b700; outline-offset: 3px; }
.project-enquiry { padding: 1.5rem 0 3rem; }
.project-enquiry .hero-button { display: inline-block; margin: .5rem .5rem .5rem 0; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy-page { padding-top: 3rem; padding-bottom: 4rem; color: #d7e2ef; max-width: 850px; }
.privacy-page h1, .privacy-page h2 { color: #f5b700; }
.privacy-page a { color: #f5b700; }
.service-page { max-width: 900px; padding-top: 3rem; padding-bottom: 4rem; color: #d7e2ef; line-height: 1.65; }
.service-page h1 { color: #fff; line-height: 1.15; }
.service-page h2 { color: #f5b700; margin-top: 2rem; }
.service-page a:not(.hero-button) { color: #f5b700; }
.service-lead { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.service-cta { border-top: 1px solid #566372; margin-top: 2.5rem; padding-top: 1rem; }
.service-cta .hero-button { display: inline-block; margin: .4rem .6rem .4rem 0; }
.service-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.service-links a { display: block; background: #182333; padding: 1rem; border-radius: .4rem; }
.example-card { text-decoration: none; color: inherit; }
.example-card:focus-visible { outline: 3px solid #f5b700; outline-offset: 3px; }
@media (max-width: 650px) { .service-links { grid-template-columns: 1fr; } }

/* Keep the phone and heading readable on narrow phones and small tablets. */
.jack-van-content h1, .jack-van-content h2 { white-space: normal; }
.jack-van-content h2 { font-size: clamp(1rem, 1.5vw, 1.15rem); }
@media (max-width: 600px) {
    .site-banner { display: flex; justify-content: space-between; gap: .5rem; }
    .site-banner .banner-socials { display: none; }
    .site-banner .banner-message { white-space: normal; text-align: left; font-size: .8rem; }
    .site-banner .banner-phone, .site-banner .banner-phone i { flex-shrink: 0; font-size: 1rem; }
    .site-banner .banner-phone { white-space: nowrap; }
}
@media (max-width: 700px) {
    .project-grid, .home-projects { grid-template-columns: 1fr; }
    .project-grid img, .home-projects img { height: auto; max-height: 24rem; object-fit: cover; }
}
