/* ============================================
   ELVIQA — Components
   ============================================ */

/* ---- HERO ---- */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding-block: var(--space-10) var(--space-9);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent);
  top: -100px;
  right: -80px;
}

.hero__blob--2 {
  width: 320px;
  height: 320px;
  background: #00C2FF;
  bottom: 0px;
  left: 10%;
  opacity: 0.08;
}

[data-theme="dark"] .hero__blob { opacity: 0.18; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero__heading {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero__heading em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__subheading {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: var(--space-7);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px var(--space-6);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(10, 95, 255, 0.4);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 95, 255, 0.3);
}

.btn--ghost {
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-text-primary);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-bg-subtle);
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero visual card */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mockup {
  width: 100%;
  max-width: 460px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup__dot--red   { background: #FF5F57; }
.mockup__dot--yellow{ background: #FEBC2E; }
.mockup__dot--green { background: #28C840; }

.mockup__url {
  flex: 1;
  height: 24px;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding-inline: var(--space-3);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-family: monospace;
}

.mockup__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.mockup__stat {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.mockup__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.mockup__stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.mockup__bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 80px;
  padding: var(--space-3);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
}

.mockup__bar-col {
  flex: 1;
  background: var(--color-accent);
  border-radius: 4px 4px 0 0;
  opacity: 0.2;
  transition: opacity var(--transition-base);
}

.mockup__bar-col.active { opacity: 1; }
.mockup__bar-col:hover  { opacity: 0.8; }

/* Stats row */
.hero__stats {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .hero__subheading { max-width: 100%; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__mockup { max-width: 360px; }
  .hero__eyebrow { margin-inline: auto; }
}

@media (max-width: 480px) {
  .hero { padding-block: var(--space-8); }
  .hero__stats { flex-direction: column; gap: var(--space-4); }
  .btn { width: 100%; justify-content: center; }
}

/* ---- SERVICES ---- */
.services {
  background: var(--color-bg-subtle);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 3px;
  height: 0;
  background: var(--color-accent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: height var(--transition-slow);
}

.service-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

.service-card__link:hover svg {
  transform: translateX(3px);
}

[lang="ar"] .service-card__link:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ---- HOW IT WORKS ---- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  inset-inline-start: calc(12.5% + 20px);
  width: calc(75% - 40px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-border));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 auto var(--space-4);
}

.step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process__steps {
    grid-template-columns: 1fr 1fr;
  }
  .process__steps::before { display: none; }
}

@media (max-width: 480px) {
  .process__steps { grid-template-columns: 1fr; }
}

/* ---- WHY US ---- */
.whyus {
  background: var(--color-bg-subtle);
}

.whyus__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: center;
  margin-top: var(--space-8);
}

.whyus__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.whyus__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.whyus__item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.whyus__item-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whyus__item-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.whyus__item-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.whyus__image {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.whyus__testimonial {
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.whyus__quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.whyus__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.whyus__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.whyus__author-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.whyus__author-role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.whyus__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.whyus__metric {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.whyus__metric-value {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--color-accent);
}

.whyus__metric-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .whyus__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
}

/* ---- CONTACT / CTA ---- */
.contact {
  background: var(--color-text-primary);
  color: #fff;
  text-align: center;
}

.contact .section-label {
  color: rgba(255,255,255,0.5);
}

.contact .section-title {
  color: #fff;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.contact .section-subtitle {
  color: rgba(255,255,255,0.65);
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--space-7);
}

.contact__form {
  max-width: 520px;
  margin-inline: auto;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.form__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: start;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px var(--space-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

.form__textarea {
  height: 120px;
  resize: vertical;
}

.contact__form .btn--primary {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
  padding-block: 16px;
}

.form__success {
  display: none;
  background: rgba(40, 200, 64, 0.15);
  border: 1px solid rgba(40, 200, 64, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: #5DF571;
  font-size: 0.9375rem;
  text-align: center;
  margin-top: var(--space-3);
}

.form__success.visible { display: block; }

@media (max-width: 580px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ---- FOOTER ---- */
.footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 28ch;
  margin-bottom: var(--space-4);
}

.footer__social {
  display: flex;
  gap: var(--space-2);
}

.footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__social-link:hover {
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

.footer__social-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.footer__links a:hover {
  color: var(--color-text-primary);
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

@media (max-width: 580px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }
