/* Responsive Design for Hamilton B. Barber Website */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Tablet Styles */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    
    .hero-photo {
        flex-basis: auto;
        max-width: 280px;
    }
    
    .hero-text {
        max-width: 600px;
    }
    
    .certification-badges {
        justify-content: center;
        margin: 0 auto 20px;
    }
    
    .contact-buttons {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Header */
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        flex-wrap: wrap;
    }
    
    .header nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 20px;
        border-top: 1px solid #eee;
        margin-top: 15px;
    }
    
    .header nav.active {
        display: flex;
    }
    
    .header nav a {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .intro {
        font-size: 18px;
    }
    
    .hero-photo {
        max-width: 220px;
    }
    
    /* Certification badges */
    .certification-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 280px;
        margin: 0 auto 20px auto;
        justify-items: center;
    }
    
    .cert-badge {
        max-width: 100px;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 32px;
    }
    
    /* Expertise */
    .expertise-areas {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Projects */
    .project {
        padding-left: 20px;
    }
    
    .project h3 {
        font-size: 20px;
    }
    
    /* Contact */
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    /* Speech bubble adjustments - position over lower part of photo */
    .speech-bubble.left,
    .speech-bubble.right,
    .speech-bubble.top {
        position: absolute;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: 20px !important;
        transform: translateX(-50%);
        max-width: 250px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .speech-bubble .bubble-tail {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .intro {
        font-size: 16px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .certification-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-width: 240px;
    }
    
    .cert-badge {
        max-width: 80px;
    }
    
    .brand {
        font-size: 20px;
    }
}
