/* ============================================
   VidEdit - Video Editing Agency
   Design: Classy, Professional, Elegant
   ============================================ */

/* 1. Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. CSS Variables */
:root {
    --navy: #1a2a3a;
    --navy-dark: #0f1922;
    --gold: #c9a87c;
    --gold-light: #d4b896;
    --cream: #faf7f2;
    --off-white: #f5f5f5;
    --charcoal: #2c2c2c;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --container-max: 1200px;
    --header-height: 70px;
}

/* 3. Base */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 4. Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--contact {
    max-width: 900px;
}

.section {
    padding: 4rem 0;
}

.section--dark {
    background: var(--navy);
    color: var(--off-white);
}

.section--dark a {
    color: var(--gold);
}

.section--dark a:hover {
    color: var(--gold-light);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--navy);
}

.section--dark .section-title {
    color: var(--off-white);
}

/* 5. Header / Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}

.main-header:not(.main-header--solid) {
    background: transparent;
}

.main-header.scrolled,
.main-header.main-header--solid {
    background: rgba(26, 42, 58, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.main-header .logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--off-white);
}

.main-header .logo:hover {
    color: var(--gold);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--off-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--off-white);
    transition: var(--transition);
}

.main-header.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.main-header.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.main-header.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 6. Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 42, 58, 0.5) 0%,
        rgba(26, 42, 58, 0.7) 50%,
        rgba(26, 42, 58, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--off-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(245, 245, 245, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 7. Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 2px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--off-white);
    border-color: var(--off-white);
}

.btn-secondary:hover {
    background: var(--off-white);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
}

/* 8. Intro Section */
.intro {
    background: var(--cream);
}

.intro-content {
    max-width: 700px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
    text-align: center;
}

/* 9. Services Grid (Homepage) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 124, 0.2);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--gold);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--off-white);
}

.service-card p {
    margin-bottom: 1rem;
    color: rgba(245, 245, 245, 0.85);
    font-size: 0.95rem;
}

.service-link {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.service-link::after {
    content: '→';
}

/* 10. Featured Work / Video Thumbnails */
.featured-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-grid {
    margin-bottom: 2rem;
}

.video-thumbnail,
.gallery-item {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform var(--transition);
}

.video-thumbnail:hover,
.gallery-item:hover {
    transform: scale(1.03);
}

.video-thumbnail img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 124, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.play-icon svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    fill: var(--navy);
}

.video-thumbnail:hover .play-icon,
.gallery-item:hover .play-icon {
    background: var(--gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.featured-cta {
    text-align: center;
}

/* 11. CTA Section */
.cta-section {
    background: var(--navy);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(201, 168, 124, 0.03) 10px,
        rgba(201, 168, 124, 0.03) 20px
    );
}

.cta-content {
    text-align: center;
}

.cta-headline {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--off-white);
    margin-bottom: 1.5rem;
}

/* 12. Page Header (Gallery, Services, Contact) */
.page-header {
    padding: calc(var(--header-height) + 4rem) 0 3rem;
    background: var(--navy);
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--off-white);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: rgba(245, 245, 245, 0.85);
    font-size: 1.1rem;
}

/* 13. Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--navy);
    color: var(--cream);
}

/* 14. Gallery Item Hidden State */
.gallery-item.hidden {
    display: none !important;
}

/* 15. Services Detail Page */
.service-block {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.15);
}

.service-block:last-of-type {
    border-bottom: none;
}

.service-block-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
}

.service-block-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--gold);
}

.service-block-title {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-block-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.service-block-details h4 {
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    color: var(--navy);
    margin: 1rem 0 0.5rem;
}

.service-block-details p {
    font-size: 0.95rem;
    color: var(--charcoal);
}

.services-cta-content {
    text-align: center;
}

.services-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--off-white);
}

/* 16. Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    border: 2px solid rgba(44, 44, 44, 0.2);
    border-radius: 2px;
    background: #fff;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.contact-info a {
    color: var(--gold);
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.contact-social a {
    font-weight: 500;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.9;
    margin-top: 1rem;
}

/* 17. Footer */
.main-footer {
    background: var(--navy-dark);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: var(--off-white);
}

.footer-social a:hover {
    color: var(--gold);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.6);
}

/* 18. Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.video-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    color: var(--off-white);
    cursor: pointer;
    transition: color var(--transition);
}

.video-modal-close:hover {
    color: var(--gold);
}

.video-modal-embed {
    width: 100%;
    height: 100%;
    background: #000;
}

.video-modal-embed iframe {
    width: 100%;
    height: 100%;
}

/* 19. Cursor Dot */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    left: -999px;
    top: -999px;
}

@media (pointer: coarse) {
    .cursor-dot {
        display: none !important;
    }
}

.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Body lock when menu/modal open */
body.menu-open,
body.modal-open {
    overflow: hidden;
}

/* 20. Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 21. Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-header.nav-open .main-nav {
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
