/* --- DELIVERED IT BRAND STYLES --- */
/* Following Brand Guidelines v1.0 */

:root {
    /* Colour Palette - From Brand Guidelines */
    --delivered-green: #3CB86E;  /* Primary brand colour - checkmark, CTAs, accents */
    --delivered-black: #000000;  /* Headlines, body copy, wordmark */
    --slate-grey: #8B8B8B;       /* Secondary text, dividing lines */
    --light-grey: #F5F5F5;       /* Backgrounds, cards */
    --white: #FFFFFF;            /* Backgrounds, reversed elements */
    
    /* Typography - From Brand Guidelines */
    --font-primary: 'Montserrat', Arial, Helvetica, sans-serif;   /* Headlines, titles */
    --font-secondary: 'Open Sans', Arial, Helvetica, sans-serif;  /* Body copy */
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-secondary);
    color: var(--delivered-black);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px; /* Body: 16px / 1rem */
}
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Typography Scale - From Brand Guidelines */
h1 {
    font-family: var(--font-primary);
    font-size: 3rem;      /* 48px */
    font-weight: 700;
    line-height: 1.1;
}
h2 {
    font-family: var(--font-primary);
    font-size: 2.25rem;   /* 36px */
    font-weight: 600;
}
h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;    /* 24px */
    font-weight: 600;
}
p {
    font-family: var(--font-secondary);
    font-size: 1rem;      /* 16px */
}
.small-text {
    font-size: 0.875rem;  /* 14px */
}

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; }

/* Buttons - Green CTAs as per guidelines */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary { 
    background-color: var(--delivered-green); 
    color: var(--white); 
}
.btn-primary:hover { 
    background-color: #35a562; 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md); 
}
.btn-outline-white { 
    border-color: var(--white); 
    color: var(--white); 
    background: transparent;
}
.btn-outline-white:hover { 
    background-color: var(--white); 
    color: var(--delivered-black); 
}
.btn-outline-green {
    border-color: var(--delivered-green);
    color: var(--delivered-green);
    background: transparent;
}
.btn-outline-green:hover {
    background-color: var(--delivered-green);
    color: var(--white);
}

/* --- HEADER & NAV --- */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 120px;
}
.nav-wrapper {
    height: 100%;
    justify-content: space-between;
}
.logo img {
    height: 100px;
    width: auto;
}
.nav-contact-info {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-phone {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--delivered-black);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-phone:hover {
    color: var(--delivered-green);
}
.phone-icon { color: var(--delivered-green); }

.nav-email {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--slate-grey);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-email:hover {
    color: var(--delivered-green);
}
.email-icon { color: var(--delivered-green); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(60, 184, 110, 0.3)), url('https://images.unsplash.com/photo-1616432043562-3671ea2e5242?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center right;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 120px;
}
.hero-content { max-width: 650px; }
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}
.hero .lead { 
    font-family: var(--font-secondary);
    font-size: 1.25rem; 
    margin-bottom: 40px; 
    opacity: 0.9; 
}
.hero-cta-group { display: flex; gap: 16px; }

/* --- SERVICES SECTION --- */
.services { background-color: var(--light-grey); }
.section-header h2 {
    color: var(--delivered-black);
    margin-bottom: 16px;
}
.section-header p { 
    color: var(--slate-grey); 
    max-width: 600px; 
    margin: 0 auto 48px auto; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-bottom: 4px solid var(--delivered-green);
    transition: transform 0.3s ease;
}
.service-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-md); 
}
.service-icon { 
    font-size: 2.5rem; 
    margin-bottom: 24px; 
    display: block; 
}
.service-card h3 { 
    margin-bottom: 16px; 
    color: var(--delivered-black); 
}
.service-card p { color: var(--slate-grey); }

/* --- ABOUT/FLEET SECTION --- */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    height: 100%;
    min-height: 500px;
}
.about-content h2 { 
    color: var(--delivered-black); 
    margin-bottom: 24px; 
}
.about-content p { 
    color: var(--slate-grey); 
    margin-bottom: 32px; 
    font-size: 1.1rem; 
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.check-mark {
    background-color: var(--delivered-green);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.feature-text strong { 
    display: block; 
    font-family: var(--font-primary);
    color: var(--delivered-black); 
    margin-bottom: 4px; 
}
.feature-text { color: var(--slate-grey); }

/* --- NATIONWIDE COVERAGE SECTION --- */
.nationwide-section {
    background: var(--delivered-black);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.nationwide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 184, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(60, 184, 110, 0.1) 0%, transparent 40%);
    pointer-events: none;
}
.nationwide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.nationwide-text {
    color: var(--white);
}
.nationwide-eyebrow {
    display: inline-block;
    color: var(--delivered-green);
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.nationwide-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.nationwide-text h2 .text-highlight {
    color: var(--delivered-green);
}
.nationwide-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 40px;
}
.nationwide-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-item {
    text-align: left;
}
.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--delivered-green);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* UK Map Container */
.nationwide-map {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.uk-map-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(60, 184, 110, 0.3)) brightness(1.1) sepia(0.5) hue-rotate(90deg) saturate(1.5);
}

/* Trust Badge */
.trust-badge {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.badge-icon {
    font-size: 1.5rem;
}
.badge-text {
    display: flex;
    flex-direction: column;
}
.badge-text strong {
    font-family: var(--font-primary);
    color: var(--delivered-black);
    font-size: 1rem;
}
.badge-text span {
    color: var(--slate-grey);
    font-size: 0.85rem;
}

/* --- CALL TO ACTION BANNER --- */
.cta-banner {
    background-color: var(--delivered-green);
    color: var(--white);
    text-align: center;
    padding: 80px 24px;
}
.cta-banner h2 { 
    margin-bottom: 24px; 
}
.cta-banner p {
    opacity: 0.9;
    margin-bottom: 16px;
}
.phone-large { 
    font-family: var(--font-primary);
    font-size: 2.5rem; 
    font-weight: 700; 
    display: block; 
    margin: 32px 0; 
    color: var(--white); 
}

/* --- CONTACT FORM SECTION --- */
.contact-section {
    background-color: var(--white);
}
.quote-form {
    max-width: 800px;
    margin: 0 auto;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    margin-bottom: 24px;
}
.form-group label {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--delivered-black);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-secondary);
    font-size: 1rem;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background: var(--white);
    color: var(--delivered-black);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--delivered-green);
    box-shadow: 0 0 0 3px rgba(60, 184, 110, 0.15);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B8B8B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-submit {
    width: 100%;
    padding: 18px 32px;
    font-size: 1rem;
    margin-top: 8px;
}
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 60px 24px;
}
.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--delivered-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px auto;
}
.form-success h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--delivered-black);
    margin-bottom: 16px;
}
.form-success p {
    color: var(--slate-grey);
    font-size: 1.1rem;
}

/* --- FOOTER --- */
footer { 
    background: var(--delivered-black); 
    color: var(--slate-grey); 
    padding: 32px 0; 
    text-align: center; 
    font-size: 0.9rem; 
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    .about-split { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { min-height: 300px; max-height: 400px; width: 100%; }
    .nationwide-content { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .nationwide-map { order: -1; }
    .uk-map-img { max-width: 280px; }
    .nationwide-stats { justify-content: center; }
    .stat-item { text-align: center; }
    .trust-badge { left: 50%; transform: translateX(-50%); }
    @keyframes float {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-10px); }
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    /* Fixed mobile header */
    header { 
        height: auto; 
        padding: 12px 0;
        position: relative; /* Changed from fixed to relative on mobile */
    }
    .nav-wrapper { 
        flex-direction: column; 
        gap: 12px; 
    }
    .logo img {
        height: 80px;
    }
    .nav-contact-info { 
        flex-direction: column; 
        gap: 8px;
        align-items: center;
    }
    .nav-phone {
        font-size: 1rem;
    }
    .nav-email {
        font-size: 0.85rem;
    }
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    /* Hero adjustments for non-fixed header */
    .hero { 
        padding-top: 40px;
        min-height: 80vh;
        padding-bottom: 60px; 
        text-align: center; 
    }
    .hero-content { 
        margin: 0 auto; 
    }
    .hero h1 { 
        font-size: 2rem;
        margin-bottom: 16px;
    }
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    .hero-cta-group { 
        justify-content: center; 
        flex-wrap: wrap;
        gap: 12px;
    }
    
    /* Other mobile fixes */
    .phone-large { font-size: 1.6rem; }
    .nationwide-text h2 { font-size: 2rem; }
    .nationwide-stats { flex-direction: column; gap: 24px; }
    .stat-number { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 32px 24px; }
    
    /* Form mobile styles */
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    .form-group.full-width {
        margin-bottom: 16px;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
    }
}
