/* ═══════════════════════════════════════════════
   ATS SECURITY — INNER PAGES CSS
   css/pages.css
   Shared styles for about, services, mobiliis,
   contact inner pages
   ═══════════════════════════════════════════════ */

/* ── Page Header (all inner pages) ─────────────── */
.page-header {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--side-pad) clamp(52px,8vh,80px);
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(192,57,43,.06) 0%,
    transparent 55%
  );
  pointer-events: none;
}

/* Decorative grid lines */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .5;
  pointer-events: none;
}

.page-header-eyebrow {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s .4s var(--ease-expo),
              transform .9s .4s var(--ease-expo);
}
.page-header-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.page-header.ready .page-header-eyebrow {
  opacity: 1;
  transform: none;
}

.page-header h1 {
  font-family: var(--font-d);
  font-size: clamp(48px,8vw,110px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.03em;
  position: relative;
  z-index: 1;
}
.page-header h1 .line         { display: block; overflow: hidden; }
.page-header h1 .line span    {
  display: block;
  transform: translateY(110%);
  transition: transform 1.4s var(--ease-expo);
}
.page-header h1 .line.d2 span { transition-delay: .1s; }
.page-header.ready h1 .line span { transform: translateY(0); }
.page-header h1 em { font-style: italic; color: var(--red); }

.page-header-desc {
  font-size: clamp(14px,1.3vw,17px);
  line-height: 1.75;
  color: var(--fg2);
  max-width: 480px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s .7s var(--ease-expo),
              transform .9s .7s var(--ease-expo);
}
.page-header.ready .page-header-desc {
  opacity: 1;
  transform: none;
}

/* Page header breadcrumb nav */
.page-header-breadcrumb {
  position: absolute;
  top: 100px;
  left: var(--side-pad);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.page-header-breadcrumb a {
  color: var(--warm);
  transition: color .3s;
}
.page-header-breadcrumb a:hover { color: var(--red); }
.page-header-breadcrumb .sep   { color: var(--muted); }
.page-header-breadcrumb .cur   { color: var(--red); }

/* ── About Page Specifics ──────────────────────── */
.about-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,8vw,120px);
  align-items: center;
}
.about-two-col.reverse { direction: rtl; }
.about-two-col.reverse > * { direction: ltr; }

.about-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease-expo);
}
.about-img-wrap:hover img { transform: scale(1.01); }

.about-img-caption {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(10,9,8,.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-red);
  color: var(--red);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 2px;
}

/* ── Services Page Specifics ────────────────────── */
.service-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,8vw,120px);
  align-items: center;
  padding: clamp(56px,10vh,96px) 0;
  border-bottom: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}
.service-detail-block:last-child { border-bottom: none; }
.service-detail-block.flip       { direction: rtl; }
.service-detail-block.flip > *   { direction: ltr; }

.service-detail-img {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.service-detail-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.4s var(--ease-expo);
}
.service-detail-img:hover img { transform: scale(1.01); }
.service-detail-img-tag {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(10,9,8,.85);
  border: 1px solid var(--border-red);
  color: var(--red);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
}

.service-detail-eyebrow {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.service-detail-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--red);
}
.service-detail-title {
  font-family: var(--font-d);
  font-size: clamp(28px,3.5vw,48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.service-detail-title em { font-style: italic; color: var(--red); }
.service-detail-body {
  font-size: clamp(14px,1.2vw,16px);
  line-height: 1.8;
  color: var(--fg2);
  margin-bottom: 14px;
}

.service-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}
.service-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.5;
}
.service-bullet-item::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Process steps */
.process-grid-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
  margin-top: 48px;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .4s, background .4s;
}
.process-card:hover { border-color: var(--border-red); background: var(--bg2); }
.process-card-num {
  font-family: var(--font-d);
  font-size: 68px;
  font-weight: 300;
  color: rgba(240,236,228,.05);
  line-height: 1;
  position: absolute;
  top: 12px; right: 16px;
  pointer-events: none;
}
.process-card h3 {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 300;
  margin: 8px 0 10px;
  transition: color .3s;
  line-height: 1.2;
}
.process-card:hover h3 { color: var(--red); }
.process-card p { font-size: 12px; color: var(--warm); line-height: 1.65; }

/* Sectors tag cloud */
.sectors-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.sector-tag {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  color: var(--fg2);
  padding: 10px 20px;
  border-radius: 2px;
  cursor: none;
  transition: background .3s, border-color .3s, color .3s,
              transform .3s var(--ease-spring);
}
.sector-tag:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Mobiliis Page Specifics ────────────────────── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px,8vw,120px);
  align-items: center;
  padding: var(--section-pad) var(--side-pad);
}
.feature-block.flip    { direction: rtl; }
.feature-block.flip>*  { direction: ltr; }

.feature-block img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
}

.feature-list-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
}
.feature-list-row-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.feature-list-row-item:last-child { border-bottom: none; }
.feature-icon-box {
  width: 32px; height: 32px;
  border: 1px solid var(--border-red);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.feature-item-title { font-size: 14px; font-weight: 500; color: var(--fg); margin-bottom: 3px; }
.feature-item-desc  { font-size: 12px; color: var(--warm); line-height: 1.5; }

/* App role cards */
.roles-3col {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  margin-top: 48px;
}
.role-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: border-color .4s, background .4s;
}
.role-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-expo);
}
.role-block:hover { border-color: var(--border-red); background: var(--bg2); }
.role-block:hover::before { transform: scaleX(1); }
.role-block-tag {
  font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.role-block h3 {
  font-family: var(--font-d); font-size: clamp(22px,2vw,28px);
  font-weight: 300; margin-bottom: 10px; line-height: 1.15;
  transition: color .3s;
}
.role-block:hover h3 { color: var(--red); }
.role-block p { font-size: 13px; color: var(--warm); line-height: 1.7; margin-bottom: 14px; }
.role-block ul { display: flex; flex-direction: column; gap: 7px; }
.role-block li {
  font-size: 12px; color: var(--fg2);
  display: flex; align-items: flex-start; gap: 8px;
}
.role-block li::before { content: '→'; color: var(--red); flex-shrink: 0; }

/* Download cards */
.download-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px,4vw,48px);
  margin-top: 40px;
}
.download-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 36px 32px;
  transition: border-color .4s, transform .4s var(--ease-expo);
}
.download-block:hover { border-color: var(--border-red); transform: translateY(-4px); }
.download-block-tag {
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.download-block h3 {
  font-family: var(--font-d); font-size: clamp(22px,2.2vw,30px);
  font-weight: 300; margin-bottom: 12px;
}
.download-block p { font-size: 13px; color: var(--warm); line-height: 1.7; margin-bottom: 22px; }
.download-block-note { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* ── Contact Page Specifics ─────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(48px,8vw,120px);
  align-items: start;
}
.contact-info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-block:last-of-type { border-bottom: none; }
.contact-info-icon-box {
  width: 40px; height: 40px;
  border: 1px solid var(--border-red);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
  margin-top: 2px;
}
.contact-info-label { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--warm); margin-bottom: 4px; }
.contact-info-val   { font-size: 15px; color: var(--fg); font-weight: 500; line-height: 1.4; }
.contact-info-sub   { font-size: 12px; color: var(--warm); margin-top: 2px; }

/* Form wrapper card */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(28px,4vw,48px);
}
.form-card-title {
  font-family: var(--font-d);
  font-size: clamp(22px,2.2vw,30px);
  font-weight: 300;
  margin-bottom: 4px;
}
.form-card-sub { font-size: 13px; color: var(--warm); margin-bottom: 28px; }

.enquiry-form { display: flex; flex-direction: column; gap: 14px; }
.form-2col    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Honeypot */
.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0; left: 0;
  height: 0; width: 0;
  z-index: -1;
}

/* Submit wrapper */
.form-action-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-action-note { font-size: 12px; color: var(--muted); flex: 1; min-width: 180px; }

/* Response messages */
.form-response {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 2px;
  display: none;
  margin-top: 10px;
}
.form-response.success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #22c55e;
  display: block;
}
.form-response.error {
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  color: var(--red);
  display: block;
}

/* Map placeholder */
.map-area {
  width: 100%;
  height: clamp(260px,38vh,460px);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.map-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}
.map-pin-centre {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  text-align: center;
  z-index: 1;
}
.map-pin-dot {
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(192,57,43,.4);
}
.map-pin-dot svg { transform: rotate(45deg); color: #fff; }
.map-pin-name    { font-family: var(--font-d); font-size: 18px; font-weight: 300; }
.map-pin-sub     { font-size: 11px; color: var(--warm); margin-top: 3px; }
.map-open-btn    {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
  border-bottom: 1px solid var(--border-red);
  padding-bottom: 2px;
  transition: color .3s;
}
.map-open-btn:hover { color: var(--red-light); }

/* FAQ */
.faq-list { margin-top: 40px; }
.faq-row  { border-bottom: 1px solid var(--border); }
.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: none;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}
.faq-trigger-text {
  font-family: var(--font-d);
  font-size: clamp(16px,1.6vw,21px);
  font-weight: 300;
  color: var(--fg);
  transition: color .3s;
}
.faq-trigger:hover .faq-trigger-text,
.faq-trigger[aria-expanded="true"] .faq-trigger-text { color: var(--red); }
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--muted);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 18px; line-height: 1;
  transition: background .3s, border-color .3s, color .3s;
  flex-shrink: 0;
  font-family: var(--font-b);
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s var(--ease-expo);
}
.faq-panel.open { max-height: 320px; }
.faq-panel-inner {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--warm);
  line-height: 1.75;
  max-width: 640px;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .process-grid-4 { grid-template-columns: 1fr 1fr; }
  .roles-3col     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-two-col,
  .service-detail-block,
  .feature-block,
  .contact-split,
  .download-2col { grid-template-columns: 1fr; }

  .about-two-col.reverse,
  .service-detail-block.flip,
  .feature-block.flip { direction: ltr; }

  .service-detail-block { padding: clamp(40px,6vh,64px) 0; }
}
@media (max-width: 640px) {
  .process-grid-4 { grid-template-columns: 1fr; }
  .roles-3col     { grid-template-columns: 1fr; }
  .form-2col      { grid-template-columns: 1fr; }
  .page-header    { min-height: 45vh; }
  .page-header-breadcrumb { top: 80px; }
}
