/* =========================================================
   GLOBAL FORMZ — Design System
   Subject: administrative & document-preparation support for
   newcomers, students, workers & families. The page's job:
   turn "too much paperwork" into "a clear, confident next step."
   Signature motif: the folder-tab card + the clearance stamp —
   a warm nod to the world of files, checklists and approvals,
   without ever looking like a government form.
   ========================================================= */

:root{
  /* ---- Color tokens (real Arriviana brand) ---- */
  --navy:        #1B3A34;
  --navy-2:      #12261F;
  --forest:      #1A2B22;
  --forest-mid:  #233C30;
  --teal:        #4D785C;
  --teal-light:  #6C8A7C;
  --teal-pale:   #EAF0EC;
  --beige:       #FBF9F4;
  --beige-2:     #E8E6E2;
  --white:       #FFFFFF;
  --tan:         #F5DCB1;
  --gold:        #C59F59;
  --gold-muted:  #9D8047;
  --gold-soft:   #E8D3AE;
  --ink:         #1D1E20;
  --ink-soft:    #4A534E;
  --line:        #DDD3BE;

  /* ---- Type tokens (real Arriviana brand) ---- */
  --font-display: 'Hedvig Letters Serif', 'Noto Serif', Georgia, serif;
  --font-body:    'Manrope', 'Noto Sans', -apple-system, Segoe UI, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-arabic:  'IBM Plex Sans Arabic', 'Cairo', 'Noto Sans Arabic', sans-serif;

  /* ---- Layout tokens ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-soft: 0 10px 30px -12px rgba(22,35,63,0.18);
  --shadow-lift: 0 18px 44px -16px rgba(22,35,63,0.28);
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--beige);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
html[dir="rtl"] body{ font-family:var(--font-arabic); }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-display); margin:0 0 .5em; color:var(--navy); font-weight:600; letter-spacing:-0.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4{ font-family:var(--font-arabic); font-weight:700; }
p{ margin:0 0 1em; color:var(--ink-soft); }

:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
.section{ padding:88px 0; }
.section--tight{ padding:56px 0; }
.section--navy{ background:linear-gradient(160deg,var(--forest-mid) 0%, var(--navy-2) 100%); color:var(--beige); }
.section--navy h2, .section--navy h3{ color:var(--white); }
.section--navy p{ color:#C7CEDD; }
.section--teal{ background:var(--teal-pale); }
.section--beige2{ background:var(--beige-2); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-muted); font-weight:600; margin-bottom:14px;
}
.eyebrow::before{ content:""; width:18px; height:1px; background:var(--gold); display:inline-block; }
html[dir="rtl"] .eyebrow{ font-family:var(--font-arabic); letter-spacing:0; }

.section-head{ max-width:640px; margin-bottom:44px; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:var(--btn-radius, 999px); font-weight:600; font-size:.95rem;
  border:1.5px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--gold); color:var(--navy); box-shadow:var(--shadow-soft); }
.btn-primary:hover{ background:#D6AD53; box-shadow:var(--shadow-lift); }
.btn-outline{ background:transparent; border-color:rgba(255,255,255,.5); color:inherit; }
.btn-outline:hover{ border-color:var(--gold); }
.btn-outline-navy{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn-outline-navy:hover{ background:var(--navy); color:var(--white); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:.85rem; }

/* ---- Header / Nav ---- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(245,220,177,.96); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px var(--gutter); max-width:var(--maxw); margin:0 auto; gap:20px;}
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:1.25rem; color:var(--navy); }
.brand-mark{ width:34px; height:34px; flex-shrink:0; }
.nav-links{ display:flex; gap:26px; align-items:center; }
.nav-links a{ font-size:.92rem; font-weight:500; color:var(--navy); position:relative; padding:4px 0; }
.nav-links a::after{ content:""; position:absolute; left:0; bottom:-3px; width:0; height:2px; background:var(--gold); transition:width .2s ease; }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-actions{ display:flex; align-items:center; gap:14px; }
.lang-switch{ display:flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.lang-switch button{ border:0; background:transparent; padding:7px 12px; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.05em; cursor:pointer; color:var(--ink-soft); }
.lang-switch button.active{ background:var(--navy); color:var(--white); }
.nav-links .mobile-lang{ display:none; }
.nav-toggle{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; }

/* ---- Hero ---- */
.hero{ padding:64px 0 40px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(2.2rem,4.4vw,3.4rem); line-height:1.08; }
.hero .lead{ font-size:1.12rem; max-width:52ch; }
.hero-cta{ display:flex; gap:14px; margin-top:28px; flex-wrap:wrap; }
.hero-trust{ display:flex; gap:26px; margin-top:38px; flex-wrap:wrap; }
.hero-trust div{ display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--ink-soft); font-weight:600; }
.hero-trust svg{ width:20px; height:20px; color:var(--teal); }

/* Signature illustration: scattered documents settling into an organized, stamped stack */
.doc-illustration{ position:relative; width:100%; aspect-ratio:1/1; max-width:440px; margin-inline:auto; }
.doc-illustration svg{ width:100%; height:100%; overflow:visible; }
.doc-scatter{ animation: settle 1.1s cubic-bezier(.2,.8,.2,1) both; }
.doc-scatter:nth-child(1){ animation-delay:.05s; }
.doc-scatter:nth-child(2){ animation-delay:.14s; }
.doc-scatter:nth-child(3){ animation-delay:.22s; }
.doc-scatter:nth-child(4){ animation-delay:.30s; }
.doc-stamp{ animation: pop-in .5s .55s cubic-bezier(.34,1.56,.64,1) both; transform-origin:center; }
@keyframes settle{ from{ transform:translateY(-14px) rotate(var(--rot,0deg)) scale(.96); opacity:0;} to{ transform:translateY(0) rotate(var(--rot,0deg)) scale(1); opacity:1;} }
@keyframes pop-in{ from{ transform:scale(0) rotate(-18deg); opacity:0;} to{ transform:scale(1) rotate(-8deg); opacity:1;} }
@media (prefers-reduced-motion: reduce){ .doc-scatter, .doc-stamp{ animation:none !important; } }

/* ---- Disclaimer banner ---- */
.disclaimer{
  background:var(--forest); color:var(--beige); border-radius:var(--radius-md);
  padding:20px 26px; display:flex; gap:14px; align-items:flex-start; font-size:.88rem;
  border:1px solid rgba(200,155,60,.35);
}
.disclaimer svg{ width:22px; height:22px; flex-shrink:0; color:var(--gold); margin-top:2px; }
.disclaimer strong{ color:var(--gold); }
.disclaimer p{ margin:0; color:#D8DEEA; }

/* ---- Folder-tab card (signature) ---- */
.tab-card{
  position:relative; background:var(--white); border-radius:0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding:30px 26px 26px; box-shadow:var(--shadow-soft); border:1px solid rgba(22,35,63,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}
html[dir="rtl"] .tab-card{ border-radius:var(--radius-md) 0 var(--radius-md) var(--radius-md); }
.tab-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lift); }
.tab-card::before{
  content:""; position:absolute; top:-14px; left:0; width:74px; height:14px;
  background:var(--white); border-radius:8px 8px 0 0; border:1px solid rgba(22,35,63,.06); border-bottom:none;
}
html[dir="rtl"] .tab-card::before{ left:auto; right:0; border-radius:8px 8px 0 0; }
.tab-card .icon{
  width:46px; height:46px; border-radius:12px; background:var(--teal-pale); color:var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.tab-card .icon svg{ width:24px; height:24px; }
.tab-card h3{ font-size:1.12rem; margin-bottom:8px; }
.tab-card p{ font-size:.92rem; margin-bottom:0; }

/* ---- Clearance stamp (signature badge) ---- */
.stamp{
  width:64px; height:64px; border-radius:50%; border:2px solid var(--gold);
  display:flex; align-items:center; justify-content:center; position:relative; flex-shrink:0;
  color:var(--gold); background:rgba(200,155,60,.06);
}
.stamp::before{ content:""; position:absolute; inset:6px; border:1px dashed var(--gold); border-radius:50%; opacity:.6; }
.stamp svg{ width:26px; height:26px; }
.stamp.sm{ width:40px; height:40px; } .stamp.sm svg{ width:18px; height:18px; }

/* ---- Grids ---- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:26px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }

/* ---- Process steps ---- */
.process-track{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; counter-reset:step; position:relative; }
.process-step{ position:relative; padding:0 22px; text-align:center; }
.process-step .stamp{ margin:0 auto 18px; }
.process-step h3{ font-size:1.05rem; }
.process-step p{ font-size:.9rem; }
.process-track::before{
  content:""; position:absolute; top:32px; left:16%; right:16%; height:1px;
  background:repeating-linear-gradient(90deg,var(--gold) 0 8px, transparent 8px 16px);
}

/* ---- Testimonials ---- */
.testimonial{ background:var(--white); border-radius:var(--radius-md); padding:28px; box-shadow:var(--shadow-soft); }
.testimonial p{ font-style:italic; color:var(--ink); }
.testimonial-foot{ display:flex; align-items:center; gap:12px; margin-top:16px; }
.avatar-initial{ width:40px; height:40px; border-radius:50%; background:var(--navy); color:var(--gold); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:600; }
.testimonial-foot .name{ font-weight:600; color:var(--navy); font-size:.9rem; }
.testimonial-foot .meta{ font-size:.78rem; color:var(--ink-soft); }

/* ---- FAQ ---- */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; text-align:left; background:none; border:0; padding:20px 0; display:flex; justify-content:space-between; align-items:center; gap:16px; cursor:pointer; font-family:var(--font-display); font-size:1.02rem; color:var(--navy); font-weight:600; }
html[dir="rtl"] .faq-q{ text-align:right; }
.faq-q .plus{ width:22px; height:22px; flex-shrink:0; position:relative; }
.faq-q .plus::before, .faq-q .plus::after{ content:""; position:absolute; background:var(--teal); transition:transform .2s ease; }
.faq-q .plus::before{ width:100%; height:2px; top:50%; left:0; transform:translateY(-50%); }
.faq-q .plus::after{ width:2px; height:100%; left:50%; top:0; transform:translateX(-50%); }
.faq-item.open .faq-q .plus::after{ transform:translateX(-50%) rotate(90deg); opacity:0; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-item.open .faq-a{ max-height:400px; }
.faq-a p{ padding-bottom:20px; margin:0; font-size:.94rem; }

/* ---- Footer ---- */
.site-footer{ background:var(--forest); color:#D8DCD5; padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:40px; margin-bottom:40px; }
.site-footer h4{ color:var(--white); font-size:.92rem; margin-bottom:16px; }
.site-footer a{ font-size:.88rem; color:#B9C2D6; display:block; padding:5px 0; }
.site-footer a:hover{ color:var(--gold); }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.2rem; color:var(--white); margin-bottom:14px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.78rem; }
.footer-legal-note{ font-size:.78rem; color:#8E9AB5; max-width:640px; line-height:1.6; }

/* ---- Forms ---- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.85rem; font-weight:600; color:var(--navy); margin-bottom:6px; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:var(--radius-sm);
  font-family:var(--font-body); font-size:.95rem; background:var(--white); color:var(--ink);
}
html[dir="rtl"] .field input, html[dir="rtl"] .field select, html[dir="rtl"] .field textarea{ font-family:var(--font-arabic); }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--teal); outline:none; box-shadow:0 0 0 3px var(--teal-pale); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.checkbox-row{ display:flex; gap:10px; align-items:flex-start; font-size:.85rem; color:var(--ink-soft); }
.checkbox-row input{ margin-top:3px; }

/* ---- Utility ---- */
.badge{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; background:var(--teal-pale); color:var(--teal); font-size:.76rem; font-weight:700; letter-spacing:.03em; }
.card-white{ background:var(--white); border-radius:var(--radius-md); box-shadow:var(--shadow-soft); padding:28px; }
.divider-dashed{ border:none; border-top:1px dashed var(--line); margin:32px 0; }
.mono{ font-family:var(--font-mono); }
.text-center{ text-align:center; }
.mt-0{margin-top:0;}

/* ---- Progress tracker (How it works / Portal) ---- */
.progress-track{ display:flex; align-items:center; gap:0; margin:36px 0; }
.progress-node{ display:flex; flex-direction:column; align-items:center; flex:1; position:relative; text-align:center; }
.progress-node .dot{ width:16px; height:16px; border-radius:50%; background:var(--white); border:2.5px solid var(--gold); z-index:2; margin-bottom:10px; }
.progress-node.done .dot{ background:var(--gold); }
.progress-node .label{ font-size:.76rem; font-weight:600; color:var(--ink-soft); max-width:110px; }
.progress-node.done .label{ color:var(--navy); }
.progress-line{ position:absolute; top:8px; left:-50%; width:100%; height:2px; background:var(--line); z-index:1; }
.progress-node.done .progress-line{ background:var(--gold); }
.progress-node:first-child .progress-line{ display:none; }

/* ---- Status pill (Portal) ---- */
.status-pill{ display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:999px; font-size:.75rem; font-weight:700; }
.status-pill.received{ background:#E4EFEA; color:var(--teal); }
.status-pill.waiting{ background:#FBF0DC; color:#95701C; }
.status-pill.review{ background:#E6ECFB; color:#33499E; }
.status-pill.action{ background:#FBE4E0; color:#B5401E; }
.status-pill.done{ background:#E4EFEA; color:var(--teal); }

/* ---- Responsive ---- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-grid .doc-illustration{ order:-1; max-width:280px; }
  .grid-3, .grid-4{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .process-track{ grid-template-columns:1fr; gap:36px; }
  .process-track::before{ display:none; }
}
@media (max-width: 700px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
  .nav-actions .btn span.long{ display:none; }
  .grid-3, .grid-4, .grid-2{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .disclaimer{ flex-direction:column; }
}

@media (max-width: 560px){
  .nav{ padding:12px 16px; gap:8px; }
  .brand{ font-size:1.02rem; white-space:nowrap; gap:6px; }
  .brand-mark{ width:26px; height:26px; }
  .nav-actions{ gap:8px; }
  .nav-actions .lang-switch{ display:none; }
  .nav-actions .btn-primary{ padding:9px 14px; font-size:.78rem; }
  .nav-toggle{ padding:4px; }
  .nav-links.open{ padding:14px 16px 18px; }
  .nav-links .mobile-lang{ display:flex; gap:8px; padding:14px 0 4px; border-top:1px solid var(--beige-2); margin-top:8px; }
  .nav-links .mobile-lang button{ flex:1; padding:8px; border:1px solid var(--line); border-radius:8px; background:var(--white); font-family:var(--font-mono); font-size:.75rem; cursor:pointer; }
  .nav-links .mobile-lang button.active{ background:var(--navy); color:var(--white); border-color:var(--navy); }
}

/* Mobile nav drawer */
.nav-links.open{
  display:flex; position:absolute; top:100%; left:0; right:0; background:var(--white);
  flex-direction:column; padding:18px var(--gutter); gap:4px; border-bottom:1px solid var(--line); box-shadow:var(--shadow-soft);
}
.nav-links.open a{ padding:12px 0; border-bottom:1px solid var(--beige-2); }

/* ---- Scroll-reveal micro-interactions ---- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(18px); transition:opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in-view > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.in-view > *:nth-child(1){ transition-delay:.02s; }
.reveal-stagger.in-view > *:nth-child(2){ transition-delay:.09s; }
.reveal-stagger.in-view > *:nth-child(3){ transition-delay:.16s; }
.reveal-stagger.in-view > *:nth-child(4){ transition-delay:.23s; }
.reveal-stagger.in-view > *:nth-child(5){ transition-delay:.30s; }
.reveal-stagger.in-view > *:nth-child(6){ transition-delay:.37s; }
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-stagger > *{ opacity:1 !important; transform:none !important; transition:none !important; }
}

/* Hero illustration subtle tilt-on-hover (desktop) */
.doc-illustration{ transition:transform .3s ease; transform-style:preserve-3d; }

/* Buttons: slightly livelier press feedback */
.btn{ transition:transform .15s ease, box-shadow .15s ease, background .2s ease, filter .15s ease; }
.btn:active{ transform:translateY(0) scale(.97); }

/* Card lift already present via .tab-card:hover — extend to testimonial/stat cards */
.testimonial, .stat-card, .card-white{ transition:transform .2s ease, box-shadow .2s ease; }

/* Back-to-top button */
.back-to-top{
  position:fixed; bottom:24px; right:24px; width:46px; height:46px; border-radius:50%;
  background:var(--navy); color:var(--gold); border:0; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lift); cursor:pointer; opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .25s ease, transform .25s ease; z-index:80;
}
.back-to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
.back-to-top svg{ width:20px; height:20px; }
html[dir="rtl"] .back-to-top{ right:auto; left:24px; }

/* ---- Theme runtime overrides ---- */
.btn-primary{ border-radius:var(--btn-radius, 999px); }
.btn-outline, .btn-outline-navy{ border-radius:var(--btn-radius, 999px); }
html.gf-no-anim .reveal, html.gf-no-anim .reveal-stagger > *{ opacity:1 !important; transform:none !important; transition:none !important; }
html.gf-no-anim .doc-illustration{ transition:none !important; }
html.gf-no-anim .doc-scatter, html.gf-no-anim .doc-stamp{ animation:none !important; }
