/* ========================================
   Decorra - Custom Window Coverings
   Layout & Components
   ======================================== */

/* Top Bar: Contact information strip */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color); /* Deep Emerald Ocean */
    color: var(--background-white);
    font-size: 15px;
    padding: 10px 0;
    z-index: 1001;
    transition: var(--transition-normal);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.top-bar-socials {
    display: flex;
    gap: 12px;
    margin-left: 15px;
}

.top-bar-socials a {
    color: var(--background-white);
    font-size: 14px;
    transition: var(--transition-normal);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    text-decoration: none;
}

.top-bar-socials a:hover {
    background: var(--secondary-color); /* Bright Golden Amber */
    color: var(--text-color);
}

/* Buttons: Reusable button components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--secondary-color); /* Bright Golden Amber */
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-color); /* Shifts to Vibrant Coral on hover */
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-3px);
}

/* Navigation: Fixed top navbar */
.navbar {
    position: fixed;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    height: var(--nav-height);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

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

.logo-img {
    height: 100px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    position: relative;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 6px;
    background: var(--secondary-color); /* Bright Golden Amber */
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

/* Footer: Global site footer */
.footer {
    background: var(--background-white); /* Deep Forest Emerald */
    color: var(--primary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 15px;
    opacity: 0.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color); /* Bright Golden Amber */
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color); /* Vibrant Coral */
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color); /* Deep Emerald Ocean */
    color: var(--background-white);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Form Feedback Messages */
.form-feedback {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Turnstile Captcha Container */
#turnstile-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Disabled Button State */
.btn-primary:disabled {
    background: #ccc !important;
    color: #888 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-primary:disabled:hover {
    background: #ccc !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Form Group Enhancements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-normal);
    background: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

/* ========================================
   Mobile Responsive Styles
   ======================================== */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Top Bar - Stack on mobile */
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-left, 
    .top-bar-right {
        font-size: 13px;
        gap: 15px;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 112px; /* navbar top (80px) + top-bar (32px) */
        left: -100%;
        width: 80%;
        height: calc(100vh - 112px);
        background: var(--background-white);
        flex-direction: column;
        gap: 0;
        padding: 15px;
        box-shadow: var(--shadow-md);
        transition: var(--transition-normal);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Logo - Smaller on mobile */
    .logo-img {
        height: 100px;
        max-width: 180px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    /* Footer - Stack columns */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo h2 {
        font-size: 24px;
    }
    
    /* Buttons - Full width on mobile */
    .btn {
        width: 100%;
        padding: 12px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Gallery filters - wrap */
    .gallery-filters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 5px;
    }
    
    .logo-img {
        height: 100px;
        max-width: 180px;
    }
    
    .navbar {
        top: 0px; /* Smaller top bar on very small screens */
    }
    
    .nav-menu {
        top: 90px;
    }
}

