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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

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

/* Header styles */
header {
    background-color: #334155;
    color: #f8fafc;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 15px;
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: #f8fafc;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #cbd5e1;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/optimized/appraisalsbycarr-heroimage.webp');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #64748b;
    color: #f8fafc;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #475569;
}

/* Services section */
.services {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #334155;
    margin-bottom: 15px;
}

.section-title p {
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

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

.service-card {
    background-color: #f1f5f9;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #334155;
    margin-bottom: 15px;
    font-size: 22px;
}

.service-icon {
    font-size: 40px;
    color: #64748b;
    margin-bottom: 20px;
}

.service-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

/* About section */
.about {
    padding: 80px 0;
    background-color: #e2e8f0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    color: #334155;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-caption {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    color: #334155;
    font-size: 18px;
}

/* Contact section */
.contact {
    padding: 80px 0;
    background-color: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    color: #334155;
    margin-bottom: 20px;
    font-size: 24px;
}

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

.contact-info i {
    color: #64748b;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.service-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: #334155;
    color: #f8fafc;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #f8fafc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #cbd5e1;
}

.copyright {
    color: #94a3b8;
    font-size: 14px;
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.popup {
    background-color: #f8fafc;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: scaleIn 0.3s ease-out;
}

.popup-header {
    background-color: #334155;
    color: #f8fafc;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 22px;
}

.popup-close {
    background: none;
    border: none;
    color: #f8fafc;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.popup-body {
    padding: 25px;
}

.popup-body p {
    text-align: center;
    margin-bottom: 20px;
    color: #334155;
    font-size: 18px;
}

.popup-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.popup-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    background-color: #e2e8f0;
    transition: all 0.3s;
    text-align: center;
}

.popup-option:hover {
    background-color: #64748b;
    color: #f8fafc;
    transform: translateY(-5px);
}

/* Override popup-option hover for disabled phone links */
.popup-option.disabled-phone:hover {
    background-color: #e2e8f0;
    color: #64748b !important;
    transform: none;
}

.popup-option.disabled-phone small {
    color: #64748b !important;
}

.popup-option.disabled-phone:hover small {
    color: #64748b !important;
}

.popup-option-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.popup-option span {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.popup-option small {
    font-size: 14px;
    color: #64748b;
}

.popup-option:hover small {
    color: #e2e8f0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Phone link styles for business hours functionality */
.disabled-phone {
    cursor: not-allowed;
    position: relative;
    color: #64748b !important;
    text-decoration: none !important;
}

.disabled-phone:hover {
    color: #64748b !important;
}

.phone-tooltip {
    display: none;
    position: absolute;
    background-color: #334155;
    color: #f8fafc;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.phone-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #334155 transparent transparent transparent;
}

.disabled-phone:hover .phone-tooltip {
    display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
    }
    
    .company-name {
        font-size: 18px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .popup-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .company-name {
        font-size: 16px;
    }
}
