/* ==========================================================================
   Michael J. Kelley Photography - Shared Stylesheet
   ========================================================================== */

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
}

/* Header Styles
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 18px;
    font-weight: 300;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* Navigation Styles
   ========================================================================== */
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.header-nav a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.header-nav a:hover {
    opacity: 0.6;
}

/* Dropdown Menu Styles
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    z-index: 1001;
    padding: 15px 0;
    margin-top: 5px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.03);
    opacity: 1;
    padding-left: 25px;
}

.dropdown > a::after {
    content: " ▾";
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* Mobile Menu
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 1px;
    background: #333;
    transition: 0.3s;
}

/* Main Content
   ========================================================================== */
main {
    margin-top: 80px;
}

/* Hero Section
   ========================================================================== */
.hero {
    padding: 80px 40px 60px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Banner Image
   ========================================================================== */
.banner-image {
    width: 100%;
    height: 70vh;
    background-size: cover;
    background-position: center;
    margin-bottom: 80px;
}

/* --- Gallery Loader Style --- */
#gallery-loader {
    display: block; /* Shown by default */
    width: 40px;
    height: 40px;
    margin: 80px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #555;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Styles
   ========================================================================== */
.gallery-section {
    padding: 0 40px 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-grid {
    column-count: 3;
    column-gap: 8px;
    margin-bottom: 80px;
    
    /* --- CORRECTION: Simplify the initial hidden state --- */
    visibility: hidden;
    opacity: 0;
}

/* --- CORRECTION: Apply the transition only when the grid becomes ready --- */
.gallery-grid.is-ready {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease-in;
}


.gallery-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 2px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    break-inside: avoid;
    
    /* Individual item animation, starts invisible */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}


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

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);  /* Changed from 0.3 to 0 */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .overlay {
    opacity: 1;  /* Keep this as 1 for functionality */
}

.overlay-text {
    display: none;  /* Hide the text */
}

/* Services Section
   ========================================================================== */
.services {
    padding: 0 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.service {
    text-align: left;
}

.service-image {
    width: 100%;
    aspect-ratio: 3/2; /* Matches 2400×1600 source images */
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    min-height: 200px;
}

.service h3 {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.service p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.service {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

/* Services Section (Alternate Layout)
   ========================================================================== */
.services-section {
    padding: 80px 40px;
    background: #fafafa;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.services-text h2 {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.services-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-list {
    list-style: none;
    margin: 30px 0;
}

.service-list li {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.service-list li:before {
    content: "•";
    color: #333;
    position: absolute;
    left: 0;
}

.services-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

/* About Section
   ========================================================================== */
.about-section {
    padding: 80px 40px;
    background: #fafafa;
}

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

.about-content h2 {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.about-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Video Section
   ========================================================================== */
.video-section {
    padding: 0 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-section h2 {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 0.5px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.video-item {
    position: relative;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.video-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Projects Grid
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.project-item {
    position: relative;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 30px;
}

.project-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.project-details {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* FAQ Section
   ========================================================================== */
.faq-section {
    padding: 80px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 0.5px;
}

.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 30px;
}

.faq-question {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.faq-answer {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Buttons
   ========================================================================== */
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: #333;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    border-radius: 2px;
}

.cta-button:hover {
    background: #555;
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Forms
   ========================================================================== */
.contact-form {
    max-width: 100%;
}

.contact-form h2 {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group label.required::after {
    content: " *";
    color: #d32f2f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 300;
    color: #333;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: #666;
}

/* Lightbox
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.lightbox img {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    margin-bottom: 20px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 2001;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* Mobile-first lightbox controls */
.lightbox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 300px;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    min-width: 60px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lightbox-counter {
    color: white;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    z-index: 2001;
    text-align: center;
    min-width: 60px;
}

/* Footer
   ========================================================================== */
.site-footer {
    padding: 60px 40px 40px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-nav,
.footer-navigation {
    margin-bottom: 40px;
}

.footer-nav ul,
.footer-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-nav a,
.footer-navigation a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover,
.footer-navigation a:hover {
    opacity: 0.6;
}

/* Footer Dropdown Menu */
.footer-dropdown {
    position: relative;
    display: inline-block;
}

.footer-dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    z-index: 1001;
    padding: 15px 0;
    margin-bottom: 5px;
}

.footer-dropdown:hover .footer-dropdown-content {
    display: block;
}

.footer-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 1000;
}

.footer-dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: none;
    text-align: left;
}

.footer-dropdown-content a:hover {
    background: rgba(0, 0, 0, 0.03);
    opacity: 1;
    padding-left: 25px;
}

.footer-dropdown > a::after {
    content: " ▴";
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.footer-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #ebebeb;
}

.copyright {
    color: #999;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .header-nav ul.active {
        display: flex;
    }

    /* MOBILE DROPDOWN FIX - Forces JavaScript control over hover behavior */
    .dropdown:hover .dropdown-content {
        display: none !important;
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
    }
    
    .footer-dropdown:hover .footer-dropdown-content {
        display: none !important;
    }
    
    .footer-dropdown.active .footer-dropdown-content {
        display: block !important;
        position: static;
        box-shadow: none;
        border: none;
        margin-bottom: 0;
        margin-top: 10px;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        transform: none;
        left: auto;
    }
    /* END MOBILE DROPDOWN FIX */

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
    }

    .dropdown-content a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 14px;
    }

    .dropdown-content a:hover {
        background: transparent;
        padding-left: 0;
        opacity: 0.6;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .banner-image {
        height: 50vh;
        margin-bottom: 60px;
    }

    .gallery-section {
        padding: 0 20px 60px;
    }

    .gallery-grid {
        column-count: 2;
        column-gap: 1px;
    }

    .gallery-item {
        margin-bottom: 1px;
    }

    .service-image {
        aspect-ratio: 3/2;
        min-height: 150px;
    }

    .services {
        padding: 0 20px 60px;
    }

    .services-grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .services-section {
        padding: 60px 20px;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-text h2 {
        font-size: 22px;
    }

    .services-text p {
        font-size: 14px;
    }

    .about-section {
        padding: 60px 20px;
    }

    .about-content h2 {
        font-size: 20px;
    }

    .about-content p {
        font-size: 14px;
    }

    .video-section {
        padding: 0 20px 60px;
    }

    .video-section h2 {
        font-size: 22px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-grid {
        gap: 30px;
    }

    .project-image {
        height: 200px;
    }

    .project-info {
        padding: 20px;
    }

    .faq-section {
        padding: 60px 20px;
    }

    .faq-section h2 {
        font-size: 22px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-form h2 {
        font-size: 20px;
    }

    .site-footer {
        padding: 40px 20px 30px;
    }

    .footer-nav ul,
    .footer-navigation ul {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    /* Mobile-specific lightbox adjustments */
    .lightbox img {
        max-height: 75%;
        margin-bottom: 30px;
    }

    .lightbox-controls {
        gap: 30px;
        max-width: 280px;
    }

    .lightbox-nav {
        font-size: 20px;
        padding: 12px 16px;
        min-width: 50px;
    }

    .lightbox-counter {
        font-size: 13px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    /* Even smaller screens - adjust lightbox further */
    .lightbox img {
        max-height: 50%;
        margin-bottom: 40px;
    }

    .lightbox-controls {
        gap: 20px;
        max-width: 250px;
    }

    .lightbox-nav {
        font-size: 18px;
        padding: 10px 14px;
        min-width: 45px;
    }
}

/* Page-Specific Styles
   ========================================================================== */

/* About Page Specific Styles */
.about-sidebar {
    text-align: center;
}

.headshot-placeholder {
    width: 250px;
    height: 250px;
    background: #f5f5f5;
    margin: 0 0 30px 0;
    border-radius: 2px;
    display: flex;
    overflow: hidden;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-info a {
    color: #666;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.6;
}

.about-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 25px;
}

.about-text h2 {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin: 40px 0 20px 0;
    letter-spacing: 0.5px;
}

.about-text ul {
    list-style: none;
    margin: 20px 0;
}

.about-text li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.about-text li:before {
    content: "•";
    color: #333;
    position: absolute;
    left: 0;
}

/* About page grid layout */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

/* Project Details Styles */
.project-details-section {
    padding: 80px 40px;
    background: #fafafa;
}

.project-details-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.project-details-text h2 {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.project-details-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.project-specs {
    list-style: none;
    margin: 30px 0;
}

.project-specs li {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.project-specs li:before {
    content: "•";
    color: #333;
    position: absolute;
    left: 0;
}

.project-details-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

/* Process Section */
.process-section {
    padding: 80px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-section h2 {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 0.5px;
}

.process-item {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 30px;
}

.process-title {
    font-size: 18px;
    font-weight: 400;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.process-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Responsive adjustments for specific layouts */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .headshot-placeholder {
        width: 200px;
        height: 200px;
    }

    .contact-info {
        text-align: center;
    }

    .about-text {
        font-size: 14px;
        text-align: left;
    }

    .about-text h2 {
        font-size: 18px;
    }

    .project-details-section {
        padding: 60px 20px;
    }

    .project-details-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-details-text h2 {
        font-size: 22px;
    }

    .project-details-text p {
        font-size: 14px;
    }

    .process-section {
        padding: 60px 20px;
    }

    .process-section h2 {
        font-size: 22px;
    }

    .process-title {
        font-size: 16px;
    }

    .process-description {
        font-size: 14px;
    }
}

/* Blog Styles
   ========================================================================== */

/* Blog Index Page Styles */
.blog-index-container {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 40px;
}

.blog-index-container h1 {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* Featured post inherits blog-post-container styles but needs spacing adjustments */
.featured-post.blog-post-container {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-top: 0; /* Override blog-post-container margin-top */
}

/* Reset the centered h1 for featured post titles */
.featured-post.blog-post-container h1 {
    text-align: left;
    margin-bottom: 15px;
}

.post-list .post-preview {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.post-list .post-preview:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-preview h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
}

.post-preview h3 a {
    color: #333;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-preview h3 a:hover {
    opacity: 0.6;
}

.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.post-meta .post-date {
    margin-right: 15px;
}

.post-meta .post-tags {
    font-style: italic;
}

.post-preview p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Blog Post Content Styles */
.blog-post-container {
    max-width: 800px;
    margin: 120px auto 80px;
    padding: 0 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.blog-post-container h1 {
    font-size: 36px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
    text-align: center;
}

.blog-post-container h2 {
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin: 40px 0 20px 0;
    letter-spacing: 0.5px;
}

.blog-post-container h3 {
    font-size: 22px;
    font-weight: 400;
    color: #333;
    margin: 30px 0 15px 0;
    letter-spacing: 0.5px;
}

.blog-post-container p {
    margin-bottom: 20px;
}

.blog-post-container img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 2px;
}

.blog-post-container ul,
.blog-post-container ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blog-post-container li {
    margin-bottom: 8px;
}

.blog-post-container blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 3px solid #333;
    background: #f9f9f9;
    font-style: italic;
}

.blog-post-container code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.blog-post-container pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 2px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-post-container pre code {
    background: none;
    padding: 0;
}

/* === BLOG: Unified Post Shell ========================================= */

/* Shared wrapper used by both individual posts and the featured post */
.post {
  max-width: 72ch;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 1.25rem);
}

/* Top section: title, meta, hero */
.post-header {
  margin-bottom: 1.25rem;
}
.post-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem 0;
}
.post-meta {
  color: #6b7280; /* neutral-500 */
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero image (optional) */
.post-hero {
  margin: 1rem 0 1.25rem 0;
}
.post-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* Body typography */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #111827; /* neutral-900 */
}
.post-content p { margin: 0 0 1.1em 0; }
.post-content h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin: 1.8em 0 0.6em;
  line-height: 1.3;
}
.post-content h3 {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  margin: 1.4em 0 0.5em;
}
.post-content a {
  color: #111827;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-content blockquote {
  margin: 1.2em 0;
  padding: 0.75em 1em;
  background: #f9fafb;
  border-left: 4px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
}
.post-content img {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  margin: 1rem 0;
  max-width: 100%;
  height: auto;
}

/* Featured post uses the same shell, but can be inside a card */
.featured {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding-block: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

/* Post list on index */
.post-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .post-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.post-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}
.post-card .post-title {
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
}
.post-card .post-hero img {
  aspect-ratio: 3 / 2;
}

/* Utility: clamp long excerpts cleanly on cards */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Subtle tag pill (if you show categories) */
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: .4ch;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: .8125rem;
  line-height: 1;
  border: 1px solid #e5e7eb;
}

/* Footer separator on single post pages */
.post-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Blog Utilities
   ========================================================================== */

/* Clamp long excerpts to 3 lines (for featured + previews) */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category/Tag pill */
.post-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  color: #666;
  background: #f7f7f7;
}

/* Blog Responsive Styles */
@media (max-width: 768px) {
    .blog-index-container,
    .blog-post-container {
        margin: 100px auto 60px;
        padding: 0 20px;
    }
    
    .blog-index-container h1 {
        font-size: 24px;
    }
    
    .blog-post-container h1 {
        font-size: 28px;
    }
    
    .blog-post-container h2 {
        font-size: 22px;
    }
    
    .blog-post-container h3 {
        font-size: 18px;
    }
    
    .post-preview h3 {
        font-size: 20px !important;
    }
}

