/* =====================================================
   MJ Refrigeration LLC — Main Stylesheet
   ===================================================== */

:root{
  --bg:#070B14;
  --panel:#0E162A;
  --panel2:#0B1220;
  --text:#EAF0FF;
  --muted:#B7C6EA;
  --brand:#60A5FA;
  --brand2:#22C55E;
  --border:rgba(255,255,255,.10);
  --shadow:0 12px 34px rgba(0,0,0,.40);
  --max:1150px;
  --radius:18px;
}

/* =====================================================
   RESET
   ===================================================== */

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

body{
  color:var(--text);
  background:
    radial-gradient(1100px 600px at 15% -5%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(34,197,94,.14), transparent 60%),
    var(--bg);
}

a{
  color:inherit;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

/* =====================================================
   TOP BAR
   ===================================================== */

.topbar{
  border-bottom:1px solid var(--border);
  background:rgba(7,11,20,.55);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
}

.note{
  color:var(--muted);
  font-weight:800;
  font-size:12px;
}

/* =====================================================
   HEADER
   ===================================================== */

header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(7,11,20,.70);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

/* =====================================================
   BRAND
   ===================================================== */

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
}

.brand img{
  width:112px;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 10px 24px rgba(0,0,0,.45));
}

.brand .name{
  font-weight:900;
  letter-spacing:.2px;
  line-height:1.1;
  font-size:20px;
}

.brand .tag{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  margin-top:2px;
}

/* =====================================================
   NAV LINKS
   ===================================================== */

.navlinks{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.navlinks a{
  color:var(--muted);
  text-decoration:none;
  font-weight:750;
  font-size:14px;
}

.navlinks a:hover{
  color:var(--text);
}

.navlinks [data-nav].active{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:6px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  text-decoration:none;
  font-weight:850;
  cursor:pointer;
  white-space:nowrap;
  color:var(--text);
  font-family:inherit;
}

.btn.primary{
  background:linear-gradient(135deg, rgba(96,165,250,.95), rgba(34,197,94,.85));
  border:none;
  color:#07101f;
}

.btn.emergency{
  background:linear-gradient(135deg, rgba(239,68,68,.95), rgba(245,158,11,.85));
  border:none;
  color:#081018;
}

.btn-xs{
  padding:8px 10px;
  border-radius:12px;
  font-size:12px;
}

.btn-danger{
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.35);
}

/* =====================================================
   DROPDOWN NAV
   ===================================================== */

.dropdown{
  position:relative;
  display:inline-block;
}

.dropdown-menu{
  position:absolute;
  right:0;
  top:100%;
  margin-top:10px;
  min-width:220px;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(14,22,42,.98);
  box-shadow:var(--shadow);
  display:none;
  z-index:9999;
}

.dropdown-menu a{
  display:block;
  padding:10px 12px;
  margin:6px 0;
  border-radius:12px;
  text-decoration:none;
  font-weight:850;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
}

.dropdown-menu a:hover{
  background:rgba(255,255,255,.12);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{
  display:block;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */

main{
  padding:26px 0 40px;
}

/* =====================================================
   GRID
   ===================================================== */

.grid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
}

/* =====================================================
   CARDS
   ===================================================== */

.card{
  background:rgba(14,22,42,.78);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

/* =====================================================
   KPI BLOCKS
   ===================================================== */

.kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:12px;
}

.kpi{
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(14,22,42,.75);
}

.kpi-title{
  font-weight:900;
  font-size:18px;
  margin-bottom:8px;
}

.kpi-desc{
  font-size:13px;
  color:var(--muted);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1{
  margin:0 0 10px;
  font-size:44px;
}

h2{
  margin:0 0 12px;
  font-size:26px;
}

h3{
  margin:0 0 10px;
  font-size:18px;
}

p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.6;
}

.small{
  font-size:12px;
  color:var(--muted);
}

/* =====================================================
   CHIPS
   ===================================================== */

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.chip{
  display:inline-block;
  padding:6px 10px;
  border-radius:12px;
  font-size:12px;
  font-weight:800;
  color:var(--text);
  background:linear-gradient(135deg, rgba(96,165,250,.22), rgba(34,197,94,.16));
  border:1px solid var(--border);
}

/* =====================================================
   FORMS
   ===================================================== */

form label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:10px 0 6px;
  font-weight:800;
}

input,
textarea,
select{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(14,22,42,.95);
  color:var(--text);
}

textarea{
  min-height:120px;
}

/* =====================================================
   GALLERY
   ===================================================== */

.gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}

.gitem{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
}

.gitem img{
  width:100%;
  height:220px;
  object-fit:cover;
}

/* =====================================================
   FOOTER
   ===================================================== */

footer{
  border-top:1px solid var(--border);
  padding:22px 0 36px;
  color:var(--muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width:940px){

  header{
    position:relative;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .kpis{
    grid-template-columns:1fr;
  }

}

@media (max-width:768px){

  .brand img{
    width:72px;
  }

  .brand .name{
    font-size:18px;
  }

  .navlinks{
    gap:10px;
  }

}

@media (max-width:680px){
  h1{
    font-size:34px;
  }
}

@media (max-width:520px){
  .gallery{
    grid-template-columns:1fr;
  }
}

/* =====================================================
   LOGO SIZE OVERRIDE
   ===================================================== */

header .brand{
  min-width:420px !important;
}

header .brand img{
  width:180px !important;
  min-width:180px !important;
  flex-shrink:0 !important;
}

@media (max-width:768px){

  header .brand{
    min-width:280px !important;
  }

  header .brand img{
    width:130px !important;
  }

}

@media (max-width:480px){

  header .brand{
    min-width:220px !important;
  }

  header .brand img{
    width:110px !important;
  }

}

/* =====================================
LIGHTBOX GALLERY
===================================== */

.lightbox{

position:fixed;
top:0;
left:0;
width:100%;
height:100%;

display:none;

align-items:center;
justify-content:center;

background:rgba(0,0,0,.90);

z-index:9999;

}

.lightbox.open{
display:flex;
}

.lightbox img{

max-width:95%;
max-height:90vh;

border-radius:14px;

box-shadow:0 25px 60px rgba(0,0,0,.55);

}

.lightbox-close{

position:absolute;
top:20px;
right:25px;

font-size:34px;

background:none;
border:none;

color:white;

cursor:pointer;

}

.lightbox-close:hover{
opacity:.7;
}