/* =========================================================
   PAGE-INDEX-HERO.CSS
   Xpress Vending – Hero Section
   Modernist corporate, flatter embedded design, improved symmetry
   NOTE: hero-brand / logo positioning behavior is preserved
   ========================================================= */

/* =========================================================
   HERO FOUNDATION
   ========================================================= */

   .hero {
    --hero-panel-max: 1180px;
    --hero-radius: 28px;
    --hero-panel-bg: rgba(9, 16, 27, 0.46);
    --hero-panel-border: rgba(255, 255, 255, 0.11);
    --hero-shadow:
      0 32px 90px rgba(2, 8, 20, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --hero-text: #ffffff;
    --hero-text-soft: rgba(255, 255, 255, 0.84);
    --hero-text-muted: rgba(255, 255, 255, 0.68);
    --hero-line: rgba(255, 255, 255, 0.1);
    --hero-card-bg: rgba(255, 255, 255, 0.08);
    --hero-card-border: rgba(255, 255, 255, 0.1);
    --hero-card-shadow:
      0 16px 34px rgba(3, 10, 24, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --hero-primary-start: #0fb4ee;
    --hero-primary-end: #0a8fd0;
    --hero-secondary-text: #0f172a;
    --hero-secondary-bg: rgba(255, 255, 255, 0.98);
    --hero-secondary-border: rgba(255, 255, 255, 0.92);
  
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 124px 0 84px;
    overflow: hidden;
    isolation: isolate;
    color: var(--hero-text);
    text-align: center;
  }
  
  /* =========================================================
     BACKGROUND LAYERS
     ========================================================= */
  
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity 1.4s ease-in-out, transform 7s ease;
    will-change: opacity, transform;
  }
  
  .hero-bg.bg1 {
    opacity: 1;
  }
  
  .hero-bg.bg2 {
    opacity: 0;
  }
  
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(
        180deg,
        rgba(8, 14, 25, 0.34) 0%,
        rgba(8, 14, 25, 0.44) 16%,
        rgba(8, 14, 25, 0.58) 36%,
        rgba(8, 14, 25, 0.76) 62%,
        rgba(8, 14, 25, 0.9) 100%
      );
  }
  
  .hero::before {
    content: "";
    position: absolute;
    inset: auto 50% -120px;
    transform: translateX(-50%);
    width: min(1200px, 94vw);
    height: clamp(180px, 24vw, 310px);
    z-index: 1;
    pointer-events: none;
    border-radius: 999px;
    background:
      radial-gradient(
        ellipse at center,
        rgba(15, 180, 238, 0.16) 0%,
        rgba(15, 180, 238, 0.08) 28%,
        rgba(255, 255, 255, 0.04) 48%,
        rgba(255, 255, 255, 0) 74%
      );
    filter: blur(26px);
    opacity: 0.95;
  }
  
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(110px, 15vw, 200px);
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(
        180deg,
        rgba(247, 250, 252, 0) 0%,
        rgba(247, 250, 252, 0.14) 38%,
        rgba(247, 250, 252, 0.4) 68%,
        rgba(247, 250, 252, 0.96) 100%
      );
  }
  
  /* =========================================================
     HERO PANEL / CONTENT
     ========================================================= */
  
  .hero-content {
    position: relative;
    z-index: 3;
    width: min(100%, var(--hero-panel-max));
    max-width: var(--hero-panel-max);
    margin: 0 auto;
    padding: 172px 40px 132px;
    border-radius: var(--hero-radius);
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 0;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.065) 0%,
        rgba(255, 255, 255, 0.028) 100%
      ),
      var(--hero-panel-bg);
    border: 1px solid var(--hero-panel-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--hero-shadow);
  }
  
  .hero-content::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: calc(var(--hero-radius) - 12px);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.045);
    opacity: 0.95;
  }
  
  .hero-content::after {
    content: "";
    position: absolute;
    left: clamp(18px, 4.5%, 34px);
    right: clamp(18px, 4.5%, 34px);
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0) 100%
      );
  }
  
  /* =========================================================
     HERO TYPOGRAPHY
     ========================================================= */
  
  .hero h1 {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 18px;
    padding-top: 46px;
    color: var(--hero-text);
    font-size: clamp(2.75rem, 5vw, 4.9rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.3);
  }
  
  .hero p,
  .hero-lead {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 30px;
    color: var(--hero-text-soft);
    font-size: clamp(1rem, 1.24vw, 1.12rem);
    line-height: 1.72;
    font-weight: 500;
    text-wrap: pretty;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* =========================================================
     CTA BUTTONS
     ========================================================= */
  
  .hero-actions {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 34px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    justify-content: center;
  }
  
  .hero-actions .btn-primary,
  .hero-actions .hero-btn-secondary {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    height: 58px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 0.985rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition:
      transform 0.24s ease,
      box-shadow 0.24s ease,
      border-color 0.24s ease,
      background 0.24s ease,
      color 0.24s ease;
  }
  
  .hero-actions .btn-primary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, var(--hero-primary-start) 0%, var(--hero-primary-end) 100%);
    box-shadow:
      0 18px 34px rgba(8, 110, 160, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  
  .hero-actions .hero-btn-secondary {
    color: var(--hero-secondary-text);
    border: 1px solid var(--hero-secondary-border);
    background: var(--hero-secondary-bg);
    box-shadow:
      0 18px 34px rgba(5, 12, 26, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: none;
  }
  
  .hero-actions .btn-primary:hover,
  .hero-actions .hero-btn-secondary:hover {
    transform: translateY(-2px);
    text-decoration: none;
  }
  
  .hero-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1cc0f7 0%, #0a98d9 100%);
    color: #ffffff;
    box-shadow:
      0 22px 40px rgba(8, 110, 160, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  
  .hero-actions .hero-btn-secondary:hover {
    background: #ffffff;
    color: #091321;
    border-color: #ffffff;
    box-shadow:
      0 22px 40px rgba(5, 12, 26, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  
  .hero-actions .btn-primary:focus-visible,
  .hero-actions .hero-btn-secondary:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.34);
    outline-offset: 3px;
  }
  
  /* =========================================================
     CONTACT PANEL
     ========================================================= */
  
  .hero-contact-panel {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    text-align: left;
  }
  
  .hero-contact-card {
    position: relative;
    min-height: 122px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 18px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.055) 100%
      );
    border: 1px solid var(--hero-card-border);
    box-shadow: var(--hero-card-shadow);
    backdrop-filter: blur(8px);
  }
  
  .hero-contact-card::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 18px;
    width: 138px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 180, 238, 1), rgba(255, 255, 255, 0.92));
    opacity: 0.96;
  }
  
  .hero-contact-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 56%;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.015) 100%
      );
    pointer-events: none;
  }
  
  .hero-contact-label {
    display: block;
    min-height: 18px;
    margin: 14px 0 10px;
    color: var(--hero-text-muted);
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  
  .hero-contact-value {
    display: block;
    width: 100%;
    min-height: 28px;
    color: var(--hero-text);
    font-size: 0.96rem;
    line-height: 1.3;
    font-weight: 700;
    text-decoration: none;
  }
  
  a.hero-contact-value:hover {
    text-decoration: underline;
    text-underline-offset: 0.14em;
  }
  
  .hero-contact-card:nth-child(1) .hero-contact-value,
  .hero-contact-card:nth-child(3) .hero-contact-value {
    white-space: nowrap;
  }
  
  .hero-contact-card:nth-child(2) .hero-contact-value,
  .hero-contact-value[href^="mailto:"] {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
    font-size: 0.8rem;
  }
  
  .hero-contact-card:nth-child(4) .hero-contact-value {
    font-size: 0.9rem;
    line-height: 1.24;
  }
  
  /* =========================================================
     TRUST LINE
     ========================================================= */
  
  .hero-trust-line {
    width: 100%;
    max-width: 860px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.96rem;
    line-height: 1.65;
    font-weight: 500;
  }
  
  .hero-trust-line span {
    display: inline-block;
    padding: 0;
    text-wrap: balance;
  }
  
  /* =========================================================
     HERO BRAND / LOGO CONTAINER
     DO NOT CHANGE POSITIONING BEHAVIOR
     ========================================================= */
  
  .hero-brand {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    transition: left 0.6s cubic-bezier(.4, 0, .2, 1);
  }
  
  .hero-brand img {
    max-height: 100px;
    width: auto;
    transform: scale(1);
    transition:
      transform 0.6s cubic-bezier(.4, 0, .2, 1),
      opacity 0.6s cubic-bezier(.4, 0, .2, 1);
  }
  
  .hero-brand:hover img {
    transform: scale(1.03);
  }
  
  /* =========================================================
     X LOGO ANIMATION
     ========================================================= */
  
  .hero-xlogo {
    opacity: 0;
    transform: translateX(20px) scale(1);
  }
  
  .hero-brand.show-x .hero-xlogo {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  
  .hero-brand.show-x:hover .hero-xlogo {
    transform: translateX(0) scale(1.03);
  }
  
  /* =========================================================
     SCROLL STATE
     PRESERVED
     ========================================================= */
  
  .hero-brand.is-scrolled {
    position: fixed;
    top: 15px;
    left: 1%;
    transform: translateY(0);
    z-index: 10001;
    left: 2rem;
    top: 15px;
  }
  
  .hero-brand.is-scrolled img {
    max-height: 40px;
  }
  
  /* =========================================================
     HERO LOGO GLOW
     ========================================================= */
  
  .hero-brand::before {
    content: "";
    position: absolute;
    inset: -20px -30px;
    z-index: -1;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.76);
    filter: blur(25px);
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  
  .hero-brand.is-scrolled::before {
    opacity: 0;
  }
  
  /* =========================================================
     LARGE DESKTOP REFINEMENT
     ========================================================= */
  
  @media (min-width: 1280px) {
    .hero-content {
      padding-left: 46px;
      padding-right: 46px;
    }
  
    .hero h1 {
      max-width: 960px;
    }
  
    .hero-lead {
      max-width: 800px;
    }
  }
  
  /* =========================================================
     LARGE TABLET / SMALL DESKTOP
     ========================================================= */
  
  @media (max-width: 1100px) {
    .hero {
      padding: 118px 0 72px;
    }
  
    .hero-content {
      width: min(100%, 96vw);
      max-width: 1040px;
      padding: 154px 30px 116px;
      border-radius: 24px;
    }
  
    .hero h1 {
      max-width: 780px;
      font-size: clamp(2.45rem, 5.7vw, 4rem);
    }
  
    .hero p,
    .hero-lead {
      max-width: 720px;
    }
  
    .hero-contact-panel {
      max-width: 760px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .hero-contact-card {
      min-height: 114px;
    }
  
    .hero-contact-card:nth-child(2) .hero-contact-value,
    .hero-contact-value[href^="mailto:"] {
      font-size: 0.92rem;
    }
  }
  
  /* =========================================================
     TABLET
     ========================================================= */
  
  @media (max-width: 860px) {
    .hero {
      min-height: 100svh;
      padding: 108px 0 58px;
    }
  
    .hero::before {
      width: min(940px, 96vw);
      height: clamp(150px, 28vw, 230px);
      bottom: -78px;
      filter: blur(22px);
    }
  
    .hero::after {
      height: clamp(96px, 18vw, 150px);
    }
  
    .hero-content {
      width: min(100%, 94vw);
      padding: 132px 22px 94px;
      border-radius: 21px;
      backdrop-filter: blur(8px);
      box-shadow:
        0 24px 60px rgba(2, 8, 20, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
  
    .hero-content::before {
      inset: 14px;
    }
  
    .hero h1 {
      padding-top: 40px;
      margin-bottom: 16px;
      font-size: clamp(2.15rem, 6.4vw, 3.15rem);
    }
  
    .hero p,
    .hero-lead {
      margin-bottom: 24px;
      font-size: 1rem;
      line-height: 1.68;
    }
  
    .hero-actions {
      max-width: 560px;
      gap: 12px;
      margin-bottom: 26px;
    }
  
    .hero-actions .btn-primary,
    .hero-actions .hero-btn-secondary {
      min-height: 54px;
      height: 54px;
      font-size: 0.96rem;
      border-radius: 13px;
    }
  
    .hero-trust-line {
      margin-top: 18px;
      font-size: 0.92rem;
    }
  }
  
  @media (max-width: 859px) {
    .hero-brand {
      gap: 8px;
      top: 30%;
    }
  }
  
  @media (max-width: 1099px) {
    .hero-brand {
      gap: 8px;
      top: 30%;
    }
  }

  @media (max-width: 430px) {
    .hero-brand {
      gap: 8px;
      top: 30%;
    }
  }

  /* =========================================================
     MOBILE
     ========================================================= */
  
  @media (max-width: 768px) {
    .hero-brand {
      gap: 8px;
      top: 30%;
    }
  
    .hero-brand img {
      max-height: 60px;
    }
  
    .hero-content {
      padding: 118px 18px 82px;
      width: min(100%, 95vw);
    }
  
    .hero-contact-panel {
      max-width: 560px;
      grid-template-columns: 1fr;
      gap: 12px;
    }
  
    .hero-contact-card {
      min-height: auto;
      padding: 18px 16px 16px;
      border-radius: 16px;
    }
  
    .hero-contact-card::before {
      left: 16px;
      width: 34px;
    }
  
    .hero-contact-label {
      margin-top: 12px;
      margin-bottom: 8px;
    }
  
    .hero-contact-value {
      min-height: auto;
    }
  
    .hero-contact-card:nth-child(2) .hero-contact-value,
    .hero-contact-value[href^="mailto:"] {
      font-size: 0.93rem;
    }
  }
  
  /* =========================================================
     MOBILE STACKED BUTTONS
     ========================================================= */
  
  @media (max-width: 640px) {
    .hero-actions {
      grid-template-columns: 1fr;
      max-width: 100%;
      gap: 10px;
    }
  
    .hero-actions .btn-primary,
    .hero-actions .hero-btn-secondary {
      width: 100%;
      min-height: 52px;
      height: 52px;
      padding: 0 18px;
      font-size: 0.95rem;
    }
  }
  
  /* =========================================================
     SMALL MOBILE
     ========================================================= */
  
  @media (max-width: 480px) {
    .hero {
      padding: 96px 0 42px;
    }
  
    .hero::before {
      width: 96vw;
      height: 148px;
      bottom: -56px;
      opacity: 0.86;
    }
  
    .hero::after {
      height: 92px;
    }
  
    .hero-content {
      width: min(100%, 95vw);
      padding: 104px 16px 74px;
      border-radius: 18px;
    }
  
    .hero-content::before {
      inset: 12px;
    }
  
    .hero-content::after {
      left: 14px;
      right: 14px;
    }
  
    .hero h1 {
      padding-top: 38px;
      margin-bottom: 14px;
      font-size: 1.95rem;
      line-height: 1.06;
    }
  
    .hero p,
    .hero-lead {
      margin-bottom: 20px;
      font-size: 0.96rem;
      line-height: 1.62;
    }
  
    .hero-actions {
      margin-bottom: 20px;
    }
  
    .hero-actions .btn-primary,
    .hero-actions .hero-btn-secondary {
      min-height: 50px;
      height: 50px;
      font-size: 0.93rem;
      border-radius: 11px;
    }
  
    .hero-contact-label {
      font-size: 0.72rem;
    }
  
    .hero-contact-value {
      font-size: 0.94rem;
    }
  
    .hero-contact-card:nth-child(2) .hero-contact-value,
    .hero-contact-value[href^="mailto:"] {
      font-size: 0.86rem;
    }
  
    .hero-contact-card:nth-child(4) .hero-contact-value {
      font-size: 0.88rem;
    }
  
    .hero-trust-line {
      font-size: 0.89rem;
      line-height: 1.58;
    }
  }
  
  /* =========================================================
     VERY SMALL MOBILE
     ========================================================= */
  
  @media (max-width: 360px) {
    .hero h1 {
      font-size: 1.76rem;
    }
  
    .hero p,
    .hero-lead {
      font-size: 0.93rem;
    }
  
    .hero-contact-card {
      padding-left: 14px;
      padding-right: 14px;
    }
  
    .hero-contact-card::before {
      left: 14px;
    }
  
    .hero-contact-card:nth-child(2) .hero-contact-value,
    .hero-contact-value[href^="mailto:"] {
      font-size: 0.82rem;
    }
  }



  /* =========================================================
   HERO CTA ALIGNMENT FIX
   Keeps both buttons perfectly level
   ========================================================= */

.hero-actions {
  align-items: stretch;
}

.hero-actions .btn-primary,
.hero-actions .hero-btn-secondary {
  margin: 0;
  align-self: stretch;
  vertical-align: top;
  line-height: 1;
}

.hero-actions .btn-primary {
  position: relative;
  top: 0;
}

.hero-actions .hero-btn-secondary {
  position: relative;
  top: 0;
}

/* in case inherited anchor/button styles are shifting one item */
.hero-actions a.btn-primary,
.hero-actions a.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* force equal box model */
.hero-actions > * {
  min-height: 58px;
  height: 58px;
  box-sizing: border-box;
}









/* =========================================================
   HERO CONTACT CARDS — CENTERED CONTENT REFINEMENT
   Centers all 4 containers under the CTA buttons
   Professional, balanced, responsive
   ========================================================= */

   .hero-contact-panel {
    justify-content: center;
    align-items: stretch;
  }
  
  .hero-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px 20px 20px;
  }
  
  .hero-contact-card::before {
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
  }
  
  .hero-contact-label {
    width: 100%;
    margin: 14px 0 10px;
    text-align: center;
  }
  
  .hero-contact-value {
    width: 100%;
    margin: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  
  .hero-contact-card a.hero-contact-value {
    display: inline-flex;
  }
  
  /* keep long email visually centered and clean */
  .hero-contact-card:nth-child(2) .hero-contact-value,
  .hero-contact-value[href^="mailto:"] {
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* operating hours also centered cleanly */
  .hero-contact-card:nth-child(4) .hero-contact-value {
    text-align: center;
  }
  
  /* tablet refinement */
  @media (max-width: 1100px) {
    .hero-contact-card {
      padding: 22px 18px 18px;
    }
  
    .hero-contact-card::before {
      width: 104px;
    }
  }
  
  /* mobile refinement */
  @media (max-width: 768px) {
    .hero-contact-card {
      padding: 18px 16px 16px;
      align-items: center;
      text-align: center;
    }
  
    .hero-contact-card::before {
      left: 50%;
      transform: translateX(-50%);
      width: 72px;
    }
  
    .hero-contact-label,
    .hero-contact-value {
      text-align: center;
    }
  
    .hero-contact-card a.hero-contact-value {
      display: inline-flex;
      justify-content: center;
    }
  }
  
  /* very small devices */
  @media (max-width: 480px) {
    .hero-contact-card::before {
      width: 60px;
    }
  
    .hero-contact-card {
      padding: 18px 14px 15px;
    }
  }

  @media only screen
  and (device-width: 414px)
  and (device-height: 896px)
  and (-webkit-device-pixel-ratio: 2)
  and (orientation: portrait) {
  .hero-brand {
    gap: 8px;
    top: 32%;
  }
}

@media only screen
  and (device-width: 414px)
  and (device-height: 896px)
  and (-webkit-device-pixel-ratio: 2)
  and (orientation: landscape) {
  .hero-brand {
    gap: 8px;
    top: 62%;
  }
}