/* ==========================================================================
   1. FONT DECLARATIONS
   ========================================================================== */
@font-face {
    font-family: 'Geigy LL Cond Duplex Var';
    src: url('/wp-content/themes/nataliejames/fonts/GeigyLLCondDuplexVarTrialWeb-[wght,slnt].woff2') format('woff2-variations'),
         url('/wp-content/themes/nataliejames/fonts/GeigyLLCondDuplexVarTrialWeb-[wght,slnt].woff2') format('woff2');
    font-weight: 100 900;       
    font-style: normal 0deg 0deg; 
    font-display: swap;
}

@font-face {
    font-family: 'Unica-Medium';
    src: url('/wp-content/themes/nataliejames/fonts/Unica77LLTrialWeb-Medium.woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BebasNeueBold';
    src: url('/wp-content/themes/nataliejames/fonts/BebasNeueBold.eot');
    src: url('/wp-content/themes/nataliejames/fonts/BebasNeueBold.eot?#iefix') format('embedded-opentype'),
         url('/wp-content/themes/nataliejames/fonts/BebasNeueBold.woff') format('woff'),
         url('/wp-content/themes/nataliejames/fonts/BebasNeueBold.ttf') format('truetype'),
         url('/wp-content/themes/nataliejames/fonts/BebasNeueBold.svg#BebasNeueBold') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   2. GLOBAL RESETS & GENERAL STYLES
   ========================================================================== */
a:visited, a:visited:hover, a {
    color: inherit;
}

body {
    font-family: 'Unica-Medium', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: .8rem;
    line-height: 1.2em;
}

/* Initial hidden state */
.image-container img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Class added by WordPress/JS once the file is fully downloaded */
.image-container img.is-loaded {
    opacity: 1;
}

/* ==========================================================================
   3. HEADER & HEADER NAVIGATION
   ========================================================================== */
#masthead.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; 
    background-color: #ffffff; /* Un-commented to stop content bleeding underneath */
    padding-top: 24px;
    padding-bottom: 24px;
}

#masthead.site-header .grid-row {
    padding: 0 20px;
}

#page, body {
    padding-top: max(80px, 8vh); 
}

.admin-bar #masthead.site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #masthead.site-header {
        top: 46px;
    }
}

p.site-title {
    margin: 0;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-family: 'Geigy LL Cond Duplex Var', sans-serif;
    font-weight: 500;
}

p.site-title a {
    text-decoration: none;
}

.main-navigation ul,
.menu ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    text-transform: uppercase;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    padding-left: .5em;
    text-transform: uppercase;
}

.main-navigation a {
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

/* Fixed the trailing syntax bugs here */
.main-navigation a:hover {
    color: #9B9B9B; 
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
    color: #9B9B9B;
}

/* ==========================================================================
   4. HOME PAGE STYLES
   ========================================================================== */
.home .site-branding .site-title {
    display: none;
}

.home .main-navigation a,
.home .menu ul li a {
    color: #E0E0E0;
}

.home #masthead.site-header {
    background-color: transparent;
}

.home .site-footer {
   display: none;
}

.home-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.home-image img.is-loaded {
    opacity: 1;
}

.home-wrapper h1.logo {
    font-family: 'Geigy LL Cond Duplex Var', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10vw;
    line-height: 1.2em;
    margin: 0;
    text-align: center;
    color: #E0E0E0;
}

.home-wrapper a{
    text-decoration: none;
}

.home-wrapper p {
    text-align: center;
    color: #E0E0E0;
}

.home-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(.6);
}

.home-footer {
    position: fixed;
    bottom: 1em;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.copyright {
    margin-top: 1em;
}

.home-footer-content {
    text-align: center;
    color: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.home-footer-content a {
    text-decoration: none;
}

/* ==========================================================================
   5. PORTFOLIO WORK ARCHIVE GRID
   ========================================================================== */
.page-template-projects .grid-container {
    max-width: 100%;
    margin-top: 2em;
}

.image-container.project-grid {
    width: 100%;             
    aspect-ratio: 1 / 1;     
    overflow: hidden;        
}

.image-container.project-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;       
    object-position: center; 
}

.project-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: .5em;
}

h2.project-title {
    margin-top: 0em;
    font-size: .8rem;
    font-weight: normal;
    width: 50%;
}

h2.project-title a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   6. SINGULAR PROJECT POST LAYOUTS (Desktop Sticky Fixes)
   ========================================================================== */
.single-post .grid-container {
    max-width: 100%;
}

.single-post .site,
.single-post .site-content,
.single-post #page,
.single-post #content {
    overflow: visible !important;
}

/* Keeps column layout intact and stops them from stretching out */
.single-post .grid-row {
    display: grid;
    align-items: flex-start; 
}

.wp-singular .content-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 80px; 
    height: auto;
    max-width: 500px;
}

.wp-singular h1.entry-title {
    margin-top: 0;
    font-size: .8rem;
    font-weight: normal;
}

.wp-singular h3 {
    margin-top: .8em;
    margin-bottom: 0em;
    font-size: .8rem;
    font-weight: normal;
    text-transform: uppercase;
}

.entry-content p {
    margin-top: 0;
    margin-bottom: 0em;
}

.wp-singular .wp-block-paragraph {
    max-width: 350px;
}

.wp-singular .entry-content {
    padding-bottom: 4em;
    margin: 0;
}

/* Structural adjustments to handle column images nicely */
.vertical-image-column {
    display: flex;
    flex-direction: column; 
    gap: 20px; 
    width: 100%;
}

.vertical-image-column .image-item img {
    width: 100%;
    height: auto; 
    display: block;
}

.entry-header {
    display: flex;
    flex-direction: column;
}

.site {
    width: 100%;
    display: block;
}

/* ==========================================================================
   7. CONTACT PAGE LAYOUT
   ========================================================================== */
.page-template-page-contact .grid-container {
    margin-top: 2em;
    max-width: 100%;
}

.image-container.contact-image {
    width: 100%;             
    aspect-ratio: 1 / .8;     
    overflow: hidden;        
}

.page-template-page-contact p {
    margin-bottom: .5em;
    margin-top: 0em;
}

.page-template-page-contact p a {
    text-decoration: none;
}

/* ==========================================================================
   8. ABOUT PAGE LAYOUT
   ========================================================================== */
.page-template-page-about .grid-container {
    margin-top: 2em;
    max-width: 100%;
}

.about-page-wrapper {
    padding-top: 100px;
    padding-bottom: 120px;
}

.about-bio .editorial-copy p {
    margin-bottom: 24px;
    text-transform: none; 
    margin-top: 0px;
}

.about-mid-lists {
    display: flex;
    flex-direction: column;
    gap: 60px; 
}

.about-list-block h2 {
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 400;
    margin: 0 0 6px 0;
}

.about-list-block ul,
.about-list-block p {
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-list-block li {
    margin-bottom: 4px;
}

/* ==========================================================================
   9. CORE SITE FOOTER 
   ========================================================================== */
.site-footer.grid-container {
    margin-top: 10em;
    margin-bottom: 10em;
    max-width: 100%;
}

.site-footer,
.site-footer a {
    font-family: 'Unica-Medium', sans-serif;
    font-style: normal;
    color: #9B9B9B; 
    text-decoration: none;
    font-size: .65rem;
}

.footer-identity {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px; 
}

.footer-directory {
    display: flex;
    flex-direction: column;
    gap: 24px; 
}

.footer-section h3,
.footer-section p {
    margin: 0;
    font-size: .65rem;
}

.footer-section a:hover {
    color: #000000;
}

.navigation.post-navigation {
    margin-top: 2em;
    padding: 0 20px;
}

/* ==========================================================================
   10. THE 12-COLUMN CORE GRID SYSTEM (Restored & Safeguarded)
   ========================================================================== */
.content-area {
    width: 100%;
    display: block;
}

.grid-container *, 
.grid-row * {
    box-sizing: border-box;
}

.site-main {
    padding-top: 40px;
    padding-bottom: 40px;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
    box-sizing: border-box;
}

.grid-row {
    display: grid !important; /* Force layout activation */
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important; 
    gap: 20px; 
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; } 
.col-4  { grid-column: span 4; } 
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; } 
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; } 
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; } 

/* ==========================================================================
   11. RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
    .grid-row {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    }
    
    .grid-row > [class^="col-"] {
        grid-column: span 12 !important; 
    }
    
    .col-3 { grid-column: span 12 !important; }
    .col-12 { grid-column: span 12 !important; }
    
    .home-wrapper h1.logo {
        font-size: 15vw;
    }
    
    .main-navigation a, 
    .home .main-navigation a {
        font-size: .7rem;
        letter-spacing: .02em;
    }
    
    .site-footer .col-4 {
        grid-column: span 6 !important;
    }
    
    h2.project-title {
        padding-left: 10px;
    }
    
    .about-column.col-2 {
        grid-column: span 6 !important;
    }
    
    .single-post article .col-4, 
    .single-post article .col-6 {
        grid-column: span 12 !important;
    }
    .wp-singular .content-wrapper {
        position: relative;
        top: 0px;
    }
}