/* =============================================================
    | Tred-Mark Communications | Developed by Javorsky Studio |
    | Viewing File: ~/shared/css/elements.css          |
    ---     Styling/CSS File for GLOBAL SHARED ELEMENTS     ---
   ============================================================= */

/* =========================================================
   00. Base / Page Shell
   ========================================================= */

html{
  scroll-behavior: smooth;
}

main{
  padding-top: var(--header-offset, 84px);
}

/* =========================================================
   01. Site Header / Navigation
   ========================================================= */

.site-header{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;

  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.66);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--space-4);
  padding: 14px 0;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}

.brand-logo{
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  border: transparent;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand-name{
  font-weight: 800;
  font-size: 16px;
  letter-spacing:.02em;
}
.brand-sub{
  font-size: 12px;
  color: var(--muted);
}

/* Primary nav */
.site-nav{
  display:flex;
  align-items:center;
  gap: 14px;
}

.nav-link,
.nav-linkBlank{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
  position: relative;
}

.nav-link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* Active state — prefer aria-current, keep .is-active as fallback */
.nav-link[aria-current="page"],
.nav-menu-trigger[aria-current="page"],
.nav-link.is-active,
.nav-menu-trigger.is-active{
  background: transparent;
  border: 0;
  color: var(--text);
}

.nav-link[aria-current="page"]::after,
.nav-menu-trigger[aria-current="page"]::after,
.nav-link.is-active::after,
.nav-menu-trigger.is-active::after{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: .95;
  pointer-events: none;
}

/* Dropdown menu */
.nav-menu{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu-trigger{
  cursor: pointer;
  user-select: none;
  position: relative;
}

.nav-menu-dropdown{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;

  width: max-content;
  min-width: 160px;
  max-width: 240px;

  padding: 6px;
  border-radius: 12px;

  background: var(--nav-dropdown-bg);
  border: 1px solid rgba(255,255,255,.06);

  display: none;
  z-index: 9999;
}

.nav-menu-item{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;

  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.nav-menu-item:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.nav-menu.open .nav-menu-dropdown{
  display: block;
}

/* Header actions / icons */
.header-actions{
  display:flex;
  align-items:center;
  gap: 12px;
  position: relative;
}

.contact-stack{
  display:flex;
  flex-direction: row;
  gap: 8px;
}

/* Icon buttons */
.iconbtn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}

.iconbtn:hover{
  background: rgba(255,255,255,.08);
  border-color: var(--border-2);
}

.iconbtn:active{
  transform: translateY(1px);
}

.iconbtn svg{
  width: 18px;
  height: 18px;
  fill: rgba(234,240,255,.88);
}

/* Hide quick-contact row on smaller screens */
@media (max-width: 980px){
  .quick-contact{ display:none; }
}

/* =========================================================
   02. Global Components / Layout Helpers
   ========================================================= */

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);

  transition: transform .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
  user-select:none;
  white-space:nowrap;
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: linear-gradient(135deg, rgba(74,163,255,.92), rgba(47,227,194,.78));
  color: #06101a;
  border-color: rgba(255,255,255,.10);
  font-weight: 700;
}

.btn-ghost{
  background: rgba(255,255,255,.05);
  color: rgba(158, 158, 158, 0.555);
}

.btn-arctic{
  background: linear-gradient(
    135deg,
    rgba(74,163,255,.95),
    rgba(47,227,194,.82)
  );
  color:#06101a;
  border-color:rgba(255,255,255,.10);
  font-weight:700;
}

.btn-fiber{
  background: linear-gradient(
    135deg,
    rgba(74,163,255,.92),
    rgba(106,92,255,.85),
    rgba(199,84,255,.75)
  );
  color:#fff;
  border-color:rgba(255,255,255,.10);
  font-weight:700;
}

.btn-network{
  background: linear-gradient(
    135deg,
    rgba(72,210,132,.95),
    rgba(39,183,108,.82)
  );
  color:#04130a;
  border-color:rgba(255,255,255,.10);
  font-weight:700;
}

.btn-cyan{
  background: linear-gradient(
    135deg,
    rgba(0,209,255,.95),
    rgba(0,134,255,.85)
  );
  color:#fff;
  border-color:rgba(255,255,255,.10);
  font-weight:700;
}

.btn-copper{
  background: linear-gradient(
    135deg,
    rgba(255,187,87,.95),
    rgba(255,118,64,.82)
  );
  color:#1a0d00;
  border-color:rgba(255,255,255,.10);
  font-weight:700;
}

.btn-noc{
  background: linear-gradient(
    135deg,
    rgba(31,43,64,.95),
    rgba(20,29,48,.92)
  );
  color:#fff;
  border-color:rgba(74,163,255,.20);
  font-weight:700;
}

.btn-aurora{
  background: linear-gradient(
    135deg,
    rgba(72,210,132,.92),
    rgba(74,163,255,.90),
    rgba(106,92,255,.82)
  );
  color:#fff;
  border-color:rgba(255,255,255,.10);
  font-weight:700;
}

.btn-gold{
  background: linear-gradient(
    135deg,
    rgba(255,214,102,.95),
    rgba(255,176,32,.82)
  );
  color:#201300;
  border-color:rgba(255,255,255,.10);
  font-weight:700;
}

.btn-primary:hover,
.btn-arctic:hover,
.btn-fiber:hover,
.btn-network:hover,
.btn-cyan:hover,
.btn-copper:hover,
.btn-noc:hover,
.btn-aurora:hover,
.btn-gold:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: var(--border-2);
}

.btn:active{
  transform: translateY(1px);
}

/* Cards / Layout */
.card{
  background: rgba(15,26,46,.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow: hidden;
}

.card-glass{
  background: rgba(15,26,46,.52);
  backdrop-filter: blur(10px);
}

.card-title{
  margin: 0 0 10px 0;
  font-size: 18px;
}

.card-divider{
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

/* Sections */
.section{ padding: var(--space-7) 0; }
.section-slim{ padding: var(--space-6) 0; }

/* Grid helpers (used site-wide) */
.grid{
  display:grid;
  gap: var(--space-4);
}

.grid-3{
  grid-template-columns: repeat(3, 1fr);
}

.jstag a{
  color: rgba(68, 79, 92, 0.95);
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.45rem;
  align-self: center;
}

.jstag p{
  color: rgba(243,239,232,.70);
  text-transform:uppercase;
  font-size:.45rem;
}

/* =========================================================
   08. Footer
   ========================================================= */
.site-footer{
  border-top: 1px solid var(--border);
  padding: var(--space-1) 0;
  background: rgba(7,10,18,.55);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--space-4);
}

.footer-brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.footer-logo{
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
  border: none;
  background: transparent;
  object-fit: contain;
}

.footer-name{ 
  font-size: 16px;
  font-weight: 600; 
}
.footer-slogan{ 
  font-size: 10px; 
  font-style: italic;
  color: #aab7d6;
  text-align: right;
}
.footer-note{  
  font-size:.75rem;
}

.footer-links{
  display:flex;
  align-items:center;
  gap: 24px;
}

.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--text); }

/* =========================================================
   09. Mobile Navigation / Responsive Rules
   ========================================================= */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
}

.nav-toggle:hover{
  background: rgba(255,255,255,.08);
  border-color: var(--border-2);
}

.nav-toggle-bars{
  width: 18px;
  height: 2px;
  background: var(--text);
  display:block;
  margin: 0 auto;
  position:relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav-toggle-bars::before{ top:-6px; }
.nav-toggle-bars::after{ top:6px; }

.mobile-nav{
  border-top: 1px solid var(--border);
  background: rgba(7,10,18,.85);
}

.mobile-nav-inner{
  padding: 14px 0 18px 0;
  display:grid;
  gap: 10px;
}

.mobile-link{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}

.mobile-link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: var(--border);
}

.mobile-cta{
  margin-top: 6px;
  width: fit-content;
}

@media (max-width: 980px){
  .site-nav{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
.grid-3{ grid-template-columns: 1fr; }
}

