/*
  Nuke Scan — Global color overrides
  Rule: Zero green. Everything must use the blue palette.
*/

:root {
  /* Override green/teal template colors → dark blue equivalents */
  --theme-color2:     #1e3a8a;
  --theme-color2-rgb: 30, 58, 138;
  --theme-color3:     #1e3a8a;
  --theme-color3-rgb: 30, 58, 138;
  --theme-color4:     #1e3a8a;
  --theme-color4-rgb: 30, 58, 138;
  --theme-color7:     #0f2a6e;
  --theme-color7-rgb: 15, 42, 110;
  --theme-color8:     #3b82f6;
  --theme-color-light-green: #eff6ff;
  --bg-theme-color2:  #1e3a8a;
}

/* Step 02 active circle — force blue */
.steps-block.active .icon,
.steps-block:hover .icon {
  background-color: #1e40af !important;
}

/* Any remaining green backgrounds */
[style*="background-color: green"],
[style*="background:#00"],
[style*="background: #00"] {
  background-color: var(--theme-color1) !important;
}

/* btn-two-rounded — blue outline (override template green) */
.btn-two-rounded {
  border-color: #1e40af !important;
  color: #ffffff !important;
  background: transparent !important;
}

.btn-two-rounded:hover {
  background: #1e40af !important;
  color: #ffffff !important;
}

/* ============================================================
   HERO VIEWPORT — header + hero fill exactly one screen
   ============================================================ */

.hero-viewport {
  height: 100dvh; /* dvh accounts for mobile browser chrome */
  display: flex;
  flex-direction: column;
}

.hero-viewport .banner-section-four {
  flex: 1;
  min-height: 0; /* allow flex child to shrink below content size */
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  display: flex;
  align-items: center;
}

.hero-viewport .banner-section-four > div:not(.sec-shape):not(.bg-shape) {
  width: 100%;
}

/* Short screens (landscape phones, small tablets in landscape):
   switch to min-height so content is never clipped */
@media (max-height: 620px) {
  .hero-viewport {
    height: auto;
    min-height: 100dvh;
  }
}

/* Small phones: reduce hero padding to fit content */
@media (max-width: 575.98px) {
  .hero-viewport .banner-section-four {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
}

/* ============================================================
   HEADER — responsive layout
   Desktop ≥992px: nav + CTAs visible, hamburger hidden
   Mobile  <992px: nav + CTAs hidden, hamburger visible
   ============================================================ */

/* Restore right padding the template strips from .main-box */
.main-header .main-box {
  padding-right: 16px !important;
  flex-wrap: nowrap;
}

/* ── Mobile / tablet (<1200px): hide nav ─────────────────────
   CTAs (.info-box) are already hidden by the template at ≤1199px.
   We hide nav-outer at the same breakpoint so hamburger covers both.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .header-style-four .main-box .nav-outer {
    display: none !important;
  }
}

/* ── Hamburger button (.nk-hamburger) ─────────────────────────
   Own class — no template conflict. Hidden on desktop,
   shown on mobile as a 44×44px touch target.
   ─────────────────────────────────────────────────────────── */
.nk-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .nk-hamburger {
    display: flex;
  }
}
.nk-hamburger:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Ver Planes CTA — compact on all sizes */
.main-header .outer-box .info-box .btn-one {
  font-size: 14px !important;
  line-height: 1 !important;
  padding: 11px 22px !important;
  min-width: auto !important;
  white-space: nowrap;
}

/* Large tablet (992–1199px): slightly smaller text */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-header .outer-box .info-box .btn-one {
    font-size: 13px !important;
    padding: 10px 18px !important;
  }
  .main-header .outer-box .info-box a:not(.btn-one) {
    font-size: 13px !important;
  }
}

/* ============================================================
   MOBILE MENU — slide-in from the LEFT
   Template default slides from the right; we override here.
   ============================================================ */

/* Pin panel to left edge instead of right */
.main-header .mobile-menu {
  right: auto !important;
  left: 0 !important;
}

/* Start off-screen to the LEFT */
.main-header .mobile-menu .menu-box {
  transform: translateX(-101%) !important;
}

/* ── body.mobile-menu-visible: override transform direction ── */
/* The template sets transform:translateX(0%) with (0,3,0) no !important.
   Our base rule uses !important so we need higher specificity + !important. */
body.mobile-menu-visible .main-header .mobile-menu .menu-box {
  transform: translateX(0%) !important;
  transition: transform 0.35s ease !important;
}

/* ============================================================
   HERO — font scaling on very small phones
   ============================================================ */

@media (max-width: 400px) {
  .banner-section-four .content-box .title {
    font-size: 32px !important;
    line-height: 40px !important;
  }
  .banner-section-four .content-box .text {
    font-size: 14px !important;
    line-height: 22px !important;
  }
}

/* Hero buttons: stack on small phones */
@media (max-width: 480px) {
  .banner-section-four .content-box .btn-wrp {
    flex-direction: column;
    align-items: center;
  }
  .banner-section-four .content-box .btn-wrp a,
  .banner-section-four .content-box .btn-wrp button {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }
}

/* ============================================================
   QUÉ ES — destination pills wrap on any screen
   ============================================================ */

.consult-section .btn-wrp {
  flex-wrap: wrap;
}

/* ============================================================
   PAIN POINTS — flex-content stack on mobile
   ============================================================ */

@media (max-width: 767px) {
  .sec-title .flex-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .sec-title .flex-content img {
    max-height: 26px;
    width: auto;
  }
  .sec-title .flex-content .flex-text {
    max-width: 100%;
  }
  .sec-title .flex-content .btn-one-rounded,
  .sec-title .flex-content .btn-two-rounded {
    align-self: flex-start;
  }
}

/* ============================================================
   REPORT PREVIEW — mobile layout fixes
   ============================================================ */

/* Reduce paddings inside the report pages */
@media (max-width: 767.98px) {
  .hdr {
    padding: 14px 20px 12px !important;
  }
  .pc {
    padding: 16px 20px !important;
    gap: 12px !important;
  }
  .sh {
    margin: -16px -20px 12px !important;
    padding: 12px 20px !important;
  }
  .ftr {
    padding: 10px 20px !important;
  }
}

/* Rating cards and score pills: 4-col → 2-col on phones */
@media (max-width: 575.98px) {
  .rat-row,
  .pill-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Sentiment bars side-by-side → stack */
  .two {
    grid-template-columns: 1fr !important;
  }

  /* Bar labels: remove fixed 130px width */
  .hb-label {
    width: auto !important;
    min-width: 70px;
  }

  /* Hide report date/location on tiny screens */
  .hdr-ctx {
    display: none;
  }

  /* Table: smaller text so it fits without horizontal scroll */
  .dt thead th,
  .dt tbody td {
    padding: 6px 4px !important;
    font-size: 9px !important;
  }

  /* NUKE tip padding */
  .ntip {
    padding: 10px 12px !important;
  }

  /* Demand block: stack vertically */
  .demand {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
}

/* ============================================================
   PRICING — center orphaned 3rd card at md breakpoint
   ============================================================ */

@media (min-width: 768px) and (max-width: 1199.98px) {
  .pricing-section-two .row.align-items-end {
    justify-content: center;
  }
}

/* Pricing card padding on phones */
@media (max-width: 575.98px) {
  .pricing-block-two .inner-box {
    padding: 28px 20px;
    padding-top: 40px;
  }
}

/* ============================================================
   TRIAL BADGE
   ============================================================ */

.trial-badge {
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 575px) {
  .trial-badge {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 12px !important;
    padding: 10px 16px !important;
    text-align: center;
  }
}

/* ============================================================
   CALCULATOR
   ============================================================ */

@media (max-width: 575.98px) {
  .calc-box {
    padding: 20px 16px !important;
  }
}

/* ============================================================
   BENEFITS + FAQ — service section
   ============================================================ */

/* Unstick the sticky content column on mobile */
@media (max-width: 991.98px) {
  .service-section-four .content-column .inner-column {
    position: static !important;
    max-width: 100%;
  }
}

/* Stack the two info ul lists on small screens */
@media (max-width: 575.98px) {
  .service-section-four .content-column .inner-column .info {
    flex-direction: column;
    gap: 0;
  }
}

/* ============================================================
   STEPS
   ============================================================ */

@media (max-width: 767px) {
  .steps-section .outer-box {
    flex-direction: column;
    align-items: center;
  }
  .steps-block {
    max-width: 90% !important;
  }
}

/* ============================================================
   SECTION SPACING — reduce pt/pb on phones
   ============================================================ */

@media (max-width: 575px) {
  .pt-120 { padding-top: 60px !important; }
  .pb-120 { padding-bottom: 60px !important; }
  .mb-50  { margin-bottom: 28px !important; }
  .mb-30  { margin-bottom: 18px !important; }
}
