/* Modern Responsive Stylesheet for Roger Mayne Photography */
/* Preserves original aesthetic while adding mobile responsiveness */

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Original color palette */
    --bg-gray: #CCCCCC;
    --content-white: #FFFFFF;
    --text-black: #000000;
    --text-gray: #808080;
    --text-dark-gray: #333333;
    --accent-red: #660000;
    --hover-gray: #999999;
    --line-gray: #999999;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: var(--bg-gray);
    color: var(--text-black);
    line-height: 1.6;
    font-size: 16px;
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    background-color: var(--content-white);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-gray);
    font-weight: bold;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-dark-gray);
    font-weight: bold;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-gray);
    font-weight: bold;
    margin-bottom: 0.6rem;
}

p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1rem;
}

.caption {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--text-gray);
    font-weight: bold;
    margin-top: 0.5rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-gray);
    margin-bottom: 20px;
}

.site-logo {
    height: 65px;
    width: auto;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    gap: 1px;
}

.nav-list li a {
    text-decoration: none;
    color: var(--text-black);
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    /* padding: 0px 0px; */
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
    color: var(--accent-red);
    background-color: var(--hover-gray);
}

.nav-list li a[aria-current="page"] {
    font-weight: bold;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: var(--text-dark-gray);
    color: white;
    border: none;
    /* padding: 10px 15px; */
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: var(--text-black);
    background-color: var(--hover-gray);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        flex-basis: 100%;
        order: 3;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-list.active {
        max-height: 600px;
        margin-top: 15px;
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list li a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid var(--line-gray);
    }
}

/* ========================================
   MAIN CONTENT LAYOUTS
   ======================================== */
main {
    margin-bottom: 20px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .content-with-sidebar .sidebar {
        order: -1;
    }
}

/* ========================================
   MENU LINKS
   ======================================== */
.menu-links {
    list-style: none;
    margin: 20px 0;
}

.menu-links li {
    margin-bottom: 10px;
}

.menu-links li a {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: bold;
    display: inline-block;
    padding: 5px 0;
}

/* ========================================
   TIMELINE (Biography Page)
   ======================================== */
.timeline {
    margin: 20px 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    margin-bottom: 15px;
    align-items: start;
}

.timeline-item .year {
    text-align: right;
    font-weight: normal;
}

@media (max-width: 576px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .timeline-item .year {
        text-align: left;
        font-weight: bold;
    }
}

/* ========================================
   CONTACT BLOCKS
   ======================================== */
.contact-block {
    margin: 20px 0;
}

.contact-block p {
    margin-bottom: 0.3rem;
}

.contact-block h2 {
    margin-top: 0;
}

/* ========================================
   IMAGES
   ======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.featured-image {
    margin: 20px 0;
    text-align: center;
}

.featured-image img {
    margin: 0 auto;
}

/* ========================================
   LINKS
   ======================================== */
a {
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--accent-red);
    background-color: var(--hover-gray);
}

/* ========================================
   HORIZONTAL RULES
   ======================================== */
hr {
    border: none;
    border-top: 1px solid var(--line-gray);
    margin: 20px 0;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line-gray);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    color: var(--text-gray);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: flex-end;
}

.footer-nav a {
    color: var(--text-gray);
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent-red);
    background-color: var(--hover-gray);
}

@media (max-width: 576px) {
    .site-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ========================================
   EXHIBITIONS TABLE
   ======================================== */
.exhibitions-table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
}

.exhibitions-table td {
    padding: 0.35em 0;
    vertical-align: top;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

.exhibitions-table .year {
    white-space: nowrap;
    padding-right: 2em;
    font-weight: normal;
    color: var(--text-dark-gray);
    width: 100px;
    min-width: 80px;
}

@media (max-width: 576px) {
    .exhibitions-table,
    .exhibitions-table tbody,
    .exhibitions-table tr,
    .exhibitions-table td {
        display: block;
        width: 100%;
    }

    .exhibitions-table tr {
        margin-bottom: 0.8em;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5em;
    }

    .exhibitions-table .year {
        font-weight: bold;
        padding-right: 0;
        padding-bottom: 0.1em;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
    }
    
    .nav-toggle,
    .site-footer {
        display: none;
    }
}