/*
Theme Name: Custom Minimal Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A minimal custom WordPress theme built from scratch
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-minimal
Tags: minimal, custom, flexible
*/

/* === CSS Variables === */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #0891b2;
    --text-dark: #1e293b;
    --text-gray: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-accent: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* === Container === */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header === */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.site-branding {
    flex: 1;
}

.site-branding img,
.custom-logo-link img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

.site-title a {
    color: var(--text-dark);
}

.site-description {
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 2px;
}

.main-navigation {
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 48px;
    font-size: 18px;
}

/* === Hero Section === */
.hero-section {
    padding: 80px 0 100px;
    background: var(--gradient-hero);
    color: white;
    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 width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: #06b6d4;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 4px;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* === Section Styles === */
.services-section,
.process-section,
.testimonials-section {
    padding: 80px 0;
}

.services-section {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card > p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* === Process Timeline === */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-lg);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.6;
    text-align: center;
    font-size: 15px;
}

/* === Testimonials === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.testimonial-rating {
    color: #0891b2;
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.author-info span {
    color: var(--text-light);
    font-size: 14px;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-note {
    font-size: 14px;
    margin-top: 16px;
    opacity: 0.8;
}

/* === Blog Post Improvements === */
.site-main {
    padding: 60px 0;
    min-height: 60vh;
}

/* Single Post Layout */
.content-area article.post,
.content-area article.page {
    max-width: 800px;
    margin: 0 auto;
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* Entry Header */
.entry-header {
    margin-bottom: 32px;
    text-align: center;
}

.entry-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.entry-title a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    color: var(--text-light);
    font-size: 15px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.entry-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
}

.entry-meta span:first-child::before {
    display: none;
}

/* Entry Content */
.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.entry-content h2 {
    font-size: 32px;
}

.entry-content h3 {
    font-size: 26px;
}

.entry-content h4 {
    font-size: 22px;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content ul,
.entry-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.entry-content li {
    margin-bottom: 12px;
}

.entry-content a {
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.entry-content img {
    margin: 32px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.entry-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-gray);
}

.entry-content code {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.entry-content pre {
    background: var(--text-dark);
    color: #fff;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
}

.entry-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Entry Footer */
.entry-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.tags-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tags-links a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.tags-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Post Navigation */
.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.nav-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Archive & Blog Index */
.content-area .post {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
}

.content-area .post:last-child {
    border-bottom: none;
}

.read-more {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(4px);
}

/* Pagination */
.pagination {
    margin-top: 60px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.site-footer a {
    color: white;
    opacity: 0.8;
}

.site-footer a:hover {
    opacity: 1;
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-info p {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

    .site-branding img,
    .custom-logo-link img {
        max-height: 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-section,
    .process-section,
    .testimonials-section {
        padding: 60px 0;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 12px;
    }
    
    .site-header .site-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .entry-title {
        font-size: 28px;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }

    .hero-section {
        padding: 60px 0 80px;
    }

    .site-container {
        padding: 0 16px;
    }
}
