/* ===================================================
   Xoghaye Business Technology Solutions — stylesheet
=================================================== */

:root {
  --purple-950: #2c0d54;
  --purple-900: #3b1170;
  --purple-800: #4c1d95;
  --purple-700: #5b21b6;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-100: #ede9fe;
  --purple-50: #f6f3ff;

  --text-dark: #1f1531;
  --text-body: #4b4560;
  --text-muted: #746e8a;
  --border-soft: #e6e1f5;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(44, 13, 84, 0.08);
  --shadow-md: 0 8px 24px rgba(44, 13, 84, 0.12);
  --shadow-lg: 0 20px 48px rgba(44, 13, 84, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --max-width: 1180px;
  --header-height: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

section { scroll-margin-top: var(--header-height); }

h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--purple-50);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--purple-600);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border-color: var(--purple-600);
  color: var(--purple-700);
}

.btn-outline:hover {
  background: var(--purple-600);
  color: var(--white);
}

.icon {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 38px;
  width: auto;
}

.brand-text {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple-600);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-body);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-700);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--purple-600);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta .btn {
  padding: 11px 24px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-height) + 110px) 0 120px;
  background: radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.35), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(139, 92, 246, 0.3), transparent 50%),
              linear-gradient(160deg, var(--purple-950), var(--purple-800) 70%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #d6c6ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 34px;
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 420px;
}

.hero-card img {
  width: 140px;
  margin: 0 auto 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--white);
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--text-body);
}

.about-quote {
  border-left: 4px solid var(--purple-600);
  padding: 14px 20px;
  background: var(--purple-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-dark);
  margin: 26px 0;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-soft);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--purple-600);
  border: 3px solid var(--purple-100);
}

.timeline-year {
  display: inline-block;
  font-weight: 800;
  color: var(--purple-700);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--text-body);
  font-size: 0.98rem;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 72px;
}

.stat-box {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

.stat-box span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Vision & Mission ---------- */

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.vm-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}

.vm-card.vision { background: linear-gradient(150deg, var(--purple-950), var(--purple-800)); }
.vm-card.mission { background: linear-gradient(150deg, var(--purple-600), var(--purple-800)); }

.vm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.vm-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.vm-card p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Values ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.value-card {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.value-card h4 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card > p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.service-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-body);
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
}

.service-list li:first-child { border-top: none; }

.service-list li svg {
  flex-shrink: 0;
  color: var(--purple-600);
  margin-top: 3px;
}

.service-list li strong {
  color: var(--text-dark);
}

/* ---------- Approach ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.approach-card {
  position: relative;
  background: var(--purple-50);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}

.approach-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple-700);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.approach-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.approach-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.approach-arrow {
  display: none;
}

/* ---------- Why choose us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-soft);
}

.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.why-card h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Industries ---------- */

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.industry-card {
  text-align: center;
  padding: 28px 14px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: linear-gradient(150deg, var(--purple-800), var(--purple-600));
  transition: transform 0.25s ease;
}

.industry-card:nth-child(even) {
  background: linear-gradient(150deg, var(--purple-950), var(--purple-700));
}

.industry-card:hover { transform: translateY(-4px); }

.industry-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: var(--white);
}

.industry-card h4 {
  color: var(--white);
  font-size: 0.95rem;
}

/* ---------- Team ---------- */

.team-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.team-text p {
  margin-bottom: 16px;
}

.team-roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
}

.role-card .icon-wrap {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-card h4 {
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}

.contact-item .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-item p, .contact-item a {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-item a:hover { color: var(--purple-700); }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  height: 200px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--purple-50);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-600);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}

.form-status.show { display: block; }
.form-status.ok { color: #1e8a4c; }
.form-status.err { color: #c0392b; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--purple-950), var(--purple-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
  margin: 0 24px;
  max-width: calc(var(--max-width) - 0px);
  margin-inline: auto;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple-950);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
  height: 34px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--purple-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--purple-800); }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   Responsive
=================================================== */

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .team-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 10px; }

  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 30px;
    box-shadow: var(--shadow-md);
    gap: 18px;
  }

  .section { padding: 64px 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .vm-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .team-roles { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
