/* Cinemaiyaat — site styles */
:root {
  --black: #000;
  --white: #fff;
  --ink: #111;
  --muted: #bfbfbf;
  --muted-dark: #6b6b6b;
  --footer: #262626;
  --panel: #f3f3f3;
  --line: #d6d6d6;
  --btn: #3a3a3a;
  --btn-hover: #555;
  --max: 1100px;
  --font-ar: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 8px; top: -60px;
  background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1a1a1a;
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}
.nav { display: flex; align-items: center; gap: 18px; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .sep { width: 1px; height: 22px; background: #555; }
.brand-en {
  justify-self: end;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 14px; letter-spacing: .02em;
  text-decoration: none; color: var(--white); direction: ltr;
}
.brand-en svg { width: 26px; height: 18px; }

.social { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--white); opacity: .9; transition: opacity .2s; }
.social a:hover { opacity: 1; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 34px;
  background: var(--btn); color: var(--white);
  border: 0; border-radius: 2px;
  font: inherit; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--btn-hover); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #8ab4ff; outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid; place-items: center;
  min-height: min(76vh, 680px);
  padding: 48px 16px;
}
.hero img { width: min(840px, 92vw); height: auto; animation: fade-in 1.2s ease both; }
.hero.small { min-height: 0; padding: 90px 16px 60px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 60px); font-weight: 700; line-height: 1.3; }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 22px); }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-title { margin: 0 0 12px; font-size: clamp(30px, 4.6vw, 46px); font-weight: 300; line-height: 1.35; }
.section-title b { font-weight: 700; }

.about .container { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.about p { margin: 0; max-width: 640px; font-size: 18px; color: #e6e6e6; }

.clients-strip {
  position: relative; padding: 0;
  background: #222 url("/assets/img/clients-bg.jpg") center / cover no-repeat;
}
.clients-strip::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.clients-strip .container {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  min-height: 390px;
}
.clients-strip h2 { margin: 0; text-align: center; font-size: clamp(28px, 4vw, 44px); font-weight: 300; line-height: 1.35; }
.clients-strip h2 b { font-weight: 700; }
.client-tile { background: var(--white); width: 200px; aspect-ratio: 5 / 3; display: grid; place-items: center; overflow: hidden; }
.client-tile img { width: 100%; height: 100%; object-fit: cover; }

.join { text-align: start; }
.join h2 { margin: 0; font-size: clamp(40px, 6vw, 64px); font-weight: 400; line-height: 1.25; }
.join p { margin: 8px 0 26px; font-size: clamp(19px, 2.6vw, 28px); font-weight: 300; color: #e6e6e6; }

.works { text-align: center; padding-top: 40px; }
.works .section-title { font-weight: 300; margin-bottom: 0; }
.works .works-logo { width: min(260px, 60vw); margin: 0 auto 56px; }
.video-list { display: grid; gap: 56px; }
.video-card { width: min(900px, 100%); margin-inline: auto; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; color: var(--white); text-decoration: none;
}
.play span {
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .2s;
}
.play span svg { width: 26px; height: 26px; margin-inline-start: 4px; fill: currentColor; }
.play:hover span, .play:focus-visible span { transform: scale(1.08); }
.video-frame:hover img { transform: scale(1.02); filter: brightness(.9); }
.video-card h3 { margin: 14px 0 0; font-size: 20px; font-weight: 600; text-align: start; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ads page ---------- */
.intro { text-align: center; padding-top: 10px; }
.intro p { max-width: 720px; margin: 0 auto; font-size: 18px; color: #e6e6e6; }
.client-logos { text-align: center; padding-top: 30px; }
.client-logos ul {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px 56px;
}
.client-logos li img { height: auto; max-height: 130px; width: auto; max-width: 220px; }

.services { background: var(--white); color: var(--ink); }
.services .section-title { text-align: center; margin-bottom: 48px; }
.service-list { display: grid; gap: 40px; width: min(820px, 100%); margin-inline: auto; }
.service {
  display: grid; grid-template-columns: 1fr 310px; align-items: stretch;
  background: var(--panel);
}
.service .text { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.service .text p { margin: 0 0 18px; color: var(--muted-dark); font-size: 16px; }
.service .text h3 { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.service .text .btn { align-self: flex-start; }
.service img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; order: 2; }

/* ---------- Form pages ---------- */
.form-section { background: var(--black); padding-top: 0; }
.form-card { background: var(--panel); color: var(--ink); padding: 56px clamp(20px, 5vw, 72px) 64px; }
.form-card h2 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 40px); font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 56px; margin-bottom: 40px; }
.contact-grid h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted-dark); }
.contact-grid a { text-decoration: none; direction: ltr; display: inline-block; }
.contact-grid a:hover { text-decoration: underline; }
.contact-grid .social a { color: var(--ink); }

.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: span 2; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.req { color: #b00020; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #9a9a9a; border-radius: 2px;
  padding: 9px 12px; min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 6px 24px; margin-top: 4px; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; cursor: pointer; }
.checks input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 10px; }
.form-actions .btn { min-width: 260px; }
.form-status { grid-column: 1 / -1; text-align: center; font-weight: 600; min-height: 1.8em; margin: 0; }
.form-status.ok { color: #1b7a3a; }
.form-status.err { color: #b00020; }
.hp { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); padding: 70px 0 40px; }
.site-footer .mark { width: 150px; margin: 0 auto 40px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 15px; }
.footer-contact a { text-decoration: none; direction: ltr; }
.footer-contact a:hover { text-decoration: underline; }
.copyright { margin: 32px 0 0; text-align: center; font-size: 13px; color: #8a8a8a; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .clients-strip .container { grid-template-columns: 1fr 1fr; grid-template-areas: "title title" "a b"; padding-block: 56px; min-height: 0; justify-items: center; }
  .clients-strip h2 { grid-area: title; }
  .client-tile { width: 100%; max-width: 220px; }
  .service { grid-template-columns: 1fr; }
  .service img { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.span-2 { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { min-height: 0; padding: 96px 16px 80px; }
  .site-header .container { grid-template-columns: 1fr auto; min-height: 60px; gap: 8px 12px; padding-block: 8px; }
  .site-header .social { display: none; }
  .brand-en span { display: none; }
  .nav { gap: 12px; font-size: 15px; }
  .about .container { flex-direction: column; align-items: flex-start; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 6px; }
  .contact-grid div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .checks { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-contact { align-items: center; }
  .site-footer .social { justify-content: center; }
  .client-logos ul { gap: 28px 36px; }
  .client-logos li img { max-height: 90px; max-width: 150px; }
  .service .text { padding: 26px 22px 30px; }
}
