/* Oxford Tree House Gallery - Rustic Southern Style */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
    /* Earthy, warm color palette */
    --cream: #F7F4EF;
    --cream-dark: #EDE8E0;
    --brown-light: #8B7355;
    --brown: #5C4A3D;
    --brown-dark: #3D3028;
    --forest: #4A5D4A;
    --forest-light: #6B7F6B;
    --gold: #C4A35A;
    --gold-light: #D4B86A;
    --rust: #A65D3F;
    --white: #FFFFFF;
    --text-dark: #2C2416;
    --text-body: #4A4035;
    --text-muted: #7A7065;
    --border: #D4CEC4;
    --max-width: 1300px;
    --nav-height: 90px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--text-body);
    line-height: 1.7;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== Navigation ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brown-dark);
    letter-spacing: -0.02em;
}

.nav-logo:hover {
    color: var(--forest);
}

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

.nav-menu li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.2s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--forest);
}

.nav-menu li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--brown-dark);
    margin: 6px 0;
    transition: 0.3s;
}

/* ==================== Main Content ==================== */
main,
.main-content {
    padding-top: var(--nav-height);
    min-height: calc(100vh - 300px);
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    padding: 3rem 0 4rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    max-width: 540px;
    padding-top: 3rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--forest);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--brown-dark);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-image {
    aspect-ratio: 5/6;
    max-height: 580px;
    margin-left: auto;
    background: var(--cream-dark);
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(92, 74, 61, 0.15);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.btn-primary:hover {
    background: var(--forest-light);
}

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

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

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

.btn-gold:hover {
    background: var(--gold-light);
}

/* ==================== Section ==================== */
.section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.25rem;
    color: var(--brown-dark);
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.section-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--gold);
}

.section-link::after {
    content: '\2192';
}

/* ==================== About Preview Section ==================== */
.about-preview {
    background: var(--brown-dark);
    padding: 5rem 2rem;
}

.about-preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-preview-text {
    color: var(--cream);
}

.about-preview-text h2 {
    font-size: 2.25rem;
    color: var(--cream);
    margin-bottom: 1.5rem;
}

.about-preview-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.about-preview-text .btn {
    margin-top: 0.5rem;
}

.about-preview-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-preview-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== Gallery Strip ==================== */
.gallery-strip {
    background: var(--cream-dark);
    padding: 0;
    overflow: hidden;
}

.gallery-strip-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.strip-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

.strip-image:hover img {
    transform: scale(1.05);
}

/* ==================== Page Header ==================== */
.page-header {
    background: var(--cream-dark);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Gallery Filters ==================== */
.gallery-filters {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-width: var(--max-width);
    margin: 0 auto;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-body);
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--forest);
}

/* ==================== Artwork Grid ==================== */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.artwork-card {
    display: block;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(92, 74, 61, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.artwork-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(92, 74, 61, 0.15);
}

.artwork-image {
    aspect-ratio: 4/5;
    background: var(--cream-dark);
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.artwork-card:hover .artwork-image img {
    transform: scale(1.05);
}

.artwork-info {
    padding: 1.25rem 1.5rem;
}

.artwork-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.artist-name {
    font-size: 0.9375rem;
    color: var(--forest);
    margin-bottom: 0.5rem;
}

.artwork-details {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.artwork-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brown-dark);
}

/* ==================== Artist Grid ==================== */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.artist-card {
    display: block;
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(92, 74, 61, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.artist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(92, 74, 61, 0.15);
}

.artist-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--cream-dark);
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--cream);
    box-shadow: 0 4px 20px rgba(92, 74, 61, 0.1);
}

.artist-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-card h3,
.artist-info h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    color: var(--brown-dark);
}

.artist-bio-preview {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.available-works {
    font-size: 0.875rem;
    color: var(--forest);
    font-weight: 600;
}

/* ==================== Featured Section ==================== */
.featured-section {
    background: var(--brown-dark);
    color: var(--white);
    padding: 5rem 0;
}

.featured-section .section-title {
    color: var(--cream);
}

.featured-section .section-subtitle {
    color: var(--cream-dark);
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    padding: 1rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--forest);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--gold);
}

/* ==================== Pagination ==================== */
.pagination {
    padding: 2rem;
    text-align: center;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.pagination button {
    padding: 0.75rem 1.5rem;
    background: var(--forest);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pagination button:hover {
    background: var(--forest-light);
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.9375rem;
    color: rgba(247, 244, 239, 0.8);
    line-height: 1.8;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 2rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(247, 244, 239, 0.6);
}

/* ==================== Loading & Empty States ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.no-results,
.error {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-image {
        order: -1;
        aspect-ratio: 16/10;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .about-preview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-preview-text {
        text-align: center;
    }

    .about-preview-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .gallery-strip-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 1.5rem 2rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 0.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        display: block;
        padding: 0.75rem 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .section {
        padding: 3rem 0;
    }

    .gallery-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .artist-grid {
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-preview {
        padding: 3rem 1.5rem;
    }

    .about-preview-text h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 1.25rem;
    }

    .artwork-grid,
    .artist-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem;
    }

    .hero-split {
        padding: 0 1.25rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0 1.25rem;
    }
}
