/* White & Blue Theme for Copnor Loft Conversions */

/* ===== NAVIGATION ===== */
#navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
    transform: translateY(0);
    transition: transform 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

#navbar.hidden-nav {
    transform: translateY(-100%);
}

#navbar.solid {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #e5e7eb;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

/* Force solid from top on non-home pages */
.nav-solid-start #navbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: #e5e7eb;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

#nav-logo {
    color: #ffffff;
}

#nav-logo .logo-accent {
    color: #93c5fd;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link-active {
    font-weight: 600;
    color: #ffffff;
}

#mobile-menu-button {
    color: #ffffff;
}

#navbar.solid #nav-logo,
.nav-solid-start #nav-logo {
    color: #111827;
}

#navbar.solid #nav-logo .logo-accent,
.nav-solid-start #nav-logo .logo-accent {
    color: #2563eb;
}

#navbar.solid .nav-link,
.nav-solid-start .nav-link {
    color: #4b5563;
}

#navbar.solid .nav-link:hover,
.nav-solid-start .nav-link:hover {
    color: #2563eb;
}

#navbar.solid .nav-link-active,
.nav-solid-start .nav-link-active {
    color: #2563eb;
}

#navbar.solid #mobile-menu-button,
.nav-solid-start #mobile-menu-button {
    color: #4b5563;
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #2563EB;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1D4ED8;
}

/* ===== FORM STYLES ===== */
input, textarea, select {
    font-family: 'Montserrat', sans-serif;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== BUTTON HOVER EFFECTS ===== */
button, a {
    transition: all 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Montserrat', sans-serif;
}

/* ===== ELEGANT UNDERLINE ===== */
.elegant-underline {
    position: relative;
}

.elegant-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2563EB, transparent);
}

/* ===== TEXT SHADOW ===== */
.text-shadow-blue {
    text-shadow: 0 2px 20px rgba(37, 99, 235, 0.2);
}

/* ===== IMAGE HOVER EFFECTS ===== */
img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

/* ===== SECTION SPACING ===== */
section {
    position: relative;
}

/* ===== SELECTION COLOR ===== */
::selection {
    background-color: #2563EB;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #2563EB;
    color: #FFFFFF;
}

/* ===== BORDER BOX ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ===== LOADING ANIMATION ===== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-container {
    text-align: center;
}

.loading-container p {
    margin-top: 20px;
    color: #2563EB;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 0.875rem;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto;
}

.loader-bar {
    position: absolute;
    background: linear-gradient(to right, #2563EB, #60A5FA);
    width: 20px;
    height: 2px;
    animation: build 1.5s infinite;
}

.loader-bar:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.loader-bar:nth-child(2) {
    top: 45%;
    animation-delay: 0.5s;
}

.loader-bar:nth-child(3) {
    top: 70%;
    animation-delay: 1s;
}

@keyframes build {
    0% {
        left: 0;
        width: 0;
    }
    50% {
        left: 0;
        width: 100%;
    }
    100% {
        left: 100%;
        width: 0;
    }
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 40;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1E293B;
    text-decoration: none;
    border-bottom: 1px solid #E2E8F0;
}

.mobile-menu a:hover {
    background-color: #F1F5F9;
    color: #2563EB;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .elegant-underline::after {
        width: 60px;
        height: 2px;
    }
}

/* ===== CARD HOVER EFFECTS ===== */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

/* ===== GRADIENT BACKGROUNDS ===== */
.gradient-blue {
    background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
}

.gradient-blue-light {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background-color: #2563EB;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: white;
    color: #2563EB;
    border: 2px solid #2563EB;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2563EB;
    color: white;
    transform: translateY(-2px);
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2563EB, transparent);
    margin: 2rem 0;
}

/* ===== ACCENT COLOR ===== */
.accent-blue {
    color: #2563EB;
}

/* ===== BADGE STYLES ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #2563EB;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SHADOW UTILITIES ===== */
.shadow-blue {
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.shadow-blue-lg {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

/* ===== BORDER UTILITIES ===== */
.border-blue {
    border-color: #2563EB;
}

.border-blue-light {
    border-color: #DBEAFE;
}

/* ===== BACKGROUND PATTERNS ===== */
.pattern-dots {
    background-image: radial-gradient(circle, #2563EB 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.pattern-grid {
    background-image: 
        linear-gradient(#2563EB 1px, transparent 1px),
        linear-gradient(90deg, #2563EB 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
}

/* ===== ANIMATION UTILITIES ===== */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    nav, footer, .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
