/* ===================================
   CSS Variables - Color Scheme
   Aboriginal-inspired: Ochres, Oranges, Reds
   =================================== */
:root {
    /* Primary vibrant red */
    --primary-red: #C41E3A;
    --deep-red: #8B0000;
    --light-red: #E25822;
    
    /* Aboriginal ochre palette */
    --ochre-yellow: #CC7722;
    --burnt-orange: #D2691E;
    --terracotta: #E2725B;
    --rust: #B7410E;
    --sand: #C2B280;
    --earth-brown: #5C4033;
    
    /* Accent colors */
    --accent-gold: #DAA520;
    --accent-cream: #FFF8DC;
    
    /* Base colors */
    --dark-bg: #1a1a1a;
    --light-bg: #FAF3E8;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(196, 30, 58, 0.25);

    /* Mounted-artwork presentation: every artwork sits on black,
       the way a framed piece is mounted before it goes on the wall. */
    --mount-black: #0b0b0b;
    --mount-caption: #f4f1ec;
    --mount-meta: #a19c94;

    /* Aliases for names used across the page stylesheets. Without these
       the rules referring to them resolve to nothing, which left the
       accolade badge, the artist quote and the outline button unstyled. */
    --accent-red: var(--primary-red);
    --vibrant-red: var(--primary-red);
    --charcoal: var(--text-dark);
    --ochre: var(--ochre-yellow);
    --cream: var(--accent-cream);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Utility: screen-reader only (visually hidden but accessible) */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--deep-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

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

.nav-menu a.admin-link {
    color: var(--text-light);
    font-size: 0.85rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 300px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    background-image: url('https://20260124sandiinlis.blob.core.windows.net/blobs/hero/Website%20Home%20Header.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') repeat-x;
    background-size: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 400px;
    padding: 1.5rem 2rem;
    margin-right: 8%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* ===================================
   Filter Section
   =================================== */
.filter-section {
    padding: 5rem 0 2rem;
    background-color: var(--white);
}

.filter-section h2 {
    text-align: center;
    color: var(--primary-red);
}

/* Filter header - combine heading and search on one line */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-header h2 {
    text-align: left;
    color: var(--primary-red);
    margin: 0;
    font-size: 2rem;
}

.filter-header .search-bar {
    max-width: 520px;
    width: 100%;
    margin: 0;
}

/* Collection dropdown + search grouped on the right */
.filter-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex: 1 1 420px;
    justify-content: flex-end;
}

.filter-tools .search-bar {
    flex: 1 1 260px;
    max-width: 520px;
    width: auto;
}

.collection-select {
    padding: 1rem 2.5rem 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background-color: var(--white);
    cursor: pointer;
    /* custom chevron so it matches the rounded input */
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23c41e3a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    max-width: 260px;
}

.collection-select:focus {
    outline: none;
    border-color: var(--primary-red);
}

@media (max-width: 600px) {
    .filter-tools { justify-content: stretch; }
    .collection-select { max-width: none; width: 100%; }
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background-color: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-section {
    padding: 3rem 0 5rem;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    background-color: var(--mount-black);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
    /* the black band around the artwork is the frame */
    padding: 14px 14px 0;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--mount-black);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-info {
    padding: 1.1rem 0.25rem 1.3rem;
}

.gallery-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--mount-caption);
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--mount-meta);
}

.accolade-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--accent-red);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.about-section h2 {
    text-align: center;
    color: var(--primary-red);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* ===================================
   Modal
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--deep-red);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.modal-image {
    background-color: var(--mount-black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-image img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-info {
    padding: 2rem 2rem 2rem 0;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
    /* keep the heading clear of the close button */
    padding-right: 3rem;
}

.modal-details p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.modal-details .accolades {
    color: var(--primary-red);
    font-weight: 600;
}

.modal-details .description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-light);
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.footer-tagline {
    line-height: 1.8;
    color: #999;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-red);
}

.contact-info li {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #777;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-info {
        padding: 0 2rem 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .filter-controls {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }
}
