/* =============================================
   Keen Eye Inventories - Professional Stylesheet
   Chester & Wirral Property Inventory Services
   ============================================= */

/* CSS Variables */
:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #059669;
    --secondary-light: #10b981;
    --accent: #f59e0b;
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f3f4f6;
    --lighter: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

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

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark);
}

.logo:hover {
    color: var(--dark);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-light);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--lighter) 0%, var(--white) 50%, var(--light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(30, 64, 175, 0.03));
    transform: rotate(-15deg);
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero h1 {
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
}

.trust-icon {
    color: var(--secondary);
    font-weight: bold;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header p {
    color: var(--gray);
    margin-top: 10px;
}

/* Services Section */
.services {
    background: var(--lighter);
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.service-card.featured {
    border: 2px solid var(--primary);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-features {
    border-top: 1px solid var(--light);
    padding-top: 20px;
}

.service-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--dark-light);
    font-size: 0.9rem;
}

.service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Why Us Section */
.why-us {
    background: var(--white);
}

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

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.feature p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Areas Section */
.areas {
    background: var(--primary);
    color: var(--white);
}

.areas .section-header h2,
.areas .section-header p {
    color: var(--white);
}

.areas .section-header p {
    opacity: 0.9;
}

.areas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.areas-map {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    position: relative;
    display: inline-block;
    max-width: 500px;
    width: 100%;
}

.map-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.map-label {
    position: absolute;
    background: var(--accent);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}

.coverage-label {
    top: 45%;
    left: 30%;
    transform: translate(-50%, -50%);
}

.areas-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.area-group h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.area-group ul li {
    padding: 6px 0;
    opacity: 0.9;
}

.areas-note {
    text-align: center;
    margin-top: 40px;
    opacity: 0.9;
}

.areas-note a {
    color: var(--accent);
    font-weight: 500;
}

.areas-note a:hover {
    color: var(--white);
}

/* About Section */
.about {
    background: var(--lighter);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 15px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--light);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.about-image {
    display: flex;
    justify-content: center;
}

.miservices-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.badge-text {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.badge-logo {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.badge-sub {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    background: var(--white);
}

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

.testimonial {
    background: var(--lighter);
    padding: 30px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
    color: var(--dark-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.testimonial cite {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--lighter);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--gray);
}

.contact-item a {
    color: var(--gray);
}

.contact-item a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.875rem;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-miservices {
    margin-top: 15px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul a {
    color: var(--gray-light);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--white);
}

.footer-contact p {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--gray-light);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--dark-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .areas-content {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--light);
    }

    .nav-cta {
        text-align: center;
        margin-top: 10px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-trust {
        flex-direction: column;
        gap: 15px;
    }

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

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

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px 20px;
    }

    .miservices-badge {
        padding: 40px 30px;
    }

    .badge-logo {
        font-size: 2rem;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.6s ease forwards;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius-lg);
    z-index: 9999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: calc(100% - 40px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-light);
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 24px;
    font-size: 0.875rem;
    border-radius: var(--radius);
    cursor: pointer;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        padding: 15px 20px;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        padding: 12px 16px;
    }
}
