/* =====================================================
   OPTIMIA — Phase 3: Bold layout, typography, motion
   ===================================================== */

/* ─── INNER PAGE HERO EYEBROW ─── */
.oh-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .95rem;
  margin-bottom: 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 107, 43, .18);
  border: 1px solid rgba(255, 107, 43, .45);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.oh-hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255, 107, 43, .8);
  animation: eyebrowPulse 2s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(.85); }
}

section[class*="-hero"] h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.08 !important;
}

section[class*="-hero"] .container::after {
  content: '';
  display: block;
  width: 72px;
  height: 3px;
  margin: 1.25rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light), transparent);
  position: relative;
  z-index: 1;
}

/* ─── HOMEPAGE PHASE 3 ─── */
.oh-homepage.oh-phase3 .oh-hero {
  min-height: 0;
}
.oh-homepage.oh-phase3 .oh-slide {
  padding: 0;
}

.oh-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.oh-hero-grid .oh-hero-content {
  max-width: none;
}

.oh-homepage.oh-phase3 .oh-hero-title {
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.oh-homepage.oh-phase3 .oh-hero-title .oh-gradient-text {
  background: linear-gradient(135deg, #ff8c55 0%, var(--orange) 45%, #ffd4b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.oh-homepage.oh-phase3 .oh-tag {
  background: rgba(255, 107, 43, .15);
  border-color: rgba(255, 107, 43, .35);
  color: #ffd4b8;
  font-weight: 700;
  animation: none;
}
@keyframes tagGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 107, 43, 0); }
  50% { box-shadow: 0 0 20px rgba(255, 107, 43, .2); }
}

/* Hero visual panel */
.oh-hero-visual {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oh-hero-panel {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  animation: panelFloat 6s ease-in-out infinite;
}
@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.oh-hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.oh-hero-panel-dots {
  display: flex;
  gap: 5px;
}
.oh-hero-panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.oh-hero-panel-dots span:first-child { background: #ef4444; }
.oh-hero-panel-dots span:nth-child(2) { background: #f59e0b; }
.oh-hero-panel-dots span:nth-child(3) { background: #22c55e; }
.oh-hero-panel-title {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  letter-spacing: .04em;
}
.oh-hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}
.oh-metric-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: .85rem;
}
.oh-metric-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: .25rem;
}
.oh-metric-card span {
  font-size: .7rem;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
}
.oh-metric-card--up strong { color: #4ade80; }
.oh-hero-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  padding: .5rem 0;
}
.oh-hero-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--orange), rgba(255, 107, 43, .3));
  border-radius: 4px 4px 0 0;
  min-height: 20%;
  animation: barGrow 2s var(--ease-out-expo) both;
}
.oh-hero-bar:nth-child(1) { height: 45%; animation-delay: .1s; }
.oh-hero-bar:nth-child(2) { height: 62%; animation-delay: .2s; }
.oh-hero-bar:nth-child(3) { height: 38%; animation-delay: .3s; }
.oh-hero-bar:nth-child(4) { height: 78%; animation-delay: .4s; }
.oh-hero-bar:nth-child(5) { height: 55%; animation-delay: .5s; }
.oh-hero-bar:nth-child(6) { height: 88%; animation-delay: .6s; }
.oh-hero-bar:nth-child(7) { height: 70%; animation-delay: .7s; }
@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); }
}

.oh-hero-float {
  position: absolute;
  padding: .55rem .9rem;
  background: #fff;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  animation: floatBadge 5s ease-in-out infinite;
  z-index: 3;
}
.oh-hero-float--badge {
  top: 8%;
  right: -4%;
  color: #16a34a;
}
.oh-hero-float--rating {
  bottom: 12%;
  left: -6%;
  animation-delay: -2.5s;
}
.oh-hero-float i {
  color: var(--orange);
  margin-right: .35rem;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* Section headers */
.oh-section-head {
  margin-bottom: 2.5rem;
  max-width: 720px;
}
.oh-section-head .oh-title {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 1rem;
}
.oh-section-head .oh-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.oh-section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.oh-section-head.center .oh-title::after {
  left: 50%;
  transform: translateX(-50%);
}
.oh-section-head.center .oh-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Section backgrounds */
.oh-homepage.oh-phase3 #services {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 107, 43, .06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(13, 27, 42, .04) 0%, transparent 45%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.oh-homepage.oh-phase3 .oh-section.gray {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 107, 43, .05), transparent 40%),
    var(--gray-50);
}
.oh-homepage.oh-phase3 .oh-process {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.oh-homepage.oh-phase3 .oh-process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 107, 43, .12), transparent 55%);
  pointer-events: none;
}
.oh-homepage.oh-phase3 .oh-process .oh-kicker { color: var(--orange-light); }
.oh-homepage.oh-phase3 .oh-process .oh-title { color: #fff; }
.oh-homepage.oh-phase3 .oh-process .oh-title::after {
  background: linear-gradient(90deg, var(--orange), transparent);
}
.oh-homepage.oh-phase3 .oh-process-grid {
  background: transparent;
  border: none;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}
.oh-homepage.oh-phase3 .oh-step {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease-out-expo), background .35s, border-color .35s;
}
.oh-homepage.oh-phase3 .oh-step:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 107, 43, .4);
  transform: translateY(-4px);
  box-shadow: none;
}
.oh-homepage.oh-phase3 .oh-step-num { color: rgba(255, 255, 255, .25); }
.oh-homepage.oh-phase3 .oh-step:hover .oh-step-num { color: var(--orange); }
.oh-homepage.oh-phase3 .oh-step h4 { color: #fff; }
.oh-homepage.oh-phase3 .oh-step p { color: rgba(255, 255, 255, .6); }

.oh-homepage.oh-phase3 .oh-contact {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 43, .08), transparent 50%),
    linear-gradient(180deg, #f1f5f9 0%, #fff 100%);
}

/* Button micro-interactions */
.oh-btn-primary,
.oh-homepage .oh-btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease-out-expo), box-shadow .25s, background .25s;
}
.oh-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  transition: left .55s ease;
  pointer-events: none;
}
.oh-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(255, 107, 43, .35);
}
.oh-btn-primary:hover::after {
  left: 120%;
}
.oh-btn-primary:active {
  transform: translateY(-1px);
}

/* Service card lift */
.oh-homepage.oh-phase3 .oh-service-card {
  transition: transform .4s var(--ease-out-expo), box-shadow .4s, border-color .35s;
}
.oh-homepage.oh-phase3 .oh-service-card:hover {
  transform: translateY(-8px) scale(1.01);
}

/* CTA dramatic */
.oh-homepage.oh-phase3 .oh-cta-premium {
  padding: 5rem 0;
}
.oh-homepage.oh-phase3 .oh-cta-premium .oh-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: #fff;
}

/* Count-up ready */
.oh-count-up {
  font-variant-numeric: tabular-nums;
}

/* Marquee accent line */
.oh-homepage.oh-phase3 .oh-marquee {
  position: relative;
}
.oh-homepage.oh-phase3 .oh-marquee::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent, var(--orange));
  opacity: .5;
}

@media (max-width: 1024px) {
  .oh-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .oh-hero-visual {
    min-height: 280px;
    order: 2;
    max-width: 480px;
    margin: 0 auto;
  }
  .oh-hero-float--badge { right: 2%; top: 0; }
  .oh-hero-float--rating { left: 2%; }
  .oh-homepage.oh-phase3 .oh-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .oh-homepage.oh-phase3 .oh-hero {
    min-height: auto;
  }
  .oh-homepage.oh-phase3 .oh-slide {
    padding: 5.5rem 0 4.5rem;
  }
  .oh-hero-visual {
    min-height: 240px;
  }
  .oh-hero-panel {
    max-width: 100%;
  }
  .oh-homepage.oh-phase3 .oh-process-grid {
    grid-template-columns: 1fr;
  }
  .oh-hero-float {
    font-size: .7rem;
    padding: .4rem .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh-hero-panel,
  .oh-hero-float,
  .oh-hero-bar,
  .oh-hero-eyebrow::before,
  .oh-homepage.oh-phase3 .oh-tag {
    animation: none !important;
  }
  .oh-btn-primary::after {
    display: none;
  }
}
