/*
Theme Name: قالب فوزان ميديا - تيسير الصناعية
Theme URI: https://fozan-media.com/
Description: قالب ابن عربي متجاوب لخدمات التراخيص والمنشآت الصناعية في السعودية.
Author: Fozan Media
Author URI: https://fozan-media.com/
Template: twentyseventeen
Version: 1.0.1
Text Domain: taysir-industrial
*/

:root {
  --ti-navy: #082f53;
  --ti-navy-2: #0b416f;
  --ti-green: #07856d;
  --ti-green-dark: #046b59;
  --ti-gold: #d7a73d;
  --ti-ink: #17212b;
  --ti-muted: #607080;
  --ti-line: #dfe7ec;
  --ti-soft: #f4f8f7;
  --ti-white: #fff;
  --ti-shadow: 0 18px 50px rgba(8,47,83,.10);
  --ti-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ti-site {
  margin: 0;
  direction: rtl;
  color: var(--ti-ink);
  background: var(--ti-white);
  font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .ti-header { top: 32px; }
a { color: var(--ti-green-dark); text-decoration: none; }
a, button, input, textarea, select { font-family: inherit; }
a:hover { color: var(--ti-navy); }
img { max-width: 100%; height: auto; }
.ti-container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.ti-skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 9999; background: #fff; color: #000; padding: 10px 16px; }
.ti-skip:focus { top: 12px; }

.ti-topbar { background: var(--ti-navy); color: #dceaf3; font-size: 14px; }
.ti-topbar__inner { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.ti-topbar a { color: #fff; }
.ti-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(8,47,83,.09); backdrop-filter: blur(14px); }
.ti-header__inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ti-brand { display: flex; align-items: center; flex: 0 0 auto; }
.ti-brand img { display: block; width: 220px; max-height: 68px; object-fit: contain; }
.ti-nav { display: flex; align-items: center; gap: 8px; }
.ti-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.ti-nav a { display: block; padding: 10px 12px; color: var(--ti-navy); font-weight: 700; font-size: 15px; border-radius: 12px; }
.ti-nav a:hover, .ti-nav .current-menu-item > a { background: #edf7f4; color: var(--ti-green-dark); }
.ti-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--ti-line); background: #fff; color: var(--ti-navy); border-radius: 12px; font-size: 22px; cursor: pointer; }

.ti-btn { display: inline-flex; min-height: 48px; padding: 11px 20px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; background: var(--ti-green); color: #fff !important; font-weight: 800; line-height: 1.3; box-shadow: 0 10px 24px rgba(7,133,109,.20); transition: transform .2s ease, background .2s ease; }
.ti-btn:hover { background: var(--ti-green-dark); transform: translateY(-2px); }
.ti-btn--gold { background: var(--ti-gold); color: #102b3e !important; box-shadow: 0 10px 24px rgba(215,167,61,.20); }
.ti-btn--ghost { color: var(--ti-navy) !important; background: #fff; border: 1px solid var(--ti-line); box-shadow: none; }
.ti-btn--small { min-height: 42px; padding: 8px 15px; font-size: 14px; }

.ti-hero { position: relative; overflow: hidden; padding: 86px 0 78px; background: radial-gradient(circle at 12% 15%, rgba(215,167,61,.16), transparent 28%), linear-gradient(135deg, #062b4b 0%, #0a456c 55%, #087d69 100%); color: #fff; }
.ti-hero::after { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-start: -180px; bottom: -320px; border: 70px solid rgba(255,255,255,.05); border-radius: 50%; }
.ti-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 52px; align-items: center; }
.ti-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); color: #e8f6f2; font-size: 14px; font-weight: 700; }
.ti-hero h1 { margin: 18px 0 18px; max-width: 780px; color: #fff; font-size: clamp(34px, 5vw, 62px); line-height: 1.23; letter-spacing: -.02em; }
.ti-hero__lead { max-width: 760px; margin: 0; color: #e2edf2; font-size: clamp(17px, 2vw, 20px); }
.ti-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ti-hero__trust { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 28px 0 0; list-style: none; color: #eaf3f6; font-size: 14px; }
.ti-hero__trust li::before { content: "✓"; color: #ffd87c; font-weight: 900; margin-inline-end: 7px; }
.ti-hero-card { padding: 30px; border-radius: 28px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 70px rgba(0,0,0,.18); backdrop-filter: blur(14px); }
.ti-hero-card__icon { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 20px; background: #fff; color: var(--ti-green); border-radius: 22px; font-size: 38px; }
.ti-hero-card h2 { margin: 0 0 12px; color: #fff; font-size: 25px; }
.ti-hero-card p { margin: 0; color: #e6f0f3; }
.ti-mini-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 22px; }
.ti-mini-stat { padding: 14px; background: rgba(255,255,255,.09); border-radius: 16px; text-align: center; }
.ti-mini-stat strong { display: block; color: #fff; font-size: 22px; }
.ti-mini-stat span { color: #dce9ed; font-size: 13px; }

.ti-section { padding: 82px 0; }
.ti-section--soft { background: var(--ti-soft); }
.ti-section--navy { color: #fff; background: linear-gradient(135deg,var(--ti-navy),#0a506d); }
.ti-section-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.ti-section-head--right { max-width: none; margin-inline: 0; text-align: right; }
.ti-eyebrow { margin: 0 0 8px; color: var(--ti-green-dark); font-weight: 900; font-size: 14px; letter-spacing: .02em; }
.ti-section--navy .ti-eyebrow { color: #8ce1ce; }
.ti-section h2 { margin: 0 0 14px; color: var(--ti-navy); font-size: clamp(28px, 4vw, 42px); line-height: 1.35; }
.ti-section--navy h2 { color: #fff; }
.ti-section-head p { margin: 0; color: var(--ti-muted); font-size: 17px; }
.ti-section--navy .ti-section-head p { color: #dbe8ed; }
.ti-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ti-service { position: relative; min-height: 260px; padding: 26px; border: 1px solid var(--ti-line); border-radius: var(--ti-radius); background: #fff; box-shadow: 0 12px 34px rgba(8,47,83,.06); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.ti-service:hover { transform: translateY(-5px); border-color: rgba(7,133,109,.34); box-shadow: var(--ti-shadow); }
.ti-service__icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg,var(--ti-green),var(--ti-navy-2)); border-radius: 16px; font-size: 25px; }
.ti-service h3 { margin: 0 0 10px; color: var(--ti-navy); font-size: 20px; line-height: 1.5; }
.ti-service p { margin: 0 0 16px; color: var(--ti-muted); font-size: 15px; }
.ti-service a { font-weight: 800; }

.ti-about-grid, .ti-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.ti-feature-panel { padding: 34px; border-radius: 26px; background: linear-gradient(145deg,#eef8f5,#fff); border: 1px solid #dcece6; box-shadow: var(--ti-shadow); }
.ti-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.ti-feature-list li { position: relative; padding: 14px 54px 14px 14px; background: #fff; border: 1px solid var(--ti-line); border-radius: 16px; }
.ti-feature-list li::before { content: "✓"; position: absolute; right: 14px; top: 14px; width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--ti-green); border-radius: 9px; font-weight: 900; }
.ti-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
.ti-metric { padding: 18px 12px; text-align: center; border: 1px solid var(--ti-line); border-radius: 16px; background: #fff; }
.ti-metric strong { display: block; color: var(--ti-navy); font-size: 25px; }
.ti-metric span { color: var(--ti-muted); font-size: 13px; }

.ti-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: steps; }
.ti-step { counter-increment: steps; padding: 25px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.ti-step::before { content: counter(steps, decimal-leading-zero); display: block; margin-bottom: 15px; color: #ffd477; font-size: 24px; font-weight: 900; }
.ti-step h3 { margin: 0 0 8px; color: #fff; font-size: 19px; }
.ti-step p { margin: 0; color: #d8e6eb; font-size: 14px; }

.ti-faq { max-width: 900px; margin: 0 auto; display: grid; gap: 12px; }
.ti-faq details { padding: 0 20px; border: 1px solid var(--ti-line); border-radius: 16px; background: #fff; }
.ti-faq summary { padding: 18px 0; color: var(--ti-navy); font-weight: 900; cursor: pointer; }
.ti-faq p { padding: 0 0 18px; margin: 0; color: var(--ti-muted); }

.ti-cta { padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border-radius: 26px; background: linear-gradient(135deg,var(--ti-green),var(--ti-navy)); color: #fff; box-shadow: var(--ti-shadow); }
.ti-cta h2 { margin: 0 0 8px; color: #fff; font-size: 30px; }
.ti-cta p { margin: 0; color: #e0eff0; }
.ti-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

.ti-content-wrap { padding: 58px 0 80px; }
.ti-content-card { max-width: 900px; margin: 0 auto; padding: clamp(24px,5vw,52px); border: 1px solid var(--ti-line); border-radius: var(--ti-radius); background: #fff; box-shadow: 0 14px 45px rgba(8,47,83,.07); }
.ti-page-title { margin: 0 0 28px; color: var(--ti-navy); font-size: clamp(30px,4vw,46px); line-height: 1.3; }
.ti-entry h2, .ti-entry h3 { color: var(--ti-navy); line-height: 1.45; }
.ti-entry p, .ti-entry li { color: #334554; }
.ti-entry table { width: 100%; border-collapse: collapse; }
.ti-entry th, .ti-entry td { padding: 12px; border: 1px solid var(--ti-line); text-align: right; }
.ti-post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.ti-post-card { padding: 24px; border: 1px solid var(--ti-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(8,47,83,.06); }
.ti-post-card h2 { font-size: 21px; }
.ti-post-card__meta { color: var(--ti-muted); font-size: 13px; }

.ti-footer { padding: 60px 0 22px; color: #d6e4eb; background: #061f35; }
.ti-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .9fr; gap: 44px; }
.ti-footer h2, .ti-footer h3 { margin-top: 0; color: #fff; }
.ti-footer__logo { width: 220px; padding: 8px; background: #fff; border-radius: 14px; }
.ti-footer p { color: #bfd0d9; }
.ti-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ti-footer a { color: #dceaf0; }
.ti-footer a:hover { color: #8be0cd; }
.ti-footer__bottom { margin-top: 38px; padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #94aebe; font-size: 13px; }
.ti-floating { position: fixed; z-index: 1100; inset-inline-start: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.ti-floating a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #16a36a; box-shadow: 0 12px 30px rgba(0,0,0,.22); font-size: 22px; }
.ti-floating a:last-child { background: var(--ti-navy); }

@media (max-width: 960px) {
  .ti-hero__grid, .ti-about-grid, .ti-contact-grid { grid-template-columns: 1fr; }
  .ti-hero-card { max-width: 620px; }
  .ti-services, .ti-post-grid { grid-template-columns: repeat(2,1fr); }
  .ti-steps { grid-template-columns: repeat(2,1fr); }
  .ti-footer__grid { grid-template-columns: 1fr 1fr; }
  .ti-menu-toggle { display: grid; place-items: center; }
  .ti-nav { position: absolute; top: calc(100% + 1px); right: 16px; left: 16px; display: none; padding: 12px; background: #fff; border: 1px solid var(--ti-line); border-radius: 16px; box-shadow: var(--ti-shadow); }
  .ti-nav.is-open { display: block; }
  .ti-nav ul { align-items: stretch; flex-direction: column; }
  .ti-nav a { padding: 11px 13px; }
  .ti-header__cta { display: none; }
}

@media (max-width: 640px) {
  body.admin-bar .ti-header { top: 46px; }
  .ti-container { width: min(100% - 22px,1160px); }
  .ti-topbar__inner { min-height: 44px; justify-content: center; }
  .ti-topbar__address { display: none; }
  .ti-header__inner { min-height: 72px; }
  .ti-brand img { width: 168px; max-height: 58px; }
  .ti-hero { padding: 58px 0 52px; }
  .ti-hero h1 { font-size: 36px; }
  .ti-hero__actions, .ti-cta__actions { flex-direction: column; }
  .ti-hero__actions .ti-btn, .ti-cta__actions .ti-btn { width: 100%; }
  .ti-hero__trust { display: grid; gap: 8px; }
  .ti-services, .ti-post-grid, .ti-steps, .ti-metrics, .ti-footer__grid { grid-template-columns: 1fr; }
  .ti-section { padding: 58px 0; }
  .ti-service { min-height: 0; }
  .ti-cta { padding: 26px; align-items: stretch; flex-direction: column; }
  .ti-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
