/**
 * IT WEBHUT — Navbar & Hero final polish (spacing, hierarchy, premium feel)
 */

:root {
  --itwh-nav-h: 84px;
  --itwh-nav-gap: 44px;
  --itwh-hero-radius: 20px;
  --itwh-hero-card-pad: 20px;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.header-area-1 .header-main {
  background: rgba(9, 10, 11, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Homepage — navbar sits over unified hero texture */
body:has([data-chapter="1"]) .header-area-1 .header-main {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body:has([data-chapter="1"]) .header-sticky.sticky {
  background-color: rgba(9, 10, 11, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24) !important;
}

.header-area-1 .container {
  max-width: var(--itwh-container, 1320px);
  padding-left: 24px;
  padding-right: 24px;
}

.header-area-1-inner {
  height: var(--itwh-nav-h);
  min-height: var(--itwh-nav-h);
  gap: 24px;
}

.header-area-1-inner .left {
  gap: clamp(32px, 4vw, 56px);
  flex: 1;
  min-width: 0;
}

.header-area-1-inner .header-right {
  flex-shrink: 0;
  align-items: center;
}

.header-area-1 .header-logo,
.header-area-1 .header-nav,
.header-area-1 .header-button {
  display: flex;
  align-items: center;
}

.header-area-1 .main-menu > ul {
  display: flex;
  align-items: center;
  gap: var(--itwh-nav-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-area-1 .main-menu > ul > li > a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font_inter, "Inter", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  color: rgba(255, 255, 255, 0.72) !important;
  transition: color 0.25s ease !important;
}

.header-area-1 .main-menu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  opacity: 0.9;
}

.header-area-1 .main-menu > ul > li > a:hover,
.header-area-1 .main-menu > ul > li > a:focus-visible {
  color: #fff !important;
}

.header-area-1 .main-menu > ul > li > a:hover::after,
.header-area-1 .main-menu > ul > li > a:focus-visible::after,
.header-area-1 .main-menu.itwh-mega-nav > ul > li.itwh-nav-current > a::after {
  transform: scaleX(1);
}

.header-area-1 .main-menu.itwh-mega-nav > ul > li.itwh-nav-current > a {
  color: #fff !important;
  font-weight: 600 !important;
}

/* Header CTA — prominent without size change */
.header-area-1 .header-button .btn-main-primary {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.header-area-1 .header-button .btn-main-primary .text {
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  height: 44px;
  padding: 0 22px;
  border-radius: 100px;
  background: var(--itwh-brand, var(--theme));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(98, 76, 235, 0.28);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.header-area-1 .header-button .btn-main-primary .text::after {
  display: none;
}

.header-area-1 .header-button .btn-main-primary .icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-left: -8px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  transform: rotate(-45deg);
  transition: transform 0.25s ease, background 0.25s ease;
}

.header-area-1 .header-button .btn-main-primary:hover {
  transform: translateY(-1px);
}

.header-area-1 .header-button .btn-main-primary:hover .text {
  background: #fff;
  color: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 20px rgba(109, 82, 244, 0.18);
}

.header-area-1 .header-button .btn-main-primary:hover .icon {
  background: var(--itwh-brand, var(--theme));
  color: #fff;
  transform: rotate(0deg);
}

.header-sticky.sticky {
  padding: 0 !important;
  background-color: rgba(9, 10, 11, 0.92) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24) !important;
}

.header-sticky.sticky .header-area-1-inner {
  height: var(--itwh-nav-h);
  min-height: var(--itwh-nav-h);
}

@media (max-width: 1199px) {
  .header-area-1-inner {
    height: 72px;
    min-height: 72px;
  }

  .header-sticky.sticky .header-area-1-inner {
    height: 72px;
    min-height: 72px;
  }
}

/* ============================================================
   BACKGROUND GRID — quieter, clear of headline
   ============================================================ */

.bg-lines {
  opacity: 0.125;
}

.bg-line {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.035), transparent);
}

.bg-line__droplet {
  opacity: 0.65;
}

/* ============================================================
   HERO LAYOUT
   ============================================================ */

.itwh-chapter--dark .hero-agency,
#hero.hero-agency {
  position: relative;
  z-index: 2;
  min-height: clamp(680px, 94vh, 1000px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--itwh-nav-h) + clamp(40px, 7vh, 72px));
  padding-bottom: clamp(56px, 8vh, 96px);
  background: transparent;
}

#hero > .container {
  max-width: var(--itwh-container, 1320px);
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

#hero .row.align-items-center {
  align-items: center !important;
  --bs-gutter-y: 48px;
}

.itwh-hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding-left: clamp(0px, 4vw, 52px);
}

.itwh-hero-content::before {
  content: "";
  position: absolute;
  inset: -48px -72px -48px -40px;
  background: radial-gradient(
    ellipse 90% 85% at 18% 50%,
    rgba(9, 10, 11, 0.92) 0%,
    rgba(9, 10, 11, 0.55) 48%,
    transparent 78%
  );
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   HERO TYPOGRAPHY
   ============================================================ */

.itwh-chapter--dark .hero-agency__title,
.itwh-hero-title {
  font-family: var(--font_teko, "Teko", sans-serif);
  font-size: clamp(52px, 6.8vw, 92px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  max-width: 650px;
  margin: 0 0 28px;
}

.itwh-chapter--dark .hero-agency__title span {
  background: none;
}

.itwh-hero-sub {
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 558px;
  margin: 0 0 36px;
}

/* ============================================================
   HERO CTAs
   ============================================================ */

.itwh-hero-buttons,
.itwh-chapter--dark .hero-agency__buttons.itwh-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 0 0 18px;
}

#hero .itwh-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

#hero .itwh-hero-cta .text {
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  height: 52px;
  padding: 0 28px;
  margin: 0;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.28s ease, color 0.28s ease, border-color 0.28s ease;
}

#hero .itwh-hero-cta .text::after {
  display: none;
}

#hero .itwh-hero-cta .icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  margin-left: -10px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), background 0.28s ease, color 0.28s ease;
}

#hero .itwh-hero-cta--primary .text {
  background: var(--itwh-brand, var(--theme));
  color: #fff;
  border: 1px solid transparent;
  box-shadow: none;
}

#hero .itwh-hero-cta--primary .icon {
  background: #fff;
  color: #111;
  transform: rotate(-45deg);
}

#hero .itwh-hero-cta--primary:hover {
  transform: translateY(-2px);
}

#hero .itwh-hero-cta--primary:hover .text {
  background: #fff;
  color: #111;
}

#hero .itwh-hero-cta--primary:hover .icon {
  background: var(--itwh-brand, var(--theme));
  color: #fff;
  transform: rotate(0deg);
}

#hero .itwh-hero-cta--secondary .text {
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

#hero .itwh-hero-cta--secondary .icon {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(-45deg);
}

#hero .itwh-hero-cta--secondary:hover {
  transform: translateY(-2px);
}

#hero .itwh-hero-cta--secondary:hover .text {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

#hero .itwh-hero-cta--secondary:hover .icon {
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(0deg);
}

.itwh-chapter--dark .itwh-hero-link {
  margin-top: 0;
}

.itwh-chapter--dark .itwh-hero-link a {
  font-family: var(--font_inter, "Inter", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.25s ease;
}

.itwh-chapter--dark .itwh-hero-link a:hover {
  opacity: 1;
}

/* ============================================================
   HERO SHOWCASE
   ============================================================ */

#hero .hero-agency__visual {
  min-height: 460px;
  padding-top: 48px;
  margin-left: auto;
  margin-right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

#hero .hero-agency__showcase {
  position: relative;
  width: 480px;
  max-width: 100%;
  height: 430px;
  min-height: 430px;
  transform: scale(1.06);
  transform-origin: bottom right;
}

#hero .hero-agency__showcase-card {
  border-radius: var(--itwh-hero-radius);
  overflow: hidden;
}

#hero .hero-agency__showcase-card .card-inner {
  padding: var(--itwh-hero-card-pad);
  border-radius: calc(var(--itwh-hero-radius) - 2px);
}

.itwh-chapter--dark .hero-agency__showcase-card {
  background: rgba(12, 13, 16, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.itwh-chapter--dark .hero-agency__showcase-card:hover {
  border-color: rgba(109, 82, 244, 0.32);
  transform: scale(1.02) translateY(-4px) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(109, 82, 244, 0.14);
}

#hero .hero-agency__showcase-card.card--1 {
  width: 252px;
  left: 0;
  top: auto;
  bottom: 0;
  z-index: 3;
  animation: itwh-hero-float-1 7s ease-in-out infinite alternate;
}

#hero .hero-agency__showcase-card.card--2 {
  width: 228px;
  right: 0;
  top: auto;
  bottom: 8px;
  z-index: 2;
  animation: itwh-hero-float-2 9s ease-in-out infinite alternate;
}

#hero .hero-agency__showcase-card.card--3 {
  width: calc(100% - 8px);
  left: 4px;
  right: 4px;
  top: 0;
  bottom: auto;
  z-index: 1;
  animation: itwh-hero-float-3 11s ease-in-out infinite alternate;
}

#hero .hero-agency__showcase-card.card--3 img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center center;
  border-radius: calc(var(--itwh-hero-radius) - 6px);
  background: rgba(255, 255, 255, 0.02);
}

#hero .hero-agency__showcase-card.card--3 .card-inner {
  padding: 8px;
  background: rgba(255, 255, 255, 0.015);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
  .itwh-chapter--dark .hero-agency,
  #hero.hero-agency {
    min-height: auto;
    padding-top: calc(72px + 40px);
    padding-bottom: 48px;
  }

  .itwh-hero-content {
    padding-left: 0;
    max-width: 100%;
  }

  .itwh-hero-content::before {
    inset: -24px -24px -24px -16px;
  }

  .itwh-chapter--dark .hero-agency__title {
    max-width: 100%;
    margin-bottom: 22px;
  }

  .itwh-hero-sub {
    margin-bottom: 28px;
  }

  #hero .hero-agency__visual {
    max-width: 100%;
    min-height: 380px;
    padding-top: 24px;
    align-items: center;
    justify-content: center;
  }

  #hero .hero-agency__showcase {
    transform: scale(1);
    width: 100%;
    max-width: 420px;
    height: 390px;
    min-height: 390px;
    margin-left: auto;
    margin-right: auto;
    transform-origin: center center;
  }

  #hero .hero-agency__showcase-card.card--3 {
    top: 0;
    bottom: auto;
  }

  #hero .hero-agency__showcase-card.card--1 {
    top: auto;
    bottom: 0;
  }

  #hero .hero-agency__showcase-card.card--2 {
    top: auto;
    bottom: 8px;
  }
}

@media (max-width: 575px) {
  #hero .hero-agency__showcase {
    width: 100%;
    max-width: 320px;
    height: 340px;
    min-height: 340px;
  }

  #hero .hero-agency__showcase-card.card--1 {
    width: 190px;
    left: 0;
    top: auto;
    bottom: 0;
  }

  #hero .hero-agency__showcase-card.card--2 {
    width: 155px;
    right: 0;
    top: auto;
    bottom: 6px;
  }

  #hero .hero-agency__showcase-card.card--3 {
    width: calc(100% - 8px);
    left: 4px;
    top: 0;
    bottom: auto;
  }

  #hero .hero-agency__showcase-card.card--3 img {
    height: 148px;
  }

  .itwh-hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  #hero .itwh-hero-cta {
    width: 100%;
    justify-content: center;
  }

  #hero .hero-agency__visual {
    min-height: 340px;
  }

  .header-area-1 .container,
  #hero > .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
