/* Rio Content Studio V4 - FINAL VERSION - Sophisticated Belle Epoque Aesthetic */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Color Palette - Sophisticated Rio */
    --ocean-blue: #1A4D6F;
    --warm-gold: #C9A961;
    --charcoal: #2C2C2C;
    --sage-green: #7A9D8F;
    --sand-beige: #E8DCC4;
    --cream: #F5F1E8;
    --elegant-gray: #6B6B6B;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ==================== NAVIGATION V4 - PROMINENT LOGO ==================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 241, 232, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(26, 77, 111, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-v4 {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex: 0 0 auto;
}

.logo-v4:hover {
    opacity: 0.9;
}

/* FINAL LOGO - Takes up about 1/4 of nav bar */
.logo-final {
    height: 100px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ocean-blue);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--warm-gold);
}

.nav-cta {
    background: linear-gradient(135deg, var(--ocean-blue), var(--sage-green));
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.nav-cta:hover {
    opacity: 0.9;
    color: white !important;
}

/* ==================== CONTAINERS ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 120px;
}

/* Slideshow */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    animation: kenBurns 20s ease-in-out infinite;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 77, 111, 0.75), rgba(122, 157, 143, 0.65));
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 1000px;
    padding: 0 var(--spacing-md);
    color: white;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--warm-gold);
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ==================== AS SEEN IN V3 (FIXED ALIGNMENT) ==================== */
.as-seen-in {
    padding: var(--spacing-xl) 0;
    background: white;
}

.section-label {
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--elegant-gray);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.logos-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-item-v3 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: var(--spacing-sm);
    width: 100%;
}

.logo-item-v3 img.company-logo {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.logo-item-v3:hover img.company-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Text logo alignment */
.logo-item-v3.text-logo-v3 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--elegant-gray);
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    height: 80px;
}

.logo-item-v3.text-logo-v3 span {
    display: block;
}

.logo-item-v3.text-logo-v3:hover {
    opacity: 1;
}

/* ==================== ABOUT PAGE V4 - LIGHTER OVERLAY + REDUCED SPACING ==================== */
.about-section-v4 {
    margin-top: 120px;
    position: relative;
    min-height: 100vh;
}

/* Full-Color Photo Collage Background */
.collage-background-v4 {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: calc(100vh - 120px);
    z-index: 1;
}

.collage-grid-v4 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    gap: 2px;
}

/* FULL COLOR - Photos shine through! */
.photo-bg-v4 {
    background-size: cover;
    background-position: center;
    filter: brightness(0.95);
}

/* LIGHTER Text Overlay - Photos more visible! */
.about-text-overlay-v4 {
    position: relative;
    z-index: 10;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 44, 44, 0.72) 0%,
        rgba(44, 44, 44, 0.68) 50%,
        rgba(44, 44, 44, 0.72) 100%
    );
    min-height: 100vh;
}

.about-title-v4 {
    text-align: center;
    color: var(--warm-gold);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Text Sections - REDUCED SPACING */
.text-section-v4 {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
}

.text-section-v4 h2 {
    color: var(--warm-gold);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.text-section-v4 p {
    color: var(--cream);
    font-size: 1.3rem;
    line-height: 1.9;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    margin-bottom: var(--spacing-sm);
}

/* ==================== SERVICES PAGE ==================== */
.page-header {
    margin-top: 120px;
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 77, 111, 0.05), rgba(122, 157, 143, 0.05));
}

.page-title {
    color: var(--ocean-blue);
    font-size: 3.5rem;
}

.services-section {
    padding: var(--spacing-xl) 0;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(26, 77, 111, 0.1);
}

.service-item:last-child {
    border-bottom: none;
}

.service-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ocean-blue), var(--sage-green));
    color: white;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 4px;
}

.service-content h2 {
    color: var(--ocean-blue);
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
}

.service-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ==================== CONTACT PAGE ==================== */
.contact-section {
    margin-top: 120px;
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 160px;
}

.contact-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: var(--ocean-blue);
}

.contact-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* Form Styles */
.contact-form {
    background: white;
    padding: var(--spacing-lg);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ocean-blue);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--sand-beige);
    border-radius: 4px;
    transition: border-color 0.3s ease;
    background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ocean-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--ocean-blue), var(--sage-green));
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.1s ease;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--charcoal);
    color: var(--sand-beige);
    padding: var(--spacing-md) 0;
    text-align: center;
    margin-top: var(--spacing-xl);
}

.site-footer p {
    margin: 0;
    font-size: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .logo-final {
        height: 80px;
        max-width: 280px;
    }
    
    .hero {
        margin-top: 100px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info {
        position: static;
    }

    .about-section-v4 {
        margin-top: 100px;
    }

    .collage-background-v4 {
        top: 100px;
        height: calc(100vh - 100px);
    }

    .page-header {
        margin-top: 100px;
    }

    .contact-section {
        margin-top: 100px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: var(--spacing-sm);
        padding: 0.5rem var(--spacing-sm);
    }
    
    .nav-links {
        gap: var(--spacing-sm);
        font-size: 0.95rem;
    }
    
    .logo-final {
        height: 70px;
        max-width: 240px;
    }
    
    .hero {
        margin-top: 140px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .logos-grid-v3 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: var(--spacing-md);
    }
    
    .collage-grid-v4 {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
    
    .service-item {
        grid-template-columns: 1fr;
    }
    
    .service-number {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .about-title-v4 {
        font-size: 2.5rem;
    }

    .text-section-v4 h2 {
        font-size: 1.6rem;
    }

    .text-section-v4 p {
        font-size: 1.1rem;
    }

    .about-section-v4 {
        margin-top: 140px;
    }

    .collage-background-v4 {
        top: 140px;
        height: calc(100vh - 140px);
    }

    .page-header {
        margin-top: 140px;
    }

    .contact-section {
        margin-top: 140px;
    }
}
