/* Base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #000;
    color: #fff;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

/* Static background image (loads first) */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/hero-original.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    transition: opacity 1s ease-in-out;
}

/* Video background (loads progressively) */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: opacity 1s ease-in-out;
}

/* CSP-safe visibility helpers (no inline styles) */
.hero-video.is-hidden { display: none; opacity: 0; }
.hero-video.is-visible { display: block; opacity: 1; }
.hero-bg.is-faded { opacity: 0; }

/* Dark overlay for both image and video */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
}

/* Decorative lines */
.decorative-line {
    width: 200px;
    height: 1px;
    background-color: #ffffff;
    margin: 1.5rem auto;
    opacity: 0.8;
}

/* Main brand text */
.main-brand {
    font-family: 'Playfair Display', serif;
    font-size: 7rem;
    font-weight: 400;
    margin: 3rem 0 0 0;
    letter-spacing: 3px;
    opacity: 0.9;
}

.hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin: 0;
    letter-spacing: 4px;
    font-weight: 400;
}

.company-tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 2rem 0 0 0;
    text-transform: uppercase;
    opacity: 0.8;
}

.company-elevating {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
    margin: 0.5rem 0 0 0;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Company focus text */
.company-focus {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 1rem 0 0 0;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Name definitions section */
.name-definitions {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 3;
    text-align: left;
    max-width: 400px;
    transition: margin 0.3s ease;
}

.name-definitions h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 400;
    font-style: italic;
    text-align: left;
}

.definition-details {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.8;
    text-align: left;
    margin: 0;
}

.definition-details dt {
    font-weight: 600;
    margin: 0 0 0.3rem 0;
}

.definition-details dd {
    margin: 0 0 0.8rem 1rem;
}

.definition-details dd:last-child {
    margin-bottom: 0;
}

.definition-details em {
    font-style: italic;
    font-weight: 600;
}

/* Hero contact form */
.hero-contact {
    margin: 3rem auto 0 auto;
    max-width: 400px;
    text-align: center;
}

.hero-contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    font-weight: 400;
}

.hero-contact > p {
    margin: 0 0 1.5rem 0;
    color: #ccc;
    font-size: 0.9rem;
}

/* Contact form styling (used in hero) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: rgba(34, 34, 34, 0.9);
    color: #fff;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 0.7rem;
    background-color: rgba(68, 68, 68, 0.9);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.contact-form button:hover {
    background-color: rgba(102, 102, 102, 0.9);
}

.privacy {
    margin-top: 1rem;
    font-size: 0.7rem;
    color: #bbb;
}

/* Home button for 404 page */
.home-button {
    display: inline-block;
    padding: 0.7rem 2rem;
    background-color: rgba(68, 68, 68, 0.9);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
}

.home-button:hover {
    background-color: rgba(102, 102, 102, 0.9);
}

/* Thanks / 404 pages */
.thanks-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background-color: #000;
}

.thanks-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.thanks-section p {
    font-size: 1.25rem;
    color: #ccc;
}

/* Media queries for responsive design */
@media (max-width: 1400px) {
    .name-definitions {
        position: static;
        margin: 3rem auto 0 auto;
        text-align: center;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-inner h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .company-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .company-elevating {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .company-focus {
        font-size: 1rem;
        letter-spacing: 1px;
        margin-top: 0.8rem;
    }
    
    .main-brand {
        font-size: 3.5rem;
        letter-spacing: 2px;
        margin-top: 2rem;
    }
    
    .decorative-line {
        width: 150px;
        margin: 1rem auto;
    }
    
    .name-definitions {
        margin: 2rem auto 0 auto;
        max-width: 320px;
    }
    
    .name-definitions h3 {
        font-size: 1.3rem;
    }
    
    .definition-details {
        font-size: 0.8rem;
    }
    
    .hero-contact {
        margin: 2rem auto 0 auto;
        max-width: 350px;
    }
    
    .hero-contact h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-inner h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .company-tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .company-elevating {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .company-focus {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-top: 0.6rem;
    }
    
    .main-brand {
        font-size: 2.8rem;
        letter-spacing: 1px;
        margin-top: 1.5rem;
    }
    
    .decorative-line {
        width: 120px;
        margin: 0.8rem auto;
    }
    
    .name-definitions {
        margin: 1.5rem auto 0 auto;
        max-width: 280px;
    }
    
    .name-definitions h3 {
        font-size: 1.2rem;
    }
    
    .definition-details {
        font-size: 0.75rem;
    }
    
    .hero-contact {
        margin: 1.5rem auto 0 auto;
        max-width: 300px;
    }
    
    .hero-contact h2 {
        font-size: 1.3rem;
    }
}
