/* =================================================================
   WOLCROFT GROUP - PARENT PORTAL STYLES
   ================================================================= */

:root {
    --primary-color: #1a1a1a;    /* Matched to service site */
    --group-slate: #334155;
    --group-bg: #ffffff;
    --body-font: 'Inter', sans-serif;
}

body {
    font-family: var(--body-font);
    color: var(--primary-color);
    margin: 0;
    line-height: 1.7;
    background-color: var(--group-bg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER & LOGO (Identical to wolcroftpestcontrol.co.uk) === */
header {
    padding: 30px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

/* === EXACT LOGO STYLING MATCH === */
.logo {
    text-decoration: none;
    line-height: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-main {
    font-family: 'Inter', sans-serif;
    font-weight: 800; /* Extra bold matched to wolcroftpestcontrol.co.uk */
    font-size: 1.8rem;
    color: #1a1a1a;
    letter-spacing: -1px; /* Branding letter-spacing from service site */
    display: flex;
    gap: 10px; 
    align-items: center;
}

/* The 'W' square style - matched to the service site visual */
.short-logo-text {
    background: #1a1a1a;
    color: #ffffff;
    padding: 2px 10px; 
    border-radius: 4px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* === NAVIGATION === */
nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--group-slate);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* === HERO & MISSION SECTION === */
.hero-portal {
    padding: 100px 0 60px;
}

.hero-portal h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.mission-statement {
    font-size: 1.2rem;
    color: var(--group-slate);
    max-width: 750px;
    border-left: 4px solid var(--primary-color);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
}

/* === BRANDS GRID === */
.brands-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 30px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.brand-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.brand-card h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.brand-card p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.visit-link {
    font-weight: 700;
    color: #007aff; /* Action Blue from service site */
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* === FOOTER === */
footer {
    padding: 80px 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.address-block {
    margin-top: 20px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 20px;
    }
    nav a {
        margin: 0 15px;
    }
    .hero-portal h1 {
        font-size: 2.2rem;
    }
}

/* === THE UNIQUE BRAND WIPE === */

/* Hide the default scroll behavior so the jump is invisible */
html {
    scroll-behavior: auto !important;
}

.wipe-overlay {
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; /* Matches your 'W' logo color */
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

/* When active, slide across to cover everything */
.wipe-overlay.is-active {
    transform: translateX(100%);
    pointer-events: all;
}

/* When leaving, slide out the other side */
.wipe-overlay.is-leaving {
    transform: translateX(200%);
}

/* Optional: Add a subtle entrance to section headers to make them "pop" after the wipe */
section h1, section .section-label {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* This makes the navigation links feel more responsive */
nav a {
    position: relative;
    overflow: hidden;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

