/* ========================================
   HOME BUILDERS PAGE STYLES
   Matches main.css theme for Riverside Home Designs
   ======================================== */

/* ========== INTRO SECTION ========== */
.builders-intro {
    margin-bottom: 30px;
}

.builders-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.builders-intro img {
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto 25px;
}

/* ========== BUILDER SECTIONS ========== */
.builder-section {
    margin-bottom: 40px;
}

.builder-section h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-blue);
}

/* ========== BUILDER CARDS ========== */
.builder-card {
    background-color: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.builder-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.builder-card h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin: 0 0 8px 0;
}

.builder-card .principal {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.builder-card .principal strong {
    color: var(--dark-gray);
}

/* ========== CONTACT INFO ========== */
.contact-info {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.contact-info p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0d4a9f;
    text-decoration: underline;
}

/* ========== BUILDER DESCRIPTION ========== */
.builder-card .description {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* ========== EXPAND/COLLAPSE BUTTON ========== */
/* Matches testimonials.html toggle button pattern */
.toggle-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 12px 25px;
    background: #1464d1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: #0d4a9e;
}

.toggle-btn.show-less {
    background: #666;
}

.toggle-btn.show-less:hover {
    background: #555;
}

/* ========== HIDDEN BUILDERS CONTAINER ========== */
.hidden-builders {
    display: none;
    margin-top: 20px;
}

.hidden-builders.expanded {
    display: block;
}

/* ========== TIPS SECTION ========== */
.tips-section {
    background-color: #f0f7ff;
    border-left: 4px solid var(--primary-blue);
    border-radius: 5px;
    padding: 25px 30px;
    margin: 40px 0;
}

.tips-section h2 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    border: none;
    padding: 0;
}

.tips-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.tips-section li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--dark-gray);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0d4a9f 100%);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    border: none;
    padding: 0;
}

.cta-section p {
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.95;
}

.cta-section a {
    color: var(--white);
}

.cta-section a:hover {
    opacity: 0.9;
}

.cta-section .btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.cta-section .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-section .phone-link {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .builder-section h2 {
        font-size: 1.3rem;
    }
    
    .builder-card {
        padding: 20px;
    }
    
    .builder-card h3 {
        font-size: 1.15rem;
    }
    
    .contact-info {
        padding: 12px;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .tips-section {
        padding: 20px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .builders-intro img {
        max-width: 280px;
    }
    
    .toggle-btn {
        max-width: 100%;
    }
}
