/*
Theme Name: عراقة الجزيرة
Theme URI: https://example.com/iraqat-aljazira
Author: عراقة الجزيرة
Description: قالب عربي مخصص لشركة عراقة الجزيرة للمقاولات والتشطيب والترميم والصيانة.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: iraqat-aljazira
*/

:root {
  --navy-950: #061a38;
  --navy-900: #092856;
  --navy-800: #123b70;
  --gold-600: #c99218;
  --gold-500: #dda522;
  --gold-300: #f0cb72;
  --sand-100: #f7f3ea;
  --sand-50: #fcfaf6;
  --ink: #142238;
  --muted: #647083;
  --white: #ffffff;
  --line: rgba(9, 40, 86, 0.12);
  --radius: 22px;
  --shadow: 0 20px 55px rgba(6, 26, 56, 0.12);
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand-50);
  font-family: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .button, .main-nav { font-family: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 104px 0; }
.section--white { background: var(--white); }
.section--navy { color: var(--white); background: var(--navy-950); }
.section--sand { background: var(--sand-100); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--gold-600);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 {
  margin: 0 0 14px;
  color: var(--navy-950);
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.section--navy .section-heading h2 { color: var(--white); }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section--navy .section-heading p { color: rgba(255,255,255,.68); }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--gold-300); }
.button--outline { border-color: rgba(255,255,255,.35); background: transparent; color: var(--white); }
.button--outline:hover { border-color: var(--gold-500); background: transparent; color: var(--gold-300); }
.button--navy { background: var(--navy-950); color: var(--white); }
.button--navy:hover { background: var(--navy-800); color: var(--white); }

.site-header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 100;
  transition: inset .25s ease;
}
.site-header.is-scrolled { inset-block-start: 8px; }
.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 8px 12px 8px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(6,26,56,.78);
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
  backdrop-filter: blur(18px);
  transition: min-height .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled .header-inner { min-height: 70px; border-color: var(--line); background: rgba(255,255,255,.96); box-shadow: 0 12px 36px rgba(6,26,56,.1); }
.brand { display: flex; align-items: center; }
.brand img { width: 78px; height: 64px; object-fit: contain; transition: width .25s ease, height .25s ease; }
.site-header.is-scrolled .brand img { width: 66px; height: 52px; }
.main-nav { justify-self: center; }
.main-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav li { position: relative; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 7px; padding: 13px 15px; border-radius: 12px; color: var(--white); font-size: .91rem; font-weight: 700; white-space: nowrap; }
.site-header.is-scrolled .main-nav > ul > li > a { color: var(--navy-950); }
.main-nav > ul > li > a::before { content: ""; position: absolute; inset: auto 15px 7px; height: 2px; border-radius: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-nav > ul > li:hover > a::before, .main-nav > ul > .current-menu-item > a::before, .main-nav > ul > .current-menu-parent > a::before { transform: scaleX(1); }
.main-nav a:hover { color: var(--gold-300); }
.site-header.is-scrolled .main-nav a:hover { color: var(--gold-600); }
.main-nav .menu-item-has-children > a::after { content: "⌄"; color: var(--gold-300); font-size: .85rem; }
.main-nav .sub-menu { position: absolute; inset: calc(100% + 8px) 0 auto auto; min-width: 265px; display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.main-nav .sub-menu a { padding: 11px 13px; color: var(--navy-950); font-family: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif; font-size: .93rem; }
.main-nav .sub-menu a:hover { background: var(--sand-100); color: var(--gold-600); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-actions .button { min-height: 46px; padding: 9px 19px; }
.header-phone { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); direction: ltr; font-size: .88rem; }
.header-phone span { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--gold-300); }
.site-header.is-scrolled .header-phone { color: var(--navy-950); }
.site-header.is-scrolled .header-phone span { border-color: var(--line); }
.menu-toggle { position: relative; width: 46px; height: 46px; display: none; place-items: center; gap: 5px; padding: 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.site-header.is-scrolled .menu-toggle { border-color: var(--line); }
.site-header.is-scrolled .menu-toggle span { background: var(--navy-950); }
.menu-toggle.is-open span { position: absolute; }
.menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: 860px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,26,56,.35), rgba(6,26,56,.88) 52%, #061a38 100%); z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto -12% -60% auto; width: 760px; height: 760px; border: 1px solid rgba(221,165,34,.3); border-radius: 50%; z-index: 1; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.hero-inner { position: relative; z-index: 2; padding: 160px 0 90px; }
.hero-copy { max-width: 760px; margin-inline-start: auto; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--gold-300); font-weight: 800; }
.hero-kicker::before { content: ""; width: 42px; height: 2px; background: currentColor; }
.hero h1 { margin: 0 0 24px; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: 1.12; letter-spacing: -0.045em; }
.hero p { max-width: 690px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 2vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 670px; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 26px; }
.stat strong { display: block; color: var(--gold-300); font-size: 2.1rem; line-height: 1.2; }
.stat span { color: rgba(255,255,255,.64); font-size: .9rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 80px; }
.about-visual { position: relative; }
.about-visual img { width: 100%; min-height: 570px; object-fit: cover; border-radius: 12px 70px 12px 12px; box-shadow: var(--shadow); }
.experience-badge { position: absolute; inset: auto auto 26px -26px; width: 170px; padding: 24px; border-radius: 18px; background: var(--gold-500); color: var(--navy-950); box-shadow: var(--shadow); }
.experience-badge strong { display: block; font-size: 2.7rem; line-height: 1; }
.about-copy h2 { margin: 0 0 20px; color: var(--navy-950); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.2; letter-spacing: -0.03em; }
.about-copy p { color: var(--muted); }
.values-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 34px; }
.values-mini span { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.values-mini span::before { content: "✓"; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: rgba(221,165,34,.16); color: var(--gold-600); }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { position: relative; min-height: 470px; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); isolation: isolate; }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,26,56,.96), rgba(6,26,56,.08) 72%); }
.service-card:hover img { transform: scale(1.045); }
.service-card-content { padding: 34px; color: var(--white); }
.service-number { color: var(--gold-300); font-weight: 800; }
.service-card h3 { margin: 6px 0 10px; font-size: 1.65rem; }
.service-card p { margin: 0 0 20px; color: rgba(255,255,255,.72); }
.text-link { color: var(--gold-300); font-weight: 800; }
.text-link::after { content: " ←"; }

.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.why-intro { position: sticky; top: 130px; }
.why-intro h2 { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; }
.why-intro p { color: rgba(255,255,255,.65); }
.features-list { border-top: 1px solid rgba(255,255,255,.14); }
.feature { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.feature-num { color: var(--gold-300); font-weight: 800; }
.feature h3 { margin: 0 0 6px; font-size: 1.25rem; }
.feature p { margin: 0; color: rgba(255,255,255,.62); }

.project-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 250px 250px; gap: 18px; }
.project-card { position: relative; overflow: hidden; border-radius: 18px; }
.project-card:first-child { grid-row: 1 / 3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-caption { position: absolute; inset: auto 14px 14px; padding: 11px 15px; border-radius: 12px; color: var(--white); background: rgba(6,26,56,.82); backdrop-filter: blur(8px); font-weight: 750; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-step { position: relative; min-height: 230px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.process-step strong { display: inline-grid; width: 46px; height: 46px; place-items: center; margin-bottom: 26px; border-radius: 50%; background: var(--navy-950); color: var(--gold-300); }
.process-step h3 { margin: 0 0 8px; color: var(--navy-950); }
.process-step p { margin: 0; color: var(--muted); }

.clients-strip { padding: 42px 0; border-block: 1px solid var(--line); background: var(--white); }
.clients-title { margin: 0 0 28px; color: var(--muted); text-align: center; font-size: .9rem; }
.clients-grid { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; gap: 26px; }
.clients-grid img { width: 100%; height: 78px; object-fit: contain; opacity: 1; transition: transform .2s ease; }
.clients-grid img:hover { transform: translateY(-3px); }

.cta-wrap { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr auto; align-items: center; gap: 40px; padding: 58px; border-radius: 28px; background: var(--gold-500); color: var(--navy-950); }
.cta-wrap::after { content: "ع"; position: absolute; inset: -90px auto auto 40%; color: rgba(255,255,255,.18); font-size: 18rem; font-weight: 900; line-height: 1; }
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.15; }
.cta-copy p { max-width: 720px; margin: 0; }
.cta-wrap .button { position: relative; z-index: 1; }

.site-footer { padding: 72px 0 24px; color: var(--white); background: #041226; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; }
.footer-brand img { width: 115px; margin-bottom: 18px; }
.footer-brand p { max-width: 480px; color: rgba(255,255,255,.58); }
.footer-col h3 { margin: 0 0 18px; color: var(--gold-300); font-size: 1rem; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 9px 0; color: rgba(255,255,255,.68); }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.46); font-size: .86rem; }
.floating-whatsapp { position: fixed; inset: auto auto 24px 24px; z-index: 90; display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: #25d366; color: white; box-shadow: 0 12px 30px rgba(0,0,0,.22); font-weight: 900; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.page-hero { position: relative; overflow: hidden; padding: 210px 0 105px; color: var(--white); background: var(--navy-950); }
.page-hero::after { content: ""; position: absolute; inset: 40% auto auto -100px; width: 360px; height: 360px; border: 1px solid rgba(221,165,34,.28); border-radius: 50%; }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero h1 { max-width: 850px; margin: 0 0 18px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.14; }
.page-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.68); font-size: 1.12rem; }
.content-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.content-grid img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.content-copy h2 { margin: 0 0 18px; color: var(--navy-950); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.2; }
.content-copy p { color: var(--muted); }
.bullet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 26px 0 34px; padding: 0; list-style: none; }
.bullet-grid li { position: relative; padding-inline-start: 24px; color: var(--ink); font-weight: 700; }
.bullet-grid li::before { content: ""; position: absolute; inset: .75em 0 auto auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mission-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.mission-card h3 { margin: 0 0 12px; color: var(--navy-950); }
.mission-card p { margin: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.contact-panel, .contact-form { padding: 38px; border-radius: 22px; }
.contact-panel { color: var(--white); background: var(--navy-950); }
.contact-panel h2, .contact-form h2 { margin-top: 0; }
.contact-panel a { color: var(--gold-300); }
.contact-details { margin: 26px 0 0; padding: 0; list-style: none; }
.contact-details li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-form { border: 1px solid var(--line); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--navy-950); font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: var(--sand-50); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.notice { margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: #e8f7ed; color: #176b35; }
.notice--error { background: #fff0ef; color: #a32d24; }
.honeypot { position: absolute; inset-inline-start: -9999px; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 60px; }
  body.menu-open { overflow: hidden; }
  .header-inner { min-height: 72px; grid-template-columns: auto 1fr auto; padding: 6px 10px; }
  .brand img, .site-header.is-scrolled .brand img { width: 64px; height: 54px; }
  .main-nav { position: fixed; inset: 100px 20px auto; max-height: calc(100vh - 120px); display: none; overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
  .main-nav { width: auto; justify-self: stretch; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .main-nav a, .site-header .main-nav a { justify-content: space-between; padding: 12px 14px; color: var(--navy-950); }
  .main-nav > ul > li > a::before { display: none; }
  .main-nav .sub-menu { position: static; min-width: 0; margin: 2px 10px 8px 0; padding: 4px 12px 4px 0; border: 0; border-inline-start: 2px solid var(--gold-500); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .main-nav .sub-menu a { padding: 9px 12px; }
  .menu-toggle { display: grid; }
  .header-actions { width: auto; }
  .header-phone, .header-actions .button { display: none; }
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 44px; }
  .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-intro { position: static; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 1180px); }
  .site-header { inset-block-start: 8px; }
  .site-header .container { width: min(100% - 18px, 1180px); }
  .main-nav { inset: 88px 9px auto; }
  .section { padding: 76px 0; }
  .hero { min-height: 790px; }
  .hero::before { background: linear-gradient(0deg, #061a38 8%, rgba(6,26,56,.78) 75%, rgba(6,26,56,.62)); }
  .hero-inner { padding-top: 135px; }
  .hero h1 { font-size: 2.25rem; line-height: 1.25; letter-spacing: -0.02em; }
  .hero-copy { width: 100%; }
  .hero-stats { gap: 10px; }
  .stat { text-align: center; }
  .stat strong { font-size: 1.55rem; }
  .stat span { font-size: .78rem; }
  .about-visual img { min-height: 420px; }
  .experience-badge { inset-inline: 14px auto; }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 420px; }
  .project-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 300px); }
  .project-card:first-child { grid-row: auto; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-wrap { grid-template-columns: 1fr; padding: 36px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mission-grid, .form-row { grid-template-columns: 1fr; }
  .bullet-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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