/* Layout Styles */
:root {
    --container-width: 1280px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ... (standard grids) */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.grid-cols-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

/* HEADER PIXEL LOCK */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    /* Increased from 1rem */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}


.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .custom-logo-link img,
.site-branding img.custom-logo {
    max-height: none;
    width: 200px;
    display: block;
}

.site-branding a {
    color: white;
    text-decoration: none;
}

.site-navigation ul li a {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    /* Increased weight */
    font-size: 1.1rem;
    /* Increased size */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-navigation ul li a:hover {
    color: white;
}

/* HERO */
.hero {
    min-height: 60vh;
    padding-top: 200px;
    /* Increased from 80px to accommodate larger header */
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    color: white;
    padding-bottom: 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-meta {
    font-size: 1.25rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .breadcrumbs {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Sticky Tabs */
.tabs-nav-container {
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tabs-nav {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tabs-nav li button {
    background: none;
    border: none;
    padding: 1.5rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
}

.tabs-nav li button.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Grids */
.section-intro-split {
    display: grid;
    grid-template-columns: 1fr 350px 300px;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.page-layout-sidebar-right {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    margin-top: 3rem;
}

.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-lg);
    margin-top: 3rem;
}

/* Components */
.card {
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image {
    aspect-ratio: 16/9;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.site-footer {
    padding: var(--space-xl) 0;
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: var(--space-xl);
}

/* Responsive */
@media (max-width: 1024px) {
    .section-intro-split {
        grid-template-columns: 1fr 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .page-layout-sidebar-right,
    .section-intro-split,
    .page-layout {
        grid-template-columns: 1fr;
    }

    .grid-cols-5,
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}