/* =========================
   common.css – DÙNG CHUNG TOÀN WEBSITE
   Công ty: GỬI HÀNG HỎA TỐC
   Chuẩn Mobile-first + Hamburger Menu
========================= */

:root{
  --red:#d60000;
  --yellow:#f4b400;
  --dark:#222;
  --light:#f5f5f5;
  --white:#ffffff;
  --green:#16a34a;
}

/* ===== RESET ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:var(--light);
  color:var(--dark);
  line-height:1.6;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:0 16px;
}

/* =========================
   HEADER
========================= */
header{
  background:linear-gradient(90deg,var(--red),var(--yellow));
  color:#fff;
}

.header-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
}

.hotline{
  font-weight:700;
}

/* =========================
   NAVBAR (PC + MOBILE)
========================= */
nav{
  background:#fff;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}

.nav-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

/* MENU LINKS (PC) */
.nav-links{
  display:flex;
  gap:24px;
}

.nav-links a{
  font-weight:700;
  color:var(--dark);
}

.nav-links a:hover{
  color:var(--red);
}

/* HAMBURGER */
.menu-toggle{
  display:none;
  font-size:26px;
  cursor:pointer;
  color:var(--red);
}

/* =========================
   MOBILE MENU
========================= */
@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav-container{
    position:relative;
  }

  .nav-links{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    flex-direction:column;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
  }

  .nav-links.open{
    display:flex;
  }

  .nav-links a{
    padding:14px 20px;
    border-bottom:1px solid #eee;
  }
}

/* =========================
   FOOTER
========================= */
footer{
  background:#111;
  color:#ddd;
  padding:40px 0 20px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:32px;
}

footer h4{
  color:var(--yellow);
  margin-bottom:10px;
}

.footer-grid a{
  display:block;
  margin-bottom:8px;
  color:#ddd;
}

.footer-grid a:hover{
  color:var(--yellow);
}

.footer-bottom{
  text-align:center;
  margin-top:20px;
  font-size:14px;
  color:#aaa;
}

@media(max-width:768px){
  .footer-grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   CALL BUTTON FIXED – ADS
========================= */
.call-fixed{
  position:fixed;
  right:18px;
  bottom:90px;
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--green);
  color:#fff;
  padding:14px 18px;
  border-radius:40px;
  font-weight:700;
  font-size:15px;
  box-shadow:0 12px 30px rgba(22,163,74,0.45);
  z-index:9999;
  animation:pulse 1.8s infinite;
}

.call-fixed i{
  background:#fff;
  color:var(--green);
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

.call-fixed:hover{
  background:#15803d;
}

/* MOBILE: chỉ hiện icon */
@media(max-width:768px){
  .call-fixed span{
    display:none;
  }
}

/* HIỆU ỨNG */
@keyframes pulse{
  0%{transform:scale(1);}
  50%{transform:scale(1.06);}
  100%{transform:scale(1);}
}
/* =========================
   MOBILE MENU – HAMBURGER
========================= */
.menu-toggle{
  display:none;
  font-size:26px;
  color:var(--red);
  cursor:pointer;
}

@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  .navbar{
    position:relative;
  }

  .nav-links{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    flex-direction:column;
    display:none;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
  }

  .nav-links.open{
    display:flex;
  }

  .nav-links a{
    padding:14px 20px;
    border-bottom:1px solid #eee;
  }
}
