/* Maverick Services — Corporate UI Refresh */

/* ─── Typography System ─── */
:root {
  --text-h1: clamp(3rem, 2.4rem + 2.2vw, 3.75rem);
  --text-h2: 1.375rem;
  --text-h3: 1.375rem;
  --text-body: 1.125rem;
  --line-height-body: 1.7;

  --brand-navy: #002A3D;
  --brand-navy-light: #004A6E;
}

body {
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  background: var(--bg-primary);
}

body::before {
  opacity: 0.25;
}

/* ─── Header Logo (enlarged & enhanced) ─── */
.site-nav__brand {
  padding: 0.2rem 0;
}

.site-nav__brand img {
  height: clamp(54px, 6.5vw, 72px);
  max-width: min(320px, 58vw);
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 42, 61, 0.08),
    0 8px 24px rgba(0, 174, 255, 0.1);
  transition:
    transform 0.28s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.28s ease;
}

.site-nav__brand:hover img {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 4px 12px rgba(0, 42, 61, 0.1),
    0 12px 28px rgba(0, 174, 255, 0.16);
}

@media (max-width: 768px) {
  .site-nav__brand img {
    height: clamp(46px, 14vw, 56px);
    max-width: min(260px, 76vw);
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .site-nav__brand img {
    height: clamp(42px, 16vw, 50px);
    max-width: min(230px, 80vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__brand img,
  .site-nav__brand:hover img {
    transform: none;
    transition: none;
  }
}

/* ─── Footer Logo ─── */
.footer-brand__logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.footer-brand__logo img {
  height: clamp(54px, 8vw, 68px);
  width: auto;
  max-width: min(300px, 100%);
  object-fit: contain;
  object-position: left center;
  display: block;
  border-radius: 12px;
  background: #fff;
  padding: 8px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.footer-brand__logo:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 174, 255, 0.2);
}

h1,
.hero__title,
.page-hero__title {
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h2,
h3,
.section-title,
.service-card__title,
.project-card__title,
.project-detail__title,
.team-card__name,
.info-card__title {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

p,
.section-desc,
.service-card__desc,
.project-card__body,
.about-story-card p,
.about-feature-card p {
  font-size: var(--text-body);
  line-height: var(--line-height-body);
}

.section-desc {
  font-size: var(--text-body);
}

/* ─── Hero Overlay (stronger contrast) ─── */
.hero__overlay,
.hero__gradient {
  background:
    linear-gradient(105deg, rgba(8, 12, 20, 0.94) 0%, rgba(8, 12, 20, 0.86) 42%, rgba(8, 12, 20, 0.52) 68%, rgba(8, 12, 20, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.55) 0%, transparent 38%, rgba(8, 12, 20, 0.72) 100%) !important;
}

.hero__desc,
.page-hero__desc {
  font-size: var(--text-body);
  line-height: var(--line-height-body);
  color: rgba(255, 255, 255, 0.9);
}

/* ─── Page Banners (left-aligned content) ─── */
.page-hero__photo {
  background-position: left center;
}

.page-hero__photo::after {
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.94) 0%, rgba(8, 12, 20, 0.82) 38%, rgba(8, 12, 20, 0.45) 62%, rgba(8, 12, 20, 0.2) 100%) !important;
}

.page-hero__content {
  text-align: left;
}

.page-hero__overlay {
  background:
    linear-gradient(90deg, rgba(8, 12, 20, 0.9) 0%, rgba(8, 12, 20, 0.72) 45%, rgba(8, 12, 20, 0.4) 100%) !important;
}

/* ─── Card Images (taller, consistent) ─── */
.project-card__image,
.project-detail__image {
  height: clamp(240px, 28vw, 300px);
  aspect-ratio: 16 / 10;
}

.project-card__image img,
.project-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-featured-products .project-card__image {
  height: clamp(240px, 28vw, 300px);
}

.home-featured-products .project-card__image img {
  object-fit: contain;
}

/* ─── Client Logos (premium flip cards) ─── */
.clients-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #eef8fd 100%);
  padding-bottom: var(--space-md);
}

.clients-marquee {
  padding: var(--space-sm) 0 var(--space-lg);
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.client-logo {
  display: inline-flex;
  flex-shrink: 0;
  min-width: 176px;
  width: 176px;
  height: 96px;
  perspective: 1100px;
  cursor: pointer;
  outline: none;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.client-logo:hover,
.client-logo:focus-visible {
  transform: translateY(-5px);
}

.client-logo__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.client-logo:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-radius: calc(var(--radius-md) + 2px);
}

.client-logo:hover .client-logo__inner,
.client-logo:focus-visible .client-logo__inner {
  transform: rotateY(180deg);
}

.client-logo__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: calc(var(--radius-md) + 2px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(0, 42, 61, 0.09);
  box-shadow:
    0 1px 2px rgba(0, 42, 61, 0.04),
    0 6px 16px rgba(0, 42, 61, 0.06);
  transition:
    border-color 0.45s ease,
    box-shadow 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.client-logo__face--front {
  background: linear-gradient(165deg, #ffffff 0%, #f5fbff 55%, #e8f6fd 100%);
}

.client-logo__face--front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, transparent 42%);
  pointer-events: none;
}

.client-logo__face--back {
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.9rem;
  text-align: center;
  background: linear-gradient(155deg, #002A3D 0%, #004A6E 48%, #00AEFF 100%);
  border-color: rgba(0, 174, 255, 0.35);
  color: #fff;
  transform: rotateY(180deg);
}

.client-logo__face--back::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(0, 174, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 95%, rgba(0, 174, 255, 0.14) 0%, transparent 50%);
  pointer-events: none;
}

.client-logo__face--back::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 174, 255, 0.85), transparent);
  opacity: 0.9;
}

.client-logo:hover .client-logo__face,
.client-logo:focus-visible .client-logo__face {
  border-color: rgba(0, 174, 255, 0.45);
  box-shadow:
    0 4px 10px rgba(0, 42, 61, 0.07),
    0 16px 32px rgba(0, 174, 255, 0.14);
}

.client-logo__face--front img {
  position: relative;
  z-index: 1;
  max-width: 126px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.client-logo:hover .client-logo__face--front img,
.client-logo:focus-visible .client-logo__face--front img {
  transform: scale(1.04);
}

.client-logo__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.015em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.client-logo__face--back:not(:has(.client-logo__meta)) .client-logo__name {
  font-size: 0.8rem;
  line-height: 1.4;
}

.client-logo__meta {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 148px;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.client-logo__meta::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto 0.4rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(51, 190, 255, 0.9), transparent);
}

.client-logo:hover .client-logo__name,
.client-logo:focus-visible .client-logo__name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.36s;
}

.client-logo:hover .client-logo__meta,
.client-logo:focus-visible .client-logo__meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {
  .client-logo {
    transition: none;
  }

  .client-logo:hover,
  .client-logo:focus-visible {
    transform: none;
  }

  .client-logo__inner {
    transition: none;
  }

  .client-logo:hover .client-logo__inner,
  .client-logo:focus-visible .client-logo__inner {
    transform: none;
  }

  .client-logo__face--back {
    display: none;
  }

  .client-logo__name,
  .client-logo__meta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── About Page Readability ─── */
.about-hero-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.about-hero-copy .hero__badge {
  color: var(--brand-blue-dark);
  background: rgba(0, 174, 255, 0.1);
  border-color: rgba(0, 174, 255, 0.25);
}

.about-hero-copy .section-title,
.about-hero-copy p {
  color: var(--text-primary);
}

.about-hero-copy p {
  color: var(--text-secondary);
}

.about-metric {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.about-metric strong {
  color: var(--brand-navy);
}

.about-metric span {
  color: var(--text-secondary);
}

.about-hero-panel .btn-outline {
  border-color: var(--border-color);
  color: var(--brand-navy);
  background: #fff;
}

.about-hero-panel .btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0, 174, 255, 0.06);
}

.about-journey-item {
  background: #fff;
  border: 1px solid var(--border-color);
}

.about-journey-item p {
  color: var(--text-secondary);
}

.about-quote-card--imran::after {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(0, 174, 255, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0, 42, 61, 0.25) 0%, rgba(0, 42, 61, 0.92) 100%);
}

.section--live {
  background: var(--bg-secondary);
}

.section--glass {
  background: #fff;
}

/* ─── Lighter corporate sections ─── */
.trust-bar,
.clients-section {
  background: var(--bg-secondary);
}

.page-loader {
  background:
    radial-gradient(circle at top left, rgba(0, 174, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef8fd);
}

/* Product showcase card images */
.product-media {
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

/* Service cards with images if added */
.service-card__image {
  height: clamp(200px, 24vw, 260px);
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  :root {
    --text-h1: clamp(2.5rem, 2rem + 3vw, 3rem);
  }

  .page-hero__photo {
    background-position: 30% center;
  }

  .client-logo {
    min-width: 152px;
    width: 152px;
    height: 86px;
  }

  .client-logo__face--front img {
    max-width: 110px;
    max-height: 46px;
  }

  .client-logo__name {
    font-size: 0.68rem;
  }

  .client-logo__meta {
    font-size: 0.54rem;
    max-width: 132px;
  }
}
