/*
Theme Name: Cross Dock Miami
Theme URI: https://crossdockmiami.ai
Author: crossdock.miami
Author URI: https://crossdock.miami
Description: Landing-page theme for Cross Dock Miami — Miami cross dock, transload, restack and weight-relief services. Inline SVG graphics, JSON-driven content (data/content.json), LocalBusiness/Service/FAQPage JSON-LD schema, FAQ accordion and floating WhatsApp button.
Version: 1.0.0
Requires at least: 6.0
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: crossdock-miami
Tags: one-column, custom-logo, custom-menu, featured-images, business
*/

:root {
	--ink: #0A2E36;      /* deep ocean */
	--ink-2: #14505C;
	--teal: #2EC4B6;     /* Biscayne teal */
	--teal-dk: #1E9C91;
	--coral: #FF6B35;    /* sunset coral */
	--coral-dk: #E4521C;
	--sand: #F7F3EC;
	--sand-2: #EFE8DC;
	--text: #1D2B30;
	--muted: #5A6B70;
	--wa: #25D366;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(10, 46, 54, .10);
	--font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-dk); }
a:hover { color: var(--coral-dk); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 92vw); margin: 0 auto; }
.narrow { width: min(780px, 92vw); }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 1.15em; height: 1.15em; flex: none; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-accent { background: var(--coral); color: #fff; }
.btn-accent:hover { background: var(--coral-dk); color: #fff; }
.btn-wa { background: var(--wa); color: #08321a; }
.btn-wa:hover { background: #1ebe5b; color: #08321a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
.cta-row.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-2); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.1rem; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.primary-nav a:hover { color: var(--coral-dk); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: .4em; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--coral-dk); margin-bottom: .6em; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 34em; }
.hero-meta { margin-top: 1.2em; font-size: .92rem; color: var(--muted); }
.hero-art svg { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat-strip div { background: #fff; border: 1px solid var(--sand-2); border-radius: var(--radius); padding: 18px 20px; border-top: 4px solid var(--teal); }
.stat-strip strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); }
.stat-strip span { color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 84px 0; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.problem { background: var(--ink); color: #DCEAEC; }
.problem h2 { color: #fff; }
.problem .kicker { color: var(--teal); }
.problem .btn-dark { background: var(--coral); }
.problem .btn-dark:hover { background: var(--coral-dk); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--sand-2); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 0 rgba(10,46,54,.03); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon { display: inline-flex; width: 56px; height: 56px; padding: 11px; border-radius: 14px; background: rgba(46,196,182,.14); color: var(--teal-dk); margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }

.process { background: var(--sand); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px; position: relative; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; font-family: var(--font-head); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--sand); border-radius: 12px; padding: 14px 16px; }
.checklist .ico { width: 22px; height: 22px; color: var(--teal-dk); flex: none; margin-top: 2px; }

.location { background: linear-gradient(135deg, var(--teal) 0%, var(--ink-2) 100%); color: #EAF7F6; }
.location h2 { color: #fff; }
.location .kicker { color: #FFE3CF; }
.pill-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill-list li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }

.faq-list { margin-top: 28px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--sand-2); border-radius: 12px; background: #fff; padding: 0 20px; }
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--coral); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.final-cta { background: var(--coral); color: #fff; padding: 72px 0; }
.final-cta h2 { color: #fff; }
.final-cta .btn-accent { background: var(--ink); }
.final-cta .btn-accent:hover { background: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: #B9D0D3; padding: 64px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: #E6F3F4; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.brand-light, .brand-light .brand-text small { color: #fff; }
.brand-light .brand-text small { opacity: .7; }
.footer-note { margin-top: 14px; }
.operated { font-weight: 600; color: #fff; }
.operated a { color: var(--teal); }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.plain .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 20px 0 96px; font-size: .85rem; }

/* WhatsApp floating button */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; background: #1ebe5b; transform: scale(1.04); }

/* Blog / pages */
.content-area { padding: 60px 0; max-width: 820px; }
.entry { margin-bottom: 48px; }
.entry-meta { color: var(--muted); font-size: .9rem; }
.inline-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--sand); padding: 20px 24px; border-radius: var(--radius); }

/* Responsive */
@media (max-width: 980px) {
	.hero-grid, .prep-grid { grid-template-columns: 1fr; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.steps, .stat-strip { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.primary-nav { display: none; }
	.header-inner .btn { margin-left: auto; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.card-grid, .steps, .stat-strip, .footer-grid { grid-template-columns: 1fr; }
	.section { padding: 60px 0; }
	.header-inner .btn span { display: none; }
	.wa-float span { display: none; }
	.wa-float { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
