/* ============================================================
   BrivaneAI Career Skills — global styles
   Loaded on every page. Page-specific styles live in their
   own files (home.css, forms.css, ...).
   ============================================================ */

:root {
  /* Brand palette (from mockup) */
  --navy-900: #070b1e;
  --navy-800: #0b1026;
  --navy-700: #131a3a;
  --blue: #2563eb;
  --purple: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --teal: #0d9488;
  --green: #16a34a;

  --grad-brand: linear-gradient(90deg, var(--blue), var(--purple), var(--pink));
  --grad-cta: linear-gradient(90deg, var(--purple), var(--pink), var(--orange));

  /* Neutrals */
  --ink: #1a2036;
  --ink-soft: #4b5268;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;

  /* Type */
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 14px;
  --radius-lg: 22px;
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-gradient {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.35);
}
.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: #fff; }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  color: #fff;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand small {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: #aab1d6;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: #d6daf1;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 8px;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.active {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--pink);
  border-radius: 0;
}

.nav .btn { margin-left: 0.5rem; padding: 0.7rem 1.4rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav .btn { display: none; }
  .nav-links {
    position: absolute;
    inset: 72px 0 auto 0;
    flex-direction: column;
    background: var(--navy-800);
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0.5rem; font-size: 1rem; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Section headings ---- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-soft); }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
}
.section-title .u {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--navy-900);
  color: #b9bfdd;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr 1.4fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #b9bfdd; }
.site-footer a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-contact .phone { color: var(--orange); font-weight: 600; font-size: 1.05rem; }
.footer-contact svg { flex: none; }

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.footer-social a:hover { background: var(--purple); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}
.footer-bottom .heart { color: var(--pink); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
