/* ==========================================================================
   Base / Global styles
   Resets and site-wide defaults shared by every section. Keep this file
   about foundations only — section-specific look and feel belongs in that
   section's own CSS file (header.css, hero.css, etc).
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Reserve room for the persistent side nav on desktop. This is the ONLY
   place that needs to know the side nav exists — every section is built
   full-width and simply gets shifted into the remaining space. */
@media (min-width: 1100px) {
  body {
    padding-left: calc(var(--sidenav-width) + var(--sidenav-offset) * 2);
  }
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: var(--lh-tight);
  font-weight: 800;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Shared layout helper — every section wraps its content in .container
   so widths stay consistent across the whole page. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Shared button styles — used by the header CTA, hero CTA, and any
   future section's call-to-action, so a style change here applies
   everywhere at once. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--fs-small);
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-indigo-deep);
  border: 1.5px solid rgba(40, 16, 115, 0.25);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--color-purple-mid);
  box-shadow: none;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Visually-hidden utility for accessible labels that shouldn't show on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Shared section scaffolding
   Every content section (What We Do, Solutions, Industries, ...) follows
   the same rhythm: full-bleed wrapper > inner max-width column > eyebrow +
   heading + optional intro. Defining it once here keeps every section file
   short and keeps the whole page feeling like one consistent system.
   ========================================================================== */

.section {
  padding-block: var(--section-pad-y);
  padding-inline: var(--edge-pad);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(90, 55, 195, 0.08);
  color: var(--color-purple-mid);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-accent);
  flex-shrink: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  max-width: 720px;
  margin-bottom: var(--space-xl);
}

.section-head.center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.section-heading {
  font-size: var(--fs-h2);
  color: var(--color-indigo-deep);
}

.section-intro {
  font-size: 1.08rem;
  color: var(--color-text-muted);
}

/* Generic card used across Solutions / Industries / Pricing / etc. */
.card {
  background: var(--color-bg);
  border: 1px solid rgba(40, 16, 115, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base) var(--ease-out), box-shadow var(--transition-base) var(--ease-out);
}

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

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  color: var(--color-text-on-dark);
  flex-shrink: 0;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

/* Scroll-reveal — a small, tasteful bit of motion applied consistently
   sitewide via js/reveal.js. Respects reduced-motion preferences. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 640px) {
  .section-head {
    margin-bottom: var(--space-lg);
  }
}

/* Every section the side nav links to needs this so the sticky header
   doesn't cover its heading when the anchor link jumps to it. */
#hero,
#what-we-do,
#solutions,
#industries,
#partners,
#tech-stack,
#why-us,
#process,
#pricing,
#contact {
  scroll-margin-top: var(--header-height);
}
