/* ==========================================================
   TGC GROUP — HEADER V17 FIXED
   - Header layout cleaned up
   - Existing app.css conflicts neutralized
   - Home V18 top gap fixed
   ========================================================== */

/* IMPORTANT:
   app.css currently gives .section-home .executive-portal
   padding:30px 0 24px !important;.
   The V18 homepage hero sits inside that wrapper, so it creates
   the unwanted empty band below the header.
*/
body.section-home .executive-portal{
  padding:0 !important;
  min-height:0 !important;
}

/* Homepage should start immediately below the sticky header. */
body.section-home main{
  padding-top:0 !important;
  margin-top:0 !important;
}

/* ==========================================================
   HEADER
   ========================================================== */

.site-header-v17{
  position:sticky;
  top:0;
  z-index:100;
  width:100%;
  background:rgba(6,21,34,.97);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.site-header-v17 .header-inner-v17{
  height:78px;
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
}

/* ---------- Brand ---------- */

.site-header-v17 .brand-v17{
  flex:0 0 224px;
  width:224px;
  min-width:224px;
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:#fff;
  text-decoration:none;
}

/*
 * logo.png = horizontal logo artwork.
 * We use it only as a source for the TG monogram by cropping
 * the left side via background positioning.
 */
.site-header-v17 .brand-mark-v17{
  display:block;
  flex:0 0 52px;
  width:52px;
  height:52px;
  border-radius:9px;
  background-repeat:no-repeat;
  background-size:268px 83px;
  background-position:-12px -14px;
}

.site-header-v17 .brand-copy-v17{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1;
}

.site-header-v17 .brand-copy-v17 strong{
  display:block;
  margin:0;
  color:#fff;
  font-size:17px;
  line-height:1;
  font-weight:850;
  letter-spacing:-.025em;
  white-space:nowrap;
}

.site-header-v17 .brand-copy-v17 small{
  display:flex;
  align-items:center;
  gap:5px;
  margin-top:7px;
  color:#7f94a5;
  font-size:5.9px;
  line-height:1;
  font-weight:800;
  letter-spacing:.105em;
  white-space:nowrap;
}

.site-header-v17 .brand-copy-v17 small i{
  display:inline-block;
  width:3px;
  height:3px;
  flex:0 0 3px;
  border-radius:50%;
  background:#1688ff;
}

/* ---------- Navigation ---------- */

.site-header-v17 .site-nav-v17{
  position:static;
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:21px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  white-space:nowrap;
}

.site-header-v17 .site-nav-v17 > a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:78px;
  padding:0;
  color:#9cafbf;
  font-size:11.5px;
  line-height:1;
  font-weight:760;
  text-decoration:none;
  white-space:nowrap;
  transition:color .18s ease;
}

.site-header-v17 .site-nav-v17 > a:hover,
.site-header-v17 .site-nav-v17 > a.active{
  color:#fff;
}

.site-header-v17 .site-nav-v17 > a::after{
  display:none;
}

.site-header-v17 .site-nav-v17 > a:not(.nav-rfq-v17).active::after{
  content:"";
  position:absolute;
  display:block;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  border-radius:2px 2px 0 0;
  background:#35d8ee;
}

/* ---------- RFQ ---------- */

.site-header-v17 .site-nav-v17 > a.nav-rfq-v17{
  min-height:38px;
  padding:0 15px;
  gap:8px;
  border:1px solid rgba(53,216,238,.36);
  border-radius:9px;
  background:rgba(53,216,238,.07);
  color:#fff;
  font-weight:850;
}

.site-header-v17 .site-nav-v17 > a.nav-rfq-v17:hover,
.site-header-v17 .site-nav-v17 > a.nav-rfq-v17.active{
  border-color:#35d8ee;
  background:#35d8ee;
  color:#061522;
}

/* ---------- Language ---------- */

.site-header-v17 .lang-switch-v17{
  flex:0 0 auto;
  margin:0 0 0 1px;
}

/* ---------- Menu button ---------- */

.site-header-v17 .menu-toggle{
  display:none;
}

/* ==========================================================
   HOME V18 HERO — COMPACT SPACING
   ========================================================== */

body.section-home .tgc-home-hero{
  margin:0 !important;
  min-height:0 !important;
}

body.section-home .tgc-home-hero-inner{
  min-height:420px !important;
  padding:42px 0 36px !important;
  gap:52px !important;
}

body.section-home .tgc-home-hero-copy h1{
  font-size:clamp(42px,4.8vw,66px);
  line-height:.99;
}

body.section-home .tgc-home-hero-copy p{
  margin-top:18px;
}

body.section-home .tgc-home-hero-actions{
  margin-top:24px;
}

body.section-home .tgc-home-hero-card{
  max-width:430px;
  justify-self:end;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media(max-width:1180px){
  .site-header-v17 .header-inner-v17{
    gap:16px;
  }

  .site-header-v17 .brand-v17{
    flex-basis:205px;
    width:205px;
    min-width:205px;
  }

  .site-header-v17 .brand-mark-v17{
    flex-basis:47px;
    width:47px;
    height:47px;
    background-size:243px 75px;
    background-position:-11px -13px;
  }

  .site-header-v17 .brand-copy-v17 strong{
    font-size:16px;
  }

  .site-header-v17 .brand-copy-v17 small{
    font-size:5.3px;
  }

  .site-header-v17 .site-nav-v17{
    gap:15px;
  }

  .site-header-v17 .site-nav-v17 > a{
    font-size:10.7px;
  }
}

/*
 * app.css has a global mobile menu rule around 1160px.
 * These rules intentionally restore desktop behavior until 980px.
 */
@media(min-width:981px) and (max-width:1160px){
  .site-header-v17 .menu-toggle{
    display:none !important;
  }

  .site-header-v17 .site-nav-v17{
    position:static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:13px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    white-space:nowrap !important;
  }

  .site-header-v17 .site-nav-v17 > a{
    min-height:78px;
    padding:0 !important;
  }

  .site-header-v17 .site-nav-v17 > a.nav-rfq-v17{
    min-height:36px;
    padding:0 12px !important;
  }

  .site-header-v17 .lang-switch-v17{
    margin-top:0 !important;
  }
}

@media(max-width:980px){
  .site-header-v17 .header-inner-v17{
    height:74px;
    min-height:74px;
  }

  .site-header-v17 .brand-v17{
    flex-basis:210px;
    width:210px;
    min-width:210px;
  }

  .site-header-v17 .menu-toggle{
    display:block;
    margin-left:auto;
  }

  .site-header-v17 .site-nav-v17{
    position:fixed !important;
    left:14px !important;
    right:14px !important;
    top:74px !important;
    display:none !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:0 !important;
    padding:10px !important;
    border:1px solid rgba(255,255,255,.12) !important;
    border-radius:15px !important;
    background:#081723 !important;
    box-shadow:0 24px 70px rgba(0,0,0,.35) !important;
    white-space:normal !important;
  }

  .menu-open .site-header-v17 .site-nav-v17{
    display:flex !important;
  }

  .site-header-v17 .site-nav-v17 > a{
    min-height:46px;
    padding:0 11px !important;
  }

  .site-header-v17 .site-nav-v17 > a:not(.nav-rfq-v17).active::after{
    display:none;
  }

  .site-header-v17 .site-nav-v17 > a.nav-rfq-v17{
    min-height:44px;
    margin-top:7px;
    justify-content:center;
  }

  .site-header-v17 .lang-switch-v17{
    justify-content:center;
    margin-top:10px;
  }

  body.section-home .tgc-home-hero-inner{
    min-height:0 !important;
    padding:38px 0 34px !important;
    gap:30px !important;
  }

  body.section-home .tgc-home-hero-card{
    max-width:640px;
    justify-self:start;
  }
}

@media(max-width:560px){
  .site-header-v17 .header-inner-v17{
    height:68px;
    min-height:68px;
  }

  .site-header-v17 .brand-v17{
    flex-basis:202px;
    width:202px;
    min-width:202px;
  }

  .site-header-v17 .brand-mark-v17{
    flex-basis:44px;
    width:44px;
    height:44px;
    background-size:227px 70px;
    background-position:-10px -12px;
  }

  .site-header-v17 .brand-copy-v17 strong{
    font-size:15px;
  }

  .site-header-v17 .brand-copy-v17 small{
    font-size:5px;
  }

  .site-header-v17 .site-nav-v17{
    top:68px !important;
  }

  body.section-home .tgc-home-hero-inner{
    padding:30px 0 28px !important;
  }
}
