/**
 * San Antonio Sprinkler Repair Theme - Custom Styles
 * 
 * Additional styles that extend the main stylesheet
 */

/* Print Styles */
@media print {
    .site-header,
    .main-nav,
    .sidebar,
    .click-to-call-bar,
    .mobile-menu,
    .mobile-menu-overlay,
    .cta-section,
    .btn {
        display: none !important;
    }
    
    .content-area {
        width: 100% !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Additional Responsive Adjustments */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Service Card Hover Enhancements */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    color: var(--foreground);
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card .btn {
    margin-top: auto;
}

/* Star Rating Styles */
.testimonial-stars svg {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

/* Icon Styles */
svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* Button Icon Alignment */
.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Header Phone Icon */
.header-phone svg,
.footer-phone svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Service Icon Size */
.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Related Link Icons */
.related-link svg,
.area-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Sidebar Nav Icons */
.sidebar-nav svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to Content Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 8px;
    z-index: 1000;
}

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

/* Loading State for Buttons */
.btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

/* Entry Content Typography */
.entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content strong {
    font-weight: 600;
}

/* Card List Styling */
.card ul {
    list-style: none;
    padding: 0;
}

.card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

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

/* Form Success/Error States */
.form-success {
    background-color: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--muted);
    font-weight: 600;
}

/* Blockquote Styling */
blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted-foreground);
}

/* Image Styling */
.entry-content img {
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* Figure/Caption Styling */
figure {
    margin: 1.5rem 0;
}

figcaption {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.5rem;
}
