/*
Theme Name: DATAPACK World Trade
Theme URI: https://www.datapack.tech/
Author: CF-SOL Technologies
Description: Lightweight one-page theme for DATAPACK World Trade. No page builder required. Includes SEO basics (meta, Open Graph, schema, sitemap/robots) and security hardening.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: datapack
*/

:root {
	--navy: #1b3a93;
	--navy-dark: #0e1f52;
	--navy-deep: #0a1638;
	--red: #d7262e;
	--red-dark: #b51d24;
	--bg: #ffffff;
	--bg-soft: #f3f6fc;
	--text: #1a2236;
	--muted: #5a6479;
	--line: #dfe5f1;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(14, 31, 82, .08);
	--shadow-lg: 0 20px 50px rgba(14, 31, 82, .14);
	--container: 1200px;
	--header-h: 78px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-dark); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: var(--header-h); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #dfe6fa; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #c4cff0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section--navy .eyebrow { color: #ff8a8f; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: .2s ease; font-family: inherit; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,31,82,.08); border-color: var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-logo img { height: 54px; width: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--text); }
.main-nav a:hover, .main-nav a.is-active { color: var(--navy); background: var(--bg-soft); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--navy-dark); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.header-phone svg { width: 18px; height: 18px; color: var(--red); }
.header-cta .btn { padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-dark); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-deep) center right / cover no-repeat; min-height: min(88vh, 760px); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,56,.94) 0%, rgba(10,22,56,.82) 45%, rgba(10,22,56,.25) 100%); }
.hero .container { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero-sub { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; color: #ff8a8f; margin-bottom: 1.2em; }
.hero p { color: #d3dbf2; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-badges strong { display: block; font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero-badges span { font-size: .85rem; color: #b9c5ea; }

/* Transformation */
.arabic-title { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif; font-size: 1.6rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 8px; }
.regions li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.framework-title { text-align: center; margin: 10px 0 34px; font-size: 1.35rem; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; counter-reset: step; }
.step { grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.steps--five .step:nth-child(4) { grid-column: 2 / span 2; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num { position: absolute; top: 22px; right: 24px; font-size: 2.6rem; font-weight: 800; color: var(--bg-soft); line-height: 1; }
.step-icon { width: 62px; height: 62px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 18px; }
.step-icon img { width: 34px; height: 34px; }
.step p { color: var(--muted); font-size: .96rem; }
.step-result { margin-top: auto; padding: 12px 14px; border-left: 3px solid var(--red); background: #fdf3f3; border-radius: 0 8px 8px 0; font-size: .9rem; font-weight: 600; color: var(--navy-dark); }

.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 70px; }
.solutions-title { text-align: center; margin-top: 80px; }
.solution { background: #fff; border-radius: var(--radius); padding: 28px 24px; border-top: 4px solid var(--navy); box-shadow: var(--shadow); }
.solution img { width: 54px; height: 54px; margin-bottom: 16px; }
.solution h3 { font-size: 1.08rem; }
.solution li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--muted); font-size: .94rem; }
.solution li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Offer band */
.offer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 0; list-style: none; gap: 16px; counter-reset: offer; }
.offer-list li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 24px 20px; font-weight: 700; color: #fff; }
.offer-list li span { display: block; font-size: 1.9rem; font-weight: 800; color: #ff8a8f; margin-bottom: 8px; }
.offer-note { text-align: center; margin: 44px auto 0; max-width: 760px; font-size: 1.15rem; color: #dfe6fa; }
.offer-note strong { color: #fff; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); }
.about-stamp { position: absolute; right: -18px; bottom: 30px; background: var(--red); color: #fff; padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center; }
.about-stamp strong { display: block; font-size: 2rem; line-height: 1; }
.about-stamp span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.about-text p { color: var(--muted); font-size: 1.04rem; }
.usp-head { margin-top: 30px; }
.usp-head h3 { margin-bottom: 4px; }
.usp-head p { font-weight: 600; color: var(--red); margin-bottom: 16px; }
.usp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.usp li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .96rem; }
.usp svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--navy); margin-top: 2px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: .2s; }
.service:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service img { width: 64px; height: 64px; margin-bottom: 18px; filter: hue-rotate(225deg) saturate(1.6) brightness(1.25); }
.service p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Why */
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.why-item { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.why-item img { width: 56px; height: 56px; margin: 0 auto 18px; }
.why-item h3 { font-size: 1.05rem; }
.why-item p { margin: 0; font-size: .92rem; color: #c4cff0; }

/* Vision & Founder */
.vision-box { max-width: 900px; margin: 0 auto 80px; text-align: center; }
.vision-box blockquote { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 600; color: var(--navy-dark); line-height: 1.5; }
.vision-box blockquote strong { color: var(--red); }
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.founder-media img { max-width: 440px; margin: 0 auto; width: 100%; }
.founder-quote { position: relative; font-size: 1.12rem; color: var(--text); padding-left: 28px; border-left: 4px solid var(--red); }
.founder-quote::before { content: "\201C"; position: absolute; top: -50px; left: 10px; font-size: 7rem; color: var(--bg-soft); font-family: Georgia, serif; line-height: 1; z-index: -1; }
.founder-quote strong { color: var(--navy); }

/* Contact */
.contact { position: relative; background: var(--navy-deep) center / cover no-repeat; color: #dfe6fa; }
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(10,22,56,.92); }
.contact .container { position: relative; }
.contact h2, .contact h3 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-logo { background: #fff; display: inline-block; padding: 12px 18px; border-radius: 12px; margin-bottom: 26px; }
.contact-logo img { height: 70px; width: auto; }
.contact-intro { font-size: 1.06rem; color: #c4cff0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: #ff8a8f; margin-top: 3px; }
.contact-list .label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #93a2d0; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: #ff8a8f; }
.contact-tagline { margin-top: 26px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.form-card { background: #fff; color: var(--text); border-radius: 18px; padding: 38px 34px; box-shadow: var(--shadow-lg); }
.form-card h3 { color: var(--navy-dark); font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); }
.dp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.dp-form .full { grid-column: 1 / -1; }
.dp-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: var(--navy-dark); }
.dp-form input, .dp-form textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: var(--bg-soft); color: var(--text); transition: border-color .2s, background .2s; }
.dp-form input:focus, .dp-form textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.dp-form textarea { min-height: 130px; resize: vertical; }
.dp-form .btn { width: 100%; justify-content: center; }
.dp-hp { position: absolute !important; left: -9999px !important; }
.form-msg { padding: 12px 16px; border-radius: 10px; margin-top: 16px; font-weight: 600; }
.form-msg--ok { background: #e7f6ec; color: #17603a; }
.form-msg--err { background: #fdecec; color: #9b1c1c; }
.members { margin-top: 70px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.members h3 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: #93a2d0; margin-bottom: 22px; }
.members-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.members-row img { width: 130px; height: auto; border-radius: 14px; background: #fff; }

/* Footer */
.site-footer { background: #070f29; color: #93a2d0; padding: 44px 0 30px; font-size: .92rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #c4cff0; font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.footer-credit a { color: #fff; font-weight: 700; }
.footer-credit small { display: block; color: #6f7fae; }

/* Blog / generic pages */
.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 70px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.page-hero p { color: #c4cff0; margin: 10px 0 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.post-card h2 a { color: var(--navy-dark); }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: .95rem; }
.read-more { margin-top: auto; font-weight: 700; }
.entry { max-width: 780px; margin: 0 auto; font-size: 1.08rem; }
.entry h2 { font-size: 1.7rem; margin-top: 1.6em; }
.entry h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.4em; margin-bottom: 1em; list-style: revert; }
.entry img { border-radius: 10px; margin: 1.5em 0; }
.entry blockquote { border-left: 4px solid var(--red); margin: 1.5em 0; padding: .5em 1.2em; background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.entry-thumb { max-width: 980px; margin: -40px auto 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { padding: 8px 15px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Responsive */
@media (max-width: 1100px) {
	.header-phone { display: none; }
	.solutions { grid-template-columns: repeat(2, 1fr); }
	.why { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 16px 16px; gap: 2px; }
	.main-nav a { padding: 12px 14px; }
	.header-cta .btn { display: none; }
	.steps { grid-template-columns: 1fr 1fr; }
	.step, .steps--five .step:nth-child(4) { grid-column: auto; }
	.step:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.about-grid, .founder, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
	.about-media { max-width: 440px; margin: 0 auto; }
	.services, .posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	:root { --header-h: 68px; }
	.site-logo img { height: 46px; }
	.hero { min-height: auto; background-position: 70% center; }
	.hero::before { background: rgba(10,22,56,.86); }
	.steps, .solutions, .services, .posts-grid, .usp, .dp-form { grid-template-columns: 1fr; }
	.step:last-child:nth-child(odd) { grid-column: auto; }
	.offer-list { grid-template-columns: 1fr 1fr; }
	.why { grid-template-columns: 1fr 1fr; }
	.about-stamp { right: 10px; }
	.form-card { padding: 28px 20px; }
	.footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
