/* ==========================================
   Author Portfolio CSS - Monochromatic & Gold Palette
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    /* Color: Mineral Anthracite (#2F3437) - primary background */
    background-color: #2F3437;
    /* Color: Antique Parchment (#ADB3B6) - body text */
    color: #ADB3B6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    letter-spacing: 0.015em;
}

/* Layout Containers */
section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    /* Color: Etruscan Gold (#C5A059) - accents and borders */
    border-bottom: 1px solid #C5A059;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #D8DADB;
    border-bottom: 1px solid #C5A059;
    overflow: hidden;
    background-color: #0D0E0F; /* Fallback dark background */
}

/* Image acts as the background layer inside HTML order */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* Hero Overlay for Text Readability against Grayscale Imagery */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 14, 15, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ==========================================
   Main Content Format (Format 1)
   Photo on left; right side has a centered 
   heading with left-justified paragraph text.
   ========================================== */
.content-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start; /* Locks images to the top edge of text blocks */
}

/* Style for Standard Images (e.g., Great Grandparents) */
.image-side img {
    display: block;
    filter: grayscale(100%);
    width: 100%;
    height: auto;
    border: 2px solid #C5A059;
    border-radius: 2px;
    transition: filter 0.4s ease-in-out;
}

.image-side img:hover {
    filter: grayscale(0%);
}

/* CUSTOM Style for The Headshot Only */
.headshot-container {
    width: 100%;
    max-width: 350px; /* Controls the headshot display size */
    margin: 0 auto; /* Centers the smaller frame within the grid column */
    overflow: hidden;
}

/* The Headshot Image Specific Styles */
.headshot-container img.headshot {
    display: block;
    filter: grayscale(100%);
    width: 100%;
    height: auto;
    border: 2px solid #C5A059;
    border-radius: 2px;
    transition: filter 0.4s ease-in-out;
}

.headshot-container:hover img.headshot {
    filter: grayscale(0%);
}

.text-side {
    text-align: left;
}

.text-side h2 {
    /* Color: Silver-Gelatin (#D8DADB) - headings */
    color: #D8DADB;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: center; /* Centers heading over the text */
}

.text-side p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    /* Color: Antique Parchment (#ADB3B6) - body text */
    color: #ADB3B6;
    text-align: left; /* Left justifies the paragraph text */
}

.subtext {
    font-style: italic;
    color: #C5A059;
    margin-bottom: 15px;
}

/* ==========================================
   Footer Format (Format 2)
   Left: Paragraph text justified left.
   Right: Icons/links in a row, right justified.
   ========================================== */
footer {
    /* Color: Obsidian (#0D0E0F) - pure heavy density */
    background-color: #0D0E0F;
    padding: 40px 20px;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-contact a {
    /* Color: Silver-Gelatin (#D8DADB) - link text */
    color: #D8DADB;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #C5A059;
    text-decoration: underline;
}

.footer-socials {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
}

.footer-socials a {
    color: #D8DADB;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-socials a:hover {
    color: #C5A059;
    text-decoration: underline;
}

/* ==========================================
   Media Queries for Device Responsiveness
   ========================================== */
@media screen and (max-width: 900px) {
    section {
        padding: 60px 20px;
    }

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

@media screen and (max-width: 600px) {
    /* Stack side-by-side elements vertically on small screens */
    .content-row {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .text-side h2 {
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-contact, .footer-socials {
        justify-content: center;
        text-align: center;
    }

    .hero {
        height: 60vh;
        padding: 0 15px;
    }

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

    section {
        padding: 40px 15px;
    }
}

/* ==========================================
   Finishing Touches & Utilities
   ========================================== */
a:focus, button:focus {
    outline: 2px solid #C5A059;
    outline-offset: 3px;
}

::selection {
    background-color: #C5A059;
    color: #0D0E0F;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.agent-note {
    font-size: 0.85rem;
    color: #888888;
    margin-top: 5px;
    margin-bottom: 0;
}

.social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.bluesky-icon {
    width: 60px;
    height: 60px;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #ADB3B6;
    letter-spacing: 0.1em;
    margin-top: 10px;
}

.appeal-list {
    margin: 15px auto 20px auto;
    padding-left: 20px;
    max-width: 600px;
    text-align: left;
    font-size: 1rem; /* Matches standard body text */
}

.appeal-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: inherit; /* Ensures list items match the parent list size */
    color: inherit;
}