/*
 * Mockup overrides on top of the delivery-starter stylesheet (style.css):
 * - swaps the starter's hard-coded green/blue colours for the per-client theme variables
 * - adds the generic hero illustration, hero photo and image logo
 * - adds the preview banner, pill and expiry overlay
 */

/* Themed replacements for hard-coded colours in style.css */
.hero {
    background:
        url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='white' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M0 40h30M50 40h30M40 0v30M40 50v30'/%3E%3C/g%3E%3Cg fill='white'%3E%3Ccircle cx='40' cy='40' r='2.6' fill-opacity='0.16'/%3E%3Ccircle cx='10' cy='40' r='1.8' fill-opacity='0.13'/%3E%3Ccircle cx='70' cy='40' r='1.8' fill-opacity='0.13'/%3E%3Ccircle cx='40' cy='10' r='1.8' fill-opacity='0.13'/%3E%3Ccircle cx='40' cy='70' r='1.8' fill-opacity='0.13'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 105%, rgba(var(--accent-rgb), 0.22), transparent 55%),
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.16), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.12), transparent 45%),
        linear-gradient(135deg, var(--color-hero-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
}

.eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.services-teaser {
    background: linear-gradient(160deg, var(--color-ink) 0%, var(--color-hero-dark) 55%, var(--color-primary) 130%);
    box-shadow: 0 24px 48px rgba(var(--primary-rgb), 0.22);
}

.btn,
.icon-circle {
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.28);
}

.btn:hover {
    box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.34);
}

.highlight:hover,
.stat:hover {
    box-shadow: 0 16px 32px rgba(var(--primary-rgb), 0.14);
}

.reg-badge:hover {
    box-shadow: 0 6px 14px rgba(var(--accent-rgb), 0.28);
}

.site-header nav {
    box-shadow: none;
}

/* Hero art: client photo */
.hero-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

/* Hero art: generic illustration when no photo is supplied */
.hero-illustration {
    position: relative;
    padding: 2.5rem 1.5rem;
}

.hi-card {
    background: #fff;
    color: var(--color-text);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hi-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.25rem 1.5rem 2rem;
    text-align: center;
}

.hi-main .icon-circle {
    margin: 0;
}

.hi-main strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.hi-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
}

.hi-lines i {
    display: block;
    height: 8px;
    width: 80%;
    border-radius: 99px;
    background: var(--color-surface);
}

.hi-lines i:nth-child(2) { width: 65%; }
.hi-lines i:nth-child(3) { width: 45%; background: rgba(var(--accent-rgb), 0.35); }

.hi-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.hi-float .icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.hi-float-1 { top: 0.5rem; left: -0.5rem; }
.hi-float-2 { bottom: 0.75rem; right: -0.5rem; }

/* On phones the business name and headline matter more than the art, so lead with them */
@media (max-width: 860px) {
    .hero-content {
        order: 1;
    }

    .hero-art {
        order: 2;
        width: 100%;
        max-width: 300px;
    }

    .hero-illustration {
        padding: 2rem 1rem 1rem;
    }

    .hi-main {
        padding: 1.5rem 1rem;
    }
}

/* style.css tints every span in the logo link with the primary colour, which hides the icon on its primary circle */
.site-header .logo a .logo-icon {
    color: #fff;
}

/* Two stats per row on phones keeps the page (and its screenshot) shorter */
@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem 1.25rem 2.5rem;
    }

    .stat {
        padding: 1.25rem 0.75rem;
    }

    .stat-number {
        font-size: 1.15rem;
    }
}

/* Photo gallery */
.gallery {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem 1rem;
    text-align: center;
}

.gallery h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

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

.gallery-item {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.14);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 0.9rem 0.8rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
}

@media (max-width: 760px) {
    .gallery {
        padding: 1rem 1.25rem;
    }

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

/* Image logo in the header */
.logo-image {
    display: block;
    max-height: 44px;
    width: auto;
}

/* Contact section on the one-page mockup */
.contact-section {
    text-align: left;
}

.contact-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0;
}

/* Preview markers */
.preview-banner {
    padding: 0.45rem 1rem;
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
}

.preview-pill {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 60;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.8);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.expired-overlay {
    display: none;
}

.preview-expired body > *:not(.expired-overlay) {
    display: none !important;
}

.preview-expired .expired-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}
