/* Keep media queries here so styles.css stays clean */

/* Mobile: bottom-sheet */
    @media (max-width: 480px){
      .ivan-chat{
        right: 14px;
        bottom: 14px;
      }

      .ivan-chat__wrap{
      right: 0;
     bottom: 70px;
    width: calc(100vw - 28px);
    min-height: 420px;
    height: min(70dvh, 620px);
}

      .ivan-chat__panel{
        border-radius: 18px;
      }
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce){
      .ivan-chat__panel,
      .ivan-chat__launcher,
      .ivan-chat__chip,
      .ivan-chat__send{
        transition: none !important;
      }
    }

@media (max-width: 920px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
}

/* Mobile nav */
/* Mobile nav = full screen overlay */
@media (max-width: 760px){

  /* Burger -> X animation */
  .nav-toggle .burger{
    transition: background 0.15s ease;
  }

  .nav-toggle .burger::before,
  .nav-toggle .burger::after{
    transition: transform 0.18s ease, top 0.18s ease;
  }

  .nav-toggle.is-open .burger{
    background: transparent;
  }

  .nav-toggle.is-open .burger::before{
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle.is-open .burger::after{
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-toggle{ 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    z-index: 1000;
  }

  /* Make header a positioning context */
  .site-header{
    position: sticky;
  }

  .nav{
    position: fixed;
    inset: 0;
    height: 100vh;

    background: linear-gradient( 180deg, #1f5e45 0%, #184c38 100% );
    backdrop-filter: blur(14px);

    padding: 88px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;

    z-index: 999;
    overflow-y: auto;

    /* animation setup */
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav.is-open{
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list{
    display: flex;
    flex-direction: column;
    gap: 16px;              /* SPACE between items */
    margin: 0;
    padding: 0;
  }

   .nav-list li{
    width: min(450px, 100%);    /* same width for all, capped */
  }

  .nav-link{
    width: 100%;
    padding: 18px 20px;     /* BIG tap area */
    font-size: 20px;        /* bigger text */
    font-weight: 600;
    display: block;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
  }

  .nav-link:hover{
    background: rgba(255,255,255,0.08);
  }

  .nav-link.is-active{
    background: rgba(29,185,84,0.18);
    border-color: rgba(29,185,84,0.35);
  }

  /* CTA stays at bottom like an app */
  .nav .btn{
    margin-top: auto;
    height: 58px;
    font-size: 18px;
    border-radius: 20px;
    font-weight: 700;
  }
}

/* Scroll lock when nav is open */
body.nav-open{
  overflow: hidden;
}

/* ===============================
   HERO RESPONSIVE — hero-copy
   =============================== */

   /* Very small phones */
@media (max-width: 420px) {

  .hero-title {
    font-size: 24px;
    margin-bottom: 42px;
  }

  .hero-text {
    font-size: 14px;
    margin-bottom: 42px;
  }

  .hero-watermark {
    width: 270px;
    opacity: 0.07;
  }

  .muted {
    text-align: center;
    font-weight: bold;
    margin-bottom: 26px;
  }

  .quote-band__text{
    font-size: 24px;
  }
  .quote-features {
    margin-top: 5px;
  }
  .quote-feature {
    max-width: 220px;
  }
    .quote-feature__icon {
    width: 140px;
    height: 95px;
  }

  .about__content {
    margin-top: 30px;
    padding-left: 3px;
  }
  .about__divider {
    align-items: center;
  }
  .services__lead {
    width: 90%;
  }
  .svc-card{
    min-height: 265px;
  }
  .svc-card__top {
    gap: 5px;
  }
  .svc-card__title{
    font-size: 15px;
  }
  .svc-card__text{
    margin: 25px auto;
    text-align: center;
    width: 90%;
  }
  .svc-list {
    margin: 0 0 20px;
  }
  .contact-booking__lead {
    margin: 0 auto;
    font-size: 16px;
    padding: 15px;
    line-height: 1.50;
  }
  .cb-card__meta {
    font-weight: bold;
    text-align: center;
  }
  .cb-card__text {
    line-height: 1.50;
    padding: 10px;
  }
  .cb-form {
    min-height: 600px;
  height: auto;
  }
  .contact-booking {
    padding: clamp(65px, 6vw, 84px) 0;
  }
  .cb-form__direct-text {
    padding: 3px;
  }
  .cb-form__fine {
    /*color: rgba(255,255,255,.88);*/
  }


   .recruitment {
    padding: 4rem 1rem;
  }

  .recruitment__intro {
    padding: 1.4rem 1rem;
  }

  .recruitment-card__head h3 {
    margin: 7px 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
  }
}

/* Large screens / wide monitors */
@media (min-width: 1400px) {

  .hero-copy {
    max-width: 820px;
    
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-title {
    max-width: 820px;
  }

  .hero-text {
    max-width: 760px;
  }

  .hero-watermark {
    width: 320px;
    left: -20px;
    top: 10px;
    opacity: 0.10;
  }

}


/* Laptops / standard desktops */
@media (max-width: 1200px) {

  .hero-copy {
    max-width: 720px;
  }

  .hero-watermark {
    width: 260px;
    left: -10px;
    top: 12px;
    opacity: 0.10;
  }

}





/* Mobile phones */
@media (max-width: 640px) {

  .hero {
    padding: 48px 0 42px;
  }

  .hero-copy {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.15;
    
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.5;
    /*margin: 22px 0 26px;*/
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-watermark {
    width: 180px;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    opacity: 0.08;
  }

}

@media (max-width: 768px) {

  .recruitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

   .quote-feature__icon {
    width: 140px;
    height: 95px;
  }

}

@media (max-width: 860px) {
  .recruitment__grid {
    grid-template-columns: 1fr;
  }

  .recruitment-card p {
    min-height: auto;
  }

  
  .cb-form__direct-text {
    color: #f4efe7;
    padding: 5px;
  }
  .cb-form__fine {
    color: #f4efe7;
  }
}

@media (max-width: 900px) {
 .cb-form {
    height: 607px;
  }
  .cb-form__direct-text {
    color: #f4efe7;
    padding: 5px;
  }
  .cb-form__fine {
    color: #f4efe7;
  }
}

@media (min-width: 901px) and (max-width:991px) {
  .cb-form {
    height: 515px;
  }
}

/* Tablets */
@media (min-width: 992px) {

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(28px, 5vw, 36px);
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-watermark {
    width: 220px;
    left: 0;
    top: 0;
    opacity: 0.09;
  }

  .cb-form{
    height: 515px;
  }
  .cb-form__direct-text {
    color: rgba(16,38,29,0.72);
    padding: 5px;
  }
  .cb-form__fine {
    color: rgba(16,38,29,0.72);
  }

}




