/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0061FF;
    --secondary-color: #7ED957;
    --accent-color: #FF6B6B;
    --neutral-light: #F3F3F3;
    --neutral-dark: #2C3E50;
    --white: #FFFFFF;
    --black: #000000;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 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);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--gray-900);
    margin-bottom: 16px;
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

p {
    margin-bottom: 16px;
    line-height: var(--line-height-normal);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

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

.btn-primary:hover {
    background-color: #0052E6;
    border-color: #0052E6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-white:hover {
    background-color: var(--neutral-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    min-height: 80px;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
}

.nav-menu li {
    margin-left: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-cta {
    margin-left: 24px;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 97, 255, 0.8), rgba(126, 217, 87, 0.6));
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--gray-100);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: 64px;
    color: var(--gray-900);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.service-card.urgent {
    background: linear-gradient(135deg, var(--accent-color), #FF5252);
    color: var(--white);
}

.service-card.urgent .service-title,
.service-card.urgent .service-desc {
    color: var(--white);
}

.service-icon {
    margin-bottom: 24px;
}

.service-icon svg {
    width: 64px;
    height: 64px;
}

.service-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 16px;
}

.service-desc {
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: var(--font-size-2xl);
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.step-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 16px;
}

.step-desc {
    color: var(--gray-600);
    line-height: var(--line-height-relaxed);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--gray-200);
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--white), var(--neutral-light));
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 16px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    border-radius: var(--border-radius);
}

.pricing-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 16px;
}

.pricing-price {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: 32px;
}

.pricing-price span {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    text-align: center;
    color: var(--gray-600);
    font-style: italic;
}

/* Emergency */
.emergency {
    background: linear-gradient(135deg, var(--primary-color), #0052E6);
    color: var(--white);
}

.emergency-content {
    text-align: center;
}

.emergency-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.emergency-desc {
    font-size: var(--font-size-xl);
    margin-bottom: 32px;
    opacity: 0.95;
}

.emergency-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.review-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.review-stars {
    color: #FFD700;
    font-size: var(--font-size-lg);
    margin-bottom: 16px;
}

.review-text {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: var(--line-height-relaxed);
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Coverage */
.coverage-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.city {
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    font-weight: 500;
    color: var(--gray-800);
    transition: var(--transition);
}

.city:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

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

.faq-answer p {
    padding-bottom: 24px;
    color: var(--gray-700);
    line-height: var(--line-height-relaxed);
}

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

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: start;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: var(--transition);
}

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

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

.contact-info {
    background: var(--gray-100);
    padding: 40px 32px;
    border-radius: var(--border-radius-xl);
    height: fit-content;
}

.contact-item {
    margin-bottom: 32px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 64px 0 24px;
}

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

.footer-about .logo {
    margin-bottom: 16px;
}

.footer-about p {
    color: var(--gray-400);
    line-height: var(--line-height-relaxed);
}

.footer-links h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 8px;
    color: var(--gray-400);
}

.footer-contact a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    padding: 16px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 24px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--secondary-color);
}

/* Toast */
.toast {
    position: fixed;
    top: 100px;
    right: 24px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: var(--transition);
    z-index: 1002;
}

.toast.show {
    transform: translateX(0);
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    background: var(--white);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.legal-intro {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.legal-section p {
    margin-bottom: 16px;
    line-height: var(--line-height-relaxed);
    color: var(--gray-700);
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: var(--line-height-relaxed);
    color: var(--gray-700);
}

.legal-section .contact-info {
    background: var(--gray-100);
    padding: 24px;
    border-radius: var(--border-radius);
    margin: 24px 0;
}

.legal-section .contact-info p {
    margin-bottom: 8px;
}

.legal-section .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-section .contact-info a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 24px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

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

    .nav-menu li {
        margin: 0;
        text-align: center;
        padding: 12px 0;
    }

    .nav-menu li:first-child {
        padding-top: 0;
    }

    .nav-menu li:last-child {
        padding-bottom: 0;
    }

    .nav-link {
        display: block;
        padding: 12px 24px;
        font-size: var(--font-size-lg);
        border-bottom: none;
    }

    .nav-cta {
        margin: 16px 24px 0;
        text-align: center;
        display: block;
    }

    .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-title {
        font-size: var(--font-size-4xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

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

    .process-steps {
        gap: 32px;
    }

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

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

    .nav {
        padding: 12px 16px;
    }

    .nav-menu {
        top: 70px;
    }

    .nav-cta {
        display: block;
        margin: 16px 16px 0;
        padding: 12px 24px;
    }

    .hero {
        min-height: 500px;
        padding: 40px 0;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 40px;
    }

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

    .service-card {
        padding: 32px 24px;
    }

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

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .coverage-cities {
        justify-content: center;
    }

    .city {
        padding: 12px 20px;
    }

    .emergency-title {
        font-size: var(--font-size-3xl);
    }

    .emergency-buttons {
        flex-direction: column;
        align-items: center;
    }

    .emergency-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .contact-info {
        padding: 32px 24px;
    }

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

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

    .toast {
        right: 16px;
        left: 16px;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .legal-content h1 {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-xl);
    }

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

    .pricing-card {
        padding: 32px 24px;
    }

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

    .contact-info {
        padding: 24px 20px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Form validation styles */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--accent-color);
}

.form-error {
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Loading states */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}