/* =========================================================
   Vinley Global Ltd — Site Styles (Bootstrap-safe)
   - Designed to work with Bootstrap without breaking layout
   - If Bootstrap is loaded after this CSS by mistake, critical
     components still render correctly due to selective !important
   ========================================================= */

/* -----------------------------
   Design Tokens
------------------------------ */
:root {
  --bg: #070d14;
  --panel: #0b1b2b;
  --panel-2: #0a1523;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.12);

  --brand: #4aa3ff;
  --brand-2: #7bd389;
  --danger: #ff5c5c;

  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 12px;

  --max: 1100px;
}

/* -----------------------------
   Base / Resets
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  line-height: 1.55;

  /* Background */
  background: radial-gradient(
      1100px 650px at 20% 0%,
      rgba(74, 163, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 85% 10%,
      rgba(123, 211, 137, 0.12),
      transparent 60%
    ),
    var(--bg);
}

/* Avoid Bootstrap changing fonts too aggressively */
body,
button,
input,
textarea {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  opacity: 0.92;
}

/* Helper text */
.small {
  font-size: 0.92rem;
}
.muted {
  color: var(--muted);
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 10px;
  z-index: 9999;
}

/* -----------------------------
   Layout Container
   NOTE: Bootstrap defines .container too. We keep it compatible.
------------------------------ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* -----------------------------
   Header / Navigation
------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 20, 0.86);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-mark {
  width: 36px;
  height: 36px;
}
.brand-text strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
}
.brand-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover {
  color: var(--text);
}

.nav a.active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(74, 163, 255, 0.65);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 2px;
}

/* Responsive nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 20px;
    top: 70px;
    flex-direction: column;
    align-items: stretch;
    width: min(320px, calc(100vw - 40px));
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(7, 13, 20, 0.95);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
  }
}

/* -----------------------------
   Buttons (Bootstrap-safe)
   - Use minimal !important to survive wrong load order
------------------------------ */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(74, 163, 255, 0.55) !important;
  background: linear-gradient(
    180deg,
    rgba(74, 163, 255, 0.2),
    rgba(74, 163, 255, 0.08)
  ) !important;
  color: var(--text) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 26px rgba(74, 163, 255, 0.18);
  text-decoration: none !important;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 10px 12px !important;
  border-radius: 12px !important;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  color: var(--text) !important;
}

.btn-block {
  width: 100%;
}

/* -----------------------------
   Sections
------------------------------ */
.section {
  padding: 72px 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  margin-bottom: 18px;
}
.section-head h1,
.section-head h2 {
  margin: 0 0 10px 0;
  letter-spacing: 0.2px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
}

/* -----------------------------
   Hero
------------------------------ */
.hero {
  position: relative;
  padding: 82px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.hero-copy .eyebrow {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0 0 8px 0;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 10px 0;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px 0;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Optional media block for service pages */
.hero-media {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}
.hero-media img {
  width: 100%;
  height: auto;
}

.hero-card .card {
  border-radius: var(--radius);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   Cards / Tiles / Grids
------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card,
.tile,
.service-card,
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  padding: 16px 16px;
}

.card-title {
  margin: 0 0 10px 0;
}

.tile h3,
.service-card h3,
.case h3 {
  margin: 0 0 8px 0;
}

.tile p,
.service-card p,
.case p {
  margin: 0 0 8px 0;
  color: var(--muted);
}

.note {
  border: 1px solid rgba(123, 211, 137, 0.35);
  background: rgba(123, 211, 137, 0.08);
  color: var(--text);
  border-radius: var(--radius);
  padding: 14px 16px;
}

/* Lists */
.bullets,
.checklist {
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.checklist li {
  margin: 6px 0;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 163, 255, 0.45);
  background: rgba(74, 163, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
}

.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
}

/* Leadership */
.leader-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 14px;
  align-items: start;
}

.leader-avatar {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 163, 255, 0.4);
  background: rgba(74, 163, 255, 0.1);
  font-weight: 900;
}

.leader-title {
  margin: 0 0 8px 0;
  color: var(--muted);
  font-weight: 700;
}

.leader-summary {
  margin: 0 0 12px 0;
  color: var(--muted);
}

.leader-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0;
}
@media (max-width: 980px) {
  .leader-columns {
    grid-template-columns: 1fr;
  }
}

.leader-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Contact layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 14px;
}
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  padding: 16px;
}

.field {
  margin-bottom: 12px;
}
label {
  display: block;
  margin: 0 0 6px 0;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(74, 163, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(74, 163, 255, 0.1);
}

/* -----------------------------
   Footer (NORMAL, not fixed)
------------------------------ */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.15);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 34px;
  height: 34px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------
   Bootstrap coexistence notes:
   - If you use Bootstrap .btn-primary etc, they still work.
   - Your custom .btn is intentionally styled for Vinley CTAs.
---------------------------------------------------------- */
