/* ==========================================================================
   Homepage Specific Styles
   ========================================================================== */

/* --- General Section Styling --- */
.home-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: normal;
    color: var(--color-primary);
}

/* --- 1. Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background-color: #222; /* Fallback color */
    color: var(--color-primary);

    /* --- Background Image Styling --- */
    background-image: url('https://via.placeholder.com/1920x1080.png?text=Timothy+Robert+Gallery'); /* Replace with your image URL */
    background-size: cover; /* Ensures the image covers the entire section */
    background-position: center center; /* Centers the image */
    background-repeat: no-repeat;
    color: #fff; /* Change text color to white for better contrast */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-headline {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    line-height: 1.2;
    margin: 0 0 var(--space-md) 0;
}

.hero-subheadline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-lg) auto;
    color: #f1f1f1; /* A slightly softer white for the subheadline */
}

.cta-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-secondary);
}

/* --- 2. Editorial Showcase --- */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.editorial-grid article {
    background-color: #fff;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.editorial-grid article img {
    width: 100%;
    height: auto;
    display: block;
}

.editorial-grid .article-content {
    padding: 1.5rem;
}

.article-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- 3. Featured Works --- */
.featured-works {
    background-color: var(--color-silver-50, #f9fafb);
    padding-left: 0;
    padding-right: 0;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 1rem 2rem; /* Padding for start/end */
    gap: 2rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.work-item {
    flex: 0 0 70vw; /* Mobile: 70% of viewport width */
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.work-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.work-item:hover img {
    transform: scale(1.05);
}

.work-info-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    padding: 2rem 1rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.work-item:hover .work-info-hover {
    opacity: 1;
    transform: translateY(0);
}

/* --- 4. Philosophy Section --- */
.philosophy-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 2.5rem;
    font-weight: normal;
}

.philosophy-text p {
    font-family: var(--heading-font); /* Serif for narrative text */
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-secondary);
}

/* --- 6. Collectors Section --- */
.collectors-section {
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
}

.collectors-section .section-header p {
    color: #e5e7eb;
    max-width: 600px;
    margin: 0 auto;
}

.collectors-section h2 {
    color: #fff;
}

.collectors-form {
    /* This is fine, but we can add more context */
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 1.5rem auto 0;
}

.collectors-form input {
    flex-grow: 1;
    border-right: 0;
    border-radius: 4px 0 0 4px;
}

.collectors-form button {
    border-radius: 0 4px 4px 0;
}

/* --- 7. Footer --- */
.main-footer {
    background-color: #f4f2ef;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive Adjustments --- */
@media (min-width: 768px) {
    .editorial-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: auto;
    }
    .featured-article {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    .philosophy-section {
        grid-template-columns: 1fr 1fr;
    }
    .work-item {
        flex-basis: 350px;
    }
}
