/* --- 1. CSS Variables and Core Setup --- */
:root {
    /* Font */
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Light Theme (Default) */
    --bg-color: #ffffff;
    --text-color: #1d1d1f;
    --nav-border-color: #dddddd;
    --link-color: #0066cc;
    --section-bg-color: #fafafa;

    /* Spacing */
    --nav-height: 68px;
}

/* This is where our dark theme variables will go later */
[data-theme="dark"] {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --nav-border-color: #333333;
    --link-color: #2997ff;
    --section-bg-color: #111111;
}
/* --- 2. Font Definitions --- */
@font-face {
    font-family: 'Korataki';
    src: url('/fonts/korataki_extrabold.otf') format('opentype');
    font-weight: normal; /* We'll control the weight in the class */
    font-style: normal;
}
/* --- 3. Global Styles & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: var(--nav-height);
}

/* --- 4. Persistent Navigation Bar (Centered Group) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--nav-border-color);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.main-nav {
    max-width: 1024px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;     
    gap: 35px;               
    padding: 0 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 17px;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* --- 5. Dropdown Menu --- */
.nav-item-dropdown {
    position: relative; 
}

.dropdown-menu {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px); 
    background-color: var(--bg-color);
    border: 1px solid var(--nav-border-color);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color);
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: rgba(0,0,0,0.05); 
}

/* --- 6. Generic Content Page Styles --- */
.page-hero {
    padding-top: 80px;
    text-align: center;
    padding-bottom: 60px;
}

.page-headline {
    font-size: 48px;
    font-weight: 600;
}

/* --- 7. Contact Form Styles --- */
.form-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 17px;
    font-family: var(--font-main);
    border: 1px solid var(--nav-border-color); 
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--link-color); 
    box-shadow: 0 0 0 2px rgba(0, 125, 250, 0.3); 
}

.button-primary {
    display: inline-block;
    background-color: #0071e3;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.button-primary:hover {
    background-color: #0077ed;
}

/* --- 8. Form Select Element Style --- */
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 17px;
    font-family: var(--font-main);
    border: 1px solid var(--nav-border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231d1d1f%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: .65em auto;
}

/* --- 9. Project Page Grid --- */
.project-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    display: block;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 18px;
    overflow: hidden; 
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-card-image-container {
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f7; 
}

#photography-bg { background-image: url('/assets/images/photography/hero-photo.jpg'); }
#film-bg { background-image: url('/assets/images/film/hero-film-shot.jpg'); }
#corporate-bg { background-image: url('/assets/images/corporate/hero-corp-shot.jpg'); }


.project-card-content {
    padding: 25px;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
}

.project-card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.project-card-link {
    font-size: 17px;
    color: var(--link-color);
}

/* --- 10. Leadership Page --- */
.leadership-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
}

.affiliate-grid {

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.leader-photo-placeholder {
    width: 140px;
    height: 140px;
    background-color: #e8e8e8;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.leader-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.leader-title {
    font-size: 17px;
    color: #888;
    margin-bottom: 10px;
}

[data-theme="dark"] .leader-title {
    color: #777;
}

.leader-bio {
    font-size: 16px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

.section-headline {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
}

/* --- 11. Gallery Page --- */
.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    width: 100%;
    margin-bottom: 20px;
    display: inline-block; 
    break-inside: avoid;  
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px; 
}

/* --- Responsive Adjustments --- */
/* For tablets, switch to 2 columns */
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

/* For mobile, switch to a single column */
@media (max-width: 500px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* --- 12. Film Page Layout --- */
.film-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.column-headline {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--nav-border-color);
    padding-bottom: 10px;
}

/* Styles for Clickable Video Cards */
.video-card { cursor: pointer; }
.video-thumbnail { width: 100%; padding-bottom: 56.25%; background-size: cover; background-position: center; border-radius: 12px; position: relative; display: flex; justify-content: center; align-items: center; transition: transform 0.3s ease; }
.video-card:hover .video-thumbnail { transform: scale(1.03); }

.play-button-overlay {
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    width: 70px;
    height: 70px;
    line-height: 70px; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    padding-left: 4px;
}
.video-card:hover .play-button-overlay { background-color: rgba(0, 113, 227, 0.8); }

/* Styles for Static Poster Cards */
.poster-grid { display: grid; gap: 30px; }
.poster-card img { width: 100%; height: auto; border-radius: 12px; }

.video-card-info {
    padding-top: 20px;
}
.video-title { font-size: 21px; font-weight: 600; color: var(--text-color); margin-bottom: 4px; }
.video-description { font-size: 17px; color: #888; }

.video-player-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; border-radius: 12px; }
.video-player-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

@media (max-width: 900px) {
    .film-layout-grid {
        grid-template-columns: 1fr; 
    }
}

/* --- 13. Footer --- */
.main-footer {
    border-top: 1px solid var(--nav-border-color);
    padding: 30px 20px;
    margin-top: 60px; 
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 14px;
}

[data-theme="dark"] .footer-container {
    color: #777;
}

.footer-social-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s ease;
}

[data-theme="dark"] .footer-social-links a {
    color: #777;
}

.footer-social-links a:hover {
    color: var(--link-color);
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    .footer-social-links {
        order: -1; 
    }
}

/* --- 14. Homepage Carousel --- */
.carousel {
    position: relative;
    height: 600px;
    width: 100%;
    margin: 80px 0;
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.6);
}

#carousel-img-1 { background-image: url('/assets/images/photography/bestphoto.jpg'); }
#carousel-img-2 { background-image: url('/assets/images/film/bestfilm.jpg'); }
#carousel-img-3 { background-image: url('/assets/images/corporate/bestcorp.jpg'); }

.carousel-content {
    color: white;
}

.carousel-headline {
    font-size: 48px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.carousel-link {
    font-size: 21px;
    color: #2997ff;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    color: white;
    font-size: 30px;
    transition: background 0.2s ease;
}

.carousel-button:hover {
    background: rgba(0,0,0,0.4);
}

.carousel-button--left { left: 20px; }
.carousel-button--right { right: 20px; }

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: rgba(255,255,255,0.8);
}

.is-hidden {
    display: none;
}

#home-photo-bg { background-image: url('/assets/images/photography/your-best-photo.jpg'); }
#home-film-bg { background-image: url('/assets/images/film/your-best-film-poster.jpg'); }

.home-cta {
    background-color: var(--section-bg-color); 
    padding: 80px 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.cta-container {
    max-width: 680px;
    margin: 0 auto;
}

.cta-headline {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-subheadline {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* --- Content Section & Container --- */
.content-section {
    padding-bottom: 80px;
}

.content-container {
    max-width: 780px; 
    margin: 0 auto;   
    padding: 0 20px; 
}

.content-container p {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

/* --- Logo Styling --- */
.nav-logo img {
    height: 28px; 
    width: auto;
    display: block; 
    transition: filter 0.3s ease;
}


[data-theme="dark"] .nav-logo img {
    filter: invert(1) brightness(2);
}

.season-spring .hero::before {
    background-image: url('/assets/images/hero-spring.jpg');
}
.season-summer .hero::before {
    background-image: url('/assets/images/hero-summer.jpg');
}
.season-autumn .hero::before {
    background-image: url('/assets/images/hero-autumn.jpg');
}
.season-winter .hero::before {
    background-image: url('/assets/images/hero-winter.jpg');
}

/* --- Corporate Page-Specific Styles --- */
.corporate-page {
    background-color: #000000;
}

.corporate-page .main-header {
    background-color: #1c1c1e;
    border-bottom-color: #3a3a3c;
}

.corporate-page .nav-links a {
    color: #ffffff;
}

.corporate-page .nav-logo img {
    filter: invert(1) brightness(2);
}

.corporate-page .dropdown-menu {
    background-color: #1c1c1e;
    border-color: #3a3a3c;
}

.corporate-page .dropdown-menu li a {
    color: #ffffff;
}

.corporate-page .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.corporate-page .page-headline,
.corporate-page .hero-subheadline,
.corporate-page .column-headline,
.corporate-page .video-title {
    color: #ffffff;
}

.corporate-page .video-description {
    color: #a1a1a6; 
}

.corporate-page .footer-container,
.corporate-page .footer-social-links a {
    color: #888;
}

.corporate-page .footer-social-links a:hover {
    color: #2997ff; 
}
/* --- Homepage Definitive Styles (Block Layout) --- */

/* --- Block 1 & 2: Black Sections --- */
.home-page .hero,
.home-page .home-tagline {
    background-color: #000000;
}

.home-page .hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    padding-top: var(--nav-height);
}

.home-page .main-header {
    background-color: #1c1c1e;
    border-bottom-color: #3a3a3c;
}

.home-page .nav-links a,
.home-page .dropdown-menu li a {
    color: #ffffff;
}

.home-page .nav-logo img {
    filter: invert(1) brightness(2);
}

.home-page .dropdown-menu {
    background-color: #1c1c1e;
    border-color: #3a3a3c;
}

.home-page .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Tagline Section Styles */
.home-tagline { padding: 80px 20px; text-align: center; color: #ffffff; }
.tagline-container { max-width: 680px; margin: 0 auto; }
.tagline-headline { font-size: 40px; font-weight: 600; margin-bottom: 1rem; }
.tagline-subheadline { font-size: 19px; line-height: 1.6; color: #a1a1a6; margin-bottom: 2rem; }
.button-secondary { display: inline-block; background-color: transparent; color: #a1a1a6; font-size: 17px; border: 1px solid #a1a1a6; border-radius: 25px; padding: 10px 22px; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.button-secondary:hover { background-color: #ffffff; color: #000000; }

/* --- Block 3 & 4: White Sections --- */
.home-page .home-cta {
    background-color: #ffffff;
}

/* Carousel Styles */
.home-page .carousel {
    padding: 80px 0;
    margin: 0;
    background-color: #000000; 
}
.home-page .carousel-image {
    filter: brightness(0.6); 
}
.home-page .carousel-content { color: #ffffff; }
.home-page .carousel-headline { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.7); }
.home-page .carousel-link { color: #2997ff; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
.home-page .carousel-button { background: rgba(0,0,0,0.2); color: #fff; }
.home-page .carousel-button:hover { background: rgba(0,0,0,0.4); }
.home-page .carousel-indicator { background: rgba(255,255,255,0.3); }
.home-page .carousel-indicator.current-slide { background: rgba(255,255,255,0.8); }

.home-page .home-cta {
    color: var(--text-color);
}
.home-page .cta-headline { color: var(--text-color); }
.home-page .cta-subheadline { color: #888; }

/* Hero Typography Styles */
.hero-typographic-logo { display: flex; flex-direction: column; align-items: center; }
.hero-logo-top { font-family: "SF Pro Display", -apple-system, sans-serif; font-weight: 400; font-size: 6vw; letter-spacing: 1px; margin-bottom: -1vw; background: linear-gradient(180deg, #F3C48B, #D88147); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-logo-bottom { font-family: "Korataki", "SF Pro Display", sans-serif; font-weight: 900; font-size: 18vw; letter-spacing: -0.5vw; text-transform: uppercase; background: linear-gradient(180deg, #F3C48B, #D88147); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- Leadership Photo Styles --- */
.leader-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%; 
    object-fit: cover;   
    margin: 0 auto 20px auto;
}

/* --- 15. Corporate Page Layout --- */
.corporate-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: start;
}

.corporate-column .video-grid {
    grid-template-columns: 1fr; 
    gap: 40px;
}

.video-thumbnail--portrait {
    padding-bottom: 177.77%; 
}

.video-player-container--portrait {
    position: relative;
    padding-bottom: 177.77%; 
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
}

.video-player-container--portrait iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .corporate-layout-grid {
        grid-template-columns: 1fr; 
    }
}