/*
Theme Name: Creative Toolkit One Page
Theme URI: https://example.com/creative-toolkit
Author: Creative Toolkit
Author URI: https://example.com
Description: A modern, clean one-page WordPress theme with hero section, about, services, portfolio, testimonials, contact form, and footer. Fully customizable via the WordPress Customizer.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: creative-toolkit
Tags: one-column, custom-colors, custom-logo, featured-images, theme-options, translation-ready
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ct-primary: #d97706;
    --ct-primary-dark: #b45309;
    --ct-dark: #0f1117;
    --ct-dark-card: #1a1b23;
    --ct-dark-border: #2a2b35;
    --ct-text: #e8e2d6;
    --ct-text-muted: #8a8a9a;
    --ct-white: #ffffff;
    --ct-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ct-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ct-radius: 12px;
    --ct-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

body {
    font-family: var(--ct-font);
    background-color: var(--ct-dark);
    color: var(--ct-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--ct-primary-dark);
}

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--ct-white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1rem; }

/* ========== LAYOUT ========== */
.ct-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ct-section {
    padding: 5rem 0;
}

.ct-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ct-section-header h2 {
    margin-bottom: 0.75rem;
}

.ct-section-header p {
    color: var(--ct-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.ct-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ct-primary);
    margin-bottom: 0.5rem;
}

/* ========== BUTTONS ========== */
.ct-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--ct-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.ct-btn-primary {
    background: var(--ct-primary);
    color: var(--ct-dark);
}

.ct-btn-primary:hover {
    background: var(--ct-primary-dark);
    color: var(--ct-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
}

.ct-btn-outline {
    background: transparent;
    color: var(--ct-text);
    border: 2px solid var(--ct-dark-border);
}

.ct-btn-outline:hover {
    border-color: var(--ct-primary);
    color: var(--ct-primary);
}

/* ========== HEADER / NAV ========== */
.ct-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ct-dark-border);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

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

.ct-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ct-white);
}

.ct-logo span {
    color: var(--ct-primary);
}

.ct-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.ct-nav a {
    color: var(--ct-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ct-nav a:hover {
    color: var(--ct-white);
}

.ct-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ct-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== HERO ========== */
.ct-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.ct-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217,119,6,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ct-hero-content {
    max-width: 640px;
}

.ct-hero-content h1 {
    margin-bottom: 1.25rem;
}

.ct-hero-content h1 span {
    background: linear-gradient(135deg, var(--ct-primary), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ct-hero-content p {
    font-size: 1.15rem;
    color: var(--ct-text-muted);
    margin-bottom: 2rem;
}

.ct-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========== ABOUT ========== */
#about {
    background: var(--ct-dark-card);
}

.ct-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ct-about-image {
    border-radius: var(--ct-radius);
    overflow: hidden;
    border: 1px solid var(--ct-dark-border);
    aspect-ratio: 4/3;
    background: var(--ct-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ct-text-muted);
}

.ct-about-text h2 {
    margin-bottom: 1rem;
}

.ct-about-text p {
    color: var(--ct-text-muted);
}

.ct-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.ct-stat h3 {
    font-size: 2rem;
    color: var(--ct-primary);
}

.ct-stat p {
    font-size: 0.85rem;
    color: var(--ct-text-muted);
}

/* ========== SERVICES ========== */
.ct-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ct-service-card {
    background: var(--ct-dark-card);
    border: 1px solid var(--ct-dark-border);
    border-radius: var(--ct-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.ct-service-card:hover {
    transform: translateY(-4px);
    border-color: var(--ct-primary);
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.1);
}

.ct-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(217, 119, 6, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.ct-service-card h3 {
    margin-bottom: 0.5rem;
}

.ct-service-card p {
    color: var(--ct-text-muted);
    font-size: 0.9rem;
}

/* ========== PORTFOLIO ========== */
#portfolio {
    background: var(--ct-dark-card);
}

.ct-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ct-portfolio-item {
    border-radius: var(--ct-radius);
    overflow: hidden;
    border: 1px solid var(--ct-dark-border);
    aspect-ratio: 4/3;
    background: var(--ct-dark);
    position: relative;
    cursor: pointer;
}

.ct-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ct-portfolio-item:hover img {
    transform: scale(1.05);
}

.ct-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 17, 23, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ct-portfolio-item:hover .ct-portfolio-overlay {
    opacity: 1;
}

.ct-portfolio-overlay h3 {
    font-size: 1.1rem;
}

.ct-portfolio-overlay p {
    color: var(--ct-text-muted);
    font-size: 0.85rem;
}

/* ========== TESTIMONIALS ========== */
.ct-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ct-testimonial {
    background: var(--ct-dark-card);
    border: 1px solid var(--ct-dark-border);
    border-radius: var(--ct-radius);
    padding: 2rem;
}

.ct-testimonial-text {
    font-style: italic;
    color: var(--ct-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.ct-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ct-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ct-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ct-dark);
}

.ct-testimonial-name {
    font-weight: 600;
    color: var(--ct-white);
    font-size: 0.9rem;
}

.ct-testimonial-role {
    color: var(--ct-text-muted);
    font-size: 0.8rem;
}

/* ========== CONTACT ========== */
#contact {
    background: var(--ct-dark-card);
}

.ct-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.ct-contact-info h2 {
    margin-bottom: 1rem;
}

.ct-contact-info p {
    color: var(--ct-text-muted);
    margin-bottom: 2rem;
}

.ct-contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--ct-text-muted);
    font-size: 0.9rem;
}

.ct-contact-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(217, 119, 6, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ct-form input,
.ct-form textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--ct-dark);
    border: 1px solid var(--ct-dark-border);
    border-radius: var(--ct-radius);
    color: var(--ct-text);
    font-family: var(--ct-font);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.ct-form input:focus,
.ct-form textarea:focus {
    border-color: var(--ct-primary);
}

.ct-form textarea {
    resize: vertical;
    min-height: 120px;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ========== FOOTER ========== */
.ct-footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--ct-dark-border);
}

.ct-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.ct-footer-copy {
    color: var(--ct-text-muted);
    font-size: 0.85rem;
}

.ct-footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.ct-footer-links a {
    color: var(--ct-text-muted);
    font-size: 0.85rem;
}

.ct-footer-links a:hover {
    color: var(--ct-white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .ct-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 17, 23, 0.98);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--ct-dark-border);
    }

    .ct-nav.active {
        display: flex;
    }

    .ct-menu-toggle {
        display: block;
    }

    .ct-about-grid,
    .ct-contact-grid {
        grid-template-columns: 1fr;
    }

    .ct-services-grid,
    .ct-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .ct-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .ct-form-row {
        grid-template-columns: 1fr;
    }

    .ct-stats {
        flex-wrap: wrap;
    }

    .ct-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ct-services-grid,
    .ct-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
