/* =====================================================
   OPTIMIA — Shared page components (.oh-*)
   Used across homepage, services, about, etc.
   Content templates unchanged; styles centralized here.
   ===================================================== */

.oh-homepage,
.oh-services-page,
.about-page,
.contact-page,
.blog-page-wrap,
.testimonials-page,
.portfolio-page {
  --oh-primary: var(--orange, #ff6b2b);
  --oh-primary-dark: var(--orange-dark, #e85520);
  --oh-bg-dark: var(--navy, #0d1b2a);
  --oh-bg-mid: var(--navy-light, #1e2f42);
  --oh-surface: var(--gray-50, #f7f8fa);
  --oh-text: var(--navy, #0d1b2a);
  --oh-muted: var(--gray-500, #6b7a8d);
  font-family: var(--font-body);
  color: var(--oh-text);
}

.oh-container { width: min(1200px, 92%); margin: 0 auto; }
.oh-section { padding: 5.5rem 0; }
.oh-section.gray { background: var(--oh-surface); }
.oh-kicker {
  color: var(--oh-primary);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: .65rem;
}
.oh-title {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 .75rem;
  letter-spacing: -.02em;
}
.oh-subtitle {
  color: var(--oh-muted);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.oh-btn-primary,
.oh-btn-outline {
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: .85rem 1.2rem;
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  transition: var(--transition);
}
.oh-btn-primary {
  background: var(--oh-primary);
  color: #fff;
  border: 1px solid var(--oh-primary);
  box-shadow: var(--shadow-orange);
}
.oh-btn-primary:hover {
  background: var(--oh-primary-dark);
  border-color: var(--oh-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}
.oh-btn-outline {
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  background: transparent;
}
.oh-btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.65);
  color: #fff;
}

.oh-service-card,
.oh-services-page .oh-service-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease-out-expo), box-shadow .25s var(--ease-out-expo), border-color .25s;
  position: relative;
  overflow: hidden;
}
.oh-service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 3px;
}
.oh-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}
.oh-service-card i {
  font-size: 1rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
}
.oh-service-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  line-height: 1.35;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--oh-text);
}
.oh-service-card p {
  margin: 0;
  color: var(--oh-muted);
  line-height: 1.62;
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.oh-service-link {
  margin-top: auto;
  color: var(--oh-primary);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  padding-top: .85rem;
}

.oh-service-card:nth-child(6n+1)::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.oh-service-card:nth-child(6n+2)::before { background: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.oh-service-card:nth-child(6n+3)::before { background: linear-gradient(90deg, #10b981, #34d399); }
.oh-service-card:nth-child(6n+4)::before { background: linear-gradient(90deg, #f59e0b, #fb7185); }
.oh-service-card:nth-child(6n+5)::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.oh-service-card:nth-child(6n+6)::before { background: linear-gradient(90deg, #14b8a6, #3b82f6); }
.oh-service-card:nth-child(6n+1) i { background: #eef2ff; color: #4f46e5; }
.oh-service-card:nth-child(6n+2) i { background: #ecfeff; color: #0891b2; }
.oh-service-card:nth-child(6n+3) i { background: #ecfdf5; color: #059669; }
.oh-service-card:nth-child(6n+4) i { background: #fff7ed; color: #d97706; }
.oh-service-card:nth-child(6n+5) i { background: #fff1f2; color: #dc2626; }
.oh-service-card:nth-child(6n+6) i { background: #f0fdfa; color: #0f766e; }

.oh-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.oh-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 3rem 0;
}
.oh-cta .oh-title { color: #fff; }
.oh-cta-wrap {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.oh-process-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-300);
}
.oh-step {
  background: #fff;
  padding: 1.5rem;
  transition: background .25s;
}
.oh-step:hover { background: var(--gray-50); }
.oh-step-num {
  font-size: 2rem;
  color: var(--gray-400);
  font-weight: 800;
  line-height: 1;
  margin-bottom: .6rem;
  font-family: var(--font-heading);
}

.oh-breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
  .oh-section { padding: 4rem 0; }
  .oh-services-grid { grid-template-columns: 1fr; }
  .oh-cta-wrap { flex-direction: column; text-align: center; }
  .oh-service-card:hover { transform: none; }
  .oh-hero-stats { gap: .5rem; }
  .oh-hero-stat { min-width: 0; flex: 1 1 calc(50% - .5rem); }
  .oh-clients-marquee .oh-client-logo { height: 52px; padding: .65rem 1rem; }
}

/* ─── HERO ENHANCEMENTS (Phase 2) ─── */
.oh-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.oh-hero .oh-slides,
.oh-hero .oh-slide { position: relative; z-index: 2; }
.oh-hero .oh-controls { z-index: 3; }
.oh-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: meshPulse 8s ease-in-out infinite;
}
.oh-hero-orb--1 {
  width: 420px; height: 420px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(255,107,43,.35), transparent 70%);
}
.oh-hero-orb--2 {
  width: 320px; height: 320px;
  bottom: -100px; left: -60px;
  background: radial-gradient(circle, rgba(59,130,246,.2), transparent 70%);
  animation-delay: -3s;
}
.oh-hero-orb--3 {
  width: 200px; height: 200px;
  top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  animation-delay: -5s;
}

.oh-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
}
.oh-hero-stat {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  min-width: 140px;
}
.oh-hero-stat strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}
.oh-hero-stat span {
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  line-height: 1.3;
  font-weight: 500;
}

/* Logo marquee */
.oh-clients-marquee {
  margin-top: .5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
}
.oh-clients-marquee::before,
.oh-clients-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.oh-clients-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--gray-50), transparent);
}
.oh-clients-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--gray-50), transparent);
}
.oh-clients-track {
  display: flex;
  gap: 1.5rem;
  animation: clientsMarquee 32s linear infinite;
  width: max-content;
  padding: 0 1rem;
}
.oh-clients-marquee:hover .oh-clients-track {
  animation-play-state: paused;
}
@keyframes clientsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.oh-client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: .75rem 1.25rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: transform .25s var(--ease-out-expo), box-shadow .25s, border-color .25s;
}
.oh-client-logo:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.oh-client-logo img {
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .75;
  transition: filter .3s, opacity .3s;
}
.oh-client-logo:hover img {
  filter: none;
  opacity: 1;
}

/* Premium CTA */
.oh-cta-premium {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2d42 50%, var(--navy-mid) 100%);
  padding: 4rem 0;
  overflow: hidden;
}
.oh-cta-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,107,43,.18), transparent 55%);
  pointer-events: none;
}
.oh-cta-premium::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--orange));
}

/* Process step polish */
.oh-step {
  transition: background .25s, transform .25s var(--ease-out-expo);
}
.oh-step:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: inset 4px 0 0 var(--orange);
}
.oh-step-num { transition: color .25s; }
.oh-step:hover .oh-step-num { color: var(--orange); }

/* Blog card hover */
.oh-blog-card {
  transition: transform .35s var(--ease-out-expo), box-shadow .35s, border-color .35s;
}
.oh-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.oh-blog-card img { transition: transform .5s var(--ease-out-expo); }
.oh-blog-card:hover img { transform: scale(1.06); }

/* Marquee accent */
.oh-marquee {
  background: var(--navy) !important;
  color: rgba(255,255,255,.75) !important;
  border-color: rgba(255,255,255,.08) !important;
}
.oh-marquee-track span::after {
  content: '•';
  margin-left: 2rem;
  color: var(--orange);
  opacity: .7;
}

/* Service cards — stronger hover */
.oh-homepage .oh-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255,107,43,.12);
  border-color: rgba(255,107,43,.35);
}

/* Contact form card polish */
.oh-contact-form-card {
  transition: box-shadow .3s var(--ease-out-expo), transform .3s;
}
.oh-contact-form-card:hover {
  box-shadow: 0 16px 48px rgba(15,23,42,.1);
}

.content-reveal.reveal { transition-delay: 0s; }
.content-reveal.reveal.is-visible .value-card,
.content-reveal.reveal.is-visible .team-card,
.content-reveal.reveal.is-visible .oh-why-card {
  animation: fadeUp .6s var(--ease-out-expo) both;
}
.content-reveal.reveal.is-visible .value-card:nth-child(2) { animation-delay: .08s; }
.content-reveal.reveal.is-visible .value-card:nth-child(3) { animation-delay: .16s; }
.content-reveal.reveal.is-visible .value-card:nth-child(4) { animation-delay: .24s; }
