/* ═══════════════════════════════════════════════
   DYNAMIQ SOLUTIONZ — HOME PAGE SPECIFIC STYLES
   Depends on: css/styles.css design tokens
   ═══════════════════════════════════════════════ */

/* ── Hero Section Layout & Grid Backdrop ── */
.hero {
  position: relative;
  /* FIXED: Reduced top padding from 120-200px to 60-120px so text doesn't sit so low */
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
  background: var(--canvas);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #000000 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000000 50%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn {
    width: 100%;
  }
}

/* ── Section Header General Layout Fixes ── */
.sec-head {
  margin-bottom: 48px;
}

.sec-head.center {
  text-align: center;
}

.sec-head .lead {
  max-width: 600px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
}

/* ── Home Marquee ── */
.marquee {
  position: relative;
  background: var(--canvas-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--canvas) 10%, transparent 100%);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--canvas) 10%, transparent 100%);
}

.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.65;
}

@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 640px) {
  .marquee-track { gap: 40px; }
  .marquee-track span { font-size: 12px; }
  .marquee::before, .marquee::after { width: 40px; }
}

/* ── App Teaser Container ── */
.app-teaser {
  background: linear-gradient(135deg, #151515 0%, #0d0d0d 100%);
  color: var(--canvas);
  padding: clamp(64px, 10vw, 120px) 0;
  border-radius: 32px;
  margin: 40px clamp(16px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-teaser::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 93, 4, 0.07) 0%, rgba(0, 0, 0, 0) 65%);
  pointer-events: none;
  z-index: 1;
}

.app-teaser-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.app-teaser-eyebrow {
  color: var(--gold-light);
}

.app-teaser h2 {
  color: var(--canvas);
  margin-bottom: 16px;
}

.app-teaser-lead {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 36px;
  max-width: 580px;
}

.app-teaser-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.app-teaser .btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.app-teaser .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.03);
}

.app-teaser-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  align-items: center;
}

.app-teaser-badges a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.app-teaser-badges a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

@media (max-width: 640px) {
  .app-teaser {
    margin: 16px;
    padding: 60px 24px;
    border-radius: 20px;
  }
  .app-teaser-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .app-teaser-btns .btn { width: 100%; }
}

/* ── Service Cards & Precision Vector Iconography ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.service-card:hover .service-svg-icon {
  transform: scale(1.08);
  color: var(--gold-light);
}

.service-card .num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.5;
}

.service-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: rgba(232, 93, 4, 0.08);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.service-card:hover .service-card__icon {
  background: rgba(232, 93, 4, 0.14);
}

.service-svg-icon {
  width: 36px;
  height: 36px;
  transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}

.service-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 28px;
  padding: 16px 0 0;
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-card__list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.service-card .card-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card .card-link:hover {
  color: var(--gold);
  transform: translateX(4px);
}

/* ── Portfolio Dynamic Filters ── */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--canvas-alt);
  color: var(--ink-soft);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--ink);
  color: #FFF;
  border-color: var(--ink);
}

.p-item .parallax-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center;
}

/* ── Testimonials Layout ── */
.review-list,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}

@media (max-width: 960px) {
  .review-list,
  .reviews-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }
}

.review-card {
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.review-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1;
}

.review-text {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.review-text p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
}

.review-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.review-loc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}