/**
 * Theme Name: Cademix Renovate
 * Description: Professional client-safe WordPress theme for Cademix Renovate service. Focuses on renovation planning, CAD/3D/BIM/digital-twin capabilities.
 * Author: Cademix Engineering
 * Version: 1.1.0
 * Text Domain: cademix-renovate
 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #003d80;
    text-decoration: underline;
}

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

/* Header & Navigation */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title a {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.2;
}

.site-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #0056b3;
    text-decoration: none;
}

.cta-button {
    background-color: #0056b3;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #003d80;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#0056b3 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: #1a1a1a;
    line-height: 1.15;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1a1a1a;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #0056b3;
    margin: 16px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0056b3;
    width: 60px;
    height: 60px;
    background-color: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.service-description {
    color: #666;
    margin-bottom: 0;
    flex-grow: 1;
}

/* How It Works */
.process-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 220px;
    text-align: center;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease;
}

.step:hover {
    transform: translateY(-3px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #0056b3;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    color: #ccc;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background-color: #444;
    margin: 0 auto 20px;
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

/* Knowledge Section Styles */
.knowledge-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.knowledge-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

.knowledge-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.knowledge-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: #003d80;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 12px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .process-steps {
        flex-direction: column;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}