/* Leicester Roofing Specialists - Custom Styles */

:root {
    --primary: #1e3a5f;
    --primary-strong: #142b46;
    --secondary: #2c5282;
    --accent: #f59e0b;
    --accent-strong: #d97706;
    --dark: #0f172a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-500: #64748b;
    --slate-700: #334155;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--slate-700);
    background: var(--white);
    overflow-x: hidden;
}

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

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.hero-section {
    background-image:
        linear-gradient(135deg, rgba(30, 58, 95, 0.96) 0%, rgba(44, 82, 130, 0.9) 100%),
        url('https://images.unsplash.com/photo-1621905251918-48416bd8575a?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef3c7;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-kicker.dark {
    background: rgba(30, 58, 95, 0.07);
    border-color: rgba(30, 58, 95, 0.15);
    color: var(--primary);
}

.hero-panel {
    position: relative;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.hero-badge {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fef3c7;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.bullet-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    display: inline-block;
    margin-right: 0.85rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1rem 0.75rem;
    text-align: center;
}

.mini-stat strong {
    display: block;
    font-size: 1.35rem;
    color: white;
    font-weight: 800;
}

.mini-stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.service-card {
    position: relative;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 18px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.service-card p {
    color: var(--slate-500);
    font-size: 0.96rem;
    line-height: 1.6;
}

.emergency-card {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: transparent;
}

.emergency-card h3,
.emergency-card p {
    color: white;
}

.emergency-card .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.feature-box {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 1.2rem;
}

.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-strong);
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.feature-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.feature-box p {
    color: var(--slate-500);
    font-size: 0.92rem;
}

.work-photo-frame {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    min-height: 540px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.work-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-badge {
    position: absolute;
    left: -1.25rem;
    bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.process-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.process-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-card p {
    color: var(--slate-500);
}

.testimonials-slider {
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 0;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    margin-right: 0.8rem;
}

.slider-button {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--slate-200);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.slider-button:hover {
    background: var(--primary);
    color: white;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.02);
}

@media (max-width: 1024px) {
    .hero-panel {
        max-width: 38rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }

    .hero-panel {
        padding: 1.4rem;
    }

    .mini-stats {
        grid-template-columns: 1fr;
    }

    .stats-badge {
        position: static;
        margin-top: 1.25rem;
    }

    .work-photo-frame {
        min-height: 400px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-panel {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .hero-panel h1,
    .hero-panel h2,
    .hero-panel h3 {
        line-height: 1.15;
        word-break: break-word;
    }

    .mini-stats {
        gap: 0.75rem;
    }

    .trust-pill {
        display: inline-flex;
        max-width: 100%;
        font-size: 0.8rem;
    }

    .work-photo-frame {
        min-height: 280px;
    }

    .stats-badge {
        left: 0;
        right: 0;
        margin: 1rem 0 0;
    }

    .faq-question {
        font-size: 1rem;
    }

    .form-input,
    .form-label,
    .btn-primary,
    .btn-secondary {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Existing component styles continue below */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.service-hero {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(44, 82, 130, 0.9) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 101;
}

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

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ed8936;
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.1);
}

.form-input::placeholder {
    color: #a0aec0;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e3a5f;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f7fafc;
}

.faq-question.active {
    background: #f7fafc;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.25rem 1.25rem;
    color: #4a5568;
    line-height: 1.7;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: white;
}

.breadcrumbs span {
    color: white;
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5);
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 600px;
}

/* Button Styles */
.btn-primary {
    background-color: #ed8936;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #dd6b20;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #1e3a5f;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
}

/* Service Benefits List */
.benefits-list {
    list-style: none;
}

.benefits-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ed8936;
    border-radius: 50%;
}

/* Process Steps */
.process-step {
    position: relative;
    padding-left: 3rem;
}

.process-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background-color: #ed8936;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ed8936;
    display: block;
}

.stat-label {
    color: #4a5568;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {

    header,
    footer,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #ed8936;
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ed8936;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

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

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.message-success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
}