/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth load-in animation setup */
.fade-in-element {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-element.loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    font-weight: 400;
}

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

.locations .container {
    max-width: 480px;
}

/* Header */
.header {
    padding: 40px 0 20px;
    text-align: center;
}

.logo {
    max-height: 60px;
    width: auto;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Main Content */
.main {
    padding: 20px 0 60px;
}

.construction-note {
    text-align: center;
    color: #999999;
    font-family: 'Edu SA Hand', cursive, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Phone Section */
.phone-section {
    text-align: center;
    margin-bottom: 60px;
}

.phone-link {
    display: inline-block;
    font-size: 2rem;
    font-weight: 600;
    color: #f5f5f5;
    text-decoration: none;
    margin-bottom: 8px;
    padding: 12px 24px;
    border: 2px solid #4a9b9b;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(74, 155, 155, 0.1);
}

.phone-link:hover {
    color: #ffffff;
    background-color: #4a9b9b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 155, 155, 0.3);
}

.phone-link:focus {
    outline: 2px solid #4a9b9b;
    outline-offset: 2px;
}

.phone-subtitle {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Locations */
.locations {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.location {
    border: 1px solid #404040;
    border-radius: 20px;
    padding: 30px;
    background-color: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    transition: all 0.3s ease;
}

.location:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: #4a9b9b;
}

.location-name {
    font-size: 1.3rem;
    font-weight: 500;
    color: #f5f5f5;
    margin-bottom: 20px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.suite-details {
    color: #4a9b9b;
    font-size: 0.95rem;
    font-weight: 500;
}

.suite-info {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: -8px;
}

.opening-info {
    color: #4a9b9b;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: rgba(74, 155, 155, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #4a9b9b;
    margin: 8px 0;
}

.book-btn {
    display: inline-block;
    background-color: #4a9b9b;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: 8px;
    transform: translateY(0);
}

.book-btn:hover {
    background-color: #3d8282;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 155, 155, 0.3);
}

.book-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(74, 155, 155, 0.2);
}

.book-btn:focus {
    outline: 2px solid #4a9b9b;
    outline-offset: 2px;
}

/* Improved focus states for better accessibility */
*:focus {
    outline: 2px solid #4a9b9b;
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Restore focus outline for keyboard users */
*:focus-visible {
    outline: 2px solid #4a9b9b;
    outline-offset: 2px;
}

/* Footer */
.footer {
    border-top: 1px solid #404040;
    padding: 20px 0;
    text-align: center;
    min-height: 60px;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer p {
    color: #999999;
    font-size: 0.85rem;
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .locations .container {
        max-width: 500px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        max-width: 95%;
    }
    
    .locations .container {
        max-width: 100%;
    }
    
    .header {
        padding: 25px 0 15px;
    }
    
    .logo {
        max-height: 48px;
    }
    
    .construction-note {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .phone-link {
        font-size: 1.5rem;
    }
    
    .phone-section {
        margin-bottom: 40px;
    }
    
    .location {
        padding: 24px;
        max-width: 420px;
    }
    
    .locations {
        gap: 25px;
    }
    
    .main {
        padding: 15px 0 30px;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 640px) {
    .location {
        max-width: 380px;
        padding: 20px;
    }
    
    .location-name {
        font-size: 1.2rem;
    }
    
    .phone-link {
        font-size: 1.4rem;
    }
    
    .construction-note {
        font-size: 1.1rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header {
        padding: 20px 0 10px;
    }
    
    .logo {
        max-height: 58px;
    }
    
    .construction-note {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    .phone-link {
        font-size: 1.3rem;
    }
    
    .phone-section {
        margin-bottom: 30px;
    }
    
    .location {
        padding: 18px;
        max-width: 100%;
        margin: 0;
    }
    
    .location-name {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .address, .suite-details {
        font-size: 0.9rem;
    }
    
    .suite-info, .opening-info {
        font-size: 0.85rem;
    }
    
    .locations {
        gap: 20px;
    }
    
    .book-btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }
    
    .main {
        padding: 10px 0 25px;
    }
    
    .footer {
        padding: 15px 0;
    }
    
    .footer p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .logo {
        max-height: 54px;
    }
    
    .phone-link {
        font-size: 1.2rem;
    }
    
    .location {
        padding: 15px;
    }
    
    .location-name {
        font-size: 1rem;
    }
    
    .construction-note {
        font-size: 1rem;
    }
}
