/* --- Global Settings & Variables --- */
:root {
    --font-primary: 'Cormorant Garamond', serif;
    --font-secondary: 'Lato', sans-serif;
    --color-dark: #2c2c2c;
    --color-vlight: #f9fefc; 
    --color-light: #edf7f0; 
    --color-accent: #afc7b7;
    --color-white: #ffffff;
    --color-text: #333333;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-secondary); background-color: var(--color-light); color: var(--color-text); line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-primary); font-weight: 600; color: var(--color-dark); line-height: 1.2; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }
.narrow-container { max-width: 800px; }
.text-center { text-align: center; }

/* --- Navigation --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease;
}
.main-nav.nav-scrolled {
    background-color: var(--color-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.4s ease;
}
.nav-logo .logo-black { display: none; }
.nav-scrolled .nav-logo .logo-white { display: none; }
.nav-scrolled .nav-logo .logo-black { display: block; }
.main-nav:not(.nav-scrolled) .nav-logo .logo-white { display: block; }
.main-nav:not(.nav-scrolled) .nav-logo .logo-black { display: none; }

.main-nav ul {text-shadow: rgb(0 0 0 / 55%) 0px 0px 7px; list-style: none; display: flex; gap: 2rem; }
.main-nav ul a {
    color: var(--color-white);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}
.main-nav.nav-scrolled ul a {text-shadow: none; color: var(--color-text);}
.main-nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.main-nav ul a:hover::after { width: 100%; }

/* --- Hero Section --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--color-white); }
.hero-video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -2; }
.hero-video-container::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: -1; }
#heroVideo { width: 100%; height: 100%; object-fit: cover; }
.hero-content { animation: fadeIn 2s 0.5s ease-in-out forwards; opacity: 0; }
.hero-logo { max-width: 400px; width: 90%; height: auto; margin-bottom: 0.5rem; }
.hero-title { font-size: 3rem; font-weight: 700; color: var(--color-white); }
.hero-subtitle { font-size: 1rem; font-weight: 300; margin-bottom: 2rem; }
.scroll-down-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; animation: bounce 2.5s infinite; animation-delay: 3s; }
.scroll-down-indicator a { color: var(--color-white); display: block; padding: 1rem; }
.scroll-down-indicator svg { width: 200px; height: 30px; }

/* --- Page Header (for subpages) --- */
.page-header { padding: 10rem 2rem 5rem 2rem; background-color: var(--color-dark); text-align: center; }
.page-header h1 { color: var(--color-white); font-size: 3.5rem; }
.page-header-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.page-header-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}
.page-header-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

/* --- Buttons --- */
.cta-button { display: inline-block; background: var(--color-accent); color: var(--color-white); padding: 0.8rem 2.5rem; font-family: var(--font-secondary); text-transform: uppercase; letter-spacing: 0.1rem; border: 1px solid var(--color-accent); transition: all 0.4s ease; cursor: pointer; }
.cta-button:hover { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.cta-button:disabled { background-color: #ccc; border-color: #ccc; cursor: not-allowed; }
.cta-button.outline { background: transparent; border: 1px solid #ddd; color: var(--color-text); }
.cta-button.outline:hover { background-color: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }

/* --- Content Sections --- */
.content-section { padding: 5rem 0; }
.bg-light { background-color: #fff; }
.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.1rem; font-weight: 300; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* --- Homepage Preview Sections --- */
.about-container { display: flex; align-items: center; gap: 4rem; }
.about-image { flex: 1; }
.about-image img { width: 100%; height: auto; object-fit: cover; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.about-text { flex: 1; }
.about-text p { margin-bottom: 2rem; }

.film-preview-wrapper {
    max-width: 700px;
    margin: 3rem auto 0 auto;
}

.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.collection-card { border: 1px solid #eee; padding: 2.3rem; background: var(--color-vlight); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.collection-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.collection-card h3 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--color-accent); }

/* --- About Page: Filmmakers Section --- */
.filmmakers-section { padding: 6rem 0; }
.filmmaker-profile { display: flex; gap: 1.4rem; align-items: center; margin-bottom: 5rem; }
.filmmaker-profile.reverse { flex-direction: row-reverse; }
.filmmaker-image { flex: 0 0 40%; }
.filmmaker-image img { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.filmmaker-text { flex: 1; }
.filmmaker-text h3 { font-size: 2.2rem; color: var(--color-accent); margin-bottom: 1rem; }
.filmmaker-quote {
    margin-top: 1.2rem;
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    opacity: 0; /* hidden until animated */
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.filmmaker-quote footer {
    margin-top: 0.3rem;
    font-style: normal;
    color: #c5c5c5;
}
.filmmaker-quote.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Collections Page: Detailed Cards --- */
.detailed-collection-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 900px; margin: 0 auto; }
.detailed-card { border: 1px solid #eee; background: var(--color-vlight); padding: 3rem; position: relative; }
.detailed-card.featured { border-top: 4px solid var(--color-accent); }
.featured-badge { position: absolute; top: -1px; right: 2rem; background: var(--color-accent); color: white; padding: 0.3rem 1rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.detailed-card h2 { font-size: 2.5rem; margin-bottom: 0.2rem; text-align: center; }
.detailed-card .tagline { text-align: center; font-style: italic; margin-bottom: 1.5rem; }
.detailed-card p { text-align: center; }
.detailed-card hr { border: none; height: 1px; background-color: #ddd; margin: 1rem 6rem; }
.detailed-card ul { list-style: none; padding: 0; text-align: center; line-height: 2.2; }
.detailed-card ul li::before { content: '•'; color: var(--color-accent); display: inline-block; width: 1em; margin-left: -1em; }

/* --- Films Page --- */
.film-tabs { display: none; } /* Hidden on desktop */
.films-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5rem; }
.film-column-title { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
.film-item { margin-bottom: 3rem; text-align: center; }
.film-item h3 { font-size: 1.8rem; margin-top: 1rem; }
.film-item p { font-size: 1rem; color: #777; }
.review-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
}
.review-button:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}
.video-placeholder, .video-placeholder-square { position: relative; background-color: #e0e0e0; cursor: pointer; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.video-placeholder { aspect-ratio: 16 / 9; }
.video-placeholder-square { aspect-ratio: 1 / 1; }
.video-placeholder img, .video-placeholder-square img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
/* NEW RULE */
.video-placeholder video, 
.video-placeholder-square video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video cover the area without distortion */
    background-color: #000; /* Shows a black background while video loads */
}
.video-placeholder:hover img, .video-placeholder-square:hover img { transform: scale(1.05); }
.play-button-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; transition: background-color 0.3s ease; }
.play-button-overlay::after { content: '▶'; font-size: 3rem; color: white; text-shadow: 0 0 15px rgba(0,0,0,0.5); transform: scale(1); transition: transform 0.3s ease; }
.video-placeholder:hover .play-button-overlay, .video-placeholder-square:hover .play-button-overlay { background: rgba(0,0,0,0.4); }
.video-placeholder:hover .play-button-overlay::after, .video-placeholder-square:hover .play-button-overlay::after { transform: scale(1.1); }


/* --- Contact Form --- */
#contact {background-color: var(--color-light);}
.contact-form { max-width: 800px; margin: 2rem auto 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { width: 100%; }
.form-group-full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 1rem; border: 1px solid #ddd; background-color: #fff; font-family: var(--font-secondary); font-size: 1rem; color: var(--color-text); transition: border-color 0.3s ease; appearance: none; -webkit-appearance: none; }
.contact-form select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; padding-right: 2.5rem; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--color-accent); }
.contact-form button { width: 100%; }
.form-status { display: none; margin-top: 2rem; text-align: center; }
.success-message { animation: fadeIn 0.5s ease-in-out; }
.success-message h3 { font-size: 2rem; color: var(--color-dark); margin-top: 1rem; }
.error-message { color: #d9534f; font-weight: bold; }

/* --- Footer --- */
.footer { background-color: var(--color-dark); color: #a0a0a0; text-align: center; padding: 2.5rem 1rem; font-size: 0.9rem; }
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 400px; margin: 0 auto 1.5rem auto; flex-wrap: wrap; }
.footer-info { text-align: left; }
.footer-info p { margin: 0.2rem 0; line-height: 1.5; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: #a0a0a0; }
.social-links a:hover { color: var(--color-white); }
.social-links svg { width: 22px; height: 22px; stroke: currentColor; }
.footer-credit { font-size: 0.8rem; opacity: 0.7; }

/* --- Kind Words Page: Testimonials --- */
.testimonials-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--color-vlight);
    border: 1px solid #eee;
    padding: 3rem 3rem 2.5rem 3rem;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    scroll-margin-top: 100px; /* Magic for jumping to correct view after clinking anchor link */
}
.testimonial-card::before {  /* BIG DOUBLE QUOTE SIGN */
    content: '“';
    position: absolute;
    top: -1.3rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: 9rem;
    color: var(--color-accent);
    opacity: 0.25;
    line-height: 1;
}
.testimonial-card blockquote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}
.testimonial-card footer {
    margin-top: auto; /* Pushes footer to bottom if card heights differ */
}
.testimonial-card .couple-name {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--color-dark);
    margin: 0;
}
.testimonial-card .venue-date {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.2rem;
    letter-spacing: 0.5px;
}


/* --- Animations --- */
@keyframes fadeIn { to { opacity: 1; } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.collection-card:nth-child(2) { transition-delay: 0.3s; }
.collection-card:nth-child(3) { transition-delay: 0.6s; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -15px); } 60% { transform: translate(-50%, -8px); } }

/* --- Responsive Design --- */
@media (max-width: 900px) {
    html { font-size: 15px; }
    .hero-title, .page-header h1 { font-size: 2.2rem; }
    .about-container, .filmmaker-profile, .filmmaker-profile.reverse { flex-direction: column; }
    .collections-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .main-nav { padding: 0.9rem 0; }
    .main-nav.nav-scrolled { padding: 0.5rem 0; }
    .nav-logo img { height: 40px; }
    .nav-container {padding: 0px 0.5rem 0px 0px;}
    .main-nav ul { gap: 0.9rem; }
    .main-nav ul a { font-size: 0.7rem; } 
    .hero { height: 91vh;}
    .contact-form { grid-template-columns: 1fr; }
    .content-section { padding: 2.5rem 0; }
    .footer-content { flex-direction: column; gap: 1.5rem; }
    .footer-info { text-align: center; }
    .films-preview-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 2.1rem; }

    /* Film Page Tabs on Mobile */
    .film-tabs { display: flex; border-bottom: 1px solid #ddd; margin-bottom: 2rem; }
    .film-tab-button { flex: 1; padding: 1rem; background: none; border: none; font-size: 0.95rem; cursor: pointer; color: #888; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
    .film-tab-button.active { color: var(--color-dark); border-bottom-color: var(--color-accent); font-weight: bold; }
    .films-container { grid-template-columns: 1fr; }
    .film-column { display: none; }
    .film-column.active { display: block; }
    .film-column-title { display: none; } /* Hide titles as tabs serve this purpose */

    /* Kind words Page on mobile */
    .testimonial-card {padding: 3rem 1rem 2.5rem;}
}