/*
Theme Name: مندوب ألياف بصرية وفايف جي
Theme URI: https://example.com/
Author: Fiber Agent
Description: قالب صفحة هبوط عربي (RTL) لمندوب الألياف البصرية والفايف جي: باقات، مميزات، مقارنة، أسئلة شائعة، مدونة، وأزرار اتصال وواتساب ثابتة. الرقم والاسم من «تخصيص»، والباقات من inc/data.php.
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: fiber-agent
Tags: rtl-language-support, one-column, custom-logo, dark
*/

:root {
	--bg: #020617;
	--bg-2: #0b1222;
	--card: rgba(15, 23, 42, 0.7);
	--border: rgba(148, 163, 184, 0.14);
	--text: #f3f4f6;
	--muted: #94a3b8;
	--green: #4ade80;
	--green-2: #22c55e;
	--green-dark: #15803d;
	--gold: #facc15;
	--radius: 20px;
	--shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Tajawal", "Cairo", sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0; position: relative; scroll-margin-top: 40px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow { display: inline-block; color: var(--green); font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem;
	border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
	font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #052e16; box-shadow: 0 10px 30px rgba(34, 197, 94, .35); }
.btn--dark { background: rgba(15, 23, 42, .85); border-color: var(--border); color: var(--text); }
.btn--outline { border-color: rgba(74, 222, 128, .5); color: var(--green); background: rgba(34, 197, 94, .08); }
.btn--block { width: 100%; }

/* Header */
.site-header { position: fixed; top: 14px; inset-inline: 0; z-index: 50; }
.nav {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 10px 16px; border-radius: 22px;
	background: rgba(2, 6, 23, .72); border: 1px solid var(--border);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #0f766e, #15803d); flex: none; overflow: hidden; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__logo svg { width: 26px; height: 26px; color: #fff; }
.brand__name { font-weight: 800; font-size: 1.1rem; display: block; line-height: 1.2; }
.brand__tag { font-size: .75rem; color: var(--gold); display: block; }
.nav__menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__menu a { display: block; padding: 8px 12px; border-radius: 10px; color: #cbd5e1; font-weight: 500; font-size: .95rem; }
.nav__menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__phone { direction: ltr; padding: 8px 14px; border-radius: 999px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(74, 222, 128, .35); color: var(--green); font-weight: 800; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; }
.nav__phone span.ico { width: 30px; height: 30px; border-radius: 50%; background: var(--green-2); color: #fff; display: grid; place-items: center; }
.nav__phone svg { width: 16px; height: 16px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 140px 0 90px; background: radial-gradient(1200px 600px at 80% 20%, rgba(34, 197, 94, .18), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(14, 165, 233, .15), transparent 60%), var(--bg); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 6, 23, .2), rgba(2, 6, 23, .85) 70%); pointer-events: none; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero__lines path { fill: none; stroke-width: 2; stroke-dasharray: 8 14; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -220; } }
.hero__inner { position: relative; z-index: 2; max-width: 640px; }
.hero__slide { display: none; animation: fadeUp .7s ease both; }
.hero__slide.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: rgba(250, 204, 21, .12); color: var(--gold); border: 1px solid rgba(250, 204, 21, .35); margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; }
.hero p { color: #cbd5e1; font-size: 1.15rem; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__dots { display: flex; gap: 8px; margin-top: 40px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s, background .3s; padding: 0; }
.hero__dots button.is-active { width: 32px; background: var(--green); }

/* Features strip */
.strip { margin-top: -50px; position: relative; z-index: 3; }
.strip__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 18px; border-radius: var(--radius); background: rgba(15, 23, 42, .9); border: 1px solid var(--border); box-shadow: var(--shadow); }
.strip__item { text-align: center; padding: 8px; }
.strip__item .ico { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px; display: grid; place-items: center; background: rgba(34, 197, 94, .12); color: var(--green); }
.strip__item .ico svg { width: 22px; height: 22px; }
.strip__item strong { display: block; font-size: .95rem; }
.strip__item small { color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(74, 222, 128, .4); }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(74, 222, 128, .2), rgba(34, 197, 94, .05)); color: var(--green); margin-bottom: 16px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about p { color: #cbd5e1; font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { text-align: center; padding: 26px 16px; }
.stat strong { display: block; font-size: 2.2rem; color: var(--green); font-weight: 900; direction: ltr; }
.stat span { color: var(--muted); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(15, 23, 42, .95), rgba(2, 6, 23, .95)); border: 1px solid var(--border); border-radius: 24px; padding: 30px 26px; }
.plan--featured { border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 0 1px rgba(74, 222, 128, .25), 0 25px 60px rgba(34, 197, 94, .15); }
.plan__ribbon { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); background: linear-gradient(135deg, var(--gold), #f59e0b); color: #422006; font-weight: 800; font-size: .85rem; padding: 4px 16px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.35rem; text-align: center; }
.plan__price { text-align: center; margin: 6px 0 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--border); }
.plan__price strong { font-size: 2.8rem; font-weight: 900; color: var(--green); }
.plan__price small { color: var(--muted); margin-inline-start: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: #cbd5e1; font-size: .95rem; }
.plan li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 4px; }

/* Testimonials */
.quote p { color: #e2e8f0; font-size: 1.05rem; }
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--green), #0ea5e9); color: #052e16; }

/* Compare table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); max-width: 860px; margin: 0 auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th { background: rgba(34, 197, 94, .1); color: var(--green); }
.compare td:first-child { text-align: start; font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }
.compare tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Blog */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card__thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #0f766e, #1e293b); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { color: var(--green); font-size: .85rem; font-weight: 700; }
.post-card h3 { font-size: 1.1rem; margin: 6px 0 10px; }
.post-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.post-card .more { color: var(--green); font-weight: 700; }

/* CTA */
.cta { text-align: center; padding: 56px 24px; border-radius: 28px; background: radial-gradient(600px 300px at 50% 0, rgba(74, 222, 128, .25), transparent 70%), linear-gradient(135deg, #052e16, #0f172a); border: 1px solid rgba(74, 222, 128, .35); }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta p { color: #cbd5e1; }
.cta .hero__actions { justify-content: center; }

/* Footer */
.site-footer { padding: 28px 0 100px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-size: .9rem; }
.site-footer a { color: var(--green); }

/* Floating buttons */
.float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; display: grid; gap: 12px; }
.float a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 25px rgba(0, 0, 0, .4); transition: transform .2s; }
.float a:hover { transform: scale(1.08); }
.float svg { width: 26px; height: 26px; }
.float .call { background: var(--green-2); }
.float .wa { background: #25d366; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Inner pages */
.page-wrap { padding: 140px 0 80px; }
.entry { max-width: 820px; margin: 0 auto; }
.entry h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.entry-content { color: #cbd5e1; font-size: 1.08rem; }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content img { border-radius: 16px; }
.entry-meta { color: var(--muted); margin-bottom: 24px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); }
.pagination .current { background: var(--green-2); color: #052e16; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1024px) {
	.strip__grid { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.about { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.nav__toggle { display: grid; place-items: center; }
	.nav__menu { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; padding: 12px; border-radius: 18px; background: rgba(2, 6, 23, .97); border: 1px solid var(--border); }
	.nav__menu.is-open { display: flex; }
	.nav { position: relative; }
	.nav__phone .num { display: none; }
	.nav__phone { padding: 4px; }
}
@media (max-width: 600px) {
	.section { padding: 64px 0; }
	.strip__grid { grid-template-columns: repeat(2, 1fr); }
	.grid--4, .grid--3 { grid-template-columns: 1fr; }
	.hero__actions .btn { flex: 1 1 auto; }
	.brand__tag { display: none; }
}
