/* Lone Star International - corporate site stylesheet
   Original work. Palette modelled on a contemporary corporate-blue energy look:
   deep navy + bright/sky blue accents, harmonised with the LSI navy + blue droplet logo. */

:root {
  --navy: #013865;        /* primary deep navy */
  --navy-2: #022a49;      /* darker navy for gradients / deep panels */
  --navy-soft: #0a4a7a;   /* lighter navy */
  --blue: #116dff;        /* bright accent blue - links, buttons, eyebrows */
  --blue-dark: #0a55cc;   /* button hover */
  --blue-bright: #3d9be9; /* sky-blue highlight - stats, hovers */
  --slate: #324158;
  --ink: #1f2a37;
  --muted: #5b6b7a;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f2f6fb;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 18px;
  --shadow: 0 8px 30px rgba(1, 32, 58, 0.10);
  --shadow-lg: 0 30px 70px -24px rgba(1, 32, 58, 0.42);
  --maxw: 1240px;
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --grad-accent: linear-gradient(100deg, var(--blue) 0%, var(--blue-bright) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
::selection { background: rgba(17, 109, 255, 0.22); color: var(--navy); }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.2px;
  color: var(--navy);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.4vw, 5.2rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.2px; }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 62ch; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  box-shadow: 0 10px 26px -12px rgba(17, 109, 255, 0.7);
}
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--blue-dark);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--white); text-decoration: none; transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(17, 109, 255, 0.8); }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); box-shadow: none; }
.btn-outline::after { background: rgba(255,255,255,0.14); }
.btn-outline:hover { color: var(--white); border-color: var(--white); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 10px 26px -14px rgba(1, 32, 58, 0.8); }
.btn-dark::after { background: var(--navy-soft); }
.btn-dark:hover { color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; color: var(--navy); }
.brand img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  font-size: 1.02rem; color: var(--navy); padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; border-color: var(--blue); }
.nav-links a.active { color: var(--blue); border-color: var(--blue); }
.nav-links .nav-cta { border: none; }
.nav-links .nav-cta a {
  background: var(--navy); color: var(--white); padding: 10px 22px; border-radius: var(--radius);
}
.nav-links .nav-cta a:hover { background: var(--blue); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }
.nav-links { margin-inline-start: auto; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; flex: none; margin-inline-start: 18px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; font-size: 0.95rem; line-height: 1;
  color: var(--navy); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-btn:hover { color: var(--blue); border-color: var(--blue); }
.lang-btn .lang-globe { width: 15px; height: 15px; }
.lang-btn .lang-chev { width: 11px; height: 11px; transition: transform 0.25s var(--ease); }
.lang-switch.open .lang-btn { color: var(--blue); border-color: var(--blue); }
.lang-switch.open .lang-btn .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 168px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; margin: 0; list-style: none; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.96rem; color: var(--ink);
}
.lang-menu li:hover { background: var(--bg-soft); color: var(--navy); }
.lang-menu li.sel { color: var(--blue); font-weight: 600; }
.lang-menu li .code {
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 1px; font-size: 0.8rem; color: var(--muted);
}
.lang-menu li.sel .code { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--navy-2);
  overflow: hidden;
  min-height: clamp(620px, 92vh, 940px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: -8% 0;
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center;
  transform: scale(1.08) translateY(var(--paraY, 0));
  will-change: transform;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(17,109,255,0.22) 0%, rgba(17,109,255,0) 55%),
    linear-gradient(118deg, rgba(1,20,38,0.95) 0%, rgba(1,44,82,0.82) 48%, rgba(2,28,48,0.70) 100%);
  pointer-events: none;
}
/* fine grid texture + bottom fade into the page */
.hero .hero-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,20,38,0) 62%, rgba(2,20,38,0.55) 100%);
}
.hero-inner { position: relative; z-index: 3; padding: 120px 0; max-width: 940px; }
.hero h1 { color: var(--white); margin-bottom: 0.32em; }
.hero .lead { color: rgba(255,255,255,0.86); max-width: 60ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.hero .eyebrow { color: var(--blue-bright); }
.hero .eyebrow::before { background: var(--blue-bright); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }

/* word-by-word headline reveal (driven by motion.js wrapping) */
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
.hero h1.in .word > span { transform: translateY(0); }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.7);
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 2px; text-transform: uppercase; font-size: 0.72rem;
}
.scroll-cue .mouse {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.5); border-radius: 12px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 12px); } 100% { opacity: 0; } }

.page-hero { min-height: clamp(420px, 58vh, 600px); }
.page-hero .hero-inner { padding: 88px 0; max-width: 820px; }
.page-hero h1 { margin-bottom: 0.3em; }

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(17,109,255,0.18) 0%, rgba(17,109,255,0) 50%),
    var(--navy);
  color: rgba(255,255,255,0.85);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--blue-bright); }
.section-dark .eyebrow::before { background: var(--blue-bright); }
.section-head { max-width: 60ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* animated hairline divider */
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

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

.card {
  position: relative;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 30px; box-shadow: 0 1px 2px rgba(1,32,58,0.04);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(17,109,255,0.14), rgba(61,155,233,0.10));
  color: var(--blue); margin-bottom: 20px;
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 1rem; }
.section-dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.section-dark .card p { color: rgba(255,255,255,0.74); }
.section-dark .card .ico { background: rgba(255,255,255,0.08); color: var(--blue-bright); }

/* capability pillars (home) */
.pillar {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
.pillar.reverse { grid-template-columns: 1.05fr 1fr; }
.pillar.reverse .pillar-media { order: -1; }
.pillar-media {
  border-radius: var(--radius-lg); min-height: 440px; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative; overflow: hidden;
}
.pillar-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pillar-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,40,72,0) 55%, rgba(1,40,72,0.30) 100%);
  pointer-events: none;
}
.pillar ul { list-style: none; padding: 0; margin: 18px 0 0; }
.pillar ul li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); }
.pillar ul li::before { content: "\25C6"; position: absolute; left: 0; color: var(--blue); font-size: 0.8em; top: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { position: relative; padding: 8px 12px; }
.stat + .stat::before {
  content: ""; position: absolute; left: -10px; top: 14%; bottom: 14%; width: 1px;
  background: rgba(255,255,255,0.14);
}
.stat .num {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 700;
  line-height: 1; letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-bright) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--blue-bright);
}
.stat .lbl { font-size: 0.86rem; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.66); margin-top: 8px; }
@media (max-width: 900px) { .stat + .stat::before { display: none; } }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .check {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(17,109,255,0.14);
  color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 3px;
}
.feature-list strong { color: var(--navy); }
.section-dark .feature-list strong { color: var(--white); }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem; font-weight: 700; color: var(--blue); opacity: 0.6;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 140% at 12% 0%, rgba(61,155,233,0.30) 0%, rgba(61,155,233,0) 55%),
    radial-gradient(90% 160% at 100% 100%, rgba(17,109,255,0.32) 0%, rgba(17,109,255,0) 55%),
    linear-gradient(120deg, var(--navy-2) 0%, var(--navy-soft) 100%);
  color: var(--white); text-align: center; padding: clamp(72px, 9vw, 116px) 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.cta-band p { color: rgba(255,255,255,0.84); max-width: 58ch; margin: 0 auto 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-line .ico { color: var(--blue); flex: none; margin-top: 2px; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--navy); }
form input, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,109,255,0.12); }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #021c30; color: rgba(255,255,255,0.72); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.brand-chip {
  display: inline-block; background: #fff; padding: 12px 16px; border-radius: var(--radius);
  line-height: 0; margin-bottom: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.brand-chip img { height: 42px; width: auto; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; letter-spacing: 1.5px; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--blue-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar.reverse { grid-template-columns: 1fr; }
  .pillar.reverse .pillar-media { order: 0; }
  .pillar-media { min-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; order: 3; }
  .brand { order: 1; }
  .lang-switch { order: 2; margin-inline-start: auto; margin-inline-end: 6px; }
  .nav-links { top: 78px; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links li { padding: 0 24px; }
  .nav-links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.active, .nav-links a:hover { border-color: var(--line); }
  .nav-links .nav-cta { padding: 16px 24px; }
  .nav-links .nav-cta a { text-align: center; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 0 80px; }
}

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] body { text-align: right; }
/* Arabic does not suit the condensed Latin display face; use a clean sans. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .eyebrow, [dir="rtl"] .btn, [dir="rtl"] .nav-links a,
[dir="rtl"] .stat .num, [dir="rtl"] .step::before {
  font-family: 'Inter', 'Segoe UI', Tahoma, 'Geeza Pro', 'Noto Naskh Arabic', sans-serif;
}
[dir="rtl"] h1 { letter-spacing: 0; }
[dir="rtl"] .section-head.center { text-align: center; }
/* Mirror the physical decorations */
[dir="rtl"] .pillar ul li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .pillar ul li::before { left: auto; right: 0; }
[dir="rtl"] .stat + .stat::before { left: auto; right: -10px; }
[dir="rtl"] .step::before { left: auto; right: 0; }
[dir="rtl"] .feature-list li { text-align: right; }
[dir="rtl"] .eyebrow { letter-spacing: 1.5px; }
/* keep the scroll cue centred */
[dir="rtl"] .scroll-cue { left: 50%; right: auto; }
