/*
Theme Name: IT Support Leicester
Description: A professional WordPress theme for IT support and automation services, featuring elegant design and comprehensive customization options.
Version: 1.0.0
Author: IT Support Leicester
Text Domain: it-support-leicester
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #0ea5e9;
    --secondary-dark: #0284c7;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --red-50: #fef2f2;
    --red-500: #ef4444;
    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --green-50: #f0fdf4;
    --green-500: #22c55e;
    --cyan-500: #06b6d4;
    --yellow-400: #facc15;
    --white: #ffffff;
    --radius: 0.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--slate-900);
    line-height: 1.5;
    background-color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--cyan-500), var(--blue-600));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(to right, #0891b2, #1e40af);
}

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

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.btn-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--slate-300);
    color: var(--slate-700);
}

.btn-outline-dark:hover {
    background-color: var(--slate-100);
    color: var(--slate-900);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    transition: color 0.3s ease;
}

.header.scrolled .logo {
    color: var(--slate-900);
}

.nav {
    display: none;
}

.nav-desktop {
    display: none;
}

.nav-mobile-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.5rem;
}

.header.scrolled .nav-mobile-btn {
    color: var(--slate-900);
}

.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 100;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

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

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.nav-mobile-close {
    background: none;
    border: none;
    color: var(--slate-900);
    cursor: pointer;
    font-size: 1.5rem;
}

.nav-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-mobile-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
}

.nav-mobile-item:hover {
    color: var(--slate-900);
}

.nav-mobile-submenu {
    margin-top: 0.5rem;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile-submenu-item {
    padding: 0.25rem 0;
    color: var(--slate-600);
}

.nav-mobile-submenu-item:hover {
    color: var(--slate-900);
}

.nav-mobile-cta {
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background: linear-gradient(to right, var(--slate-900), var(--slate-800));
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.2;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(to right, var(--cyan-500), var(--blue-500));
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-cta-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-premium {
    background-color: rgba(30, 58, 138, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.hero-image-container {
    position: relative;
    display: none;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.7s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-badge-float {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-badge-icon {
    background-color: var(--green-50);
    padding: 0.75rem;
    border-radius: 9999px;
    color: var(--green-500);
}

.hero-badge-text {
    color: var(--slate-900);
}

.hero-badge-subtext {
    font-size: 0.875rem;
    color: var(--slate-600);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--slate-600);
    max-width: 32rem;
    margin: 0 auto 4rem;
    text-align: center;
}

/* Services Section */
.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.help-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.help-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.help-icon {
    background-color: var(--red-50);
    padding: 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    color: var(--red-500);
}

.help-icon.blue {
    background-color: var(--blue-50);
    color: var(--blue-500);
}

.help-icon.green {
    background-color: var(--green-50);
    color: var(--green-500);
}

.help-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.help-text {
    color: var(--slate-600);
}

/* Expert Section */
.expert {
    background-color: var(--slate-50);
    padding: 4rem 0;
}

.expert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.expert-image-container {
    position: relative;
}

.expert-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.expert-badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background-color: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.expert-badge-icon {
    background-color: var(--blue-50);
    padding: 0.75rem;
    border-radius: 9999px;
    color: var(--blue-600);
}

.expert-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expert-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.expert-feature-icon {
    color: var(--green-500);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.expert-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.expert-feature-text {
    color: var(--slate-600);
}

.expert-cta {
    margin-top: 2rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
}

.testimonial-carousel {
    position: relative;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.testimonial-slide {
    padding: 3rem 2rem;
    text-align: center;
}

.testimonial-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--slate-200);
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-author-image {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-author-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-author-position {
    color: var(--slate-600);
    font-size: 0.875rem;
}

.testimonial-rating {
    margin-top: 0.5rem;
    color: var(--yellow-400);
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background-color: var(--slate-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--slate-400);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    background-color: var(--blue-600);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-link {
    color: var(--slate-400);
    transition: color 0.2s ease;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    color: var(--blue-500);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-contact-text {
    color: var(--slate-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-copyright {
    color: var(--slate-400);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: var(--slate-400);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: var(--white);
}

/* Blog/News Styles */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--slate-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-excerpt {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

.blog-read-more {
    color: var(--blue-600);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-read-more:hover {
    color: var(--blue-700);
}

/* Single Post */
.single-post {
    max-width: 48rem;
    margin: 0 auto;
}

.single-post-header {
    margin-bottom: 2rem;
}

.single-post-meta {
    color: var(--slate-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.single-post-featured-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.single-post-content {
    color: var(--slate-800);
    line-height: 1.7;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol,
.single-post-content blockquote {
    margin-bottom: 1.5rem;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post-content blockquote {
    border-left: 4px solid var(--blue-500);
    padding-left: 1rem;
    font-style: italic;
    color: var(--slate-600);
}

/* Team Page */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.team-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--blue-600);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

.team-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-contact-link {
    color: var(--slate-700);
    transition: color 0.2s ease;
}

.team-contact-link:hover {
    color: var(--blue-600);
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    background-color: var(--blue-50);
    color: var(--blue-600);
    padding: 0.75rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.contact-text {
    color: var(--slate-700);
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-500);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Responsive Styles */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-cta {
        flex-direction: row;
    }
    
    .blog-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-mobile-btn {
        display: none;
    }
    
    .nav-item {
        color: var(--white);
        font-weight: 500;
        transition: color 0.2s ease;
    }
    
    .header.scrolled .nav-item {
        color: var(--slate-700);
    }
    
    .nav-item:hover {
        color: var(--blue-500);
    }
    
    .help-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .expert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-image-container {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--blue-50);
    clip: auto !important;
    clip-path: none;
    color: var(--blue-700);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blue-600);
    color: white;
    padding: 10px;
    z-index: 999;
}

.skip-link:focus {
    top: 0;
}

/* Elementor Compatibility */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px;
}

.elementor-widget-text-editor {
    color: var(--slate-700);
}

.elementor-widget-heading .elementor-heading-title {
    color: var(--slate-900);
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.wp-caption {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.gallery-caption {
    display: block;
}

.bypostauthor {
    display: block;
}

.sticky {
    display: block;
}
