/*
Theme Name: 3PL Club
Theme URI: https://3plclub.com
Author: International 3PL
Author URI: https://international3pl.com
Description: The official directory theme for the International 3PL ecosystem — freight forwarding, fulfillment, warehousing and supply chain websites, styled as a shipping manifest. SEO-optimized with JSON-LD schema (Organization, WebSite, ItemList, Service, FAQPage), inline SVG icons and keyword-indexed sections.
Version: 1.0.0
Requires at least: 6.0
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: 3plclub
Tags: one-column, custom-menu, sticky-post
*/

/* ================= TOKENS =================
   Palette — harbor & cargo:
   --ink      #101D2B  deep harbor navy
   --paper    #F2F5F1  cool port-fog white
   --steel    #2A3D50  container steel
   --safety   #F25C1F  safety orange (cargo markings)
   --sea      #157F7B  channel-marker teal
   --line     #C6D0CE  hairline
============================================ */
:root {
	--ink: #101d2b;
	--paper: #f2f5f1;
	--steel: #2a3d50;
	--safety: #f25c1f;
	--sea: #157f7b;
	--line: #c6d0ce;
	--white: #ffffff;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--body: "Inter", system-ui, -apple-system, sans-serif;
	--disp: "Archivo", "Inter", sans-serif;
	--notch: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--sea); }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--safety); color: var(--white);
	padding: 10px 16px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }

/* ================= HEADER ================= */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: var(--ink); color: var(--paper);
	border-bottom: 3px solid var(--safety);
}
.head-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--safety); }
.brand-text {
	font-family: var(--disp); font-weight: 900; font-size: 1.3rem;
	letter-spacing: 0.04em; font-stretch: 110%;
}
.brand-text em { font-style: normal; color: var(--safety); }
.head-nav { display: flex; gap: 22px; margin-left: auto; }
.head-nav a {
	color: var(--paper); text-decoration: none;
	font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase;
	letter-spacing: 0.08em; padding: 6px 0; border-bottom: 2px solid transparent;
}
.head-nav a:hover { border-bottom-color: var(--safety); }
.head-cta {
	font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
	color: var(--ink); background: var(--safety); text-decoration: none;
	padding: 9px 14px; clip-path: var(--notch); white-space: nowrap;
}
.head-cta:hover { background: var(--paper); }

/* ================= HERO ================= */
.hero {
	background:
		linear-gradient(180deg, rgba(16, 29, 43, 0) 55%, rgba(16, 29, 43, 0.05) 100%),
		repeating-linear-gradient(90deg, transparent 0 118px, rgba(16, 29, 43, 0.05) 118px 120px),
		var(--paper);
	padding: 72px 0 64px;
	border-bottom: 1px solid var(--line);
}
.eyebrow {
	font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
	color: var(--steel); text-transform: uppercase; margin: 0 0 18px;
	display: flex; align-items: center; gap: 10px;
}
.tick { width: 26px; height: 3px; background: var(--safety); display: inline-block; }
.hero h1 {
	font-family: var(--disp); font-weight: 900; font-stretch: 118%;
	font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 0.98;
	letter-spacing: -0.015em; text-transform: uppercase; margin: 0 0 22px;
}
.hero .hl { color: var(--safety); }
.hero-sub { max-width: 760px; font-size: 1.08rem; color: var(--steel); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
	font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
	padding: 13px 22px; clip-path: var(--notch); display: inline-block;
}
.btn-solid { background: var(--safety); color: var(--white); }
.btn-solid:hover { background: var(--ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line-light { color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.btn-line-light:hover { background: var(--paper); color: var(--ink); }

/* Departure board */
.board {
	margin-top: 44px; background: var(--ink); color: var(--paper);
	clip-path: var(--notch); overflow: hidden;
}
.board-row {
	display: grid; grid-template-columns: 90px 1fr auto 120px;
	align-items: center; gap: 16px; padding: 14px 20px;
	text-decoration: none; color: var(--paper);
	border-bottom: 1px dashed rgba(242, 245, 241, 0.25);
	font-family: var(--mono);
}
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: rgba(242, 92, 31, 0.14); }
.board-code { color: var(--safety); font-weight: 600; letter-spacing: 0.1em; }
.board-name { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; text-transform: uppercase; }
.board-count { font-size: 0.78rem; opacity: 0.75; }
.board-status { font-size: 0.72rem; letter-spacing: 0.18em; color: #7fd6c2; text-align: right; }

/* ================= DIRECTORY SECTIONS ================= */
.dir-section { padding: 72px 0; }
.dir-section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dir-head { display: grid; grid-template-columns: 76px 1fr; gap: 24px; margin-bottom: 36px; }
.dir-ico {
	width: 76px; height: 76px; color: var(--safety);
	background: var(--ink); clip-path: var(--notch);
	display: grid; place-items: center;
}
.dir-ico .ico { width: 40px; height: 40px; }
.dir-code {
	font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em;
	color: var(--safety); text-transform: uppercase; margin: 0 0 8px; font-weight: 600;
}
.dir-section h2, .faq h2, .why h2 {
	font-family: var(--disp); font-weight: 800; font-stretch: 112%;
	font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.12;
	margin: 0 0 12px; letter-spacing: -0.01em;
}
.dir-intro { max-width: 860px; color: var(--steel); margin: 0; }

.card-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}
.card {
	background: var(--white); border: 1px solid var(--line);
	clip-path: var(--notch); padding: 20px 22px 18px;
	display: flex; flex-direction: column; position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dir-section.alt .card { background: var(--paper); }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 29, 43, 0.12); }
.card-top {
	display: flex; justify-content: space-between;
	font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
	color: var(--steel); border-bottom: 1px dashed var(--line);
	padding-bottom: 10px; margin-bottom: 14px;
}
.card-top .card-code { color: var(--safety); font-weight: 600; }
.card-domain { margin: 0 0 2px; font-family: var(--mono); font-size: 1.05rem; word-break: break-all; }
.card-domain a { color: var(--ink); text-decoration: none; }
.card-domain a:hover { color: var(--safety); }
.card-name {
	margin: 0 0 10px; font-family: var(--disp); font-weight: 700;
	font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sea);
}
.card-desc { margin: 0 0 16px; font-size: 0.92rem; color: var(--steel); flex-grow: 1; }
.card-tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags li {
	font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.03em;
	background: var(--ink); color: var(--paper); padding: 4px 8px;
}
.card-go {
	font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.06em;
	color: var(--safety); text-decoration: none; align-self: flex-start;
}
.card-go:hover { color: var(--ink); }

/* Keyword index */
.kw-index { margin-top: 30px; border: 1px dashed var(--steel); clip-path: var(--notch); }
.kw-index summary {
	cursor: pointer; padding: 14px 20px;
	font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel);
	list-style: none;
}
.kw-index summary::-webkit-details-marker { display: none; }
.kw-index summary::before { content: "＋ "; color: var(--safety); }
.kw-index[open] summary::before { content: "－ "; }
.kw-list { list-style: none; margin: 0; padding: 0 20px 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.kw-list li {
	font-size: 0.8rem; background: var(--white); border: 1px solid var(--line);
	padding: 5px 10px; color: var(--steel);
}
.dir-section.alt .kw-list li { background: var(--paper); }

/* ================= WHY ================= */
.why { background: var(--ink); color: var(--paper); padding: 72px 0; }
.why .dir-code { color: var(--safety); }
.why p { color: #c8d3d1; max-width: 520px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li {
	padding: 16px 0 16px 20px; border-bottom: 1px dashed rgba(242, 245, 241, 0.25);
	position: relative; color: #c8d3d1;
}
.why-list li::before {
	content: ""; position: absolute; left: 0; top: 24px;
	width: 8px; height: 8px; background: var(--safety);
}
.why-list strong { color: var(--paper); font-family: var(--disp); text-transform: uppercase; letter-spacing: 0.04em; }

/* ================= FAQ ================= */
.faq { padding: 72px 0; }
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
	cursor: pointer; padding: 20px 36px 20px 0; position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "＋"; position: absolute; right: 4px; top: 18px;
	color: var(--safety); font-size: 1.2rem; font-weight: 700;
}
.faq-item[open] summary::after { content: "－"; }
.faq-item h3 {
	display: inline; margin: 0; font-family: var(--disp);
	font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
}
.faq-item p { margin: 0 0 22px; color: var(--steel); max-width: 780px; }

/* ================= CTA ================= */
.cta { background: var(--safety); color: var(--white); padding: 56px 0; }
.cta h2 {
	font-family: var(--disp); font-weight: 900; text-transform: uppercase;
	font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 8px;
}
.cta p { margin: 0; color: #ffe6da; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta .btn-solid { background: var(--ink); }
.cta .btn-solid:hover { background: var(--white); color: var(--ink); }

/* ================= FOOTER ================= */
.site-foot { background: var(--ink); color: #c8d3d1; padding: 64px 0 32px; }
.site-foot .brand-text { color: var(--paper); font-size: 1.4rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand p { font-size: 0.9rem; max-width: 340px; }
.foot-brand a, .foot-col a { color: #8fd0c4; text-decoration: none; }
.foot-brand a:hover, .foot-col a:hover { color: var(--safety); }
.foot-contact { font-family: var(--mono); font-size: 0.82rem; line-height: 1.9; }
.foot-h {
	font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--safety); margin: 6px 0 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; font-size: 0.85rem; word-break: break-all; }
.foot-legal {
	margin-top: 48px; padding-top: 20px;
	border-top: 1px dashed rgba(242, 245, 241, 0.25);
	font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
}

/* ================= POSTS FALLBACK ================= */
.post-wrap { padding: 64px 24px; }
.entry-title { font-family: var(--disp); font-weight: 800; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.why-grid { grid-template-columns: 1fr; }
	.head-nav { display: none; }
}
@media (max-width: 620px) {
	.board-row { grid-template-columns: 64px 1fr; }
	.board-count, .board-status { display: none; }
	.dir-head { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
	.hero { padding: 52px 0 44px; }
}
