/* Custom overrides & interactions for Drap homepage clone */

html {
  scroll-behavior: smooth;
}

body.nav-open {
  overflow: hidden;
}

/* Hamburger menu icon */
.menu-button {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--_colors---black);
  transition: transform 0.35s ease, opacity 0.35s ease;
  transform-origin: center;
}

.menu-button.w--open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button.w--open .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-button.w--open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile navigation overlay */
@media screen and (max-width: 991px) {
  .navbar-container .nav-menu-wrapper {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    overflow-y: auto;
    padding: 100px 40px 60px;
    background-color: var(--_colors---white);
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-container.is-nav-open .nav-menu-wrapper {
    display: flex;
  }

  .navbar-container.is-nav-open .menu-button {
    position: fixed;
    top: 28px;
    right: 20px;
    z-index: 9999;
  }

  .nav-dropdown-list-wrap {
    display: none;
    position: static;
    padding-top: 12px;
  }

  .nav-dropdown.is-open .nav-dropdown-list-wrap {
    display: block;
  }

  .nav-dropdown-list-wrap.pages .nav-dropdown-list-body {
    flex-direction: column;
  }
}

@media screen and (min-width: 992px) {
  .nav-dropdown:hover .nav-dropdown-list-wrap,
  .nav-dropdown.is-open .nav-dropdown-list-wrap {
    display: block;
  }

  .nav-dropdown-list-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding-top: 14px;
  }
}

/* Services v3 tab cards (home-03) */
.services-v3 {
  position: relative;
  z-index: 2;
  background-color: var(--_colors---white-smoke);
}

.services-v3-item {
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease;
}

.services-v3-left-wrap {
  transition: opacity 0.35s ease;
}

@media screen and (min-width: 992px) {
  .services-v3-right-wrap {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  .services-v3-item.w--current .services-v3-left-wrap {
    opacity: 0;
    pointer-events: none;
  }

  .services-v3-item.w--current .services-v3-right-wrap {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Process section — 3-column cards */
.process {
  background-color: var(--_colors---white);
}

.process-main-wrap {
  border-top: none;
  border-bottom: none;
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-card {
  background-color: var(--_colors---white-smoke);
  border-radius: var(--_border-radius---radius-6, 20px);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.process-card-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--_colors---black);
  color: var(--_colors---yellow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.process-card-title {
  margin-bottom: 16px;
  line-height: 1.25;
}

.process-card-text {
  line-height: 1.65;
}

@media screen and (max-width: 991px) {
  .process-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Accordion panels */
.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.w--current .faq-answer-wrap {
  max-height: var(--panel-height, 800px);
}

.faq-item.w--current .faq-plus {
  opacity: 0;
}

.faq-item.w--current .faq-minus {
  opacity: 1;
}

/* Process tab panes — legacy; kept for compatibility */
.process-tab-pane {
  display: none;
}

.process-tab-pane.w--tab-active {
  display: block;
}

/* Slider mask */
.w-slider-mask {
  transition: transform 0.5s ease;
}

.testimonial-v1-slider,
.blog-slider {
  background-color: transparent !important;
}

.testimonial-v1-mask,
.blog-mask {
  overflow: hidden;
}

/* Brands marquee */
.brands-marquee {
  width: max-content;
  animation: brands-marquee 35s linear infinite;
}

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

@keyframes brands-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Button layout — text left, icon right */
.button-01,
.button-03 {
  justify-content: space-between;
  align-items: center;
}

.button-01-text-wrap,
.button-03-text-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.button-01-arrow-wrap,
.button-03-arrow-wrap {
  flex-shrink: 0;
}

/* Button hover text slide */
.button-01-text-group,
.button-02-text-group,
.button-03-text-group {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-01-text-group .button-01-text,
.button-02-text-group .button-01-text {
  flex-shrink: 0;
}

.button-03-text-group .button-02-text {
  flex-shrink: 0;
}

.button-01:hover .button-01-text-group,
.button-02:hover .button-02-text-group {
  transform: translateY(calc(-1 * var(--_typography---button-01-text--line-height)));
}

.button-03:hover .button-03-text-group {
  transform: translateY(calc(-1 * var(--_typography---button-02-text--line-height)));
}

.button-01 {
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-01:hover {
  background-color: var(--_colors---black);
}

.button-01:hover .button-01-text {
  color: var(--_colors---white);
}

.button-01:hover .button-01-arrow-wrap {
  background-color: var(--_colors---yellow);
}

.button-02:hover .button-01-text {
  color: var(--_colors---white);
}

.button-03 {
  transition: background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-03:hover {
  background-color: var(--_colors---yellow);
}

/* Button 04 underline animation */
.button-04-divider-highlight {
  width: 0;
  transition: width 0.35s ease;
}

.button-04:hover .button-04-divider-highlight,
.blog-link:hover .button-04-divider-highlight {
  width: 100%;
}

.button-04:hover .button-04-arrow-group,
.blog-link:hover .button-04-arrow-group {
  transform: translateX(4px);
}

.button-04-arrow-group {
  transition: transform 0.35s ease;
}

/* Project card hover */
.project-v1-link:hover .project-v1-arrow-group {
  transform: translate(4px, -4px);
}

.project-v1-arrow-group {
  transition: transform 0.35s ease;
}

.project-v1-link:hover .fit-cover {
  transform: scale(1.05);
}

.project-v1-image-wrap {
  overflow: hidden;
}

.project-v1-image-wrap .fit-cover {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

.reveal.reveal-card {
  transform: translateY(36px) scale(0.98);
}

.reveal.reveal-stagger {
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal.reveal-card.is-visible {
  transform: translateY(0) scale(1);
}

/* Intro text cover reveal */
.intro-cover-one,
.intro-cover-two,
.intro-cover-three {
  transform: translateX(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Statistics section – flat top edge */
.statistics-v1 {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.statistics-number-wrap {
  height: auto;
  font-size: var(--_typography---h1--font-size);
  line-height: var(--_typography---h1--line-height);
  width: fit-content;
  overflow: visible;
}

.statistics-stat-value {
  display: block;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.statistics-details-wrap {
  left: 0;
}

/* Intro section: white card overlay on sticky hero (from intro-v1 layout) */
.intro-v2 {
  z-index: 1;
  position: relative;
  border-top-left-radius: var(--_perimeter---gap--80);
  border-top-right-radius: var(--_perimeter---gap--80);
  background-color: var(--_colors---white);
  overflow: hidden;
}

.intro-v2-wrap.is-revealed .intro-cover-one {
  transform: translateX(101%);
  transition-delay: 0.1s;
}

.intro-v2-wrap.is-revealed .intro-cover-two {
  transform: translateX(101%);
  transition-delay: 0.25s;
}

.intro-v2-wrap.is-revealed .intro-cover-three {
  transform: translateX(101%);
  transition-delay: 0.4s;
}

/* Divider line draw animation (home-02) */
.divider-black {
  transform: translateY(-100%);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-v2-wrap.is-revealed .divider-black {
  transform: translateY(0);
  transition-delay: 0.5s;
}

/* Form states */
.success-message,
.error-message {
  display: none;
}

.subscribe-form-block.is-success .success-message {
  display: block;
}

.subscribe-form-block.is-error .error-message {
  display: block;
}

.subscribe-form-block.is-success .subscribe-form-group {
  display: none;
}

/* Video background */
.w-background-video > video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.footer-video,
.hero-video-wrap .footer-video {
  width: 100%;
  height: 100%;
}

.footer-right-wrap {
  max-width: 420px;
}

.footer-contact-wrap {
  width: 100%;
}

.footer-contact-wrap .button-01 {
  width: 100%;
  max-width: 100%;
}

.footer-presentation-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.4;
  color: var(--_colors---black);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.25s ease;
}

.footer-presentation-link:hover {
  opacity: 0.65;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background-color: var(--_colors---black);
  color: var(--_colors---white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease,
    background-color 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--_colors---yellow);
  color: var(--_colors---black);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

/* Floating info tab */
.info-tab {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background-color: var(--_colors---yellow);
  color: var(--_colors---black);
  cursor: pointer;
  transform: translateY(-50%) translateX(calc(-100% + 6px));
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    visibility 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease;
}

.info-tab.is-visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  visibility: visible;
}

.info-tab:hover {
  background-color: var(--_colors---black);
  color: var(--_colors---white);
}

.info-tab-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-tab-icon svg {
  width: 20px;
  height: 20px;
  transition: stroke 0.35s ease, color 0.35s ease;
}

.info-tab-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.2;
}

/* Info offcanvas */
.info-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.info-offcanvas.is-open {
  pointer-events: auto;
}

.info-offcanvas-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.info-offcanvas.is-open .info-offcanvas-backdrop {
  opacity: 1;
}

.info-offcanvas-panel {
  position: absolute;
  inset: 0;
  background-color: var(--_colors---white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-offcanvas.is-open .info-offcanvas-panel {
  transform: translateX(0);
}

.info-offcanvas-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--_colors---black);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease;
}

.info-offcanvas-close:hover {
  background-color: var(--_colors---white-smoke, #f4f4f4);
}

.info-offcanvas-content {
  max-width: 640px;
  text-align: center;
}

.info-offcanvas-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--_colors---black);
  margin-bottom: 28px;
  line-height: 1.15;
}

.info-offcanvas-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--_colors---black-60, #707070);
}

body.offcanvas-open {
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .footer-right-wrap {
    max-width: 100%;
  }

  .footer-presentation-link {
    font-size: 13px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .info-tab {
    padding: 14px 8px;
  }

  .info-tab-label {
    font-size: 10px;
  }

  .info-offcanvas-panel {
    padding: 72px 24px;
  }

  .info-offcanvas-close {
    top: 16px;
    right: 16px;
  }

  .info-offcanvas-content p {
    font-size: 16px;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--_colors---black);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.reveal-card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .intro-v2-wrap.is-revealed .intro-cover-one,
  .intro-v2-wrap.is-revealed .intro-cover-two,
  .intro-v2-wrap.is-revealed .intro-cover-three,
  .intro-v2-wrap.is-revealed .divider-black {
    transform: none;
    transition: none;
  }

  .info-tab,
  .back-to-top,
  .info-offcanvas-panel,
  .info-offcanvas-backdrop {
    transition: none;
  }
}
