/*
Theme Name: ADNOK Capital
Theme URI: https://www.adnokcapital.com
Author: ADNOK Capital
Description: Bilingual (English default, Arabic RTL under /ar/) block theme for ADNOK Capital — industrial oils, fuel oil and raw materials. Every section is a native WordPress block, editable from the page editor and the Site Editor.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
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: adnok-capital
Tags: full-site-editing, block-patterns, rtl-language-support, translation-ready, business
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p, li { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
img { max-width: 100%; }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--wp--preset--color--amber); outline-offset: 3px; }
[id] { scroll-margin-top: 110px; }

/* Sections sit flush against each other */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.editor-styles-wrapper .wp-block-post-content > *,
.editor-styles-wrapper .is-root-container > .alignfull { margin-block-start: 0 !important; }

.adnok-maxw-18 { max-width: 18ch; }
.adnok-maxw-30 { max-width: 34ch; }
.adnok-maxw-40 { max-width: 62ch; }
.adnok-lead { max-width: 54ch; }
.adnok-section-head > * { margin: 0; }
/* Narrow text blocks inside full-width sections align with the content column, not the centre */
.is-layout-constrained > :is(.adnok-maxw-18, .adnok-maxw-30, .adnok-maxw-40, .adnok-lead, .adnok-eyebrow) {
	margin-inline-start: calc((100% - min(100%, var(--wp--style--global--content-size))) / 2) !important;
	margin-inline-end: auto !important;
}
.adnok-section-head .adnok-lead { max-width: 46ch; }

/* ---------- Icons & small images ---------- */
.wp-block-image.adnok-icon { margin: 0; flex-shrink: 0; }
.wp-block-image.adnok-icon img { display: block; }
.wp-block-image.adnok-contain { margin: 0; width: 100%; }
.wp-block-image.adnok-contain img { width: 100%; }
.adnok-multiply img { mix-blend-mode: multiply; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1.5px solid currentColor;
	padding: 13px 28px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); }
.wp-block-button.is-style-outline > .wp-block-button__link.has-navy-color:hover {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white) !important;
}
.adnok-hero .is-style-outline > .wp-block-button__link { border-color: #3A5170; }
.wp-block-button__link.has-navy-background-color:hover { background: var(--wp--preset--color--deep) !important; color: #fff !important; }

.adnok-textlink { margin: 0; }
.adnok-textlink a {
	display: inline-flex; align-items: center; min-height: 44px;
	font-weight: 600; text-decoration: none;
	color: var(--wp--preset--color--deep);
	border-bottom: 1px solid currentColor;
	line-height: 1.4;
}
.adnok-textlink.is-on-dark a { color: var(--wp--preset--color--amber-light); }
.adnok-textlink a:hover { color: var(--wp--preset--color--brand); }
.adnok-textlink.is-on-dark a:hover { color: #fff; }

/* ---------- Header ---------- */
.adnok-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
.adnok-header .wp-block-image { margin: 0; }
.adnok-header .adnok-logo img { display: block; }
.adnok-brand-name { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.2; }
.adnok-brand-name a { color: inherit; text-decoration: none; }
.adnok-brand-tag { margin: 0; font-size: 12.5px; line-height: 1.35; }
.adnok-header-actions > * { margin: 0; }
.adnok-nav .wp-block-navigation-item__content {
	display: inline-flex; align-items: center; min-height: 44px;
	color: var(--wp--preset--color--muted); text-decoration: none;
	border-bottom: 2px solid transparent;
}
.adnok-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--navy); }
.adnok-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--navy); font-weight: 600;
	border-bottom-color: var(--wp--preset--color--amber);
}
.adnok-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 48px; gap: 8px; font-size: 22px;
}
.adnok-lang {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
	color: var(--wp--preset--color--muted); text-decoration: none;
	font-weight: 600; font-size: 14px; white-space: nowrap;
}
.adnok-lang:hover { color: var(--wp--preset--color--navy); }
.adnok-lang[lang="ar"] { font-family: var(--wp--preset--font-family--body); font-size: 15px; }
.adnok-header-cta .wp-block-button__link { padding: 10px 20px; font-size: 15px; }

@media (max-width: 781px) {
	.adnok-brand-tag { display: none; }
	.adnok-header .adnok-header-cta { display: none !important; }
	.adnok-header .adnok-logo img { max-width: 150px; }
	.adnok-header-row { flex-wrap: nowrap !important; gap: 8px !important; }
	.adnok-header-row > .adnok-brand, .adnok-header-row > .adnok-logo { flex: 1 1 auto; min-width: 0; }
	.adnok-header-row > .adnok-nav { order: 3; }
	.adnok-header-row > .adnok-header-actions { order: 2; }
	.adnok-lang { padding: 0 6px; }
}

/* ---------- Watermark & framed photos ---------- */
.has-watermark { position: relative; overflow: hidden; }
.has-watermark > * { position: relative; z-index: 1; }
.has-watermark > .wp-block-image.adnok-watermark {
	position: absolute !important; z-index: 0; margin: 0 !important; max-width: none !important;
	inset-block-start: -60px; inset-inline-start: -120px;
	width: 760px; opacity: .05; pointer-events: none;
}
.adnok-watermark img { width: 100%; height: auto; display: block; }
.adnok-pagehero > .wp-block-image.adnok-watermark {
	inset-block-start: auto; inset-block-end: -120px;
	inset-inline-start: auto; inset-inline-end: -80px; width: 520px;
}
.has-watermark > .wp-block-image.adnok-watermark.is-small {
	inset-block-start: 50%; transform: translateY(-50%);
	inset-inline-start: auto; inset-inline-end: 4%; width: 360px; opacity: .06;
}

.wp-block-image.adnok-framed { position: relative; margin: 0 auto; max-width: 480px; }
.wp-block-image.adnok-framed::before {
	content: ""; position: absolute; z-index: 0; border-radius: 2px;
	inset-block-start: 40px; inset-block-end: -24px;
	inset-inline-start: -24px; inset-inline-end: 40px;
	border: 1px solid var(--wp--preset--color--amber);
}
.wp-block-image.adnok-framed img { position: relative; z-index: 1; width: 100%; border-radius: 2px; filter: saturate(.85); }
.wp-block-image.adnok-framed.is-solid { max-width: 500px; }
.wp-block-image.adnok-framed.is-solid::before {
	border: 0; background: var(--wp--preset--color--navy);
	inset-block-start: 36px; inset-block-end: -20px;
	inset-inline-start: -20px; inset-inline-end: 36px;
}
.adnok-hero h1 { margin-block: 0; }
.adnok-eyebrow, .adnok-eyebrow-row p { margin: 0; font-weight: 500; }

/* ---------- Proof strip / dividers ---------- */
.adnok-proof p { margin: 0; }
.adnok-divided > .wp-block-column + .wp-block-column { border-inline-start: 1px solid #2A4268; padding-inline-start: 24px; }
.adnok-divided > .wp-block-column:not(:last-child) { padding-inline-end: 24px; }
@media (max-width: 781px) {
	.adnok-divided > .wp-block-column + .wp-block-column { border-inline-start: 0; border-block-start: 1px solid #2A4268; padding-inline-start: 0; }
}

/* ---------- Panels (two supply lines) ---------- */
.adnok-lines .wp-block-column { display: flex; flex-direction: column; }
.adnok-panel { flex: 1; display: flex; flex-direction: column; }
.adnok-panel > :last-child { flex: 1; display: flex; flex-direction: column; }
.adnok-panel > :last-child > .adnok-textlink { margin-top: auto; }
.adnok-panel h3 { margin: 0; }
.adnok-mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.adnok-mat-grid p { margin: 0; }

/* ---------- Lists ---------- */
.adnok-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.adnok-checks li { position: relative; padding-inline-start: 32px; }
.adnok-checks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: .42em; width: 20px; height: 20px;
	background: var(--wp--preset--color--amber);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.adnok-checks.is-dark li::before { background: var(--wp--preset--color--amber-dark); }
.adnok-checks.is-ruled { gap: 0; border-top: 1px solid #E8ECF2; }
.adnok-checks.is-ruled li { padding-block: 16px; border-bottom: 1px solid #E8ECF2; }
.adnok-checks.is-ruled li::before { top: calc(16px + .42em); }

.adnok-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.adnok-chips li { padding: 4px 14px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; font-size: 15px; }
.adnok-also p { margin: 0; }

/* ---------- Quality stages (home) ---------- */
.adnok-stage { border-top: 2px solid var(--wp--preset--color--navy); }
.adnok-stage.is-last { border-top-color: var(--wp--preset--color--amber); }
.adnok-stage > * { margin: 0; }
.adnok-callout > * { margin: 0; }

/* ---------- Origins ---------- */
.adnok-origin-grid { border-top: 1px solid var(--wp--preset--color--line); }
.adnok-origin { border-bottom: 1px solid var(--wp--preset--color--line); padding-inline-end: 28px; }
.adnok-origin > * { margin: 0; }
.adnok-pin { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.adnok-pin::before {
	content: ""; width: 22px; height: 22px; flex-shrink: 0; margin-top: .32em; background: var(--wp--preset--color--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-12a7 7 0 0 0-14 0c0 6 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-12a7 7 0 0 0-14 0c0 6 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Why us ---------- */
.adnok-why-grid { border-top: 1px solid #22385A; }
.adnok-why-item { padding-inline-end: 32px; }
.adnok-why-item > * { margin: 0; }

/* ---------- Clients ---------- */
.adnok-client-wall {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	border-block: 1px solid var(--wp--preset--color--line);
}
.adnok-client-wall li {
	padding: 40px 24px; font-family: var(--wp--preset--font-family--display);
	font-weight: 500; font-size: 22px; line-height: 1.5; color: var(--wp--preset--color--deep);
}
.adnok-client-wall li:first-child { padding-inline-start: 0; }
.adnok-client-wall li + li { border-inline-start: 1px solid var(--wp--preset--color--line); }
@media (max-width: 781px) {
	.adnok-client-wall li { padding: 24px 0; }
	.adnok-client-wall li + li { border-inline-start: 0; border-block-start: 1px solid var(--wp--preset--color--line); }
}
.adnok-topline { border-top: 3px solid var(--wp--preset--color--navy); padding-top: 28px; }
.adnok-topline.is-amber { border-top-color: var(--wp--preset--color--amber); }
.adnok-topline h3 { margin: 0; }
.adnok-client-list { list-style: none; margin: 20px 0 0; padding: 0; }
.adnok-client-list li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid #E0E6EE; font-size: 18px; }
.adnok-client-list li::before {
	content: ""; width: 22px; height: 22px; flex-shrink: 0; background: var(--wp--preset--color--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V10l6 4v-4l6 4V4h6v17z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21V10l6 4v-4l6 4V4h6v17z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.adnok-client-list.is-pending li::before { background: var(--wp--preset--color--amber-dark); }

/* ---------- CTA ---------- */
.adnok-cta h2, .adnok-cta p { margin: 0; }

/* ---------- Page heroes ---------- */
.adnok-pagehero > * { margin-block: 0; }
.adnok-pagehero-tabs { padding-bottom: 0 !important; }
.adnok-subnav {
	list-style: none; padding: 0; margin: 40px 0 0 !important;
	display: flex; flex-wrap: wrap; border-top: 1px solid #22385A;
}
.adnok-subnav li a {
	display: inline-flex; align-items: center; min-height: 64px; padding: 0 28px;
	color: var(--wp--preset--color--mist); text-decoration: none; font-weight: 500;
	border-bottom: 3px solid transparent;
}
.adnok-subnav li:first-child a { padding-inline-start: 0; }
.adnok-subnav li a:hover, .adnok-subnav li a:focus-visible { color: #fff; border-bottom-color: var(--wp--preset--color--amber); }

/* ---------- Products ---------- */
.adnok-spec > * { margin: 0; }
.adnok-spec-value { margin: 0; font-size: clamp(30px, 3vw, 40px); font-weight: 600; line-height: 1.2; direction: ltr; unicode-bidi: isolate; }
.adnok-acc { border-top: 1px solid #E0E6EE; }
.adnok-acc h3, .adnok-acc p { margin: 0; }
.adnok-mat-cards h3, .adnok-mat-cards p { margin: 0; }

/* ---------- Quality page ---------- */
.adnok-step { border-top: 1px solid var(--wp--preset--color--line); align-items: center; }
.adnok-step:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.adnok-step > *, .adnok-step h3 { margin: 0; }
.adnok-step-num { margin: 0; font-size: 56px; font-weight: 700; line-height: 1; }
.adnok-penalty .wp-block-group p, .adnok-penalty h2 { margin: 0; }
@media (max-width: 781px) { .adnok-penalty .is-nowrap { flex-wrap: wrap; } .adnok-penalty .adnok-icon img { width: 48px !important; } }

/* ---------- About ---------- */
.adnok-quote { border: 0 !important; padding: 0 !important; margin: 0; }
.adnok-quote p {
	font-family: var(--wp--preset--font-family--display); font-weight: 500;
	font-size: clamp(26px, 3vw, 42px); line-height: 1.6; text-wrap: balance; margin: 0;
}
.adnok-quote cite {
	display: flex; align-items: center; gap: 18px; margin-top: 36px;
	font-style: normal; font-size: 16px; color: var(--wp--preset--color--mist);
}
.adnok-quote cite::before { content: ""; width: 48px; height: 2px; background: var(--wp--preset--color--amber); flex-shrink: 0; }

/* ---------- Contact ---------- */
.adnok-contact-hero { padding-bottom: 168px !important; }
.adnok-contact-cols { margin-top: -112px !important; position: relative; z-index: 2; margin-bottom: 0; }
.adnok-form-card { box-shadow: 0 24px 48px -28px rgba(12, 26, 46, .35); }
.adnok-form-card h2 { margin: 0; }
.adnok-contact p { margin: 0; }
.adnok-contact .has-deep-background-color a { color: #fff; text-decoration: none; }
.adnok-contact .has-deep-background-color a:hover { text-decoration: underline; }
.adnok-wa-link a { color: var(--wp--preset--color--navy); text-decoration: none; }
.adnok-wa-link a::after { content: ""; display: inline-block; width: .5em; }

.adnok-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px 20px; position: relative; }
.adnok-field { display: flex; flex-direction: column; gap: 8px; }
.adnok-field.is-full { grid-column: 1 / -1; }
.adnok-field label { font-size: 15px; font-weight: 600; }
.adnok-form input, .adnok-form select, .adnok-form textarea {
	width: 100%; min-height: 50px; padding: 0 14px;
	border: 1px solid #C9D2DE; border-radius: 4px;
	font: inherit; font-size: 16px; background: #fff; color: var(--wp--preset--color--navy);
}
.adnok-form textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.adnok-form input:focus, .adnok-form select:focus, .adnok-form textarea:focus { border-color: var(--wp--preset--color--brand); outline: 2px solid rgba(42, 88, 163, .25); outline-offset: 0; }
[dir="rtl"] .adnok-form input[dir="ltr"] { text-align: right; }
.adnok-form-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.adnok-form button {
	min-height: 54px; padding: 0 34px; border: 0; border-radius: 4px; cursor: pointer;
	background: var(--wp--preset--color--navy); color: #fff;
	font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 17px;
}
.adnok-form button:hover { background: var(--wp--preset--color--deep); }
.adnok-form button[disabled] { opacity: .6; cursor: progress; }
.adnok-form-note { font-size: 14px; color: var(--wp--preset--color--muted); }
.adnok-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.adnok-form-status { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 4px; background: var(--wp--preset--color--light); }
.adnok-form-status:empty { display: none; }
.adnok-form-status.is-success { background: #E7F3EC; color: #1E5B3A; }
.adnok-form-status.is-error { background: #FBEAEA; color: #8A1F1F; }

/* ---------- Footer ---------- */
.adnok-footer a { color: #C4CFDD; text-decoration: none; }
.adnok-footer a:hover { color: #fff; }
.adnok-footer p { margin: 0; }
.adnok-footer .wp-block-image { margin: 0; }
.adnok-footer-h { font-size: 16px !important; font-weight: 600; margin: 0 0 6px; }
.adnok-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.adnok-footer-links a[dir="ltr"] { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.has-watermark > .wp-block-image.adnok-watermark { width: 440px; }
	.adnok-hero-cols > .wp-block-column:last-child { padding-inline: 24px 0; }
	.adnok-subnav li a { min-height: 52px; padding: 0 16px; }
	.adnok-section-head { flex-direction: column; align-items: flex-start !important; }
	.adnok-contact-cols { margin-top: -80px !important; }
}
