/* ============================================
   XSNI — Global Styles
   Modern & Minimal Consulting Site
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --coal:    #1a1a2e;
  --ink:     #16213e;
  --slate:   #0f3460;
  --accent:  #e94560;
  --light:   #f8f9fc;
  --white:   #ffffff;
  --gray-100:#f1f3f7;
  --gray-200:#e2e6ee;
  --gray-400:#9ba3b5;
  --gray-600:#5a6378;
  --gray-800:#2d3348;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --section-pad: 6rem 2rem;
  --container: 1100px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--coal);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { max-width: 65ch; }

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--coal);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--coal); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(233,69,96,0.35);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--coal); margin: 5px 0;
  transition: all 0.3s var(--ease);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
    flex-direction: column;
    gap: 1.5rem;
  }
  .nav-menu.open { transform: translateY(0); display: flex; }
  .nav-links { flex-direction: column; gap: 1.25rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233,69,96,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--coal);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn svg { width: 16px; height: 16px; }

/* --- Hero --- */
.hero {
  padding: 10rem 2rem 6rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero-content { max-width: 680px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: var(--section-pad); }
.section-alt { background: var(--gray-100); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header p {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin: 0.75rem auto 0;
}

/* --- Cards Grid --- */
.cards { display: grid; gap: 2rem; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2.25rem;
  transition: all 0.3s var(--ease);
}
.card:hover {
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px; height: 48px;
  background: rgba(233,69,96,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--gray-600); font-size: 0.95rem; }

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--gray-200);
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--gray-400);
}
.team-card h3 { margin-bottom: 0.25rem; }
.team-card .role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.team-card p { font-size: 0.9rem; color: var(--gray-600); margin: 0 auto; }

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.2s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--gray-600); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: rgba(233,69,96,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-detail span {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* --- Footer --- */
.footer {
  background: var(--coal);
  color: var(--gray-400);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand p { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; }
.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Utility --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
