/* Homepage design (EN + AR). Loaded after style.css on /index.html and /ar/index.html only. */
:root { --mint: #7fe0c6; --deep: #0b2f28; --r-lg: 28px; --r-md: 18px; }
.home h1, .home h2, .home h3, .home .big-num { font-family: "Space Grotesk", "Segoe UI", sans-serif; letter-spacing: -.02em; }
.home .mono { font-family: "JetBrains Mono", Consolas, monospace; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .home h1, html[lang="ar"] .home h2, html[lang="ar"] .home h3, html[lang="ar"] .home .hub-line p { font-family: "Tajawal", "Segoe UI", sans-serif; letter-spacing: 0; }
html[lang="ar"] .home .mono { font-family: "Tajawal", "Segoe UI", sans-serif; letter-spacing: 0; font-size: .9rem; font-weight: 700; }

/* header */
.home .site-header { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: none; border-bottom: 1px solid rgba(15,58,50,.08); }
.home .site-header .container { height: 76px; }
@media (max-width: 960px) { .home .nav { top: 76px; } }

/* pill buttons with arrow circle */
.cta { display: inline-flex; align-items: center; gap: 14px; padding-block: 8px; padding-inline: 24px 8px; border-radius: 999px; background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .2s, box-shadow .2s; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.cta .arr { width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: var(--navy); display: grid; place-items: center; transition: transform .25s; flex: none; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15,58,50,.22); }
.cta:hover .arr { transform: translateX(3px) rotate(-45deg); }
html[dir="rtl"] .cta:hover .arr { transform: translateX(-3px) rotate(45deg); }
.cta.ghost { background: #fff; color: var(--navy) !important; border: 1.5px solid var(--line); padding: 13px 24px; }
.cta.light { background: #fff; color: var(--navy) !important; }
.cta.sm { padding-block: 6px; padding-inline: 18px 6px; font-size: .88rem; }
.cta.sm .arr { width: 30px; height: 30px; }

/* hero */
.home-hero { position: relative; padding: 70px 0 40px; background: radial-gradient(1200px 500px at 85% 0%, #e3f4ef 0%, rgba(227,244,239,0) 60%), linear-gradient(180deg, #f6faf9, #fff); overflow: hidden; }
.home-hero .split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.home-hero .tag { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 26px; }
.home-hero .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(34,163,135,.15); }
.home-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.08; margin: 0 0 22px; color: var(--ink); }
html[lang="ar"] .home-hero h1 { line-height: 1.3; }
.home-hero h1 em, .hs h2 em { font-style: normal; color: var(--accent); }
.home-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin: 0 0 34px; line-height: 1.6; }
.home-hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-visual { position: relative; }
.hero-visual .frame { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3.4; background: var(--deep); box-shadow: 0 30px 60px rgba(15,58,50,.18); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.float-card { position: absolute; background: #fff; border-radius: var(--r-md); padding: 16px 20px; box-shadow: 0 18px 40px rgba(15,58,50,.16); animation: bob 6s ease-in-out infinite; }
.float-card .mono { color: var(--muted); font-size: .68rem; }
.float-card .big-num { font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.float-card small { color: var(--muted); }
.float-card.a { top: -22px; inset-inline-end: -18px; }
.float-card.b { bottom: 26px; inset-inline-start: -34px; background: var(--navy); color: #fff; animation-delay: -3s; }
.float-card.b .mono { color: var(--mint); }
.float-card.b strong { font-family: "Space Grotesk", "Tajawal", sans-serif; font-size: 1.15rem; display: block; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }

/* facts bar */
.facts { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding-block: 22px 4px; padding-inline: 0 24px; border-inline-end: 1px solid var(--line); }
.facts > div + div { padding-inline-start: 24px; }
.facts > div:last-child { border-inline-end: 0; }
.facts .mono { color: var(--muted); font-size: .7rem; }
.facts strong { display: block; font-family: "Space Grotesk", "Tajawal", sans-serif; font-size: 1.4rem; color: var(--ink); margin-top: 6px; }

/* sections */
.hs { padding: 110px 0; }
.hs .label { color: var(--accent); margin-bottom: 18px; display: block; }
.hs h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; margin: 0 0 20px; max-width: 820px; color: var(--ink); }
html[lang="ar"] .hs h2 { line-height: 1.35; }
.hs .intro { font-size: 1.1rem; color: var(--muted); max-width: 640px; line-height: 1.65; margin: 0; }
.hs .head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 54px; flex-wrap: wrap; }
.hs.soft { background: var(--bg); }

.hs.dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hs.dark::before { content: ""; position: absolute; width: 700px; height: 700px; inset-inline-end: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(34,163,135,.35), rgba(34,163,135,0) 65%); }
.hs.dark .container { position: relative; }
.hs.dark h2 { color: #fff; }
.hs.dark .label { color: var(--mint); }
.hs.dark h2 em { color: var(--mint); }
.hs.dark .intro { color: rgba(255,255,255,.75); }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 22px; transition: background .2s; }
.value:hover { background: rgba(255,255,255,.1); }
.value .mono { color: var(--mint); }
.value h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.value p { margin: 0; color: rgba(255,255,255,.72); font-size: .93rem; line-height: 1.55; }
.quote { margin-top: 40px; display: flex; align-items: center; gap: 22px; }
.quote .big-num { font-size: 4rem; font-weight: 700; color: var(--mint); line-height: 1; }
.quote span { color: rgba(255,255,255,.75); max-width: 240px; display: block; }

/* industrial tiles */
.itiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.itile { background: #fff; padding: 30px 28px; display: flex; gap: 18px; align-items: flex-start; transition: background .2s; }
.itile:hover { background: #f4faf8; }
.itile .ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: #e6f5f0; color: var(--accent-dark); display: grid; place-items: center; }
.itile h3 { margin: 4px 0 6px; font-size: 1.08rem; color: var(--ink); }
.itile p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* digital cards */
.dm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dm-card { background: #fff; border-radius: var(--r-lg); padding: 30px 26px 26px; min-height: 250px; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: transform .25s, box-shadow .25s; }
.dm-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15,58,50,.12); }
.dm-card .mono { color: var(--accent); }
.dm-card h3 { font-size: 1.3rem; margin: 40px 0 10px; color: var(--ink); }
.dm-card p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.55; }

/* brands */
.brands { padding: 56px 0; border-bottom: 1px solid var(--line); }
.brands .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.brands .mono { color: var(--muted); }
.brand-row { display: flex; align-items: center; gap: 46px; flex-wrap: wrap; }
.brand-row img { height: 34px; width: auto; filter: grayscale(1); opacity: .7; transition: all .2s; }
.brand-row img:hover { filter: none; opacity: 1; }
.brand-row .word { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.3rem; color: #9aa7a3; }

/* industries chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; color: var(--ink); background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); background: #f1faf7; }

/* news */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.news { border-radius: var(--r-lg); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; background: #fff; transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit; }
.news:hover { box-shadow: 0 18px 40px rgba(15,58,50,.1); transform: translateY(-4px); }
.news.feature { background: linear-gradient(160deg, #134a3f, var(--navy)); color: #fff; border: 0; }
.news .mono { color: var(--muted); font-size: .7rem; }
.news.feature .mono { color: var(--mint); }
.news h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; color: inherit; }
.news.feature h3 { font-size: 1.55rem; }
.news .more { margin-top: auto; font-weight: 600; color: var(--accent); }
.news.feature .more { color: var(--mint); }

/* how we work */
.steps-v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; padding-top: 34px; }
.steps-v2::before { content: ""; position: absolute; top: 7px; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--mint), var(--line)); }
html[dir="rtl"] .steps-v2::before { background: linear-gradient(270deg, var(--accent), var(--mint), var(--line)); }
.st { position: relative; }
.st .dot { position: absolute; top: -34px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 0 6px rgba(34,163,135,.12); }
.st .mono { color: var(--accent); font-size: .7rem; }
.st h3 { font-size: 1.45rem; margin: 10px 0 8px; color: var(--ink); }
.st p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .95rem; }
.hub-line { margin-top: 64px; padding: 30px 34px; border-radius: var(--r-lg); background: var(--bg); display: flex; gap: 30px; align-items: center; }
.hub-line .mono { color: var(--accent); flex: none; }
.hub-line p { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; line-height: 1.45; color: var(--ink); }

/* gallery (hidden until photos are ready) */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.gallery img:first-child { grid-row: span 2; }

/* contact */
.contact-card { background: var(--navy); color: #fff; border-radius: 36px; padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-start: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(127,224,198,.22), rgba(127,224,198,0) 65%); pointer-events: none; }
.contact-card > * { position: relative; z-index: 1; }
.contact-card .label { color: var(--mint); }
.contact-card h2 { color: #fff; margin-bottom: 14px; }
.contact-card p { color: rgba(255,255,255,.75); }
.c-lines { display: grid; gap: 12px; margin-top: 28px; }
.c-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; transition: background .2s; }
a.c-line:hover { background: rgba(255,255,255,.12); }
.c-line .mono { color: var(--mint); font-size: .68rem; }
.c-line strong { display: block; font-size: 1.02rem; margin-top: 3px; }
.contact-card form { background: #fff; color: var(--ink); border-radius: 24px; padding: 30px; align-self: start; }
.contact-card form .field input, .contact-card form .field select, .contact-card form .field textarea { border-radius: 12px; }

/* reveal on scroll (only when JS runs) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .float-card { animation: none; } }

@media (max-width: 980px) {
  .home-hero .split, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .float-card.b { inset-inline-start: 10px; } .float-card.a { inset-inline-end: 10px; }
  .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(2) { border-inline-end: 0; }
  .facts > div:nth-child(3) { padding-inline-start: 0; }
  .itiles, .dm-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .steps-v2 { grid-template-columns: 1fr 1fr; row-gap: 50px; } .steps-v2::before { display: none; }
  .contact-card { padding: 40px 26px; border-radius: 28px; }
}
@media (max-width: 600px) {
  .itiles, .dm-grid, .values { grid-template-columns: 1fr; }
  .hs { padding: 76px 0; }
  .facts > div { padding-inline: 0 !important; border-inline-end: 0 !important; }
  .steps-v2 { grid-template-columns: 1fr; gap: 30px; padding: 0; padding-inline-start: 34px; }
  .steps-v2::before { display: block; top: 8px; bottom: 8px; left: auto; right: auto; inset-inline-start: 7px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line)) !important; }
  .st .dot { top: 2px; inset-inline-start: -34px; }
  .hub-line { flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; } .hub-line p { font-size: 1.1rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px 160px; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; }
  .contact-card form { padding: 22px; }
}
