/* Custom styles for The Great Crate Escape website */

/* Custom Font - Soolidium */
@font-face {
    font-family: 'Soolidium';
    src: url('fonts/Soolidium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Font utility class */
.font-soolidium {
    font-family: 'Soolidium', sans-serif;
}

/* Prevent scrollbar shift - always show vertical scrollbar */
html {
    overflow-y: scroll;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    font-weight: 300;
}

/* Site-wide max width */
.container {
    max-width: 1280px !important;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    opacity: 1 !important;
    /* Ensure images are always visible */
    display: block;
}

/* Header Styles */
.header-bg {
    background-image: url('images/bg-header.png');
    border-bottom: 10px solid #c4c4c4;
}

/* Gallery Images - Maintain original aspect ratio */
.gallery-image {
    width: 280px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Dynamic Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0 0;
    row-gap: 30px;
    justify-items: center;
    padding: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gallery-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 280/300;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0 0;
        row-gap: 16px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0 0;
        row-gap: 20px;
    }

    .gallery-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 280/300;
    }
}

/* Navigation Styles */
.nav-link {
    font-family: 'Soolidium', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Page Headers */
.page-header {
    font-family: 'Soolidium', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-header img {
    vertical-align: middle;
    margin-bottom: 0.1em;
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
}

/* Override any global image styles for pawprints */
.page-header img[src*="pawprint"] {
    opacity: 1 !important;
    transition: none !important;
    animation: none !important;
    transform: none !important;
}

/* Mobile menu styles */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mobile-menu:not(.hidden) {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

#mobile-menu.closing {
    animation: fadeOut 0.3s ease-out forwards;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 4rem;
}

/* Hamburger button in header */
#menu-toggle {
    padding: 0.75rem;
    z-index: 1001;
    position: relative;
}

#menu-toggle svg {
    width: 2.5rem;
    height: 2.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Smooth transitions - only for specific elements */
a,
button,
img {
    transition: opacity 0.3s ease;
}

/* Override global img styles for paw prints to maintain exact sizing */
img[src*="paw-bullet"] {
    height: auto !important;
    width: auto !important;
}

/* Ensure paw bullets in footer are exactly 16x16 */
footer img[src*="paw-bullet"] {
    width: 16px !important;
    height: 16px !important;
}

/* Standardize footer text size (except headers) */


footer h3 {
    font-size: 20px !important;
}

/* Footer link styling */
footer a {
    color: white !important;
    text-decoration: underline !important;
    font-weight: normal !important;
}

footer a:hover {
    text-decoration: none !important;
}

/* Page Background Images */
.bg-home {
    background-image: url('images/hero.png');
    background-position: top left;
    background-repeat: no-repeat;
}

.bg-links {
    background-image: url('images/hero-links.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 50% auto;
}

.bg-testimonials {
    background-image: url('images/hero-testimonials.png');
    background-position: bottom right;
    background-repeat: no-repeat;
}

.bg-pictures {
    background-image: url('images/hero-pictures.png');
    background-position: bottom right;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4587a6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2f6781;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #4587a6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .bg-gce-blue,
    .bg-gce-dark-blue,
    .bg-gce-dark-gray {
        background: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gce-gray {
        color: #000000 !important;
    }

    .bg-gce-light-gray {
        background-color: #ffffff !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Stylized quote marks */
.quote-mark {
    background-image: url('images/quote-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
    height: 40px;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 1;
    z-index: 1;
    transform: rotate(180deg);
}

/* Quote container positioning */
.quote-container {
    position: relative;
    padding-top: 20px;
    margin-bottom: 3rem;
}

/* Sticky footer */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}