/*
Theme Name: Al Emtiaz Real Data
Theme URI: https://emtiaz2.3mr.dev
Author: Al Emtiaz
Description: Bilingual Arabic/English WordPress theme for Al Emtiaz heavy machinery spare parts, tires and supply services.
Version: 2.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: alemtiaz2
*/

:root {
  --navy: #082b4c;
  --navy-2: #0d3c66;
  --blue: #1166a3;
  --cyan: #17a8d2;
  --yellow: #ffc928;
  --yellow-deep: #d99d00;
  --ink: #14283a;
  --muted: #65798a;
  --soft: #f3f7fa;
  --line: #dce6ed;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 22px 65px rgba(8, 43, 76, .13);
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { max-width: 100%; margin: 0; overflow-x: clip; color: var(--ink); background: #fff; font-family: "Segoe UI", Tahoma, Arial, sans-serif; line-height: 1.75; }
body.site-lang-en { font-family: Inter, "Segoe UI", Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--navy { color: #fff; background: var(--navy); }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-weight: 900; font-size: .88rem; letter-spacing: .03em; }
.eyebrow--light { color: var(--yellow); }
.section-title { margin: 0; color: var(--navy); font-size: clamp(2.05rem, 4vw, 3.45rem); line-height: 1.22; }
.section-lead { margin: 17px 0 0; max-width: 760px; color: var(--muted); font-size: 1.06rem; }
.section--navy .section-title { color: #fff; }
.section--navy .section-lead { color: #c6d6e2; }
.section-head { margin-bottom: 42px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 24px; border: 2px solid transparent; border-radius: 13px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(8, 43, 76, .18); }
.btn--yellow { color: var(--navy); background: var(--yellow); }
.btn--navy { color: #fff; background: var(--navy); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.05); }
.text-link { display: inline-flex; margin-top: 18px; color: var(--blue); font-weight: 900; }

.topbar { color: #d8e5ee; background: #061f37; font-size: .78rem; }
.topbar__inner { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__contacts { display: flex; gap: 20px; }
.topbar a:hover { color: var(--yellow); }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(14px); }
.header__inner { position: relative; display: flex; min-height: 82px; align-items: center; gap: 25px; }
.brand { display: flex; min-width: 285px; align-items: center; gap: 13px; }
.brand img { width: 55px; height: 55px; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { color: var(--navy); font-size: 1.05rem; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .69rem; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 25px; list-style: none; }
.main-nav a { position: relative; padding: 27px 0; color: #30485a; font-size: .89rem; font-weight: 800; }
.main-nav a::after { position: absolute; right: 0; bottom: 18px; left: 0; height: 3px; border-radius: 3px; background: var(--yellow); content: ""; transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after { transform: scaleX(1); }
.language-switcher { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); font-weight: 900; font-size: .82rem; }
.menu-toggle { display: none; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); background: #fff; font-size: 1.35rem; }
.header-cta { white-space: nowrap; }

.hero { position: relative; min-height: 710px; padding: 85px 0; display: flex; align-items: center; isolation: isolate; color: #fff; background-position: center !important; background-size: cover !important; }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(8,43,76,.18), rgba(8,43,76,.65) 48%, rgba(8,43,76,.96)); }
.hero > .e-con-inner { width: min(1180px, calc(100% - 40px)); }
.hero__content { width: min(690px, 100%); margin-left: auto; padding: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: rgba(5,31,55,.65); box-shadow: 0 30px 70px rgba(0,0,0,.2); backdrop-filter: blur(8px); }
.hero__content .elementor-heading-title { color: #fff !important; font-size: clamp(2.65rem, 5.4vw, 5rem); line-height: 1.08; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.hero__content .hero-accent .elementor-heading-title { color: var(--yellow) !important; }
.hero__lead, .hero__lead p { margin: 0; color: #f2f7fa !important; font-size: clamp(1rem, 1.5vw, 1.18rem); text-shadow: 0 2px 12px rgba(0,0,0,.48); }
.hero__actions > .e-con-inner { display: flex; flex-flow: row wrap; gap: 13px; }
.hero__trust, .hero__trust p { color: #e8f1f7 !important; }
.hero__trust ul { display: flex; margin: 20px 0 0; padding: 0; flex-wrap: wrap; gap: 10px 25px; list-style: none; }
.hero__trust li::before { margin-inline-end: 8px; color: var(--yellow); content: "✓"; font-weight: 900; }

.metrics { position: relative; z-index: 3; margin-top: -52px; padding: 0; }
.metrics > .e-con-inner { width: min(1120px, calc(100% - 40px)); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.metric { padding: 27px 18px; text-align: center; }
.metric + .metric { border-inline-start: 1px solid var(--line); }
.metric strong { display: block; color: var(--navy); font-size: 2rem; line-height: 1.1; }
.metric span { display: block; margin-top: 7px; color: var(--muted); font-size: .85rem; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid--detailed { grid-template-columns: repeat(2, 1fr); }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 13px 40px rgba(8,43,76,.08); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card__image { overflow: hidden; aspect-ratio: 1 / 1; background: #e8edf0; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-card__body { padding: 25px; }
.product-card__tag { display: inline-flex; padding: 6px 11px; border-radius: 999px; color: var(--blue); background: #edf7fc; font-size: .72rem; font-weight: 900; }
.product-card h3 { margin: 14px 0 8px; color: var(--navy); font-size: 1.25rem; line-height: 1.35; }
.product-card p { margin: 0; color: var(--muted); }
.product-card__list { display: grid; margin: 18px 0 0; padding: 0; gap: 7px; list-style: none; }
.product-card__list li { position: relative; padding-inline-start: 20px; color: #405768; font-size: .86rem; }
.product-card__list li::before { position: absolute; inset-inline-start: 0; color: var(--yellow-deep); content: "•"; font-weight: 900; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-grid--detailed { grid-template-columns: repeat(2, 1fr); }
.service-card { padding: 28px 24px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.065); }
.section:not(.section--navy) .service-card { border-color: var(--line); background: #fff; box-shadow: 0 12px 35px rgba(8,43,76,.07); }
.service-card__icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 14px; color: var(--navy); background: var(--yellow); font-size: 1.45rem; }
.service-card h3 { margin: 18px 0 8px; font-size: 1.17rem; }
.section:not(.section--navy) .service-card h3 { color: var(--navy); }
.service-card p { margin: 0; color: #c2d2de; font-size: .9rem; }
.section:not(.section--navy) .service-card p { color: var(--muted); }
.service-card ul { display: grid; margin: 18px 0 0; padding: 0; gap: 7px; list-style: none; }
.service-card li::before { margin-inline-end: 8px; color: var(--yellow-deep); content: "✓"; }

.split { display: block !important; width: 100%; }
.split > .e-con-inner { display: grid !important; width: 100%; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.split__media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__media img { width: 100%; min-height: 520px; object-fit: cover; }
.check-list { display: grid; margin: 26px 0 30px; padding: 0; gap: 12px; list-style: none; }
.check-list li { position: relative; padding-inline-start: 31px; color: #344d60; }
.check-list li::before { position: absolute; inset-inline-start: 0; top: 3px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; color: var(--navy); background: var(--yellow); content: "✓"; font-size: .73rem; font-weight: 900; }

.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.branch-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 38px rgba(8,43,76,.07); }
.branch-card__pin { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--navy); background: var(--yellow); }
.branch-card h3 { margin: 16px 0 4px; color: var(--navy); }
.branch-card p { margin: 0; color: var(--muted); }
.contact-strip { display: flex; margin-top: 24px; padding: 20px 24px; flex-wrap: wrap; gap: 13px 28px; border-radius: 16px; color: #fff; background: var(--navy); }
.contact-strip a:hover { color: var(--yellow); }

.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry-grid span { padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--navy); background: #fff; font-weight: 900; text-align: center; box-shadow: 0 9px 28px rgba(8,43,76,.055); }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact-grid > div { padding: 29px 20px; border-radius: 18px; color: #fff; background: var(--navy); text-align: center; }
.fact-grid strong { display: block; color: var(--yellow); font-size: 1.65rem; }
.fact-grid span { display: block; margin-top: 5px; color: #c6d6e2; }
.purpose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.purpose-grid article { padding: 32px; border-inline-start: 5px solid var(--yellow); border-radius: 16px; background: var(--soft); }
.purpose-grid h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.35rem; }
.purpose-grid p { margin: 0; color: var(--muted); }

.page-hero { position: relative; overflow: hidden; padding: 92px 0; color: #fff; background: var(--navy); }
.page-hero::before { position: absolute; width: 320px; height: 320px; inset-inline-end: -80px; top: -130px; border: 70px solid rgba(255,201,40,.12); border-radius: 50%; content: ""; }
.page-hero > .e-con-inner { position: relative; width: min(1180px, calc(100% - 40px)); z-index: 1; }
.page-hero .elementor-heading-title { color: #fff !important; font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 1.13; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.page-hero .elementor-widget-text-editor, .page-hero .elementor-widget-text-editor p { max-width: 780px; color: #c9d9e5 !important; font-size: 1.08rem; }

.contact-layout { display: block !important; width: 100%; }
.contact-layout > .e-con-inner { display: grid !important; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 36px; }
.contact-panel { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-details { display: grid; gap: 15px; }
.contact-detail { padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.contact-detail h3 { margin: 0 0 7px; color: var(--navy); font-size: 1rem; }
.contact-detail p { margin: 0; color: var(--muted); }
.contact-detail a { color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: grid; gap: 7px; color: #344d60; font-weight: 800; font-size: .86rem; }
.field-full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select { width: 100%; border: 1px solid #cad8e2; border-radius: 11px; padding: 12px 13px; color: var(--ink); background: #fff; outline: none; font-weight: 500; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,102,163,.12); }
.hp-field { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(1px,1px,1px,1px); }
.form-notice { margin-bottom: 18px; padding: 13px 15px; border-radius: 10px; font-weight: 800; }
.form-notice--success { color: #12602d; background: #e5f7eb; }
.form-notice--error { color: #8b2222; background: #fdeaea; }

.cta { padding: 70px 0; background: var(--yellow); }
.cta > .e-con-inner { width: min(1180px, calc(100% - 40px)); }
.cta-box { display: block !important; width: 100%; }
.cta-box > .e-con-inner { display: flex !important; align-items: center; justify-content: space-between; gap: 34px; }
.cta-box .elementor-heading-title { color: var(--navy) !important; font-size: clamp(2rem, 4vw, 3.25rem); }
.cta-box p { margin: 0; color: rgba(8,43,76,.8); }

.site-footer { padding-top: 70px; color: #c7d6e2; background: #061f37; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .9fr 1fr; gap: 45px; }
.footer-brand img { width: 58px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-brand h2 { margin: 15px 0 9px; font-size: 1.25rem; }
.site-footer h3 { margin: 0 0 17px; font-size: 1rem; }
.site-footer p { margin: 0 0 9px; color: #92a9ba; font-size: .86rem; }
.footer-links { display: grid; margin: 0; padding: 0; gap: 9px; list-style: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; margin-top: 55px; padding: 20px 0; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #7893a6; font-size: .78rem; }

/* Elementor integration */
.al2-elementor-page #content { overflow: hidden; }
.al2-elementor-page .elementor,
.al2-elementor-page .elementor-element,
.al2-elementor-page .elementor-widget-container,
.al2-elementor-page .e-con,
.al2-elementor-page .e-con-inner { min-width: 0; }
.al2-elementor-page .section > .e-con-inner { width: min(1180px, calc(100% - 40px)); }
.al2-elementor-page .elementor-widget-heading.eyebrow .elementor-heading-title { color: inherit !important; font: inherit; letter-spacing: inherit; }
.al2-elementor-page .elementor-widget-heading.section-title .elementor-heading-title { color: inherit !important; font-size: inherit; line-height: inherit; }
.al2-elementor-page .elementor-widget-text-editor.section-lead, .al2-elementor-page .elementor-widget-text-editor.section-lead p { color: var(--muted) !important; }
.al2-elementor-page .section--navy .elementor-widget-text-editor.section-lead, .al2-elementor-page .section--navy .elementor-widget-text-editor.section-lead p { color: #c6d6e2 !important; }
.al2-elementor-page .elementor-widget-button.btn { min-height: 0; padding: 0; border: 0; background: transparent; }
.al2-elementor-page .elementor-widget-button.btn:hover { transform: none; box-shadow: none; }
.al2-elementor-page .elementor-widget-button.btn .elementor-button { min-height: 52px; padding: 13px 24px; border: 2px solid transparent; border-radius: 13px; font-weight: 900; }
.al2-elementor-page .elementor-widget-button.btn--yellow .elementor-button { color: var(--navy) !important; background: var(--yellow) !important; }
.al2-elementor-page .elementor-widget-button.btn--navy .elementor-button { color: #fff !important; background: var(--navy) !important; }
.al2-elementor-page .elementor-widget-button.btn--ghost .elementor-button { color: #fff !important; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.05) !important; }

@media (max-width: 1050px) {
  .header-cta { display: none; }
  .brand { min-width: 235px; }
  .main-nav ul { gap: 18px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .topbar__inner > span { display: none; }
  .topbar__contacts { width: 100%; justify-content: space-between; }
  .menu-toggle { display: grid; margin-inline-start: auto; place-items: center; }
  .language-switcher { order: 3; }
  .main-nav { position: absolute; display: none; top: 72px; right: 0; left: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 3px; }
  .main-nav a { display: block; padding: 9px; }
  .main-nav a::after { display: none; }
  .hero { min-height: 690px; padding: 48px 0; }
  .hero::before { background: rgba(5,31,55,.76); }
  .hero__content { margin: 0 auto; padding: 30px 25px; }
  .metrics { margin-top: 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); border-radius: 0; }
  .metric:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); }
  .split > .e-con-inner, .contact-layout > .e-con-inner { grid-template-columns: 1fr; gap: 38px; }
  .split__media { order: -1; }
  .split__media img { min-height: 390px; }
  .cta-box > .e-con-inner { display: block !important; }
  .cta-box .elementor-widget-button { margin-top: 22px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 26px); max-width: 1180px; }
  .section { padding: 68px 0; }
  .topbar__contacts { gap: 7px; font-size: .68rem; }
  .header__inner { min-height: 72px; gap: 10px; }
  .brand { min-width: 0; flex: 1; }
  .brand img { width: 47px; height: 47px; }
  .brand strong { font-size: .9rem; }
  .brand small { display: none; }
  .language-switcher { padding: 7px 9px; font-size: .74rem; }
  .hero > .e-con-inner, .metrics > .e-con-inner, .page-hero > .e-con-inner, .cta > .e-con-inner, .al2-elementor-page .section > .e-con-inner { width: calc(100% - 26px) !important; max-width: 1180px; }
  .hero__content { width: 100% !important; max-width: 100%; padding: 27px 20px; }
  .hero__content .elementor-heading-title { overflow-wrap: anywhere; font-size: 2.35rem; }
  .hero__lead, .hero__lead p, .hero__trust, .hero__trust p, .section-title, .section-lead, .product-card, .product-card__body { min-width: 0; overflow-wrap: anywhere; }
  .hero__actions > .e-con-inner { display: grid; grid-template-columns: 1fr; }
  .product-grid, .product-grid--detailed, .service-grid, .service-grid--detailed, .branch-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .industry-grid, .fact-grid, .purpose-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .contact-panel { padding: 24px 18px; }
  .footer-bottom { flex-direction: column; }
}
