/* DvitiTech — shell styles for Tailwind pages (hero slider, mobile nav, floats).
   Palette: ink (navy) + cyan (brand) + amber (CTA). */

:root {
  --dviti-primary: #0891b2;
  --dviti-primary-hover: #0e7490;
  --dviti-primary-soft: rgba(8, 145, 178, 0.15);
  --dviti-cta: #f59e0b;
  --dviti-cta-hover: #fbbf24;
  --dviti-cta-ink: #0a0f1a;
  --hero-overlay: rgba(6, 10, 22, 0.55);
  --focus-ring: 0 0 0 3px rgba(245, 158, 11, 0.35);
}

/* ----- Full-width hero slider (homepage) ----- */
.hero-slider {
  --hero-slider-h: clamp(78vh, 82vh, min(920px, 100vh));
  --hero-content-max: 72rem;
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: var(--hero-slider-h);
  height: var(--hero-slider-h);
  overflow: hidden;
  background: #0f172a;
}

.hero-slider-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(6, 10, 22, 0.88) 0%,
    rgba(8, 145, 178, 0.18) 42%,
    rgba(6, 10, 22, 0.35) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-slide-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.hero-slide-wrap {
  width: 100%;
  max-width: var(--hero-content-max);
  margin: 0 auto 0 0;
}

@media (min-width: 1024px) {
  .hero-slide-inner {
    padding-left: max(1rem, calc((100vw - var(--hero-content-max)) / 2 + 1rem));
  }
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-slider .btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--dviti-cta);
  color: var(--dviti-cta-ink);
  border: 2px solid rgba(251, 191, 36, 0.65);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.hero-slider .btn-hero-primary:hover {
  background: var(--dviti-cta-hover);
  border-color: #fcd34d;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.45);
}

.hero-slider .btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  background: rgba(6, 182, 212, 0.12);
  color: #ecfeff;
  border: 1px solid rgba(34, 211, 238, 0.45);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-slider .btn-hero-secondary:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: rgba(103, 232, 249, 0.75);
  transform: translateY(-1px);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-slider-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-slider-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.hero-slider-prev {
  left: clamp(0.5rem, 3vw, 1.25rem);
}

.hero-slider-next {
  right: clamp(0.5rem, 3vw, 1.25rem);
}

.hero-slider-dots {
  position: absolute;
  bottom: clamp(1rem, 4vw, 1.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-slider-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.hero-slider-dot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

@media (max-width: 1023px) {
  .hero-slider {
    --hero-slider-h: min(88vh, 760px);
    min-height: var(--hero-slider-h);
    height: auto;
  }

  .hero-slide-inner {
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 5rem;
  }

  .hero-slide-wrap {
    margin: 0 auto;
  }

  .hero-slide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slider .btn-hero-primary,
  .hero-slider .btn-hero-secondary {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slider-dot {
    transition: none;
  }
}

/* ----- Mobile drawer (site.js toggles .open) ----- */
.mobile-drawer {
  display: none;
}

@media (max-width: 1023px) {
  .mobile-drawer {
    display: block;
  }

  .mobile-drawer .overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .mobile-drawer .panel {
    position: fixed;
    top: 4.5rem;
    right: 0.75rem;
    left: 0.75rem;
    border-radius: 1rem;
    background: linear-gradient(165deg, #0f172a 0%, #0c1222 50%, #060a12 100%);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 158, 11, 0.08);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    padding: 1rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }

  .mobile-drawer.open .overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer.open .panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ----- Contact wizard (site.js) ----- */
.hide-step {
  display: none !important;
}

.step-pill.active {
  border-color: var(--dviti-primary);
  background: var(--dviti-primary-soft);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.08);
}

.step-pill.active .n {
  background: var(--dviti-primary);
  color: #fff;
  border-color: var(--dviti-primary);
}

/* ----- Injected quick contact (index + portfolio; semantic classes from site.js) ----- */
.quick-contact {
  border-top: 1px solid rgba(8, 145, 178, 0.2);
  background: linear-gradient(to bottom, #ecfeff, #f4f4f5);
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.quick-contact-wrap {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .quick-contact-wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

.quick-contact-copy h2 {
  margin: 0 0 0.75rem 0;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.quick-contact-copy p {
  margin: 0;
  max-width: 56ch;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

.quick-contact-form {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px -12px rgba(15, 23, 42, 0.12);
}

.quick-contact-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: rgba(248, 250, 252, 0.8);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-contact-input:focus {
  border-color: var(--dviti-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.quick-contact-textarea {
  min-height: 110px;
  resize: vertical;
}

.quick-contact-submit {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  background: var(--dviti-cta);
  color: var(--dviti-cta-ink);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.quick-contact-submit:hover {
  background: var(--dviti-cta-hover);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.38);
}

.quick-contact-meta {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.quick-contact-meta a {
  color: #0891b2;
  font-weight: 600;
  text-decoration: none;
}

.quick-contact-meta a:hover {
  text-decoration: underline;
  color: #0e7490;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Injected quick contact honeypot ----- */
.quick-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- WhatsApp float ----- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  z-index: 60;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}
