/*
Theme Name: Custom Cable Factory
Theme URI: https://example.com/custom-cable-factory
Author: WorkBuddy
Author URI: https://www.codebuddy.cn
Description: A minimal and elegant WordPress theme designed for Custom Cable Factory, specializing in custom high performance cables for harsh conditions. Features a clean, industrial-modern design with responsive layout, custom page templates, and optimized performance.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccf
Tags: business, industrial, custom-cable, responsive, two-columns, custom-menu, featured-images, translation-ready
*/

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

:root {
    --color-primary: #1a3a5c;
    --color-primary-dark: #0f2a45;
    --color-primary-light: #2c5582;
    --color-accent: #e87722;
    --color-accent-dark: #d4641a;
    --color-text: #2c2c2c;
    --color-text-light: #5a6470;
    --color-text-muted: #8a949e;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-bg-dark: #0f2a45;
    --color-border: #e4e8ee;
    --color-success: #2a9d5f;
    --color-white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.06);
    --shadow-md: 0 6px 24px rgba(26, 58, 92, 0.1);
    --shadow-lg: 0 16px 48px rgba(26, 58, 92, 0.14);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1280px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-primary-dark);
    margin-bottom: 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
    margin-bottom: 1.2em;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-family: var(--font-heading);
}

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Section Spacing */
.section {
    padding: 100px 0;
}

.section-sm {
    padding: 64px 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-dark {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--color-white);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(232, 119, 34, 0.1);
    border-radius: 20px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* WordPress Core */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 100%; }

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

.sticky { display: block; }
.bypostauthor { display: block; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Entry Content */
.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    margin-top: 2em;
}

.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.entry-content ul li {
    list-style: disc;
    margin-bottom: 0.5em;
}

.entry-content ol li {
    list-style: decimal;
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: 24px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-text-light);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid var(--color-border);
    padding: 12px 16px;
    text-align: left;
}

.entry-content table th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

/* Page Header */
.page-header-banner {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(232, 119, 34, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-banner .container {
    position: relative;
    z-index: 1;
}

.page-header-banner h1 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.page-header-banner .breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-header-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.page-header-banner .breadcrumb a:hover {
    color: var(--color-accent);
}

.page-header-banner .breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* Main Content Area */
.site-main {
    min-height: 400px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .page-header-banner {
        padding: 80px 0 56px;
    }
}
