/*
Theme Name: Cyberway.ee
Description: Custom theme for Cyberway.ee IT services company - Fast, mobile-first, professional website showcasing services, pricing, testimonials, and blog posts.
Author: Cyberway.ee
Version: 1.0.0
License: GPL v2 or later
Text Domain: cyberway
*/

/* Reset and Base Styles */

/* Navigation Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.main-navigation {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: auto;
}

#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop Navigation */
@media screen and (min-width: 992px) {
    #primary-menu {
        display: flex !important;
    }

    #primary-menu li {
        margin: 0 15px;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Navigation */
@media screen and (max-width: 991px) {
    .site-branding {
        max-width: 70%;
    }

    .main-navigation {
        position: relative;
        margin-left: auto;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 1;
        z-index: 200;
        position: relative;
        width: 40px;
        height: 40px;
    }

    #primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        min-width: 200px;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 100;
    }

    #primary-menu.is-active {
        display: block;
    }

    #primary-menu li {
        margin: 10px 0;
        white-space: nowrap;
    }

    .mobile-menu-toggle {
        display: block !important;
        order: 1;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* CSS Variables for Brand Colors - Cyberway Theme */
:root {
    --primary-color: #00bcd4;
    --secondary-color: #0097a7;
    --accent-color: #26c6da;
    --dark-bg: #1a2332;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --logo-cyan: #00bcd4;
    --logo-dark: #1a2332;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.4; }
h4 { font-size: 1.25rem; line-height: 1.4; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col {
    padding: 0 0.75rem;
    flex: 1;
}

/* Header Styles */
.site-header {
    background: var(--background-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Enhanced logo styling for better web integration */
.site-branding {
    display: flex;
    align-items: center;
}

/* Add subtle animation and depth */
.site-logo-combo {
    display: flex;
    align-items: center;
}

.site-logo-combo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.site-logo:hover .site-logo-combo::after {
    width: 100%;
}

/* Logo icon styling for better clarity */
.site-logo-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 188, 212, 0.1));
    transition: all 0.3s ease;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.site-logo:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.site-logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
}

/* Cyberway logo with text combination */
.site-logo-combo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo-icon {
    background-image: url('cyberway_logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 40px;
    height: 40px;
    display: inline-block;
    flex-shrink: 0;
}

.site-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin: 0;
}

/* Logo hover effects */
.site-logo:hover .site-logo-icon {
    transform: scale(1.05);
}

.site-logo:hover .site-logo-text {
    color: var(--primary-color);
}

/* Fallback when logo image is not available */
.site-logo-fallback .site-logo-icon {
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.site-logo-fallback .site-logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background: white;
    box-shadow: 
        0 -4px 0 white,
        0 4px 0 white,
        8px 0 0 white,
        8px -4px 0 white,
        8px 4px 0 white;
}

/* Logo for mobile */
.mobile-logo img {
    height: 32px;
    width: auto;
}

/* Mobile responsiveness for logo combination */
@media (max-width: 768px) {
    .site-logo {
        gap: 0.5rem;
    }
    
    .site-logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .site-logo-text {
        font-size: 1.25rem;
    }
    
    .site-logo img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        gap: 0.4rem;
    }
    
    .site-logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .site-logo-text {
        font-size: 1.1rem;
    }
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle i {
    display: block;
    pointer-events: none;
}

.mobile-menu-toggle .fa-bars {
    display: block;
}

.mobile-menu-toggle .fa-times {
    position: absolute;
}

.mobile-menu-toggle.is-active .fa-bars {
    display: none;
}

.mobile-menu-toggle.is-active .fa-times {
    display: block;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--logo-dark) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%2300bcd4" opacity="0.3"/><circle cx="80" cy="40" r="1.5" fill="%2300bcd4" opacity="0.4"/><circle cx="40" cy="80" r="1" fill="%2300bcd4" opacity="0.2"/></svg>');
    background-size: 100px 100px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Services Grid */
.services-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}


.service-card.service-vertical {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto 2.5rem auto;
    min-height: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card.service-vertical .read-more-btn {
    margin-top: 1rem;
    align-self: flex-start;
}

.service-desc-full {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pricing-card .btn.btn-primary {
    margin-top: auto;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price-features {
    list-style: none;
    margin: 1.5rem 0;
}

.price-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* Testimonials */
.testimonials-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 1rem 0;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.site-footer ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Animation Classes */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Scroll Effects */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-header.hide-header {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Mobile Navigation */
.main-navigation.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1rem;
}

.main-navigation.active ul {
    flex-direction: column;
    gap: 1rem;
}

/* Newsletter Form Styles */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.success-message {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card {
    position: relative;
}

/* Testimonial Rating */
.testimonial-rating {
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.testimonial-rating i {
    margin-right: 0.25rem;
}

/* Back to Top Button Hover */
.back-to-top:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px 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 8px 25px rgba(0,0,0,0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Page Headers */
.page-header {
    background: var(--background-light);
    padding: 6rem 0 2rem;
    margin-top: 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.page-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--background-light);
    padding: 1rem 0;
    font-size: 0.875rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-card.featured {
        transform: scale(1.02);
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .services-grid,
    .pricing-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 4rem 0 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 6rem 0 3rem;
    }
    
    .services-section,
    .pricing-section,
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .service-card,
    .pricing-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .back-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 45px !important;
        height: 45px !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.pt-4 { padding-top: 4rem; }
.pb-4 { padding-bottom: 4rem; }

/* Cyberway Logo Specific Styles */
.cyberway-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
    margin-right: 10px;
}

.cyberway-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 2px;
    background: white;
    box-shadow: 
        0 -4px 0 white,
        0 4px 0 white,
        8px 0 0 white,
        8px -4px 0 white,
        8px 4px 0 white;
}

/* Tech-inspired accents */
.tech-accent {
    position: relative;
}

.tech-accent::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    bottom: -5px;
    left: 0;
}

/* Service cards with tech styling */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.service-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 188, 212, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    margin-bottom: 2.5rem;
}

.service-card .service-card-content {
    flex: 1 1 auto;
}

.service-card .btn {
    margin-top: auto;
}

/* Enhanced hover effects with Cyberway colors */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.pricing-card:hover {
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.15);
}

/* Services Grid - Index Page Specific Styles */
body.home .services-grid, body.page-id-1 .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

body.page-template-page-services .services-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
