/*
Theme Name: Flour Mills 72
Description: ثيم خاص بموقع الدقيق الفاخر استخراج 72 ومصانع المكرونة والتصدير – ألوان القمح والبني وورق الكرافت، ختم 72% وزخارف سنابل.
Version: 1.0.2
Author: biz-sky
Text Domain: flour-mills
*/

:root {
	--wheat: #d9a12b;
	--wheat-d: #b9841a;
	--wheat-l: #f6e3b4;
	--brown: #3d2414;
	--brown-2: #5c3a22;
	--flour: #fffaf0;
	--kraft: #f1e4c7;
	--leaf: #5f7a3a;
	--ink: #2e2219;
	--muted: #77665a;
	--line: #e7d8b8;
	--radius: 16px;
	--shadow: 0 14px 34px rgba(61, 36, 20, .12);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='%23d9a12b' fill-opacity='.18'%3E%3Cellipse cx='10' cy='12' rx='2.2' ry='4' transform='rotate(30 10 12)'/%3E%3Cellipse cx='34' cy='8' rx='2.2' ry='4' transform='rotate(-25 34 8)'/%3E%3Cellipse cx='24' cy='30' rx='2.2' ry='4' transform='rotate(60 24 30)'/%3E%3Cellipse cx='42' cy='38' rx='2.2' ry='4' transform='rotate(10 42 38)'/%3E%3Cellipse cx='6' cy='40' rx='2.2' ry='4' transform='rotate(-50 6 40)'/%3E%3C/g%3E%3C/svg%3E");
	--stalks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'%3E%3Cg fill='none' stroke='%23d9a12b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M30 38V8M30 14c-4 0-6-3-6-7 4 0 6 3 6 7zM30 14c4 0 6-3 6-7-4 0-6 3-6 7zM30 24c-4 0-6-3-6-7 4 0 6 3 6 7zM30 24c4 0 6-3 6-7-4 0-6 3-6 7z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: "Almarai", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.9;
	color: var(--ink);
	background: var(--flour);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wheat-d); text-decoration: none; }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-family: "Reem Kufi", "Almarai", sans-serif; font-weight: 700; line-height: 1.4; margin: 0 0 .5em; color: var(--brown); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; margin: 0; clip: auto; clip-path: none; inset-inline-start: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 14px; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.6em; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.4; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.1em; font-size: 14px; }
.btn-wheat { background: var(--wheat); color: var(--brown); }
.btn-wheat:hover { background: var(--wheat-d); color: #fff; }
.btn-brown { background: var(--brown); color: var(--wheat-l); }
.btn-brown:hover { background: #26160b; color: #fff; }
.btn-outline { border-color: var(--brown); color: var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--flour); }

/* Price bar + header */
.pricebar { background: var(--brown); color: var(--wheat-l); font-size: 14px; }
.pricebar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.pricebar span, .pricebar a { display: inline-flex; align-items: center; gap: 6px; }
.pricebar a { color: var(--wheat-l); }
.pricebar a:hover { color: #fff; }
.pricebar-links { gap: 16px !important; }
.site-header { background: var(--flour); border-bottom: 3px solid var(--wheat); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--brown); flex-shrink: 0; }
.brand:hover { color: var(--brown); }
.brand img { max-height: 52px; width: auto; }
.mark { width: 48px; height: 48px; border-radius: 50%; background: var(--wheat); color: var(--brown); display: grid; place-items: center; box-shadow: inset 0 0 0 3px var(--flour), 0 0 0 2px var(--wheat); }
.mark svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: "Reem Kufi", sans-serif; font-size: 20px; }
.brand-text small { font-size: 12px; color: var(--muted); }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: center; }
.main-nav a { display: block; padding: 7px 14px; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--wheat-l); color: var(--brown); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: var(--wheat-l); border: 0; border-radius: 10px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--brown); border-radius: 2px; }

/* Hero */
.hero { background: var(--kraft) var(--grain); position: relative; padding: 60px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--flour); border: 1px dashed var(--wheat-d); color: var(--brown-2); padding: 4px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; margin: 0 0 18px; }
.kicker svg { color: var(--wheat-d); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.3; position: relative; z-index: 0; }
.hero h1 span { color: var(--wheat-d); display: inline-block; position: relative; }
.hero h1 span::after { content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .22em; background: var(--wheat); opacity: .35; z-index: -1; border-radius: 4px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.sack-card { background: #fff; border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); padding: 26px; box-shadow: var(--shadow); border: 2px dashed var(--line); }
.sack-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.badge72 { position: absolute; inset-inline-start: -18px; bottom: -10px; width: 132px; height: 132px; border-radius: 50%; background: var(--brown); color: var(--wheat-l); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 0 0 6px var(--kraft), 0 0 0 8px var(--wheat), var(--shadow); transform: rotate(-8deg); }
.badge72 strong { font-family: "Reem Kufi", sans-serif; font-size: 38px; line-height: 1; color: var(--wheat); }
.badge72 span { font-size: 12px; margin-top: 4px; }
.grain-divider { position: absolute; inset-inline: 0; bottom: 0; height: 40px; background: var(--stalks) repeat-x center bottom / 60px 40px; opacity: .8; }

/* Specs */
.specs { background: var(--brown); color: var(--flour); }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.spec { display: flex; gap: 14px; align-items: center; padding: 26px 18px; border-inline-start: 1px solid rgba(246, 227, 180, .15); }
.spec:first-child { border-inline-start: 0; }
.spec-ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(217, 161, 43, .18); color: var(--wheat); display: grid; place-items: center; flex-shrink: 0; }
.spec-ico svg { width: 24px; height: 24px; }
.spec strong { display: block; font-size: 16px; color: #fff; line-height: 1.5; }
.spec small { color: var(--wheat-l); opacity: .85; font-size: 13px; }

/* Sections */
.section { padding: 80px 0; }
.section-kraft { background: var(--kraft) var(--grain); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); display: inline-flex; align-items: center; gap: 14px; }
.sec-head h2::before, .sec-head h2::after { content: ""; width: 34px; height: 24px; background: var(--stalks) no-repeat center / contain; }
.sec-head p { color: var(--muted); margin: 0; }

/* Product lines */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.line { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.line:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.line-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; min-height: 0; background: #fff; padding: 14px; border-bottom: 2px dashed var(--line); }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-body { padding: 18px 20px 22px; position: relative; }
.line-ico { position: absolute; top: -26px; inset-inline-end: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--wheat); color: var(--brown); display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.line-body strong { display: block; font-family: "Reem Kufi", sans-serif; font-size: 18px; color: var(--brown); line-height: 1.5; margin-bottom: 6px; padding-inline-end: 50px; }
.line-body small { display: block; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Flour band */
.flour-band { background: linear-gradient(180deg, var(--wheat-l), var(--kraft)); padding: 80px 0; }
.flour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.flour-band h2 { font-size: clamp(24px, 3vw, 34px); }
.flour-band p { color: var(--brown-2); font-size: 17px; }
.sacks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sacks figure { margin: 0; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 6px 18px rgba(61, 36, 20, .08); }
.sacks img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }

/* Export */
.export-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.export-item { display: flex; gap: 14px; align-items: center; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.export-item:hover { border-color: var(--wheat); color: var(--ink); }
.export-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.export-item span { min-width: 0; }
.export-item strong { display: block; color: var(--brown); line-height: 1.4; }
.export-item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .thumb { display: block; aspect-ratio: 16 / 11; background: #fff; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 18px; margin-bottom: 6px; }
.card-body h3 a { color: var(--brown); }
.card-body h3 a:hover { color: var(--wheat-d); }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.meta { font-size: 12px; color: var(--wheat-d); font-weight: 700; }

/* Call band */
.call-band { background: var(--wheat) var(--grain); padding: 46px 0; }
.call-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.call-band h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.call-band p { margin: 4px 0 0; color: var(--brown-2); }
.call-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.phone-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--flour); color: var(--brown); font-weight: 800; font-size: 17px; padding: .6em 1.1em; border-radius: 12px; border: 2px solid var(--brown); }
.phone-chip:hover { background: var(--brown); color: var(--wheat-l); }

/* Page head */
.page-head { background: var(--kraft) var(--grain); padding: 50px 0 42px; border-bottom: 3px solid var(--wheat); }
.page-head h1 { font-size: clamp(24px, 3.6vw, 40px); margin: 0; overflow-wrap: anywhere; }
.page-head .search-form { margin-top: 18px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--brown-2); }
.page-404 { text-align: center; padding: 80px 0; }
.big404 { font-family: "Reem Kufi", sans-serif; font-size: 110px; line-height: 1; color: var(--wheat); margin: 0; }
.search-form { display: flex; gap: 8px; max-width: 460px; }
.page-404 .search-form { margin-inline: auto; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: inherit; }
.search-form .search-submit { padding: 11px 18px; background: var(--brown); color: var(--wheat-l); border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; }

/* Single */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-block: 50px 80px; }
.entry-featured { margin-bottom: 24px; }
.entry-featured img { border-radius: var(--radius); margin-inline: auto; }
.entry-content { font-size: 17px; overflow-wrap: break-word; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1em; font-size: 20px; line-height: 1.7; font-family: "Almarai", Tahoma, sans-serif; font-weight: 700; }
.entry-content h1 { font-size: 26px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content img { border-radius: 12px; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignright { float: right; margin: 0 0 12px 20px; }
.entry-content .alignleft { float: left; margin: 0 20px 12px 0; }
.entry-content figure, .entry-content .wp-caption { max-width: 100%; margin-inline: 0; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.entry-content tr:first-child td, .entry-content th { font-weight: 700; }
.entry-content tbody tr:hover td { background-color: var(--flour); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-columns-1 .gallery-item img { aspect-ratio: auto; object-fit: initial; max-width: 640px; margin-inline: auto; }
.gallery br { display: none; }

/* Sidebar */
.side .sticky { position: sticky; top: 100px; display: grid; gap: 20px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h3 { font-size: 19px; }
.box-cta { background: var(--brown) var(--grain); color: var(--wheat-l); border: 0; display: grid; gap: 10px; }
.box-cta h3 { color: #fff; margin: 0; }
.box-cta p { margin: 0; font-size: 14px; }
.box-cta .phone-chip { justify-content: center; }
.box-cta .btn { justify-content: center; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px dashed var(--line); }
.side-list a { display: flex; gap: 12px; align-items: center; padding: 9px 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.side-list img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.side-list a:hover { color: var(--wheat-d); }

.pagination { margin-top: 40px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: 7px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pagination .current { background: var(--brown); color: var(--wheat-l); border-color: var(--brown); }
.empty { text-align: center; color: var(--muted); }

/* Footer */
.site-footer { background: #2a180c; color: #d9c7a4; font-size: 15px; position: relative; padding-top: 30px; }
.site-footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 30px; background: var(--stalks) repeat-x center / 60px 30px; opacity: .5; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 40px; }
.brand-footer, .brand-footer:hover { color: #fff; }
.brand-footer .brand-text small { color: #b8a27c; }
.site-footer h4 { color: var(--wheat); font-size: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #d9c7a4; }
.footer-links a:hover { color: var(--wheat); }
.footer-links.contact li { display: flex; gap: 10px; align-items: center; }
.footer-links.contact svg { color: var(--wheat); }
.footer-bottom { border-top: 1px solid rgba(217, 199, 164, .15); padding-block: 16px; font-size: 13px; color: #a8916c; }

/* Responsive */
@media (max-width: 1080px) {
	.nav-toggle { display: flex; }
	.main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--flour); border-bottom: 3px solid var(--wheat); box-shadow: var(--shadow); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; padding: 10px 20px 16px; }
	.header-actions { margin-inline-start: auto; }
}
@media (max-width: 960px) {
	.hero-grid, .flour-grid { grid-template-columns: 1fr; }
	.hero-media { max-width: 420px; margin-inline: auto; width: 100%; }
	.specs-grid { grid-template-columns: repeat(2, 1fr); }
	.spec:nth-child(3) { border-inline-start: 0; }
	.lines, .cards { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.wrap { padding-inline: 16px; }
	.pricebar-row > span:first-child { font-size: 12px; }
	.header-row { min-height: 66px; gap: 10px; }
	.mark { width: 40px; height: 40px; }
	.brand-text strong { font-size: 16px; }
	.brand-text small { display: none; }
	.header-actions .btn span { display: none; }
	.hero { padding: 36px 0 70px; }
	.badge72 { width: 100px; height: 100px; inset-inline-start: 0; }
	.badge72 strong { font-size: 28px; }
	.badge72 span { font-size: 10px; }
	.section, .flour-band { padding: 56px 0; }
	.specs-grid { grid-template-columns: 1fr; }
	.spec { border-inline-start: 0; border-top: 1px solid rgba(246, 227, 180, .15); padding: 16px 4px; }
	.spec:first-child { border-top: 0; }
	.lines, .cards, .footer-grid { grid-template-columns: 1fr; }
	.export-list { grid-template-columns: 1fr; }
	.sacks { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.sec-head h2::before, .sec-head h2::after { width: 22px; }
	.gallery, .gallery-columns-4 { grid-template-columns: repeat(2, 1fr); }
	.gallery-columns-1 { grid-template-columns: 1fr; }
	.call-actions { width: 100%; }
}
