/* =============================================================
   FARIZON — pages.css
   Inner-page components (loaded after core.css + language sheet
   on every page EXCEPT the home page). Direction-agnostic via
   logical properties.
   ============================================================= */

/* ---------- Inner page hero / banner ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(260px, 12vw + 160px, 330px);
  display: grid; place-items: center; text-align: center;
  padding-block: calc(var(--header-h) + 1.6rem) 1.8rem;
}
/* faded background image (kept visible) */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-img, none); background-size: cover; background-position: center;
  filter: brightness(1.06) saturate(1.05);
  transform: scale(1.05); animation: phZoom 20s ease-out both;
}
@keyframes phZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
/* veil darker only behind the centred text, lighter at the sides so the photo shows */
.page-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 140% at 50% 46%, rgba(6,9,15,.85) 0%, rgba(6,9,15,.5) 44%, rgba(6,9,15,.66) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { display: none; }
.page-hero .breadcrumb {
  justify-content: center; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-family: var(--ff-head);
  color: rgba(255,255,255,.72);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.72); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb .sep { opacity: .55; }
.page-hero .breadcrumb { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.page-hero__title {
  margin: 0 auto; max-width: 26ch; color: #fff; font-weight: 700;
  font-size: clamp(1.8rem, 1.2rem + 2.1vw, 2.8rem); line-height: 1.12; letter-spacing: -.015em;
  text-shadow: 0 2px 22px rgba(0,0,0,.5);
}
/* staggered entrance */
.page-hero .breadcrumb, .page-hero__title { animation: phIn .7s var(--ease) both; }
.page-hero__title { animation-delay: .08s; }
@keyframes phIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.breadcrumb { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem;
  font-family: var(--ff-head); font-size: .85rem; color: rgba(255,255,255,.65); }
.breadcrumb a { color: rgba(255,255,255,.85); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--c-primary-2); }
.breadcrumb span.sep { opacity: .5; }
[dir="rtl"] .breadcrumb span.sep { transform: scaleX(-1); }

/* ---------- Generic split (media + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--narrow { grid-template-columns: 1.1fr .9fr; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__media { position: relative; }
.split .eyebrow { margin-top: 0; }
.split__body .btn { margin-top: 1.8rem; }
.split--reverse .split__media { order: 2; }
[dir="rtl"] .split--reverse .split__media { order: 0; }

/* ---------- Prose (articles, long copy) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.2rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2.4rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--c-ink-2); font-size: 1.05rem; line-height: 1.8; }
.prose ul { display: grid; gap: .6rem; padding-inline-start: 1.2rem; list-style: disc; }
.prose img { width: 100%; border-radius: var(--radius); margin-block: 1.5rem; }
.prose blockquote { border-inline-start: 4px solid var(--c-primary); padding-inline-start: 1.3rem;
  font-size: 1.2rem; font-family: var(--ff-head); color: var(--c-ink); font-weight: 500; }

/* ---------- Icon / value cards (reuses .feature look on light) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.icard {
  padding: 2rem 1.8rem; border-radius: var(--radius); background: var(--c-surface);
  border: 1px solid var(--c-line-light); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.icard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.icard__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(31,107,255,.14), rgba(21,201,140,.12)); color: var(--c-primary); margin-bottom: 1.2rem; }
.icard__icon svg { width: 27px; height: 27px; }
.icard__title { font-size: 1.18rem; }
.icard__text { margin-top: .5rem; color: var(--c-ink-2); font-size: .96rem; }
.section--dark .icard, .section--panel .icard { background: var(--c-bg-3); border-color: var(--c-line-dark); }
.section--dark .icard__title, .section--panel .icard__title { color: #fff; }
.section--dark .icard__text, .section--panel .icard__text { color: var(--c-text-2); }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,.4rem + 2vw,2.4rem); }
.stats-band .stat { background: transparent; border: 0; }
.section--light .stats-band .stat__num, .section--gray .stats-band .stat__num { color: var(--c-ink); }
.section--light .stats-band .stat__label, .section--gray .stats-band .stat__label { color: var(--c-ink); }
.section--light .stats-band .stat__sub, .section--gray .stats-band .stat__sub { color: var(--c-ink-2); }

/* ---------- Tabs (Technology) ---------- */
.tabs__nav { display: flex; flex-wrap: wrap; gap: .6rem; border-bottom: 1px solid var(--c-line-light); margin-bottom: 2.2rem; }
.section--dark .tabs__nav, .section--panel .tabs__nav { border-color: var(--c-line-dark); }
.tab-btn { padding: .85rem 1.4rem; font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  color: var(--c-ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.section--dark .tab-btn, .section--panel .tab-btn { color: var(--c-text-2); }
.tab-btn:hover { color: var(--c-primary); }
.tab-btn.is-active { color: var(--c-primary); border-color: var(--c-primary); }
.section--dark .tab-btn.is-active, .section--panel .tab-btn.is-active { color: #fff; border-color: var(--c-primary-2); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-panel .split { gap: clamp(1.5rem,1rem + 3vw,3.5rem); }
.feature-list { display: grid; gap: .9rem; margin-top: 1.4rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(31,107,255,.14); color: var(--c-primary); display: grid; place-items: center; }
.feature-list .tick svg { width: 13px; height: 13px; }
.section--dark .feature-list li, .section--panel .feature-list li { color: var(--c-text-2); }

/* ---------- Vehicle cards (Vehicles page) ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.vcard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--c-surface); border: 1px solid var(--c-line-light); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t); }
.vcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.vcard__media { aspect-ratio: 16/11; overflow: hidden; background: var(--c-surface-3); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.vcard:hover .vcard__media img { transform: scale(1.06); }
.vcard__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.vcard__cat { font-family: var(--ff-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-primary); }
.vcard__title { font-size: 1.25rem; margin-top: .3rem; }
.vcard__text { margin-top: .5rem; color: var(--c-ink-2); font-size: .95rem; flex: 1; }
.vcard__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.chip { padding: .35em .8em; border-radius: 999px; background: var(--c-surface-2); border: 1px solid var(--c-line-light);
  font-family: var(--ff-head); font-size: .8rem; font-weight: 600; color: var(--c-ink); }
.vcard__body .link-more { margin-top: 1.2rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #0c1530, #143a8f 60%, var(--c-primary)); color: #fff; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 85% 10%, rgba(255,255,255,.16), transparent 55%); }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { font-size: var(--fs-h2); color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { margin-top: 1rem; color: rgba(255,255,255,.85); font-size: var(--fs-lead); max-width: 56ch; margin-inline: auto; }
.cta-band__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__group + .faq__group { margin-top: 2.4rem; }
.faq__group-title { font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; color: var(--c-primary);
  margin-bottom: 1rem; }
.faq__item { border: 1px solid var(--c-line-light); border-radius: var(--radius-sm); margin-bottom: .8rem;
  background: var(--c-surface); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.faq__item.is-open { border-color: rgba(31,107,255,.4); box-shadow: var(--shadow-sm); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem; font-family: var(--ff-head); font-weight: 600; font-size: 1.05rem; text-align: start; color: var(--c-ink); }
.faq__q .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c-surface-2);
  display: grid; place-items: center; transition: transform var(--t), background var(--t-fast), color var(--t-fast); }
.faq__item.is-open .faq__q .ic { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq__q .ic svg { width: 14px; height: 14px; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.faq__a-inner { padding: 0 1.3rem 1.25rem; color: var(--c-ink-2); line-height: 1.8; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,1rem + 4vw,4rem); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.field .req { color: var(--c-primary); }
.input, .textarea, .select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--c-line-light); border-radius: var(--radius-sm);
  background: var(--c-surface); color: var(--c-ink); font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(31,107,255,.12); }
.textarea { min-height: 140px; resize: vertical; }
.form__note { font-size: .85rem; color: var(--c-ink-2); }
.form__success { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: rgba(21,201,140,.12);
  border: 1px solid rgba(21,201,140,.4); color: #0c8b5f; font-weight: 600; }
.form__success.show { display: block; animation: fadeUp .4s var(--ease); }

.contact-info { display: grid; gap: 1.4rem; }
.contact-info__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__ic { flex: none; width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(31,107,255,.15), rgba(21,201,140,.12)); color: var(--c-primary); }
.contact-info__ic svg { width: 22px; height: 22px; }
.contact-info__item h4 { font-size: 1.05rem; }
.contact-info__item p { color: var(--c-ink-2); font-size: .96rem; margin-top: .2rem; }
.contact-map { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line-light);
  position: relative; aspect-ratio: 21/9; background: #0a0e17; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.contact-map .pin { position: absolute; top: 42%; inset-inline-start: 38%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-primary-2); box-shadow: 0 0 0 0 var(--c-glow); animation: ping 2.4s infinite var(--ease); }

/* ---------- Jobs (Careers) ---------- */
.jobs { display: grid; gap: 1rem; }
.job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 1.6rem; border: 1px solid var(--c-line-light); border-radius: var(--radius);
  background: var(--c-surface); transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast); }
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: rgba(31,107,255,.35); }
.job__title { font-size: 1.2rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; color: var(--c-ink-2); font-size: .9rem; }
.job__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.job__meta svg { width: 15px; height: 15px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a { min-width: 44px; height: 44px; padding: 0 .6rem; display: grid; place-items: center; border-radius: 11px;
  border: 1px solid var(--c-line-light); font-family: var(--ff-head); font-weight: 600; color: var(--c-ink);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination a.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
[dir="rtl"] .pagination svg { transform: scaleX(-1); }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-inline-start: 2rem; }
.timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 0; width: 2px; background: var(--c-line-light); }
.tl-item { position: relative; padding-bottom: 2.2rem; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -2rem; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-primary); box-shadow: 0 0 0 4px rgba(31,107,255,.18); transform: translateX(-50%); }
[dir="rtl"] .tl-item::before { transform: translateX(50%); }
.tl-item__year { font-family: var(--ff-head); font-weight: 800; color: var(--c-primary); font-size: 1.1rem; }
.tl-item__title { font-size: 1.15rem; margin-top: .2rem; }
.tl-item__text { color: var(--c-ink-2); margin-top: .3rem; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: .8rem; max-width: 520px; margin-top: 1.8rem; }
.newsletter .input { flex: 1; }
@media (max-width: 480px) { .newsletter { flex-direction: column; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .vgrid { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media, [dir="rtl"] .split--reverse .split__media { order: -1; }
}
@media (max-width: 640px) {
  .cards, .cards--2, .cards--4, .vgrid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
}
