/*
Theme Name: SMB Kaolin
Description: Corporate theme for the Hassi Abyad Kaolin Project (SMB Mining). Designed to pair with the SMB Kaolin Offtake Suite plugin.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: SMB Mining
License: GPL-2.0-or-later
Text Domain: smb-kaolin-theme
*/
:root {
	--navy: #272C56; --navy-2: #1C2042; --navy-3: #151833; --gold: #FF741F; --orange-ink: #C2500A; --crimson: #7C0201; --blue: #404FAA; --gold-2: #FFB27A;
	--ink: #1b2330; --muted: #5f6b7a; --line: #E4E7EC; --soft: #F6F7F9; --white: #fff;
	--wrap: 1200px;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; color: var(--navy); }
h1 { font-family: var(--serif); font-weight: 400; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { inset-inline-start: 12px; top: 12px; width: auto; height: auto; clip: auto; overflow: visible; background: #fff; padding: 8px 12px; z-index: 1000; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark { width: 40px; height: auto; display: block; }
.brand__text strong { display: block; font-size: 1.02rem; letter-spacing: .06em; color: var(--blue); font-weight: 800; text-transform: uppercase; }
.brand__text span { display: block; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.brand img { max-height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: 8px 10px; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; border-radius: 6px; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--navy); background: var(--soft); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; }
@media (max-width: 1240px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 18px; }
	.nav.is-open { display: flex; }
	.nav ul { flex-direction: column; }
	.nav .btn { margin: 8px 0 0; text-align: center; }
	.admin-bar .site-header { top: 0; }
}

/* Buttons */
.btn { display: inline-block; white-space: nowrap; padding: 11px 20px; border-radius: 8px; background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .92rem; border: 1px solid var(--navy); transition: background .15s; }
.btn:hover { background: var(--navy-2); }
.btn--gold { background: var(--gold); border-color: var(--orange-ink); }
.btn--gold:hover { background: #E0600F; }
.btn--line { background: transparent; color: var(--navy) !important; }
.btn--line-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.5); }
.btn--line-light:hover { background: rgba(255,255,255,.08); }

/* Hero */
.hero { position: relative; padding-bottom: 130px !important; background: radial-gradient(1200px 500px at 85% 0%, rgba(255,116,31,.28), transparent 60%), linear-gradient(135deg, var(--navy-3), var(--navy) 70%); color: #fff; padding: 90px 0 80px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; mask-image: linear-gradient(90deg, transparent, #000); }
.hero .wrap { position: relative; z-index: 1; }
.hero__eyebrow { display: inline-block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); border: 1px solid rgba(255,178,122,.35); padding: 5px 12px; border-radius: 99px; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; margin: 0 0 18px; }
.hero h1 em { color: var(--gold-2); font-style: italic; }
.hero p { font-size: 1.12rem; color: #D3DBEA; max-width: 680px; margin: 0 0 30px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Facts */
.facts { background: var(--navy-3); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.fact { padding: 26px 18px; border-left: 1px solid rgba(255,255,255,.08); }
.fact:first-child { border-left: 0; }
.fact strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--gold-2); line-height: 1.1; }
.fact span { font-size: .8rem; color: #B7C2D6; }
@media (max-width: 900px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } .fact { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); } }

/* Sections */
.section { padding: 80px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--navy .section__head p { color: #C9D3E6; }
.kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); font-weight: 700; margin-bottom: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.tile h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.tile__num { font-family: var(--serif); font-size: 2.1rem; color: var(--navy); line-height: 1; margin-bottom: 10px; }
.tile__num small { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.product { position: relative; overflow: hidden; }
.product::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.product ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band p { color: #C9D3E6; max-width: 640px; margin: 0; }
.stats-band { margin-top: 36px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.stats-band .smbk-stats strong { font-family: var(--serif); font-weight: 400; color: var(--gold-2); font-size: 2.4rem; }
.stats-band .smbk-stats span { color: #C9D3E6; }
.stats-band .smbk-stats--locked a { color: var(--gold-2); }
.ticker-bar { background: var(--navy); }
.ticker-bar .smbk { margin: 0; border-radius: 0; }

/* Page */
.page-hero { background: linear-gradient(135deg, var(--navy-3), var(--navy)); color: #fff; padding: 56px 0 44px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin: 0; }
.page-hero p { color: #C9D3E6; margin: 10px 0 0; max-width: 720px; }
.page-body { padding: 48px 0 72px; }
.entry-content > * { max-width: 100%; }
.entry-content .smbk { margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--navy-3); color: #B7C2D6; padding: 56px 0 28px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .smbk-news--list .smbk-news__item a { color: #fff; border-color: rgba(255,255,255,.1); }
.site-footer .smbk-news__credit { display: none; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 18px; font-size: .78rem; color: #8E9AB0; }

/* Brand swoosh (echoes the SMB Mining banner) */
.swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; display: block; }
.hero__mark { position: absolute; right: 4%; top: 50%; transform: translateY(-58%); width: min(34vw, 380px); opacity: .9; z-index: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
@media (max-width: 900px) { .hero__mark { display: none; } }
.page-hero { position: relative; padding-bottom: 70px; }
.page-hero .swoosh { height: 44px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 60px; width: auto; display: block; }

.site-footer .widget { margin-bottom: 20px; }
.site-footer .widget h2, .site-footer .widget .wp-block-heading { font-family: var(--sans); color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
@media (max-width: 1240px) { .site-header .wrap { position: relative; } }

/* v2.0 — dedicated mobile menu (Appearance → Menus → "Mobile menu").
   Desktop always shows the Main menu. On phones/tablets the Mobile menu replaces it
   when one is assigned; otherwise the Main menu is used. */
.nav__menu--mobile { display: none; }
.nav__menu ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
@media (max-width: 1240px) {
	.has-mobile-menu .nav__menu--main { display: none; }
	.has-mobile-menu .nav__menu--mobile { display: block; }
	.nav__menu ul { flex-direction: column; }
	.nav__menu--mobile a { padding: 12px 10px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav__menu--mobile .sub-menu { padding-left: 16px; }
	.nav__menu--mobile .sub-menu a { font-size: .92rem; color: var(--muted); }
	.nav .btn { margin: 10px 0 0; }
}

/* v2.0 — top bar with language & currency switchers */
.topbar { background: var(--navy-3); color: #D3DBEA; font-size: .8rem; position: relative; z-index: 60; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.topbar__note { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .smbk-switchers { margin-inline-start: auto; }
.topbar .smbk-switch--lang summary, .topbar .smbk-switch--cur { border-color: rgba(255,255,255,.35); color: #fff; }
@media (max-width: 560px) { .topbar__note { display: none; } .topbar .smbk-switchers { margin: 0 auto; } }

/* v2.0 — right-to-left (Arabic) */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .fact strong, [dir="rtl"] .tile__num { font-family: inherit; }
[dir="rtl"] .fact { border-left: 0; border-right: 1px solid rgba(255,255,255,.08); }
[dir="rtl"] .fact:first-child { border-right: 0; }
[dir="rtl"] .product::before { left: auto; right: 0; }
[dir="rtl"] .product ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .hero__mark { right: auto; left: 4%; }
[dir="rtl"] .hero::after { mask-image: linear-gradient(270deg, transparent, #000); }
[dir="rtl"] .nav__menu--mobile .sub-menu { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .swoosh { transform: scaleX(-1); }
[dir="rtl"] .fact strong, [dir="rtl"] .tile__num, [dir="rtl"] .price-tile strong { unicode-bidi: plaintext; text-align: right; }
