/* =========================================
   DESIGN SYSTEM
   ========================================= */
@font-face {
    font-family: 'LFT Etica Sheriff';
    src: url('../fonts/lft-etica-sheriff-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #2c3338; /* Charcoal Grey */
    --primary-light: #3a434a;
    --brand-slate: var(--primary);
    --accent: #2ea7da; /* Logo blue */
    --accent-strong: var(--primary);
    --accent-hover: #238fbc;
    --action-blue: #006b99;
    --action-blue-hover: #005f88;
    --text-on-accent: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f8fafc; /* Slate 50 */
    
    --text-main: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --text-inverse: #f8fafc;
    
    --font-heading: 'LFT Etica Sheriff', serif;
    --font-body: 'Outfit', sans-serif;
    
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --drawer-width: min(80vw, 400px);
    --header-height: 80px;
}

/* =========================================
   RESET & BASE STYLE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--brand-slate);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 6rem 0;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.bg-light {
    background-color: var(--surface-alt);
}

.about,
.portfolio,
.gallery {
    background-color: white;
}

.portfolio {
    padding-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   BUTTONS & BADGES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--action-blue);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--action-blue-hover);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
}

.hero-cta .btn-outline {
    background-color: var(--action-blue);
    border-color: var(--action-blue);
    color: var(--text-on-accent);
    box-shadow: var(--shadow-md);
}

.hero-cta .btn-outline:hover,
.hero-cta .btn-outline:focus-visible {
    background-color: var(--action-blue-hover);
    border-color: var(--action-blue-hover);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.1rem;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.pill-badge img {
    width: 8.5rem;
    height: auto;
    display: block;
    flex: 0 0 auto;
}

.pill-badge span {
    display: inline-block;
    line-height: 1.15;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transition: all var(--transition);
}

.header.scrolled {
    background-color: var(--primary);
    padding: 1rem 0;
    box-shadow: none;
}

.header.scrolled.idle {
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.header.menu-open {
    background-color: var(--primary) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.header.menu-open .nav-link {
    color: white;
}

.header.menu-open .menu-toggle span {
    background-color: white;
}

.header.menu-open .logo .logo-house-lower {
    fill: #fff !important;
}

.main-nav.open .nav-link {
    color: white;
}

.main-nav.open .btn-contact {
    background-color: var(--action-blue);
    color: var(--text-on-accent);
    padding: 0.75rem 2rem;
    border-radius: 999px;
    display: block;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

.main-nav.open .btn-contact:hover,
.main-nav.open .btn-contact:focus {
    background-color: var(--action-blue-hover);
    color: var(--text-on-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.header.scrolled .logo,
.header.scrolled .nav-link {
    color: white;
}

.header.scrolled .btn-contact {
    background-color: var(--action-blue);
    color: var(--text-on-accent);
}
.header.scrolled .btn-contact:hover,
.header.scrolled .btn-contact:focus {
    color: var(--text-on-accent);
}

/* Keep the white lower house readable on the slate header. */
.logo .logo-house-lower {
    transition: fill 0.2s ease;
}
.header.scrolled:not(.menu-open) .logo .logo-house-lower {
    fill: #fff !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'LFT Etica Sheriff', serif;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

    /* Keep the logo fixed in place when the mobile menu opens. */
.header.menu-open .logo-text {
    color: #ffffff; /* keep 'WC Plumbing' white when menu opens */
}
.header.menu-open .logo-text span {
    color: var(--accent); /* keep '& Renovations' accent */
}

.logo-icon {
    height: 3rem;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    padding-top: 5px;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-text span {
    color: var(--accent); /* match top of house in logo */
    white-space: nowrap; /* keep '& Renovations' together */
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    /* Desktop: positioned fixed to visually sit inside the header */
    position: fixed;
    top: 0;
    right: max(calc(50vw - 600px + 1.5rem), 1.5rem);
    height: var(--header-height);
    z-index: 1001;
    background: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.45rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden; /* Prevent underline bleed */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    opacity: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: none;
}
.nav-link:not(:hover):not(.active)::after {
    opacity: 0;
    transform: scaleX(0);
}

.nav-link:hover::after,
.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
    transition: transform var(--transition), opacity 0.08s ease;
}

.btn-contact {
    background-color: var(--action-blue);
    color: var(--text-on-accent);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
}

.btn-contact::after {
    display: none;
}

.btn-contact:hover {
    background-color: var(--action-blue-hover);
    color: var(--text-on-accent) !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 0.5rem;
}

.mobile-contact-link {
    display: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.header.scrolled .menu-toggle span {
    background-color: white;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 92vh;
    min-height: 620px;
    max-height: 860px;
    display: flex;
    align-items: center;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 50%;
    animation: scaleBg 20s infinite alternate;
    filter: saturate(1.08) contrast(1) brightness(1.18);
}

@keyframes scaleBg {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 50%, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.16) 34%, rgba(15, 23, 42, 0.03) 54%, rgba(15, 23, 42, 0) 72%),
        linear-gradient(to right, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.3) 32%, rgba(15, 23, 42, 0.05) 58%, rgba(15, 23, 42, 0) 82%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    isolation: isolate;
}

.hero-content::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -1.7rem;
    bottom: -1.7rem;
    left: calc(50% - 50vw);
    width: min(62rem, 100vw);
    background:
        linear-gradient(90deg, rgba(5, 17, 31, 0.82) 0%, rgba(5, 17, 31, 0.72) 56%, rgba(5, 17, 31, 0.34) 82%, rgba(5, 17, 31, 0) 100%),
        radial-gradient(ellipse at 22% 48%, rgba(46, 167, 218, 0.26) 0%, rgba(46, 167, 218, 0.08) 48%, rgba(46, 167, 218, 0) 76%);
    opacity: var(--hero-ribbon-opacity, 0.7);
    transition: opacity 0.08s linear;
    pointer-events: none;
}

.hero-content > * {
    opacity: var(--hero-copy-opacity, 1);
    transition: opacity 0.12s linear;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.8),
        0 4px 18px rgba(4, 12, 25, 0.9),
        0 0 18px rgba(46, 167, 218, 0.2);
    max-width: 800px;
}

.hero-title-nowrap {
    display: block;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.72),
        0 3px 14px rgba(4, 12, 25, 0.88),
        0 0 12px rgba(46, 167, 218, 0.16);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================
   TRUST STRIP
   ========================================= */
.trust-strip {
    background: #ffffff;
    color: var(--primary);
    padding: 2rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.trust-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.trust-item {
    padding: 0.5rem 0;
    min-width: 0;
}

.trust-item span {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--action-blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.trust-item strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.trust-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-title span {
    color: var(--accent-strong);
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-strong);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.section-slate {
    background: var(--brand-slate);
    color: white;
}

.section-slate .section-title,
.section-slate .service-card h3 {
    color: white;
}

.section-slate .section-subtitle {
    color: var(--accent);
}

.section-slate .section-desc {
    color: rgba(255, 255, 255, 0.82);
}

.section-slate .service-card {
    background: var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-slate .service-card p {
    color: rgba(255, 255, 255, 0.78);
}

.service-detail-panel {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.service-detail-intro {
    max-width: 820px;
    margin-bottom: 2rem;
}

.service-detail-intro h3 {
    color: white;
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.service-detail-intro p,
.service-detail-item p {
    color: rgba(255, 255, 255, 0.8);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-detail-item {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.service-detail-item h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.03) contrast(1.04);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-badge span {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-badge span::before {
    content: '✓';
    color: white;
    background-color: var(--accent-strong);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    transform: translateY(0);
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-10px);
}

.service-img {
    height: 240px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.04);
    transition: transform 0.7s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2.5rem 2rem;
    position: relative;
}

.service-icon {
    position: absolute;
    top: -24px;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent-strong);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(46, 167, 218, 0.38);
    border: 4px solid white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.75rem;
}

.portfolio-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-img {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 48%;
    filter: saturate(1.03) contrast(1.04);
    transition: transform 0.7s ease;
}

.portfolio-featured:hover .featured-img img {
    transform: scale(1.04);
}

.featured-img-vans {
    background: #eef2f5;
    height: 320px;
}

.featured-img-vans img {
    object-fit: contain;
    object-position: center;
    padding: 0.65rem;
}

.vans-featured:hover .featured-img-vans img {
    transform: none;
}

.featured-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent-strong);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.featured-info {
    padding: 2.5rem 3rem 2.5rem 0;
}

.featured-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.featured-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.feature-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.portfolio-gallery-btn {
    margin-top: 0.65rem;
}

.gallery-noscript {
    max-width: 720px;
    margin: 1.5rem auto 0;
    color: var(--text-muted);
    text-align: center;
}

.gallery .section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-section {
    padding-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-visible .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
}

.project-stages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stage-card {
    position: relative;
    min-height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--primary);
    box-shadow: var(--shadow-md);
}

.stage-card img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.04);
    transition: transform 0.7s ease;
}

.stage-card:hover img {
    transform: scale(1.03);
}

.stage-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.86) 0%, rgba(15, 23, 42, 0.1) 58%);
    pointer-events: none;
}

.stage-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    color: white;
    padding: 2rem;
}

.stage-card figcaption span {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-strong);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.stage-card figcaption strong {
    display: block;
    max-width: 24rem;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.stage-card figcaption p {
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.82);
}

.project-video-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    margin-bottom: 4rem;
    border-radius: var(--radius-lg);
    background: var(--brand-slate);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-lg);
}

.video-frame {
    width: min(100%, 320px);
    justify-self: center;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--primary);
    box-shadow: var(--shadow-md);
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-copy h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: white;
}

.video-copy p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 1rem;
}

.video-copy .section-subtitle {
    color: var(--accent);
}

.video-sequence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.video-sequence li {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.video-sequence span {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.video-sequence strong {
    display: block;
    color: white;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.video-sequence p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.video-note {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.project-copy-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(27, 51, 89, 0.12);
}

.project-copy-panel h3 {
    font-size: 1.65rem;
    line-height: 1.2;
}

.project-copy-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.video-copy .checkatrade-link {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.video-copy .checkatrade-link:hover,
.video-copy .checkatrade-link:focus {
    color: var(--accent);
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.checkatrade-section {
    display: grid;
    grid-template-columns: 9.25rem 19rem 13rem;
    align-items: center;
    justify-content: center;
    column-gap: 3rem;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin: 0 auto 4rem;
    width: fit-content;
    max-width: 100%;
    box-shadow: var(--shadow-md);
    border-left: 6px solid #00a650;
}

.checkatrade-score-block {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    justify-self: center;
    width: 9.25rem;
}

.score-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-strong);
    line-height: 1;
    font-family: var(--font-heading);
}

.score-denom {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    align-self: flex-start;
    padding-top: 0.6rem;
}

.checkatrade-reviews {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.checkatrade-badge-block {
    flex: 1;
    min-width: 0;
}

.checkatrade-tagline {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.45;
    width: 19rem;
    max-width: 100%;
    justify-self: start;
}

.checkatrade-badge-link {
    display: inline-block;
    border-radius: 6px;
    justify-self: center;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.checkatrade-badge-link:hover,
.checkatrade-badge-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.88;
}

.checkatrade-badge-img {
    display: block;
    width: 13rem;
    height: auto;
    border-radius: 4px;
}

.checkatrade-link {
    color: var(--accent-strong);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.checkatrade-link:hover {
    color: var(--accent-hover);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stars {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0;
}

.review-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: auto;
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-strong);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0;
    flex-shrink: 0;
}

.reviewer strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}

.reviewer span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =========================================
   FAQ & SERVICE AREA
   ========================================= */
.faq {
    background: linear-gradient(180deg, var(--surface) 0%, #f7fbff 100%);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
}

.service-area-panel,
.faq-list details {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid rgba(27, 51, 89, 0.14);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 45px rgba(24, 35, 61, 0.09);
}

.service-area-panel {
    padding: 2rem;
}

.service-area-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-area-panel p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.area-list li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.area-list li::before {
    content: '';
    position: absolute;
    top: 0.7em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-strong);
}

.area-note {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-list details {
    padding: 1.25rem 1.5rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.faq-list details[open],
.faq-list details:hover {
    border-color: rgba(46, 167, 218, 0.34);
    box-shadow: 0 22px 52px rgba(24, 35, 61, 0.12);
}

.faq-list summary {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
}

.faq-list summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.faq-list p {
    color: var(--text-muted);
    margin-top: 0.85rem;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(27, 51, 89, 0.12);
    box-shadow: 0 14px 34px rgba(24, 35, 61, 0.08);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-card:hover {
    border-color: rgba(46, 167, 218, 0.28);
    box-shadow: 0 18px 44px rgba(24, 35, 61, 0.11);
    transform: translateY(-2px);
}

.contact-card h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.contact-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
    overflow-wrap: anywhere;
}

.contact-link:hover {
    color: var(--accent-strong);
}

.contact-card.full-width {
    grid-column: 1 / -1;
}

.contact-card p {
    color: var(--text-muted);
}

.contact-form-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(27, 51, 89, 0.13);
    box-shadow: 0 24px 64px rgba(24, 35, 61, 0.14);
}

.contact-form-container::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), #75c6e6);
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
    line-height: 1.25;
}

.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 50%;
    background: #1877f2;
    color: white;
    overflow: visible;
}

.facebook-icon svg {
    width: 1.65rem;
    height: 1.65rem;
    fill: currentColor;
    overflow: visible;
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-hint {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition);
    background-color: var(--surface-alt);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(46, 167, 218, 0.16);
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}

.contact-submit {
    min-height: 3.35rem;
    box-shadow: 0 14px 30px rgba(46, 167, 218, 0.22);
    font-weight: 500;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background: var(--action-blue-hover);
    color: var(--text-on-accent);
    box-shadow: 0 18px 40px rgba(24, 35, 61, 0.22);
}

.contact-submit:disabled,
.contact-submit:disabled:hover {
    background: var(--action-blue);
    color: var(--text-on-accent);
    box-shadow: 0 10px 24px rgba(46, 167, 218, 0.18);
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero-content::before {
        opacity: 1;
        transition: none !important;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 300px;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.75rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 700;
}

.footer-social > svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
    flex: 0 0 auto;
}

.footer-social .facebook-icon {
    width: 1.75rem;
    height: 1.75rem;
    flex-basis: 1.75rem;
}

.footer-social .facebook-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.footer-contact a.footer-social:hover,
.footer-contact a.footer-social:focus {
    padding-left: 0;
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-credit {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.58);
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: white;
}

.footer-credit span {
    display: inline-block;
    margin: 0 0.4rem;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active,
.reveal-down.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

html.no-js .reveal-up,
html.no-js .reveal-down,
html.no-js .reveal-left,
html.no-js .reveal-right {
    opacity: 1;
    transform: none;
}

html.no-js .header {
    position: absolute;
    background-color: var(--brand-slate);
}

html.no-js .menu-toggle {
    display: none;
}

/* =========================================
   RESPONSIVE - TABLET (max-width: 892px)
   ========================================= */
@media (max-width: 892px) {
    .about-container,
    .faq-layout,
    .project-copy-panel,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .trust-strip-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-grid,
    .service-detail-grid,
    .portfolio-grid,
    .testimonials-grid,
    .project-stages {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .project-video-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-img {
        height: 300px;
    }

    .featured-info {
        padding: 2rem;
    }

    .checkatrade-badge {
        padding: 2rem;
    }

    .checkatrade-section {
        grid-template-columns: 8.75rem 17.5rem 11rem;
        column-gap: 1.75rem;
        padding: 1.35rem 1.5rem;
    }

    .checkatrade-score-block {
        width: 8.75rem;
    }

    .checkatrade-tagline {
        width: 17.5rem;
    }

    .checkatrade-badge-img {
        width: 11rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-image-wrapper {
        padding: 0 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: var(--drawer-width);
        max-width: 100vw;
        height: calc(100dvh - var(--header-height));
        background-color: var(--primary);
        transform: translateX(100%);
        transition: transform 0.2s ease-out;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
        border-left: 1px solid rgba(255,255,255,0.1);
        z-index: 950;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        will-change: transform;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .nav-overlay {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease;
        z-index: 900;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0.75rem 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
        overscroll-behavior-y: contain;
        background-color: var(--primary);
    }

    .main-nav .nav-links::-webkit-scrollbar {
        display: none;
    }


    .main-nav .nav-link {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        color: rgba(255,255,255,0.9);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link:focus {
        background-color: rgba(255,255,255,0.08);
        color: white;
    }

    .main-nav .nav-link::after {
        display: none;
    }

    .main-nav .btn-contact {
        flex-shrink: 0;
        margin: 0.75rem 1.5rem 1.5rem;
        padding: 0.75rem 2rem;
        text-align: center;
        display: block;
        border-bottom: none;
        font-weight: 500;
        box-shadow: var(--shadow-md);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 0.75rem;
    }

    .main-nav.open .btn-contact:hover,
    .main-nav.open .btn-contact:focus {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .header.scrolled .main-nav .nav-link {
        color: rgba(255,255,255,0.9);
    }

    html.no-js .header {
        position: relative;
        background-color: var(--primary);
    }

    html.no-js .nav-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    html.no-js .main-nav {
        position: static;
        width: 100%;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
    }

    html.no-js .main-nav .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }
}

/* =========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .header,
    .hero,
    .trust-strip,
    .section,
    .footer {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        max-width: 100vw;
    }

    .nav-container {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        min-width: 0;
        gap: 0.6rem;
    }

    .logo-icon {
        height: 2.55rem;
        flex: 0 0 auto;
    }

    .logo-text {
        font-size: 1.12rem;
    }

    .mobile-contact-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin-left: auto;
        margin-right: 0.65rem;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent);
        z-index: 1001;
    }

    .mobile-contact-link:hover,
    .mobile-contact-link:focus-visible {
        background: rgba(46, 167, 218, 0.18);
        color: #75c6e6;
    }

    .mobile-contact-link svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: currentColor;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        justify-self: end;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255,255,255,0.2);
        z-index: 1001;
    }

    .menu-toggle span {
        background-color: white !important;
        border-radius: 2px;
        box-shadow: none;
    }

    .menu-toggle.active {
        background: #fff;
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    }
    .menu-toggle.active span {
        background-color: var(--primary) !important;
        box-shadow: 0 0 0 1px #fff;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--primary) !important;
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--primary) !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
        max-width: 100%;
        text-shadow:
            0 1px 1px rgba(0, 0, 0, 0.78),
            0 0 10px rgba(46, 167, 218, 0.24),
            0 0 24px rgba(46, 167, 218, 0.14),
            0 3px 16px rgba(4, 12, 25, 0.74);
    }

    .pill-badge {
        max-width: 100%;
        white-space: normal;
    }

    .pill-badge img {
        width: 7.4rem;
    }

    .hero-subtitle {
        max-width: 21rem;
        overflow-wrap: break-word;
        text-shadow:
            0 1px 1px rgba(0, 0, 0, 0.72),
            0 0 8px rgba(46, 167, 218, 0.18),
            0 2px 14px rgba(4, 12, 25, 0.74);
    }

    .hero-content {
        max-width: 100vw;
    }

    .hero-content::before {
        top: -1.15rem;
        bottom: -1.2rem;
        left: calc(50% - 50vw);
        width: 100vw;
        background:
            linear-gradient(90deg, rgba(5, 17, 31, 0.86) 0%, rgba(5, 17, 31, 0.76) 62%, rgba(5, 17, 31, 0.44) 100%),
            radial-gradient(ellipse at 32% 44%, rgba(46, 167, 218, 0.24) 0%, rgba(46, 167, 218, 0.08) 56%, rgba(46, 167, 218, 0) 82%);
    }

    .trust-strip-inner {
        max-width: 100vw;
    }

    @supports (display: grid) {
        .nav-container {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 44px 44px;
        }

        .mobile-contact-link {
            flex-basis: auto;
            margin-left: 0;
            margin-right: 0;
        }
    }

    .services-grid,
    .service-detail-grid,
    .portfolio-grid,
    .project-stages,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .hero {
        min-height: 620px;
        height: 90vh;
    }

    .hero-cta {
        align-items: stretch;
        flex-direction: column;
        width: 21rem;
        max-width: calc(100vw - 3rem);
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
    }

    .stage-card,
    .stage-card img {
        min-height: 440px;
    }

    .project-video-card {
        padding: 1.25rem;
    }

    .video-sequence {
        grid-template-columns: 1fr;
    }

    .checkatrade-section {
        grid-template-columns: 1fr;
        gap: 0.9rem;
        text-align: left;
        padding: 2rem 1.5rem;
        align-items: flex-start;
        width: 100%;
        max-width: 32rem;
    }

    .checkatrade-score-block {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .checkatrade-reviews {
        text-align: center;
    }

    .checkatrade-tagline {
        justify-self: center;
        width: 100%;
        max-width: 16rem;
    }

    .checkatrade-badge-link {
        display: inline-block;
        justify-self: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .area-list {
        grid-template-columns: 1fr;
    }

    .trust-item strong,
    .trust-item p {
        overflow-wrap: break-word;
    }

    .trust-item {
        max-width: calc(100vw - 2.5rem);
    }

    .trust-item strong {
        font-size: 1.16rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .experience-badge {
        bottom: -1rem;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 90%;
        text-align: center;
        align-items: center;
    }
    
    .experience-badge span {
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .nav-container {
        gap: 0.45rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .logo-icon {
        height: 2.25rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .mobile-contact-link,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .mobile-contact-link {
        flex-basis: 40px;
        margin-right: 0.45rem;
    }

    @supports (display: grid) {
        .nav-container {
            grid-template-columns: minmax(0, 1fr) 40px 40px;
        }

        .mobile-contact-link {
            flex-basis: auto;
            margin-right: 0;
        }
    }
}

@media (max-width: 330px) {
    .logo {
        gap: 0.45rem;
    }

    .logo-icon {
        height: 2.1rem;
    }

    .logo-text {
        font-size: 0.95rem;
    }
}




/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(23, 35, 61, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    width: 100vw;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.active ~ .footer {
    display: none !important;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox.active ~ .header {
    z-index: 2003;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    pointer-events: none;
}

.lightbox.active ~ .header .logo {
    --lightbox-logo-outline: rgba(35, 41, 46, 0.96);
    filter:
        drop-shadow(-1px 0 0 var(--lightbox-logo-outline))
        drop-shadow(1px 0 0 var(--lightbox-logo-outline))
        drop-shadow(0 -1px 0 var(--lightbox-logo-outline))
        drop-shadow(0 1px 0 var(--lightbox-logo-outline))
        drop-shadow(0 2px 8px rgba(35, 41, 46, 0.9));
}

.lightbox.active ~ .header .logo-text {
    -webkit-text-stroke: 0.45px rgba(35, 41, 46, 0.9);
    text-shadow:
        -1px -1px 0 rgba(35, 41, 46, 0.9),
        1px -1px 0 rgba(35, 41, 46, 0.9),
        -1px 1px 0 rgba(35, 41, 46, 0.9),
        1px 1px 0 rgba(35, 41, 46, 0.9),
        0 2px 8px rgba(35, 41, 46, 0.95);
}

.lightbox.active ~ .header .main-nav,
.lightbox.active ~ .header .menu-toggle,
.lightbox.active ~ .header .mobile-contact-link,
.lightbox.active ~ .header .nav-overlay {
    display: none !important;
}

.lb-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    gap: 0;
    padding: clamp(5rem, 8vh, 6.75rem) clamp(5rem, 9vw, 8rem) clamp(7.25rem, 14vh, 9rem);
    min-height: 0;
}

.lb-img {
    max-width: min(calc(100vw - 18rem), 1360px);
    max-height: calc(100dvh - clamp(12rem, 21vh, 15rem));
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
    flex: 0 1 auto;
}

.lightbox.info-hidden .lb-img {
    max-height: calc(100dvh - clamp(8rem, 14vh, 10rem));
}

.lb-footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: clamp(1rem, 2.4vh, 2rem);
    width: min(60rem, calc(100vw - 10rem));
    margin: 0 auto;
    flex-shrink: 0;
    z-index: 2001;
}


.lightbox.info-hidden .lb-meta {
    display: none;
}

.lightbox.info-hidden .lb-footer {
    display: none;
}

.lb-meta {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(24, 35, 61, 0.78);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.lb-meta[hidden] {
    display: none;
}

.lb-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.lb-caption {
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.lb-counter {
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
}

.lb-description {
    color: rgba(255, 255, 255, 0.74);
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Close button */
.lb-close {
    position: fixed;
    top: 1.5rem;
    right: 1.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.75rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2001;
}

.lb-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.lb-info-toggle {
    position: fixed;
    top: 1.5rem;
    right: 4.9rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    color: white;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2001;
}

.lb-info-toggle:hover,
.lb-info-toggle[aria-pressed="true"] {
    background: var(--accent-strong);
    border-color: rgba(255,255,255,0.34);
}

/* Prev / next stay fixed so captions never move the controls. */
/* Always show arrows, never hide on info toggle */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 2001;
}

.lb-prev {
    left: clamp(1rem, 4vw, 4rem);
}

.lb-next {
    right: clamp(1rem, 4vw, 4rem);
}

.lb-nav svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lb-nav:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .lightbox {
        padding: 0;
        align-items: stretch;
    }

    .lb-content {
        width: 100vw;
        height: 100dvh;
        max-width: 100vw;
        max-height: 100dvh;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .lb-img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100vw;
        max-height: 100%;
        min-height: 0;
        align-self: end;
        justify-self: center;
        object-fit: contain;
        object-position: center center;
        border-radius: 0;
    }

    .lightbox.info-hidden .lb-img {
        max-width: 100vw;
        max-height: 100%;
    }

    .lb-meta {
        max-width: 100vw;
        border: none;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .lb-footer {
        grid-row: 2;
        position: static;
        width: 100vw;
        max-width: none;
        margin: 0;
        align-self: stretch;
        flex: 0 0 auto;
        max-height: 32dvh;
        overflow-y: auto;
        padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
        background: rgba(15, 23, 42, 0.9);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lb-meta-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .lb-nav {
        width: 44px;
        height: 44px;
        display: flex !important;
    }

    .lb-nav svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .lb-close {
        top: 1rem;
        right: 1rem;
    }

    .lb-info-toggle {
        top: 1rem;
        right: 4.1rem;
    }
}

/* Portfolio item click hint */
.portfolio-item::after {
    content: '⊕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    color: white;
    font-size: 2.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.portfolio-item:hover::after,
.portfolio-item:focus-visible::after {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
}
