/* ==========================================================================
   SCALE UP SALE - GLOBAL STYLESHEET
   Manages global variables, uniform typography hierarchy across all pages,
   logo constraints, and smooth architectural entrance animations.
   ========================================================================== */

:root {
  /* Global Brand Typography Stack */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

  /* Global Uniform Typography Sizes (Enforces exact parity across Home, About, and all Service pages) */
  --font-size-base: 0.9375rem;    /* 15px body text paragraphs */
  --font-size-sm: 0.8125rem;      /* 13px captions, mono tags, and badges */
  --font-size-lg: 1.25rem;        /* 20px lead text */
  --font-size-h3: 1.25rem;        /* 20px uniform subheadings (cards & features) */
  --font-size-h2: 2.125rem;       /* 34px uniform major section headings */

  /* Global Color Palette */
  --color-primary: #4f46e5;       /* Indigo 600 */
  --color-primary-dark: #4338ca;  /* Indigo 700 */
  --color-slate-900: #0f172a;     /* Deep slate darks */
  --color-slate-600: #475569;     /* Muted body text */
  --color-slate-100: #f1f5f9;     /* Light backgrounds */
  --color-white: #ffffff;

  /* Logo Sizing Rules (Controlled centrally) */
  --logo-height-desktop: 5rem;    /* h-20 (80px) */
  --logo-max-height: 6rem;        /* max-h-24 (96px) */
  --logo-height-footer: 3rem;     /* h-12 (48px) */

  /* Global Animation Timing & Easing */
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-reveal: 2.2s;
}

/* ==========================================================================
   GLOBAL HTML & BODY RESET
   ========================================================================== */

html {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

body {
  background-color: var(--color-white);
  color: var(--color-slate-900);
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   CENTRALIZED UNIFORM TYPOGRAPHY HIERARCHY
   (Guarantees identical sizes across Index, About Us, and all Service pages)
   ========================================================================== */

/* Main Headings (H1 - Hero Titles) */
h1 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  color: var(--color-slate-900);
  line-height: 1.25;
}

/* Major Section Headings (H2) */
h2 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h2);
  letter-spacing: -0.025em;
  color: var(--color-slate-900);
  line-height: 1.3;
}

/* Subheadings & Card Titles (H3, H4) */
h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-size: var(--font-size-h3);
  letter-spacing: -0.015em;
  color: var(--color-slate-900);
  line-height: 1.4;
}

/* Body Paragraphs, Lists, and General Text Elements */
p, li {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-slate-600);
  line-height: 1.7;
}

/* Interactive Links, Spans, and Form Inputs */
a, span, input, select, label {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
}

/* Uniform Small Badges, Captions, and Mono Tags */
.text-xs, small, .mono-tag {
  font-size: var(--font-size-sm) !important;
}

/* ==========================================================================
   CENTRALIZED LOGO CONSTRAINTS
   ========================================================================== */

header img[alt*="Logo"], 
.logo-container img {
  height: var(--logo-height-desktop) !important;
  max-height: var(--logo-max-height) !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}

footer img[alt*="Logo"] {
  height: var(--logo-height-footer) !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}

/* ==========================================================================
   GLOBAL ARCHITECTURAL SHAPES & EFFECTS
   ========================================================================== */

.sharp-slant-hero {
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
}

/* ==========================================================================
   SOPHISTICATED SCROLL-REVEAL & ENTRANCE ANIMATIONS
   ========================================================================== */

@keyframes sophisticatedFadeIn {
  0% {
    opacity: 0;
    transform: translateY(45px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sophisticated-entrance {
  animation: sophisticatedFadeIn 2.2s var(--transition-smooth) forwards;
  will-change: opacity, transform;
}

.hero-delay-1 { animation-delay: 200ms; }
.hero-delay-2 { animation-delay: 450ms; }
.hero-delay-3 { animation-delay: 700ms; }

/* Scroll-triggered cascading elements */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-reveal) var(--transition-smooth), 
              transform var(--duration-reveal) var(--transition-smooth);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.delay-150 { transition-delay: 150ms; }
.delay-300 { transition-delay: 300ms; }
.delay-450 { transition-delay: 450ms; }
.delay-600 { transition-delay: 600ms; }

/* ==========================================================================
   GLOBAL KEY ROLES & ACCOUNTABILITIES SECTION TYPOGRAPHY OVERRIDE
   ========================================================================== */

section.relative.py-20.sm\:py-32.text-white.overflow-hidden,
section.relative.py-20.sm\:py-32.text-white.overflow-hidden h2,
section.relative.py-20.sm\:py-32.text-white.overflow-hidden p,
section.relative.py-20.sm\:py-32.text-white.overflow-hidden span,
section.relative.py-20.sm\:py-32.text-white.overflow-hidden li {
  color: #ffffff !important;
}

section.relative.py-20.sm\:py-32.text-white.overflow-hidden i[data-lucide],
section.relative.py-20.sm\:py-32.text-white.overflow-hidden svg {
  color: #818cf8 !important;
}

/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
}

/* ==========================================================================
   Global Reset, Typography Scaling & Defaults
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Increases the entire site's base font size from 16px to 18px (112.5%) */
html {
  font-size: 112.5%;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Header & Navigation (Exact Unchanged Dimensions)
   ========================================================================== */
.navbar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left: Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.logo-img {
  height: 105px;
  max-height: 92%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Middle: Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.05rem; /* Scaled relative to new root */
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Right: Contact Button */
.nav-action {
  display: flex;
  align-items: center;
}

.btn-contact {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.btn-contact:hover {
  background-color: var(--primary-hover);
}

/* Hamburger Toggle (Hidden on Desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ==========================================================================
   Full-Width Hero Section
   ========================================================================== */
.hero-fullwidth {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 120px);
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.animate-bg {
  opacity: 0;
  animation: bgSlowFadeIn 2.2s ease-in-out forwards;
}

@keyframes bgSlowFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(15, 23, 42, 0.70) 0%,
    rgba(15, 23, 42, 0.88) 100%
  );
  z-index: 2;
}

.hero-content-container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 860px;
  text-align: center;
  padding: 4rem 0;
}

.hero-tag {
  display: inline-block;
  color: #bfdbfe;
  background-color: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 0.4rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-heading {
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-bottom: 1.4rem;
}

.hero-description {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: #cbd5e1;
  line-height: 1.75;
  margin: 0 auto 2.5rem;
  max-width: 680px;
}

.btn-hero-primary {
  display: inline-block;
  background-color: transparent;
  color: #f8fafc;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  padding: 0.95rem 2.4rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   What We Do Section
   ========================================================================== */
.what-we-do-section {
  padding: 7rem 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.what-we-do-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4.5rem;
}

.what-we-do-text {
  text-align: left;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.4rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.35rem;
}

.section-title {
  font-size: clamp(2.1rem, 3.2vw, 2.65rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.section-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.section-narrative p {
  font-size: 1.15rem; /* Larger, legible narrative font size */
  color: var(--text-muted);
  line-height: 1.8;
  text-align: left;
}

/* Right Side Image Showcase */
.what-we-do-image-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  background-color: var(--bg-light);
}

.narrative-img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Slow Appearing Keyframes & Animation Classes
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(16px);
  animation: slowFadeInUp 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  animation-delay: 0.4s;
  transition-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.7s;
  transition-delay: 0.4s;
}

.delay-3 {
  animation-delay: 1.0s;
  transition-delay: 0.6s;
}

.delay-4 {
  animation-delay: 1.3s;
  transition-delay: 0.8s;
}

@keyframes slowFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Mobile Responsive Breakpoint (< 900px)
   ========================================================================== */
@media (max-width: 900px) {
  html {
    font-size: 100%; /* Keeps mobile readable without over-swelling the screen */
  }

  .container {
    padding: 0 1.25rem;
  }

  .nav-container {
    height: 90px;
  }

  .logo-img {
    height: 78px;
    max-height: 90%;
  }

  .nav-action {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hamburger to X */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile Slide Menu */
  .nav-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-fullwidth {
    min-height: calc(100vh - 90px);
    padding: 2rem 0;
  }

  .btn-hero-primary {
    width: 100%;
    text-align: center;
  }

  /* What We Do Section Mobile Stacking */
  .what-we-do-section {
    padding: 4.5rem 0;
  }

  .what-we-do-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section-narrative p {
    font-size: 1.1rem;
  }

  .narrative-img {
    min-height: 260px;
    height: 260px;
  }
}