/* Custom Luxury Homepage Styles */

/* Variables */
:root {
    --color-bg: #0a0a0a;
    --color-text: #f0f0f0;
    --color-accent: #d4af37;
    /* Metallic Gold */
    --color-accent-hover: #f9d768;
    --color-secondary: #1a1a1a;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --spacing-section: 120px;
}

/* Global Reset/Base for Custom Page */
body.page-template-template-custom-home {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* FORCE FULL WIDTH OVERRIDES */
body.page-template-template-custom-home #page,
body.page-template-template-custom-home .site-content,
body.page-template-template-custom-home .ast-container,
body.page-template-template-custom-home #primary,
body.page-template-template-custom-home #main {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex: none !important;
    overflow-x: visible !important;
}

/* Allow hero section to break out of containers */
body.page-template-template-custom-home {
    overflow-x: hidden !important;
}

body.page-template-template-custom-home #secondary,
body.page-template-template-custom-home .widget-area {
    display: none !important;
    /* Hide Sidebar */
}

.custom-home-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

.custom-home-wrap h1,
.custom-home-wrap h2,
.custom-home-wrap h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.custom-home-wrap h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.custom-home-wrap p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #aeaeae;
    margin-bottom: 2rem;
}

.custom-home-wrap a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Container */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    /* Global center for container items */
}

/* Buttons */
.btn-luxury {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto;
    /* Center button */
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--color-accent);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-luxury:hover {
    color: var(--color-bg);
}

.btn-luxury:hover::before {
    width: 100%;
}

/* Hero Section */
.hero-section {
    height: 100vh !important;
    width: 100vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: center !important;
    background: #000 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000 !important;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center center;
    background: #000;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-video.loaded {
    opacity: 1 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 3;
    /* Text above video and overlay */
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ddd;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

/* Portfolio Grid */
.portfolio-section {
    padding: var(--spacing-section) 0;
    background-color: var(--color-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
    /* Center grid */
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 750px;
    display: flex;
    /* Flex to center content if needed */
    flex-direction: column;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Category Matrix Grid Layout */
.category-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.category-matrix .portfolio-item {
    height: 350px; /* Consistent height for grid items */
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .category-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-matrix {
        grid-template-columns: 1fr;
    }
    .category-matrix .portfolio-item {
        height: 300px;
    }
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 80%, transparent 100%) !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.4s ease;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.3) 90%, transparent 100%) !important;
}

.portfolio-title {
    font-size: clamp(1.4rem, 2vw, 1.8rem) !important; /* Scaled down for grid */
    color: #fff !important;
    margin-bottom: 0.8rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.portfolio-cat {
    color: var(--color-accent) !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 3px !important;
    margin-bottom: 0.4rem;
    display: block !important;
}

/* Interior/Lighting Split - Vertical Stack */
.split-section {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.split-panel {
    height: 60vh; /* Taller panels for vertical flow */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.split-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 3rem;
    transition: background 0.3s ease;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.split-panel:hover .split-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.split-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

/* Designer Bio */
.bio-section {
    padding: var(--spacing-section) 0;
    display: flex;
    flex-direction: column;
    /* Stack for centering */
    align-items: center;
    justify-content: center;
    gap: 4rem;
    text-align: center;
}

.bio-image {
    width: 100%;
    max-width: 600px;
    /* Limit width */
    height: 600px;
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.bio-image:hover img {
    filter: grayscale(0%);
}

.bio-content {
    width: 100%;
    max-width: 800px;
    /* Limit text width */
}

.bio-content h2 {
    color: var(--color-accent);
}

/* Footer CTA */
.footer-cta {
    padding: 8rem 0;
    text-align: center;
    background: #000;
}

/* Search Overlay Override */
.nav-search-icon {
    margin-left: 20px;
    cursor: pointer;
    color: inherit;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .split-section {
        grid-template-columns: 1fr;
        height: auto;
    }

    .split-panel {
        height: 50vh;
    }

    .bio-section {
        flex-direction: column;
    }

    .hero-title {
        font-size: 3rem;
    }
}
/* Times-Style Journal Section (Pixel Perfect) */
.times-journal-section {
    background-color: #fff;
    padding: 60px 0;
    color: #1a1a1a;
    border-top: 1px solid #000;
    margin: 40px 0;
}

.times-main-columns-exact {
    display: grid;
    grid-template-columns: 240px 1fr 320px;
    gap: 30px;
    text-align: left;
}

.exact-col-left { border-right: 1px dotted #ccc; padding-right: 20px; }
.exact-col-center { border-right: 1px dotted #ccc; padding-right: 20px; }

/* Left Headlines */
.exact-headline-item { border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.exact-headline-item:last-child { border: none; }
.exact-headline-item h3 { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; margin: 0 0 10px 0; color: #1a1a1a !important; font-weight: 800; }
.exact-mini-excerpt { font-size: 0.9rem; color: #666; line-height: 1.4; }

/* Center Column */
.exact-main-feature { border-bottom: 1px solid #eee; padding-bottom: 25px; margin-bottom: 25px; }
.exact-img-large { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 15px; }
.exact-main-feature h2 { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1.1; margin: 10px 0; color: #1a1a1a !important; font-weight: 800; }
.exact-excerpt { font-size: 1rem; line-height: 1.5; color: #333; margin-bottom: 10px; }
.exact-meta { color: #d4af37; text-transform: uppercase; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; }

.exact-center-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.exact-img-square { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 10px; }
.exact-sub-feature h4 { font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.3; color: #1a1a1a !important; margin: 0; }

/* Right Column */
.exact-side-item { border-bottom: 1px dotted #ccc; padding-bottom: 12px; margin-bottom: 12px; }
.exact-side-item:last-child { border: none; }
.exact-side-link { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.exact-side-text { flex: 1; }
.exact-side-text h4 { font-size: 1.05rem; line-height: 1.3; color: #1a1a1a !important; margin: 0 0 5px 0; font-weight: 700; }
.exact-meta-small { color: #888; font-size: 0.65rem; text-transform: uppercase; font-weight: 600; }
.exact-side-thumb { width: 90px; height: 65px; flex-shrink: 0; }
.exact-side-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1200px) {
    .times-main-columns-exact { grid-template-columns: 1fr 1.5fr; }
    .exact-col-left { display: none; }
}
@media (max-width: 900px) {
    .times-main-columns-exact { grid-template-columns: 1fr; }
    .exact-col-center, .exact-col-right { border: none; padding: 0; }
    .exact-center-subs { grid-template-columns: 1fr; }
}
