/* MAIN.CSS - Core Styles for Hustwit-Style Gallery */

/* ==================== RESET & BASE ==================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
}


/* ==================== HEADER ==================== */

header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.site-logo {
    height: 80px;
    width: auto;
    max-width: 250px;
    display: block;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

/* Navigation */
.main-navigation {
    display: flex;
    justify-content: flex-start;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #000;
}

.nav-menu a.active {
    color: #000;
}

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

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

/* Header Social Icons */
.header-social {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.header-social a {
    color: #333;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: #000;
}


/* Mobile Menu Toggle (hidden by default, shown in responsive.css) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}




/* ==================== MAIN CONTAINER ==================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* General heading styles */
h1 {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}


/* ==================== HERO CTA ==================== */

.hero-cta {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.hero-cta h1 {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
    max-width: 1000px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}




/* ==================== SECTION HEADERS ==================== */

.section-header {
    margin-bottom: 40px;
}

.section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 10px;
}

.section-description {
    font-size: 1rem;
    color: #666;
    margin-top: 8px;
    font-weight: 400;
}


/* ==================== RECENT WORK ==================== */

.recent-work {
    margin-bottom: 80px;
}

.recent-work-inner {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.recent-work-header {
    flex: 0 0 200px;
    width: 200px;
    padding-top: 4px;
}

.recent-work-header .section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #999;
    margin-bottom: 8px;
}

.recent-work-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    line-height: 1.1;
    margin-bottom: 16px;
}

.recent-work-header .section-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.work-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: flex-start;
    overflow-x: auto;
    flex: 1;
}

.work-thumb {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    flex: 0 0 150px;
    width: 150px;
}

.work-thumb img {
    width: 150px;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.work-thumb:hover img {
    opacity: 0.75;
}

.work-label {
    font-size: 0.78rem;
    color: #555;
    margin-top: 0.5rem;
    line-height: 1.4;
}


/* ==================== IMAGE GRID ==================== */

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 80px;
}


/* ==================== IMAGE CONTAINERS ==================== */

.image-item {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

.image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}


/* ==================== IMAGE CAPTIONS ==================== */

.image-caption {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #666;
}

/* Caption links */
.image-caption a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline;
}

.image-caption a:hover {
    color: #000;
    text-decoration: underline;
}



/* ==================== HERO INTRO ==================== */

.hero-intro {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.hero-intro-image {
    flex: 0 0 400px;
    height: 400px;
    overflow: hidden;
}

.hero-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero-intro-text {
    flex: 1;
    padding-top: 10px;
}

.hero-intro-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000;
}

.hero-intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.hero-intro-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .hero-intro {
        flex-direction: column;
        gap: 30px;
    }

    .hero-intro-image {
        flex: none;
        width: 100%;
        height: 300px;
    }
}


/* ==================== HERO IMAGE ==================== */

.hero-image {
    width: 100%;
    margin-bottom: 60px;
}

.hero-image .image-wrapper {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}


/* ==================== INTRO TEXT SECTION ==================== */

.intro-text {
    margin-bottom: 80px;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.intro-content p:last-child {
    margin-bottom: 0;
}



/* ==================== INSTAGRAM GRID ==================== */

.instagram-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 80px;
}

.instagram-grid .image-wrapper {
    padding-bottom: 100%; /* 1:1 square aspect ratio */
}


/* ==================== SINGLE COLUMN LAYOUT ==================== */

.single-column {
    max-width: 900px;
    margin: 0 auto 80px;
}

.single-column .image-item {
    margin-bottom: 60px;
}

.single-column .image-wrapper {
    padding-bottom: 75%; /* 4:3 aspect ratio */
}


/* ==================== FOOTER ==================== */

footer {
    border-top: 1px solid #e0e0e0;
    padding: 40px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

.social-links-footer {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-links-footer a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-footer a:hover {
    color: #000;
    transform: translateY(-2px);
}

.social-links-footer svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}
