/* ============================================
   ENVISION PRODUCTION GROUP — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #111111;
    color: #F0F0F0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- CSS Variables --- */
:root {
    --bg-dark: #0d0d0d;
    --bg-primary: #111111;
    --bg-secondary: #171717;
    --bg-card: #1a1a1a;
    --bg-card-hover: #1f1f1f;
    --accent: #E8C830;
    --accent-hover: #f0d44a;
    --accent-glow: rgba(232, 200, 48, 0.25);
    --accent-dim: rgba(232, 200, 48, 0.08);
    --text-primary: #F0F0F0;
    --text-secondary: #828282;
    --text-muted: #757575;
    --border: #2a2a2a;
    --border-hover: #3a3a3a;
    --max-width: 1080px;
    --section-pad: 7rem;
}

/* --- Top Accent Bar --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    z-index: 1001;
}

/* --- Utility --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #111111;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-full { width: 100%; }

/* --- Eyebrow Label --- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

#navbar {
    position: fixed;
    top: 2px; /* below accent bar */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 0.7rem 2rem;
    background: rgba(13, 13, 13, 0.92);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Nav Logo — styled text treatment */
.nav-logo {
    display: flex;
    align-items: baseline;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.logo-en { color: var(--text-secondary); }
.logo-vision { color: var(--accent); }

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-secondary);
    transition: all 0.3s ease;
}

/* ============================================
   HERO
   ============================================ */

#hero {
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        /* dark overlay with subtle gold tint at bottom */
        linear-gradient(180deg,
            rgba(13, 13, 13, 0.65) 0%,
            rgba(13, 13, 13, 0.75) 40%,
            rgba(13, 13, 13, 0.82) 70%,
            rgba(13, 13, 13, 0.92) 100%
        ),
        /* the photo */
        url('bg.jpg?v=3') center / cover no-repeat;
}

/* Subtle grid texture */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-shadow: 
        0 2px 24px rgba(0, 0, 0, 0.95),
        0 4px 48px rgba(0, 0, 0, 0.8),
        0 0 36px rgba(0, 0, 0, 0.9);
}

.hero-content h1 {
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.75rem;
    text-shadow: 
        0 2px 24px rgba(0, 0, 0, 0.95),
        0 4px 48px rgba(0, 0, 0, 0.8),
        0 0 36px rgba(0, 0, 0, 0.9);
}

.hero-content h1 .accent { color: var(--accent); }

.hero-sub {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    text-shadow: 
        0 2px 24px rgba(0, 0, 0, 0.95),
        0 4px 48px rgba(0, 0, 0, 0.8),
        0 0 36px rgba(0, 0, 0, 0.9);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.25; transform: scaleY(0.5); }
    50%      { opacity: 1;    transform: scaleY(1);   }
}

/* ============================================
   SERVICES
   ============================================ */

#services {
    padding: var(--section-pad) 1.5rem;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

/* Gold top-bar reveal on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.service-features { list-style: none; }

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.service-features li:last-child { border-bottom: 1px solid var(--border); }

.service-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================
   ABOUT / WHY EPG
   ============================================ */

#about {
    padding: var(--section-pad) 1.5rem;
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.25rem;
}

.about-text > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.about-points { padding-top: 0.5rem; }

.about-point {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.about-point:first-child {
    border-top: 1px solid var(--border);
}

.about-point-number {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding-top: 0.15rem;
    font-variant-numeric: tabular-nums;
}

.about-point h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.about-point p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */

#contact {
    padding: var(--section-pad) 1.5rem;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Select */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23828282'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Date input dark mode */
.form-group input[type="date"] {
    color-scheme: dark;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

/* Textarea */
.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* Contact Info */
.contact-info { padding-top: 0.5rem; }

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.contact-info-item:first-child { border-top: 1px solid var(--border); }

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-dim);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info-item h4 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.contact-info-item p {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    padding: 2.5rem 1.5rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-logo-text { font-size: 1.1rem; }

.footer-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.services-grid .fade-in:nth-child(2)  { transition-delay: 0.15s; }
.about-points .fade-in:nth-child(2)   { transition-delay: 0.1s;  }
.about-points .fade-in:nth-child(3)   { transition-delay: 0.2s;  }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    :root { --section-pad: 5rem; }

    /* Nav */
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(13, 13, 13, 0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 0.75rem 0;
    }

    .nav-links.open { display: flex; }

    .nav-links li { padding: 0.75rem 2rem; }
    .nav-links a::after { display: none; }

    /* Hero */
    #hero {
        min-height: 100vh;
        padding-top: 5rem;
    }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}
