/*
Theme Name: Trustworthiness Logistics
Theme URI: https://trustworthiness-logistics.com
Author: Trustworthiness Development Team
Author URI: https://trustworthiness-logistics.com
Description: A professional, modular WordPress theme for Trustworthiness International Logistics (Guangzhou) Co., Ltd. Features a bright orange color scheme, custom Gutenberg blocks for modular page building, custom post types for services, and full WordPress plugin compatibility. Designed for international freight forwarding companies. Version 1.2.0 fixes: setup now runs on theme update (not just switch), forces Block Editor for pages even when Classic Editor is active, adds Appearance > Theme Setup admin page for manual control.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trustworthiness
Tags: logistics, shipping, freight, business, corporate, custom-blocks, modular, orange, responsive, translation-ready, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* ===== Theme Color Variables (also used by Gutenberg editor) ===== */
:root {
    --color-primary: #FF6B00;
    --color-primary-dark: #E55A00;
    --color-primary-light: #FFF4ED;
    --color-primary-hover: #FF8500;
    --color-navy: #1A2332;
    --color-navy-light: #2D3A4F;
    --color-gray-900: #111827;
    --color-gray-700: #374151;
    --color-gray-600: #4B5563;
    --color-gray-500: #6B7280;
    --color-gray-400: #9CA3AF;
    --color-gray-300: #D1D5DB;
    --color-gray-200: #E5E7EB;
    --color-gray-100: #F3F4F6;
    --color-gray-50: #F9FAFB;
    --color-white: #FFFFFF;
    --color-success: #10B981;
    --color-danger: #EF4444;

    --font-heading: 'Poppins', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-orange: 0 8px 24px rgba(255,107,0,0.25);

    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* WordPress Core Alignment */
.alignfull { max-width: 100% !important; width: 100%; }
.alignwide { max-width: 1400px; }

/* Block Editor Styles */
.wp-block { max-width: 1200px; }

/* Entry Content */
.entry-content p { margin-bottom: 1.5em; }
.entry-content h2 { font-size: 2rem; margin: 1.5em 0 0.8em; }
.entry-content h3 { font-size: 1.5rem; margin: 1.2em 0 0.6em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5em 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { border-radius: var(--radius-md); margin-bottom: 1.5em; }
.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    margin: 0 0 1.5em;
    background: var(--color-primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

/* WordPress caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 0.85rem; color: var(--color-gray-500); padding: 8px; }

/* Sticky post */
.sticky { display: block; }

/* Gallery */
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }

/* Screen reader text */
.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;
}

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    background: var(--color-primary); color: #fff; padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* WordPress admin bar adjustment */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Pagination */
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--color-gray-200); border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; color: var(--color-gray-600);
    transition: var(--transition); text-decoration: none;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--color-primary); background: var(--color-primary); color: #fff;
}

/* Comments */
.comments-area { margin-top: 60px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { padding: 20px; border: 1px solid var(--color-gray-200); border-radius: var(--radius-md); margin-bottom: 16px; }
.comment .children { list-style: none; margin-left: 24px; padding-top: 16px; }
