/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #2c2c2c;
    background: linear-gradient(45deg, #f5f7fa 0%, #c3cfe2 100%);
    font-size: 16px;
}

/* Header Styles - Clean Minimalist */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 30px 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
}

header h1 {
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: none;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Intro Section */
.intro {
    background: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 60px;
    border-left: 6px solid #667eea;
}

.intro h2 {
    color: #2c2c2c;
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.3;
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Service List - List Style Layout */
.cleaning-services {
    margin-bottom: 80px;
}

.service-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.service-item {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.3s ease;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item:hover {
    background-color: #fafbfc;
}

/* Service Header - Horizontal Layout */
.service-header {
    display: flex;
    align-items: center;
    padding: 25px 35px;
    gap: 20px;
}

.rank-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.service-title {
    flex: 1;
}

.service-title h3 {
    color: #2c2c2c;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.rating-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars-compact {
    color: #ffa726;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.rating-number {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
}

.review-count {
    color: #888;
    font-size: 0.95rem;
}

.contact-quick {
    margin-left: auto;
}

.contact-btn-compact {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.contact-btn-compact:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Service Body - Expandable Content */
.service-body {
    display: flex;
    padding: 0 35px 35px 35px;
    gap: 25px;
    margin-top: -10px;
}

.service-image-small {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image-small img {
    transform: scale(1.05);
}

.service-details {
    flex: 1;
}

.service-desc {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
}

.service-location {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* About Section */
.about-sagaponack {
    background: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 60px;
    border-left: 6px solid #f093fb;
}

.about-sagaponack h2 {
    color: #2c2c2c;
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.3;
}

.about-sagaponack h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin: 40px 0 20px 0;
    font-weight: 500;
}

.about-sagaponack p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.about-sagaponack ul {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}

.about-sagaponack li {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 30px;
}

.about-sagaponack li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.about-sagaponack li:last-child {
    border-bottom: none;
}

.about-sagaponack li strong {
    color: #2c2c2c;
    font-weight: 600;
}

/* Service Areas */
.service-areas {
    background: white;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 60px;
    border-left: 6px solid #4facfe;
}

.service-areas h2 {
    color: #2c2c2c;
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 400;
    line-height: 1.3;
}

.service-areas p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.areas-grid span {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.areas-grid span:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

/* Stats Modal - Updated for new theme */
.stats-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 44, 44, 0.6);
    backdrop-filter: blur(8px);
}

.stats-modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
}

.close-stats {
    font-size: 2.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-stats:hover {
    opacity: 1;
}

.stats-body {
    padding: 35px;
}

.total-stats {
    text-align: center;
    margin-bottom: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    color: white;
}

.total-clicks-display span {
    display: block;
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 8px;
}

.total-clicks-display label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.companies-stats {
    max-height: 320px;
    overflow-y: auto;
}

.stats-company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    margin-bottom: 12px;
    background: #fafbfc;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.stats-company-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.stats-company-info h4 {
    margin: 0 0 8px 0;
    color: #2c2c2c;
    font-size: 1.15rem;
    font-weight: 500;
}

.stats-company-info .last-click-time {
    font-size: 0.9rem;
    color: #666;
}

.stats-click-count {
    text-align: right;
}

.stats-click-number {
    font-size: 1.9rem;
    font-weight: 600;
    color: #667eea;
    display: block;
}

.stats-click-label {
    font-size: 0.85rem;
    color: #666;
}

.stats-footer {
    padding: 25px;
    background: #fafbfc;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.stats-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    margin: 0 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.stats-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.stats-btn.danger {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stats-btn.danger:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 60px 30px;
    margin-top: 80px;
}

footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    margin-bottom: 40px;
}

footer p {
    margin-bottom: 15px;
    font-size: 1rem;
}

footer small {
    opacity: 0.8;
}

footer .admin-access {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

footer kbd {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Arial', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-quick {
        margin-left: 0;
        align-self: stretch;
    }

    .contact-btn-compact {
        width: 100%;
    }

    .service-body {
        flex-direction: column;
        gap: 20px;
    }

    .service-image-small {
        width: 100%;
        height: 150px;
    }

    .intro, .about-sagaponack, .service-areas {
        padding: 40px 30px;
    }

    .intro h2, .about-sagaponack h2, .service-areas h2 {
        font-size: 2rem;
    }

    .areas-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-modal-content {
        width: 95%;
        margin: 10% auto;
    }

    main {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .service-header {
        padding: 20px 25px;
    }

    .service-body {
        padding: 0 25px 25px 25px;
    }

    .intro, .about-sagaponack, .service-areas {
        padding: 30px 20px;
    }
}