/*
Theme Name:  FreightPro
Theme URI:   https://yoursite.com
Author:      Your Logistics Company
Author URI:  https://yoursite.com
Description: Lightweight B2B freight & logistics WordPress theme. Integrates with Logistics Price Manager, Query Engine, Route Importer, and SEO Pages plugins.
Version:     1.2.0
Requires at least: 5.8
Tested up to: 6.7
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: freightpro
Tags:        logistics, freight, b2b, responsive, custom-logo, custom-menu
*/

/* ════════ DESIGN TOKENS ════════ */
:root {
  --fp-blue:    #1e40af; --fp-blue-dk: #1e3a8a; --fp-blue-lt: #3b82f6;
  --fp-blue-xlt:#eff6ff; --fp-black:   #0f172a; --fp-dark:    #1e293b;
  --fp-mid:     #334155; --fp-grey:    #64748b;  --fp-light:   #f1f5f9;
  --fp-lighter: #f8fafc; --fp-white:   #ffffff;  --fp-border:  #e2e8f0;
  --fp-border-dk:#cbd5e1;--fp-green:   #16a34a;
  --fp-font:    'Inter', system-ui, -apple-system, sans-serif;
  --fp-radius:  8px; --fp-radius-lg: 14px;
  --fp-shadow:  0 1px 8px rgba(0,0,0,.08), 0 4px 20px rgba(0,0,0,.06);
  --fp-shadow-lg:0 4px 24px rgba(0,0,0,.12), 0 12px 48px rgba(0,0,0,.08);
  --fp-t:       .2s ease; --fp-nav-h: 68px; --fp-container: 1200px;
}

/* ════════ RESET ════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--fp-font); font-size: 16px; line-height: 1.7; color: var(--fp-dark); background: var(--fp-white); -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--fp-blue); text-decoration: none; transition: color var(--fp-t); }
a:hover { color: var(--fp-blue-lt); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ════════ LAYOUT ════════ */
.fp-container { max-width: var(--fp-container); margin: 0 auto; padding: 0 24px; }
.fp-section    { padding: clamp(48px,7vw,96px) 0; }
.fp-section-sm { padding: clamp(28px,4vw,48px) 0; }

/* ════════ TYPOGRAPHY ════════ */
h1,h2,h3,h4,h5,h6 { font-weight: 800; line-height: 1.2; color: var(--fp-black); letter-spacing: -.02em; }
h1 { font-size: clamp(28px,5.5vw,52px); }
h2 { font-size: clamp(22px,4vw,38px); }
h3 { font-size: clamp(18px,3vw,26px); }
h4 { font-size: clamp(16px,2.5vw,20px); }
p  { margin-bottom: 1rem; color: var(--fp-grey); }
p:last-child { margin-bottom: 0; }
.fp-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fp-blue); margin-bottom: 12px; }
.fp-eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--fp-blue); }

/* ════════ BUTTONS ════════ */
.fp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--fp-radius); font-weight: 700; font-size: 15px; cursor: pointer; border: 2px solid transparent; transition: all var(--fp-t); white-space: nowrap; text-decoration: none; }
.fp-btn-primary { background: var(--fp-blue); color: var(--fp-white); border-color: var(--fp-blue); }
.fp-btn-primary:hover { background: var(--fp-blue-dk); border-color: var(--fp-blue-dk); color: #fff; }
.fp-btn-outline { background: transparent; color: var(--fp-blue); border-color: var(--fp-blue); }
.fp-btn-outline:hover { background: var(--fp-blue); color: #fff; }
.fp-btn-white { background: #fff; color: var(--fp-blue); border-color: #fff; }
.fp-btn-white:hover { background: var(--fp-blue-xlt); }
.fp-btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--fp-radius-lg); }
.fp-btn-sm { padding: 8px 18px; font-size: 13px; }

/* ════════ CARDS ════════ */
.fp-card { background: var(--fp-white); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-lg); box-shadow: var(--fp-shadow); transition: box-shadow var(--fp-t), transform var(--fp-t), border-color var(--fp-t); }
.fp-card:hover { box-shadow: var(--fp-shadow-lg); transform: translateY(-3px); border-color: var(--fp-blue-lt); }

/* ════════ BADGES ════════ */
.fp-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fp-badge-blue  { background: var(--fp-blue-xlt); color: var(--fp-blue); }
.fp-badge-green { background: #dcfce7; color: #15803d; }
.fp-badge-dark  { background: var(--fp-dark); color: #fff; }

/* ════════ SECTION HEADER ════════ */
.fp-section-header { text-align: center; max-width: 640px; margin: 0 auto clamp(32px,5vw,64px); }
.fp-section-header p { font-size: 17px; }

/* ════════ SIDEBAR LAYOUT ════════ */
.fp-sidebar-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.fp-sidebar { position: sticky; top: calc(var(--fp-nav-h) + 20px); }
.fp-sidebar-widget { background: var(--fp-white); border: 1px solid var(--fp-border); border-radius: var(--fp-radius-lg); padding: 22px; margin-bottom: 20px; }
.fp-sidebar-widget-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fp-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--fp-border); }
.fp-sidebar-menu { display: flex; flex-direction: column; gap: 4px; }
.fp-sidebar-menu a { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--fp-radius); font-size: 14px; color: var(--fp-mid); font-weight: 500; transition: all var(--fp-t); border-left: 3px solid transparent; }
.fp-sidebar-menu a:hover, .fp-sidebar-menu a.active { background: var(--fp-blue-xlt); color: var(--fp-blue); border-left-color: var(--fp-blue); }
.fp-sidebar-menu .count { background: var(--fp-light); color: var(--fp-grey); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.fp-sidebar-menu a.active .count { background: var(--fp-blue); color: #fff; }

/* ════════ PAGINATION ════════ */
.fp-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.fp-pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--fp-radius); font-size: 14px; font-weight: 600; border: 1px solid var(--fp-border); background: #fff; color: var(--fp-mid); transition: all var(--fp-t); text-decoration: none; }
.fp-pagination .page-numbers:hover { background: var(--fp-blue); color: #fff; border-color: var(--fp-blue); }
.fp-pagination .page-numbers.current { background: var(--fp-blue); color: #fff; border-color: var(--fp-blue); }
.fp-pagination .page-numbers.dots { border: none; background: none; cursor: default; }

/* ════════ GRID UTILITIES ════════ */
.fp-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.fp-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.fp-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

/* ════════ CTA BOX ════════ */
.fp-cta-box { background: linear-gradient(135deg,var(--fp-blue-dk),var(--fp-blue)); border-radius: var(--fp-radius-lg); padding: clamp(32px,5vw,56px); text-align: center; color: #fff; position: relative; overflow: hidden; }
.fp-cta-box h2 { color: #fff; margin-bottom: 12px; }
.fp-cta-box p  { color: rgba(255,255,255,.82); font-size: 17px; margin-bottom: 24px; }
.fp-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ════════ BREADCRUMB ════════ */
.fp-breadcrumb { margin-bottom: 16px; }
.fp-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--fp-grey); }
.fp-breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--fp-border-dk); }
.fp-breadcrumb a { color: var(--fp-blue); }

/* ════════ CHECK LIST ════════ */
.fp-check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.fp-check-list li { font-size: 15px; color: var(--fp-mid); }

/* ════════ NO RESULTS ════════ */
.fp-no-results { text-align: center; padding: clamp(40px,8vw,80px) 0; }
.fp-no-results h2 { margin-bottom: 12px; }

/* ════════ WP CORE ════════ */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.wp-caption { max-width: 100%; }
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; display: block; }

/* ════════ RESPONSIVE ════════ */
@media (max-width:1024px) { .fp-sidebar-layout { grid-template-columns: 220px 1fr; gap: 24px; } .fp-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width:768px)  { .fp-sidebar-layout { grid-template-columns: 1fr; } .fp-sidebar { position: static; } .fp-grid-4,.fp-grid-3 { grid-template-columns: repeat(2,1fr); gap: 16px; } .fp-grid-2 { grid-template-columns: 1fr; } .fp-cta-actions { flex-direction: column; align-items: center; } }
@media (max-width:480px)  { .fp-grid-4,.fp-grid-3,.fp-grid-2 { grid-template-columns: 1fr; } .fp-container { padding: 0 16px; } }
