/* =============================================
   IBA SERVICES — COLORFUL PROFESSIONAL DESIGN
   ============================================= */

:root {
  --bg: #f8f9fc;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --ink: #1a2332;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  
  /* Primary Brand Colors - Professional Blue */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  
  /* Accent Colors */
  --accent: #2F3E5C;
  --accent-dark: #1f2a3d;
  --gold: #f59e0b;
  --gold-light: rgba(245,158,11,0.12);
  
  /* Colorful Accents */
  --teal: #14b8a6;
  --purple: #8b5cf6;
  --orange: #f97316;
  --green: #10b981;
  --blue-bright: #0ea5e9;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-hero: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #0ea5e9 100%);
  
  --radius: 12px;
  --shadow: 0 4px 20px rgba(37,99,235,0.08);
  --shadow-lg: 0 20px 60px rgba(37,99,235,0.15);
  --shadow-color: 0 10px 40px rgba(37,99,235,0.2);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:target {
  scroll-margin-top: 120px;
}
section { scroll-margin-top: 120px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; margin: 0 0 8px; font-family: var(--font-body); color: var(--ink); }
p  { color: var(--ink-soft); margin: 0 0 14px; }
a  { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 16px;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: 60px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ——— NAVBAR ——— */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(37,99,235,0.08);
  background: rgba(255, 255, 255, 0.98);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  height: 65px;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

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

/* ——— BUTTONS ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn i { font-size: 0.82rem; transition: transform 0.25s ease; }
.btn:hover i { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.btn-accent:hover {
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.btn-gold {
  background: var(--gradient-warm);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245,158,11,0.25);
}
.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,0.05);
}

.btn-outline-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* ——— PAGE HERO (inner pages) ——— */
.page-hero {
  background: var(--gradient-hero);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.2) 0%, transparent 70%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  max-width: 900px;
  margin: 0 auto 16px;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.page-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.8;
  margin: 0 auto;
  text-align: center;
}

.hero-inner { padding-left: 20px; padding-right: 20px; }

.hero-inner h1,
.hero-inner p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(37,99,235,0.2);
  transition: transform 0.3s ease;
  background: var(--gradient-primary);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
  border-color: var(--primary);
}

/* ——— FOOTER ——— */
footer {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: rgba(255,255,255,0.8);
  padding: 72px 0 32px;
  margin-top: 0;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.foot-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 300px;
  margin-top: 16px;
  margin-bottom: 20px;
}
footer h5 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li {
  padding: 7px 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}
footer ul li a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
footer ul li a:hover { color: var(--gold); }
footer ul li i { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
footer .brand {
  gap: 12px;
  align-items: center;
}
footer .brand-mark {
  height: 40px;
  width: 120px;
  flex-shrink: 0;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.socials {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  transition: all 0.2s;
}
.socials a:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

/* ——— MOBILE STICKY CTA ——— */
.mobile-cta { display: none; }
@media (max-width: 640px) {
  .mobile-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    z-index: 200;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  }
  .mobile-cta a {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 0.88rem;
    border-radius: 8px;
    font-weight: 600;
  }
  .mobile-cta .primary { 
    background: var(--gradient-primary); 
    color: #fff; 
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
  }
  .mobile-cta .secondary { 
    background: transparent; 
    border: 1px solid var(--line); 
    color: var(--ink); 
  }
  body { padding-bottom: 68px; }
}

/* ——— MENU TOGGLE ——— */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}

/* ——— ANIMATIONS ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-section { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-section.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.8s 0.2s ease, transform 0.8s 0.2s ease; }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 0.8s 0.3s ease, transform 0.8s 0.3s ease; }
.reveal-left.in-view, .reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* ——— CARDS ——— */
.card-grid {
  display: grid;
  gap: 20px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
}
.card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: var(--shadow-color);
  transform: translateY(-4px);
}
.card .card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--gradient-accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(20,184,166,0.25);
}
.card h4 { margin-bottom: 8px; font-size: 1rem; color: var(--ink); }
.card p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ——— COLORFUL CARD VARIANTS ——— */
.card.blue {
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(37,99,235,0.08) 100%);
  border-color: rgba(37,99,235,0.2);
}
.card.blue .card-icon {
  background: var(--gradient-primary);
}

.card.teal {
  background: linear-gradient(135deg, rgba(20,184,166,0.05) 0%, rgba(14,165,233,0.08) 100%);
  border-color: rgba(20,184,166,0.2);
}
.card.teal .card-icon {
  background: var(--gradient-accent);
}

.card.orange {
  background: linear-gradient(135deg, rgba(245,158,11,0.05) 0%, rgba(249,115,22,0.08) 100%);
  border-color: rgba(245,158,11,0.2);
}
.card.orange .card-icon {
  background: var(--gradient-warm);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 960px) {
  .nav-menu { gap: 24px; }
  .card-grid.cols-4, .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
  h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
  .card { padding: 24px; }
  .nav-inner { padding: 14px 20px; }
}

@media (max-width: 640px) {
  .nav-menu, .nav-cta .btn-ghost-dark { display: none; }
  .menu-toggle { display: block; }
  .card-grid.cols-4, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .container {
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
  }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 0.95rem; }
  
  /* Navbar mobile */
  .nav-inner { padding: 14px 16px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { height: 50px; width: 155px; }
  .brand-name { font-size: 0.95rem; }
  .brand-name small { font-size: 0.6rem; }
  
  /* Typography */
  h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
  h2 { font-size: clamp(1.1rem, 2.8vw, 1.8rem); }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 0.9rem; }
  p { font-size: 0.95rem; }
  
  /* Cards */
  .card { padding: 20px; }
  .card h4 { font-size: 0.95rem; margin-bottom: 6px; }
  .card p { font-size: 0.85rem; }
  .card .card-icon { width: 42px; height: 42px; font-size: 1rem; }
  
  /* Footer */
  .foot-grid { gap: 32px; }
  footer h5 { margin-bottom: 14px; font-size: 0.75rem; }
  footer ul li { padding: 6px 0; font-size: 0.85rem; }
  .foot-bottom { font-size: 0.75rem; }
  .socials a { width: 30px; height: 30px; font-size: 0.75rem; }
  
  /* Buttons */
  .btn { padding: 10px 18px; font-size: 0.85rem; }
  .btn-sm { padding: 8px 14px; font-size: 0.8rem; }
  
  /* Page hero */
  .page-hero {
    padding: 70px 0 40px;
    text-align: center;
  }
  .page-hero-content {
    padding: 0 16px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .page-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    line-height: 1.25;
    margin-left: auto;
    margin-right: auto;
  }
  .page-hero p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Eyebrow */
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.15em; margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .nav-inner { padding: 12px 14px; }
  
  h1 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
  h2 { font-size: clamp(1rem, 2.5vw, 1.6rem); }
  h3 { font-size: 1rem; }
  
  .page-hero { padding: 50px 0 35px; }
  .section-head { margin-bottom: 32px; }
  
  .card { padding: 16px; gap: 12px; }
  .card .card-icon { width: 38px; height: 38px; margin-bottom: 12px; font-size: 0.95rem; }
  
  .btn { padding: 9px 16px; font-size: 0.83rem; min-height: 40px; }
  
  footer { padding: 48px 0 24px; }
  .socials a { width: 28px; height: 28px; }
}
