/* ==========================================================================
   Askari Aviation - shared site styles (loaded via includes/head-extra.php)
   One font, one palette, one heading pattern, one card style, one button style.
   ========================================================================== */

:root {
  --ak-primary: #154ab4;   /* brand blue: buttons, headings, links      */
  --ak-primary-dark: #094a99;
  --ak-navy: #163d73;      /* intro headings, card titles               */
  --ak-dark: #1d2f46;      /* dark UI (tabs, footer-like blocks)        */
  --ak-accent: #4eb3e4;    /* light blue accent (hero form headers)     */
  --ak-light: #f4f7fa;     /* panels / alternate section background     */
  --ak-border: #e3e7ee;
  --ak-text: #444;
  --ak-muted: #6b7280;
  --ak-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* aliases used by older markup / header.php */
  --primary: var(--ak-primary);
  --dark-blue: var(--ak-navy);
}

html { scroll-behavior: smooth; }
.logo-font { font-family: 'Space Grotesk', var(--ak-font); }
body { font-family: var(--ak-font); color: var(--ak-text); background: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ak-font); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ak-accent); outline-offset: 2px; }

/* ---------- Headings ---------- */
.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--ak-primary);
  margin: 0 0 1.25rem;
}
.section-sub { max-width: 820px; font-size: 1.1rem; line-height: 1.7; margin: 0 auto 2rem; text-align: center; }
.section-pad { padding: 56px 0; }
.ak-panel { background: var(--ak-light); padding: 56px 0; }

/* ---------- Page hero (every inner page) ---------- */
.page-hero {
  min-height: 360px;
  padding: 120px 20px 60px;           /* clears the fixed navbar */
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    var(--hero-img, none) center center / cover no-repeat;
  background-color: var(--ak-dark);
}
.page-hero h1 { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 .75rem; }
.page-hero p  { font-size: clamp(1rem, 2.4vw, 1.4rem); margin: 0; }

.page-intro { padding: 56px 0 24px; text-align: center; }

.page-intro h1, .page-intro h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); color: var(--ak-navy); margin-bottom: 1rem; }
.page-intro p { max-width: 900px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }

/* ---------- Cards (flat, square) ---------- */
.ak-card { background: #fff; border: 1px solid var(--ak-border); border-radius: 0; overflow: hidden; transition: box-shadow .3s ease; }
.ak-card:hover { box-shadow: 0 5px 12px rgba(0,0,0,.12); }
.ak-card h3 { font-size: 1.35rem; font-weight: 600; color: var(--ak-navy); margin-bottom: .75rem; }
.ak-card p  { line-height: 1.6; }
.ak-card-body { padding: 24px; }
.ak-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }

.ak-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }

/* ---------- Buttons ---------- */
.ak-btn {
  display: inline-block; background: var(--ak-primary); color: #fff; border: 0; border-radius: 0;
  padding: 10px 24px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s ease;
}
.ak-btn:hover, .ak-btn:focus-visible { background: var(--ak-primary-dark); color: #fff; }
.ak-btn:disabled { opacity: .6; cursor: wait; }
.ak-btn-block { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; }

/* ---------- Forms ---------- */
.ak-form-wrap { background: var(--ak-light); padding: 56px 20px; display: flex; justify-content: center; }
.ak-form-card { width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--ak-border); border-radius: 0; }
.ak-form-card .form-head { padding: 28px 28px 16px; border-bottom: 3px solid var(--ak-primary); }
.ak-form-card .form-head h2 { font-size: 1.6rem; font-weight: 600; color: #111; margin: 0 0 4px; }
.ak-form-card .form-head p { margin: 0; color: var(--ak-muted); }
.ak-form-card form { padding: 24px 28px 28px; }
.ak-field { margin-bottom: 16px; }
.ak-field label { display: block; font-size: .85rem; font-weight: 600; color: #555; margin-bottom: 6px; }
.ak-input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 1rem; color: #222;
  border: 1px solid #cfd6e0; border-radius: 0; background: #fff;
}
.ak-input:focus { outline: none; border-color: var(--ak-primary); box-shadow: 0 0 0 3px rgba(21,74,180,.15); }
.ak-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot */

.ak-toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2000;
  max-width: 340px; padding: 22px 28px; text-align: center; font-size: 1.05rem;
  background: #ecfdf5; color: #0f766e; border: 1px solid #a7f3d0; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
}
.ak-toast.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* ---------- Contact info cards ---------- */
.info-card { text-align: center; padding: 24px 16px; background: #fff; min-height: 220px; }
.info-card i { display: block; font-size: 2.5rem; color: var(--ak-navy); margin-bottom: 1rem; }
.info-card h3 { font-size: 1.25rem; font-weight: 600; }
.info-card p { font-size: 1.1rem; margin: 0; overflow-wrap: anywhere; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid var(--ak-border); cursor: pointer; padding: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 12px 16px; color: #fff; font-weight: 500;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .3s; text-align: left; }
.gallery-item:hover .cap, .gallery-item:focus-visible .cap { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.9); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lightbox .lb-close { top: 10px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; }

/* ---------- Mission / vision, timeline ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.mv-card { background: var(--ak-light); padding: 32px; }
.mv-card h3 { font-size: 1.8rem; font-weight: 700; color: #1a1a1a; margin-bottom: 1rem; }
.mv-card h3::after { content: ''; display: block; width: 4rem; height: 4px; background: var(--ak-primary); margin-top: 1rem; }
.mv-card p { font-size: 1.1rem; line-height: 1.65; margin: 0; }

.timeline { position: relative; padding: 1rem 0; }
.timeline-item { position: relative; padding-left: 3.5rem; margin-bottom: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: .6rem; top: 8px; bottom: calc(-2.5rem - 8px); width: 3px; background: var(--ak-primary); }
.timeline-item:last-child::before { bottom: 0; }   /* last item's line runs to the end of its text */
.timeline-dot { z-index: 1; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--ak-primary); }
.timeline-year { font-weight: 700; color: var(--ak-primary); font-size: 1.3rem; margin-bottom: .25rem; }
.timeline-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }

/* ---------- Misc ---------- */
.value-icon { font-size: 3.5rem; color: var(--ak-navy); margin-bottom: 1rem; display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* infinite marquees (home page) stop and become scrollable strips instead of flickering */
  .slider-track, .gallery-track { animation: none !important; }
  .slider-wrapper, .gallery-wrapper { overflow-x: auto; }
}

/* ==========================================================================
   Navbar (moved from header.php; scoped so it no longer leaks into other .nav-link tabs)
   ========================================================================== */
.ak-skip { position: absolute; left: 8px; top: 8px; z-index: 3100; background: #fff; color: var(--ak-primary); padding: 8px 14px; font-weight: 600; }
.navbar-askari {
  --bs-navbar-color: #111; --bs-navbar-hover-color: var(--ak-primary); --bs-navbar-active-color: var(--ak-primary);
  background: #fff; backdrop-filter: blur(10px); padding-top: 0; padding-bottom: 0; min-height: 40px;
  box-shadow: 0 1px 0 var(--ak-border);
}
.navbar-askari .navbar-brand { font-weight: 700; color: #000; }
.navbar-askari .header-logo { height: 36px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-name { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -1px; color: #000; }
.brand-sub { display: block; font-size: 11px; letter-spacing: 1px; color: #555; }
.navbar-askari .nav-link { font-weight: 600; transition: color .25s ease; }
.navbar-askari .nav-link:hover, .navbar-askari .nav-link.active { text-decoration: underline; text-underline-offset: 6px; }
.btn-investor { display: inline-block; background: #c40000; color: #fff; text-decoration: none; border-radius: 0; padding: 10px 20px; font-size: 16px; white-space: nowrap; }
.btn-investor:hover, .btn-investor:focus-visible { background: #9e0000; color: #fff; }

/* ==========================================================================
   Footer + floating share menu (moved from footer.php)
   ========================================================================== */
.footer-askari { background: var(--ak-primary); color: #fff; padding: 1rem 0; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; color: #fff; }
.footer-logo { width: 52px; height: 52px; object-fit: cover; }
.footer-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; color: #fff; }
.footer-link { color: #fff; font-size: .9rem; text-decoration: none; transition: color .2s; }
.footer-link:hover, .footer-link:focus-visible { color: #6bcbf6; }
.footer-credit { color: #6bcbf6; }
.footer-askari address p { margin-bottom: .75rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; text-decoration: none; transition: background .2s; }
.footer-social a:hover, .footer-social a:focus-visible { background: rgba(255,255,255,.3); }

.social-container { position: fixed; bottom: 25px; left: 25px; z-index: 1035; }
.main-btn { width: 40px; height: 40px; border: none; border-radius: 50%; background: #007bff; color: #fff; font-size: 16px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: .3s; }
.main-btn:hover { transform: scale(1.08); }
.social-links { position: absolute; bottom: 55px; left: 0; width: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.social-links a { width: 44px; height: 44px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; text-decoration: none;
  font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8); transition: all .35s ease; }
.social-container.active .social-links a { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.social-container.active .social-links a:nth-child(1) { transition-delay: .05s; }
.social-container.active .social-links a:nth-child(2) { transition-delay: .10s; }
.social-container.active .social-links a:nth-child(3) { transition-delay: .15s; }
.social-container.active .social-links a:nth-child(4) { transition-delay: .20s; }
.social-links a:hover { transform: scale(1.15); }
.social-links .instagram { background: #E4405F; } .social-links .linkedin { background: #0077B5; }
.social-links .facebook { background: #1877F2; }  .social-links .tiktok { background: #000; }

/* ==========================================================================
   Legal pages (policy.php + tos.php shared this block verbatim)
   ========================================================================== */
.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-toc { position: sticky; top: 90px; padding: 20px; }
.legal-toc-title { font-size: 1rem; font-weight: 700; color: var(--ak-navy); margin: 0 0 .75rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; }
.legal-toc a { display: block; padding: 6px 0 6px 10px; color: var(--ak-text); text-decoration: none; font-size: .95rem; border-left: 3px solid transparent; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--ak-primary); border-left-color: var(--ak-primary); }
.legal-section { margin-bottom: 24px; scroll-margin-top: 90px; }
.legal-section h2 { font-size: 1.4rem; font-weight: 700; color: var(--ak-navy); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ak-primary); }
.legal-section p, .legal-section li { line-height: 1.75; }
.legal-section ul { padding-left: 1.4rem; margin-bottom: 0; }
.legal-section li { margin-bottom: .6rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section thead th { background: var(--ak-light); }
.legal-updated { display: inline-block; padding: 6px 14px; background: var(--ak-light); border: 1px solid var(--ak-border); font-size: .95rem; color: var(--ak-muted); }
@media (max-width: 991px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } }
