/* EliteStitch Dark Blue & Silver Theme */

/* CSS Custom Properties for Theme */
:root {
    /* Monochrome Blue - centralized palette */
    --primary: #0b3c5d;     /* deep navy */
    --primary-2: #0f4f7a;   /* header partner */
    --blue-mid: #2b7bd3;    /* mid / accents */
    --accent: #66a6ff;      /* call-to-action */
    --accent-2: #e6f3ff;    /* pale surfaces */
    --text: #0b2436;        /* blue-tinged body text */
    --muted: #6b7280;       /* secondary text */
    --surface: #ffffff;
    --bg: #f2f7ff;          /* very light blue background */

    /* Shadow and radius scales */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Update background color */
body {
    background-color: var(--bg);
    color: var(--text);
}

/* Sticky Header with Dark Blue Gradient */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    box-shadow: var(--shadow-lg);
}

.logo,
.tagline {
    color: white;
}

/* Header contact block (phone + email) */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: white;
    text-decoration: none;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: background 0.15s ease, transform 0.12s ease;
    font-size: 0.95rem;
}

.contact-link svg {
    display: block;
    color: rgba(255,255,255,0.95);
}

.contact-link:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.contact-text {
    display: inline-block;
}

@media (max-width: 720px) {
    .contact-text { display: none; }
}

/* Vertically center contact with logo and responsive stack */
.header .container { display: flex; align-items: center; }

.logo-image { height: 72px; }

@media (min-width: 721px) {
    /* desktop: keep single-row, vertically centered */
    .nav { align-items: center; }
    .contact { align-items: center; }
}

@media (max-width: 720px) {
    /* mobile: stack logo above contact, show icons only */
    .header .container { flex-direction: column; gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .nav { width: 100%; flex-direction: column; align-items: center; }
    .nav-left { order: 1; }
    .contact { order: 2; }
    .contact-link { padding: 0.25rem; }
    .logo-image { height: 56px; }
}

/* Gallery Card Enhancements */
.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    border-radius: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Repurpose .gallery-item-info as hover overlay */
.gallery-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.gallery-item:hover .gallery-item-info {
    transform: translateY(0);
}

.gallery-item-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Modal Polish */
.modal {
    animation: modalFadeIn 0.2s ease-out;
}

.modal-overlay {
    background: rgba(11, 60, 93, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Header Styling */
.modal-header {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--accent);
}

.modal-header h3 {
    color: var(--primary);
    font-weight: 600;
}

/* Close Button Styling */
.close-btn {
    color: var(--muted);
    background: var(--accent-2);
    border-radius: 50%;
    transition: all 0.2s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.close-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: scale(1.1);
}

.close-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Zoom Controls Theme */
.zoom-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: white;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.zoom-btn:hover {
    background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.zoom-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.zoom-btn:active {
    transform: scale(0.95);
}

/* Footer Theme Updates */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: white;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Section Updates */
.hero h2 {
    color: var(--primary);
}

.hero p {
    color: var(--muted);
}

/* Loading Spinner Theme */
.loading-spinner {
    border-color: var(--accent-2);
    border-top-color: var(--primary);
}

/* Focus Ring System */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Gallery Item Focus */
.gallery-item:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Error Message Theme */
.error-message {
    color: #dc2626;
}

/* Enhanced hover states for interactive elements */
button, 
.gallery-item {
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    cursor: pointer;
}

/* Mobile responsiveness for theme elements */
@media (max-width: 768px) {
    .gallery-item-info {
        padding: 1.5rem 0.75rem 0.75rem;
    }
    
    .gallery-item:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: var(--radius-lg);
    }
    
    .zoom-btn {
        border-width: 1px;
    }
}