/* ==================================================
   SITE HEADER
   Sticky Navigation Container
================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

/* ==================================================
   HEADER LAYOUT
   Navigation Bar Structure
================================================== */

.header-content {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ==================================================
   BRAND IDENTITY
   Logo & Brand Presentation
================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 500;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--dark);
  color: white;
  box-shadow: var(--shadow-md);
}

/* ==================================================
   PRIMARY NAVIGATION
   Main Navigation Links
================================================== */

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--dark);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--dark);
}

.nav a:hover::after {
  width: 100%;
}

/* ==================================================
   MOBILE NAVIGATION
   Menu Toggle Button
================================================== */

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--dark);
  font-size: 1.8rem;
}

/* ==================================================
   BUTTON COMPONENT
   Base Button Styles
================================================== */

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--transition);
}

/* ==================================================
   BUTTON VARIANTS
   Primary, Outline & Light Styles
================================================== */

.btn-primary {
  background: var(--dark);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-outline {
  background: rgba(255, 255, 255, 0.72);
  color: var(--dark);
  border-color: var(--dark);
}

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

.btn-white {
  background: white;
  color: var(--dark);
  box-shadow: var(--shadow-md);
}

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

/* ==================================================
   TAG COMPONENT
   Section Labels & Category Indicators
================================================== */

.tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ==================================================
   CARD COMPONENTS
   Service & Process Cards
================================================== */

.service-card,
.step-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

/* ==================================================
   CARD INTERACTIONS
   Hover & Active States
================================================== */

.service-card::after,
.step-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover,
.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.service-card:hover::after,
.step-card:hover::after {
  transform: scaleX(1);
}

/* ==================================================
   CARD CONTENT
   Internal Typography & Spacing
================================================== */

.service-card h3,
.step-card h3 {
  margin-bottom: 16px;
}

.service-card p,
.step-card p {
  margin-bottom: 0;
}

/* ==================================================
   TEAM NAVIGATION
   Team Member Tabs
================================================== */

.team-tabs {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: 18px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soft-text);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
}

.tab:hover,
.tab.active {
  color: var(--dark);
}

.tab.active {
  border-bottom-color: var(--dark);
}

/* ==================================================
   SITE FOOTER
   Footer Wrapper
================================================== */

.footer {
  padding: 76px 0 32px;
  color: white;
  background: var(--dark-2);
}

/* ==================================================
   FOOTER LAYOUT
   Grid Structure & Content Distribution
================================================== */

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

/* ==================================================
   FOOTER TYPOGRAPHY
   Headings & Descriptive Text
================================================== */

.footer h4 {
  margin-bottom: 20px;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer p {
  max-width: 420px;
  color: #aab7c8;
  font-size: 0.98rem;
  margin-bottom: 10px;
}

/* ==================================================
   PRELOADER OVERLAY
   Initial Loading Experience
================================================== */

.preloader {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #08111f;

  color: white;

  transition:
    opacity .6s ease,
    visibility .6s ease;
}

/* ==================================================
   PRELOADER CONTENT
   Loading Message & Branding
================================================== */

.preloader-content {
  max-width: 600px;
  padding: 0 24px;

  text-align: center;
}

.preloader-tag {
  display: inline-block;

  margin-bottom: 22px;
  padding: 12px 20px;

  border-radius: 999px;

  background: rgba(212,230,239,.12);

  color: #d4e6ef;

  font-size: .72rem;
  font-weight: 800;

  letter-spacing: .18em;
  text-transform: uppercase;
}

.preloader h1 {
  margin-bottom: 16px;

  color: white;

  font-family: var(--font-serif);

  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;

  line-height: 1.05;
}

.preloader p {
  max-width: 480px;

  margin: 0 auto 34px;

  color: #d8e0ea;
}

/* ==================================================
   PRELOADER PROGRESS INDICATOR
   Animated Loading Bar
================================================== */

.preloader-line {
  width: 220px;
  height: 2px;

  margin: auto;

  overflow: hidden;

  background: rgba(255,255,255,.12);
}

.preloader-line span {
  display: block;

  width: 40%;
  height: 100%;

  background: #d4e6ef;

  animation: loadingLine 1.3s infinite ease-in-out;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* ==================================================
   LOADING ANIMATION
   Progress Bar Movement
================================================== */

@keyframes loadingLine {

  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(300%);
  }

}