/*
Theme Name: Bistrița Dual Services
Theme URI: https://example.com/bistrita-dual-services
Author: Your Name
Author URI: https://example.com
Description: A split-screen WordPress theme for Hornar and Frigotehnist services. Fully editable via WordPress Admin with ACF support.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bistrita-dual-services
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   THEME INFORMATION
   ============================================
   
   This theme is designed for a dual-service business:
   - Hornarul de Bistrița (Chimney sweep services)
   - Frigotehnist (HVAC/Refrigeration services)
   
   ALL content is editable from WordPress Admin:
   - Go to Appearance > Customize for basic settings
   - Go to Hornar Settings / Frigotehnist Settings for service details
   - Use ACF plugin for advanced custom fields (optional but recommended)
   - Upload images via Media Library
   - Edit menus via Appearance > Menus
   
   ============================================ */

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ============================================
   SPLIT SCREEN LAYOUT - HOMEPAGE
   ============================================
   This creates the 50/50 split screen layout
   for the homepage showing both services side by side
   ============================================ */

.split-screen-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-screen-left,
.split-screen-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

/* Left Side - Hornarul de Bistrița */
.split-screen-left {
    background: linear-gradient(135deg, #c62828 0%, #ff3d00 100%);
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Right Side - Frigotehnist */
.split-screen-right {
    background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Background Images (editable from Admin) */
.split-screen-left::before,
.split-screen-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.;
    z-index: 0;
}

.split-screen-left::before {
    background-image: var(--hornar-bg-image, none);
}

.split-screen-right::before {
    background-image: var(--frigotehnist-bg-image, none);
}

.split-screen-left > *,
.split-screen-right > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   SERVICE SECTION STYLES
   ============================================ */

.service-section {
    text-align: center;
    max-width: 500px;
}

.service-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.service-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Services List */
.services-list {
    list-style: none;
    margin-bottom: 40px;
}

.services-list li {
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.services-list li:last-child {
    border-bottom: none;
}

.service-icon {
    font-size: 1.3rem;
}

/* Phone Number Display */
.phone-display {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.phone-display:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.phone-icon {
    font-size: 1.5rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: #e74c3c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Navigation Menu */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #e74c3c;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.site-footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e74c3c;
}

.footer-widget p,
.footer-widget a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-widget a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #888;
}

/* ============================================
   BLOG/POST STYLES
   ============================================ */

.blog-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-category {
    display: inline-block;
    padding: 5px 15px;
    background: #e74c3c;
    color: #ffffff;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 15px;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #e74c3c;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* ============================================
   SINGLE POST STYLES
   ============================================ */

.single-post {
    padding: 120px 0 80px;
    background: #f5f5f5;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.post-meta {
    color: #888;
    font-size: 0.9rem;
}

.post-meta span {
    margin: 0 10px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
}

.post-content {
    background: #ffffff;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content h2,
.post-content h3 {
    margin: 30px 0 15px;
    color: #2c3e50;
}

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

@media (max-width: 968px) {
    .split-screen-container {
        flex-direction: column;
    }
    
    .split-screen-left,
    .split-screen-right {
        min-height: auto;
        padding: 60px 30px;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
    }
    
    .main-navigation.active ul {
        display: flex;
    }
}

@media (max-width: 480px) {
    .service-title { text-shadow: 0 3px 15px rgba(0,0,0,0.6);
        font-size: 1.5rem;
    }
    
    .phone-display {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    
    .post-content {
        padding: 30px 20px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
.split-screen-left:hover,
.split-screen-right:hover {
    transform: scale(1.02);
    transition: 0.3s;
}
/* ===== OVERRIDE DESIGN (FORCE VISUAL FIX) ===== */

/* LEFT - HORNAR (deep red premium) */
.split-screen-left {
    background: linear-gradient(135deg, #1f0a0a 0%, #7f1d1d 100%) !important;
}

/* RIGHT - FRIGOTEHNIST (deep blue premium) */
.split-screen-right {
    background: linear-gradient(135deg, #0a1a2f 0%, #1e3a8a 100%) !important;
}

/* Background image cinematic overlay */
.split-screen-left::before,
.split-screen-right::before {
    opacity: 0.55 !important;
    filter: contrast(1.1) brightness(0.9);
}

/* Subtle dark overlay (film effect) */
.split-screen-left::after,
.split-screen-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 0;
}

/* Content above overlay */
.split-screen-left > *,
.split-screen-right > * {
    position: relative;
    z-index: 2;
}

/* Title - premium cinematic */
.service-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.8);
}

/* Subtitle */
.service-subtitle {
    opacity: 0.9;
    font-weight: 300;
}

/* Services list refinement */
.services-list li {
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* Phone glass effect */
.phone-display {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* PREMIUM BUTTON */
.cta-button {
    background: linear-gradient(135deg, #ff6a00, #ff3d00) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    font-weight: 700;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Smooth hover on sides */
.split-screen-left:hover,
.split-screen-right:hover {
    transform: scale(1.02);
    transition: 0.4s ease;
}
/* ===== ENTRY ANIMATION ===== */

.split-screen-left,
.split-screen-right {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 0.8s ease forwards;
}

.split-screen-right {
    animation-delay: 0.2s;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* text mai WOW la hover */
.split-screen-left:hover .service-title,
.split-screen-right:hover .service-title {
    transform: scale(1.05);
    transition: 0.3s ease;
}
/* ===== SOFT GLOW ===== */

.split-screen-left:hover {
    box-shadow: inset 0 0 80px rgba(255, 60, 0, 0.25);
}

.split-screen-right:hover {
    box-shadow: inset 0 0 80px rgba(0, 120, 255, 0.25);
}
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}
.single-post {
    background: #ffffff;
}

.post-header {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    padding: 100px 20px;
    text-align: center;
}

.post-title {
    color: #ffffff;
    font-size: 2.5rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
}

.post-meta {
    color: #cccccc;
}