/* Styles for Client, Commercial, and Residential pages */

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Page Content */
.page-content {
    padding: 60px 0 100px;
    flex: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.page-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA Buttons */
.cta-button {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.cta-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border: none;
}

.cta-primary:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

/* Additional Sections */
.intro-section {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.intro-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.intro-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

.emergency-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.emergency-card:hover {
    border-color: rgba(239, 68, 68, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .page-icon {
        width: 80px;
        height: 80px;
    }

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

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

    .header-nav {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .back-link, .login-button {
        width: 100%;
    }

    .intro-section {
        padding: 30px 25px;
    }

    .intro-section h3 {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 40px 25px;
    }

    .cta-section h3 {
        font-size: 1.6rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Legal Pages Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-document {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px;
    margin-top: 30px;
}

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

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.legal-section h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 25px 0 12px 0;
}

/* Legacy h4 support for any remaining h4 tags */
.legal-section h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 15px 0 15px 30px;
}

.legal-section li {
    margin-bottom: 10px;
}

.legal-section a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.legal-section a:focus {
    outline: 3px solid var(--primary-cyan);
    outline-offset: 2px;
}

.legal-section strong {
    color: var(--text-primary);
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.cookie-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-table th {
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.cookie-table td {
    color: var(--text-secondary);
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Contact Info Box */
.contact-info {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

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

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

/* Footer Links */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-links a:focus {
    outline: 3px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Responsive Adjustments for Legal Pages */
@media (max-width: 768px) {
    .legal-document {
        padding: 30px 25px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section h4 {
        font-size: 1rem;
    }

    .cookie-table {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 8px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
